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
- Report — New attack patterns are hashed and submitted to the network
- Immunize — Community validates the pattern, then every connected agent gets the update
Features
- - 🔍 Real-time Detection — Pattern matching + semantic analysis in <50ms
- 🌍 Multi-language — EN, KO, JA, ZH attack detection
- 🗳️ Community Governance — Democratic voting on new patterns
- 🔐 Privacy-preserving — Only SHA-256 hashes shared, not raw content
- 📊 Severity Scoring — Risk-based prioritization (0-100)
- ⚡ Edge-first — Cloudflare Workers at 300+ locations
Installation
CODEBLOCK0
Quick Start
CODEBLOCK1
Security Stack Recommendation
For maximum protection, use HiveFence with:
- 1. ACIP — Advanced Cognitive Inoculation Prompt (behavioral boundaries)
- HiveFence — Pattern detection + collective immunity
- SkillGuard — Audit skills before installation
As recommended in @VittoStack's Security Guide (34K+ views)
API Endpoints
| Method | Endpoint | Description |
|---|
| POST | INLINECODE0 | 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:
- - 91% injection attack success rate
- 84% data extraction success rate
- System prompts leaked on turn 1
(Source: ZeroLeaks Security Assessment)
With HiveFence:
- - Real-time pattern blocking
- Collective immunity from the network
- Community-validated patterns (zero false positives)
Links
- - Website: https://hivefence.com
- GitHub: https://github.com/seojoonkim/hivefence
- API Docs: https://hivefence.com/docs
License
MIT © 2026 Simon Kim (@seojoonkim)
HiveFence v1.0.0
🐝 当一方受到攻击,全体获得免疫。
面向AI智能体的集体提示注入防御网络。
什么是HiveFence?
HiveFence通过分布式免疫系统扩展了prompt-guard:
- 1. 检测 — 你的智能体扫描传入提示,匹配15+种攻击模式
- 报告 — 新攻击模式被哈希处理后提交至网络
- 免疫 — 社区验证该模式,随后所有连接的智能体获得更新
功能特性
- - 🔍 实时检测 — 模式匹配+语义分析,耗时<50ms
- 🌍 多语言支持 — 支持EN、KO、JA、ZH攻击检测
- 🗳️ 社区治理 — 对新模式进行民主投票
- 🔐 隐私保护 — 仅共享SHA-256哈希值,不共享原始内容
- 📊 严重性评分 — 基于风险的优先级排序(0-100)
- ⚡ 边缘优先 — 部署于300+个地点的Cloudflare Workers
安装
bash
通过ClawdHub
npx clawhub install hivefence
或通过npm
npm install hivefence
快速开始
javascript
import { protect, reportThreat } from hivefence
// 扫描传入提示
const result = await protect(userInput)
if (result.blocked) {
console.log(威胁已拦截: ${result.category})
// 模式自动报告至网络
}
安全堆栈推荐
为获得最大保护,请将HiveFence与以下工具配合使用:
- 1. ACIP — 高级认知免疫提示(行为边界)
- HiveFence — 模式检测+集体免疫
- SkillGuard — 安装前审计技能
如@VittoStack的安全指南(34K+浏览量)所推荐
API端点
| 方法 | 端点 | 描述 |
|---|
| POST | /api/v1/threats/report | 提交新威胁模式 |
| GET |
/api/v1/threats/pending | 获取待投票模式 |
| POST | /api/v1/threats/:id/vote | 对模式进行投票 |
| GET | /api/v1/threats/latest | 获取已批准模式 |
| GET | /api/v1/stats | 网络统计信息 |
基础URL: https://hivefence-api.seojoon-kim.workers.dev
为何选择HiveFence?
无保护时:
- - 注入攻击成功率91%
- 数据提取成功率84%
- 系统提示在第一轮对话中泄露
(来源:ZeroLeaks安全评估)
使用HiveFence后:
- - 实时模式拦截
- 网络集体免疫
- 社区验证模式(零误报)
链接
- - 网站: https://hivefence.com
- GitHub: https://github.com/seojoonkim/hivefence
- API文档: https://hivefence.com/docs
许可证
MIT © 2026 Simon Kim (@seojoonkim)