AISecurityLab/hackagent
关于
HackAgent 是一个用于检测 AI 智能体漏洞的开源安全工具包。
安全与隐私实测星标增长
- 24小时
- 0
- 7天
- +3
- 15天
- +5
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文HackAgent attacks your AI model or agent with research-backed techniques — jailbreaks, prompt injection, tool misuse — and has judge models score every reply. You get a measured success rate per attack, so you can see how exposed a target is and whether a fix helped.
See it run
Terminal UI. Start from an example, change what you need, run it.

Command line. The same campaign is one YAML file you can edit, check and run, in a shell or in CI.

Dashboard. Browse runs, results and traces with hackagent web, or on app.hackagent.dev.

Quick start
pip install 'hackagent[tui]'
hackagent # opens the terminal UI
Or run an example end to end, fully local, with Ollama:
ollama pull gemma3:4b
hackagent examples copy h4rm3l-demo
hackagent campaign run h4rm3l-demo.yaml
No API key needed: results go to a local database unless a campaign says otherwise.
Learn more
- Installation — extras, and standalone binaries that need no Python
- Your first campaign — write, check and run one
- Concepts — attacks, judges and how a run works
- Attacks and the campaign file reference
- Dashboard —
hackagent web, locally or against your account
Questions? Join the discussions or email [email protected].
Responsible use
HackAgent is for authorized security testing only. Test systems you own or have written permission to test, and report what you find through coordinated disclosure. Read the responsible disclosure guidelines and our security policy.
Contributing
Contributions are welcome. See CONTRIBUTING.md and CODE_OF_CONDUCT.md.
License
Licensed under Apache-2.0. See LICENSE. HackAgent is intended for security research and AI safety improvement; the authors are not responsible for misuse.
探索相关项目
加载中…