← Open Source

HackAgent is an open-source security toolkit to detect vulnerabilities of your AI Agents.

AI EngineeringTest & guardPython
Momentum
+0stars in 24 hours0.0%
545
Stars
113
Forks
+3
This week
15
Contributors
Created 2025-05-14 · Updated 2026-12-03 · #22308 today
Top developers
README

The open-source red-team toolkit for AI models and agents

Docs · App · API

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

Questions? Join the discussions or email ais@ai4i.it.

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.

Nearby in the ranking
Similar items

AI Rank for iPhone

Follow AI model rankings

Download on the App Store