The Runtime Security Layer for Autonomous AI Agents
When one is attacked, all become immune. Defense-in-depth for agentic systems.
HiveFence is a comprehensive runtime security framework for AI agents that goes far beyond prompt injection detection. It provides defense-in-depth across the full attack surface of autonomous AI systems:
- Local Defense — Real-time threat detection & blocking across 6 attack categories
- Collective Immunity — Attack patterns shared across the network instantly
- Community Governance — Transparent, community-driven threat validation
┌─────────────────────────────────────────────────────────────┐
│ HiveFence Runtime Security │
│ The Immune System for AI Agents │
├─────────────────────────────────────────────────────────────┤
│ │
│ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ │
│ │ Prompt │ │ Supply │ │ Memory │ │ Action │ │
│ │Injection │ │ Chain │ │Poisoning │ │ Gate │ │
│ │ Defense │ │ Security │ │ Guard │ │ Enforce │ │
│ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ │
│ │ │ │ │ │
│ ┌────┴─────┐ ┌────┴─────┐ │
│ │ Unicode │ │ Cascade │ │
│ │Stegano │ │Amplify │ ┌──────────────────────┐ │
│ │ Defense │ │ Guard │ │ Collective Immunity │ │
│ └────┬─────┘ └────┬─────┘ │ Network (C.I.N.) │ │
│ │ │ │ │ │
│ └──────┬──────┘ │ One attacked → │ │
│ ▼ │ All immune │ │
│ ┌──────────────┐ └──────────────────────┘ │
│ │ Pattern Hub │ │
│ │ 600+ rules │ │
│ └──────────────┘ │
└─────────────────────────────────────────────────────────────┘
| Attack Category | Severity | Description |
|---|---|---|
| Prompt Injection | CRITICAL-HIGH | Instruction override, jailbreak, system impersonation, token smuggling |
| Supply Chain Injection | CRITICAL | Malicious skills with hidden payloads, lifecycle hook exploits, credential exfiltration |
| Memory Poisoning | HIGH | Persistent write injection into MEMORY.md, AGENTS.md, SOUL.md |
| Action Gate Bypass | HIGH | Financial transfers, credential export, access control changes without approval |
| Unicode Steganography | HIGH | Bidi overrides (U+202E), zero-width chars, invisible instruction hiding |
| Cascade Amplification | MEDIUM | Infinite sub-agent loops, recursive spawning, cost explosion attacks |
| Identity Override | CRITICAL-HIGH | Cognitive rootkit, system prompt extraction, role manipulation |
- Multi-language detection (EN/KO/JA/ZH)
- 20+ attack categories across 6 attack surfaces
- Severity scoring (1-5)
- Automatic logging
- Zero external dependencies
- Distributed threat intelligence
- Privacy-preserving pattern sharing (SHA-256 hashes only)
- Cryptographically signed updates
- Opt-in telemetry
- Transparent pattern review
- Community voting
- Maintainer approval
- Role-based permissions
# Install as Clawdbot skill
clawdhub install hivefence
# Or clone directly
git clone https://github.com/seojoonkim/hivefence.gitWithout protection:
- 91% injection attack success rate
- 84% data extraction success rate
- System prompts leaked on turn 1
(Source: ZeroLeaks Security Assessment)
With HiveFence:
- Defense-in-depth across all 6 attack surfaces
- Collective immunity from the network
- Community-validated patterns (zero false positives)
- <50ms detection latency
For maximum protection, use HiveFence with:
- ACIP — Advanced Cognitive Inoculation Prompt (behavioral boundaries)
- HiveFence — Runtime security + collective immunity
- SkillGuard — Audit skills before installation
As recommended in @VittoStack's Security Guide (34K+ views)
- Architecture — System design
- Skill Guide — Usage instructions
- Security — Security considerations
- Threat Intel Design — Distributed immunity system
- v2.x — Local prompt injection defense
- v2.5 — Supply chain & memory poisoning defense
- v3.0 — Threat intelligence API (Cloudflare Workers + D1)
- v3.1 — Community voting system
- v3.2 — Automatic pattern sync
- v4.0 — Full collective immunity
Contributions welcome! See SECURITY.md for responsible disclosure.
MIT
hivefence.com (coming soon)
Built with 🐝 by Simon Kim