AISecurityLab/hackagent

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

What it solves

HackAgent helps developers identify security vulnerabilities in AI models and agents. It automates the process of testing how well an AI resists malicious inputs like jailbreaks, prompt injections, and attempts to misuse integrated tools.

How it works

The tool runs "campaigns"—sequences of research-backed attacks—against your AI target. It uses judge models to evaluate every response from the AI, providing a clear success rate for each attack. You can manage these tests through a terminal user interface, a command-line tool using YAML configuration files, or a web dashboard to visualize results and traces.

Who it’s for

It is designed for developers and security researchers who need to perform authorized security testing on AI systems they own or have permission to evaluate. It is intended for those looking to improve AI safety through rigorous, measurable red-teaming.

Highlights

  • Automated testing for jailbreaks, prompt injection, and tool misuse.
  • Built-in judge models to score AI responses and measure success rates.
  • Flexible operation via terminal UI, command-line interface, or web dashboard.
  • Supports local execution (e.g., with Ollama) without requiring API keys.
  • Campaign results are stored locally by default for privacy and ease of use.

Related

  • Project
  • Project
  • Project
  • Project
  • Project