HiveFence
by @seojoonkim
Collective immunity network for AI agents. When one agent detects a prompt injection attack, all connected agents become immune. Real-time pattern detection, community voting, and distributed threat intelligence. Built on top of prompt-guard.
clawhub install hivefenceπ About This Skill
name: hivefence version: 1.0.0 description: Collective immunity network for AI agents. When one agent detects a prompt injection attack, all connected agents become immune. Real-time pattern detection, community voting, and distributed threat intelligence. Built on top of prompt-guard.
HiveFence v1.0.0
π When one is attacked, all become immune.
Collective prompt injection defense network for AI agents.
What is HiveFence?
HiveFence extends prompt-guard with a distributed immunity system:
1. Detect β Your agent scans incoming prompts against 15+ attack patterns 2. Report β New attack patterns are hashed and submitted to the network 3. Immunize β Community validates the pattern, then every connected agent gets the update
Features
Installation
# Via ClawdHub
npx clawhub install hivefenceOr via npm
npm install hivefence
Quick Start
import { protect, reportThreat } from 'hivefence'// Scan incoming prompt
const result = await protect(userInput)
if (result.blocked) {
console.log(Threat blocked: ${result.category})
// Pattern automatically reported to network
}
Security Stack Recommendation
For maximum protection, use HiveFence with:
1. ACIP β Advanced Cognitive Inoculation Prompt (behavioral boundaries) 2. HiveFence β Pattern detection + collective immunity 3. SkillGuard β Audit skills before installation
As recommended in @VittoStack's Security Guide (34K+ views)
API Endpoints
| Method | Endpoint | Description |
|--------|----------|-------------|
| POST | /api/v1/threats/report | Submit new threat pattern |
| GET | /api/v1/threats/pending | Get patterns awaiting votes |
| POST | /api/v1/threats/:id/vote | Vote on a pattern |
| GET | /api/v1/threats/latest | Fetch approved patterns |
| GET | /api/v1/stats | Network statistics |
Base URL: https://hivefence-api.seojoon-kim.workers.dev
Why HiveFence?
Without protection:
(Source: ZeroLeaks Security Assessment)
With HiveFence:
Links
License
MIT Β© 2026 Simon Kim (@seojoonkim)
π‘ Examples
import { protect, reportThreat } from 'hivefence'// Scan incoming prompt
const result = await protect(userInput)
if (result.blocked) {
console.log(Threat blocked: ${result.category})
// Pattern automatically reported to network
}