Skip to content

AISecurityLab/hackagent

HackAgent - AI Agent Security Testing Toolkit

AI Security Red-Team Toolkit


App -- Docs -- API


Python Version License uv Commitizen Ruff Test Coverage CI Status


Overview

HackAgent is an open-source toolkit designed to help security researchers, developers and AI safety practitioners evaluate the security of AI agents. It provides a structured approach to discover potential vulnerabilities, including prompt injection, jailbreaking techniques, and other attack vectors.

🔥 Features

  • Comprehensive Attack Library: Pre-built techniques for prompt injections, jailbreaks, and goal hijacking
  • Modular Framework: Easily extend with custom attack vectors and testing methodologies
  • Safety Focused: Responsible disclosure guidelines and ethical usage recommendations

🔌 AI Agent Frameworks Supported

LiteLLM ADK OpenAI

🚀 Installation

Installation from PyPI

HackAgent can be installed directly from PyPI:

# With uv (recommended)
uv add hackagent

# Or with pip
pip install hackagent

📚 Quick Start

Run the interactive CLI to start testing your AI agents:

hackagent

Obtain your credentials at https://app.hackagent.dev

For detailed examples and advanced usage, visit our documentation.

📊 Reporting

HackAgent automatically sends test results to the dashboard for analysis and visualization.

Access your dashboard at https://app.hackagent.dev

🤝 Contributing

We welcome contributions! Please see CONTRIBUTING.md and CODE_OF_CONDUCT.md for guidelines.

📜 License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

⚠️ Disclaimer

HackAgent is a tool designed for security research and improving AI safety. Always obtain proper authorization before testing any AI systems. The authors are not responsible for any misuse of this software.


This project is for educational and research purposes. Always use responsibly and ethically.

About

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

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages