AI Security Tools Directory
A curated directory of free, open-source AI security tools on GitHub, for testing LLM apps, guarding chatbots, scanning ML models and AI-assisted pentesting. Every tool below is actively maintained. We checked each repository’s activity and licence on November 16, 2026.
LLM red teaming & vulnerability scanners
Attack your own chatbot, RAG app or AI agent before someone else does: jailbreaks, prompt injection, data leakage and more.
garak
by NVIDIAAn LLM vulnerability scanner. It probes a model or chatbot for prompt injection, jailbreaks, data leakage, hallucination, toxic output and more, then reports which attacks worked.
View on GitHub: NVIDIA/garak ↗PyRIT
by MicrosoftThe Python Risk Identification Tool from the Microsoft AI Red Team. It automates scans and multi-turn attacks against generative AI systems and supports human-led red teaming.
promptfoo
by PromptfooA developer-friendly CLI to test and red-team prompts, models and AI apps. Define test cases in a config file and run them on every code change.
View on GitHub: promptfoo/promptfoo ↗DeepTeam
by Confident AIA red-teaming framework for LLM systems. It simulates jailbreaking, prompt injection and multi-turn exploits to find issues like PII leakage, bias and SQL injection in agents, RAG pipelines and chatbots. Runs locally.
View on GitHub: confident-ai/deepteam ↗Agentic Security
by Open-source projectA vulnerability scanner for LLMs and agent workflows, with multimodal (text, image, audio) attacks, multi-step jailbreaks and fuzzing.
View on GitHub: msoedov/agentic_security ↗Giskard
by GiskardTesting for AI agents and LLM apps, including an AI vulnerability scanner. Version 3 is a rewrite focused on dynamic, multi-turn agent testing.
Guardrails & AI firewalls
Filter what goes into and comes out of an LLM: block prompt injection, unsafe output and off-topic use at runtime.
NeMo Guardrails
by NVIDIAA toolkit for adding programmable guardrails to LLM apps. Control topics, block jailbreak attempts, and check inputs and outputs with configurable rails.
View on GitHub: NVIDIA/NeMo-Guardrails ↗Guardrails AI
by Guardrails AIA Python framework that validates LLM inputs and outputs using reusable 'validators' (PII, toxic language, regex, schema and more) from a public hub.
View on GitHub: guardrails-ai/guardrails ↗Purple Llama
by MetaMeta's umbrella project for AI safety and security: Llama Guard (content safety classifier), Prompt Guard (prompt-injection detection), LlamaFirewall, CodeShield (insecure code filtering) and the CyberSecEval benchmarks.
ML model & supply-chain security
Check downloaded models for hidden code and test models against adversarial attacks.
ModelScan
by Protect AIScans machine-learning model files (such as Pickle, H5 and SavedModel) for unsafe code that could run when the model is loaded: a 'model serialization attack'.
Adversarial Robustness Toolbox (ART)
by Linux Foundation AI & DataA comprehensive library for evasion, poisoning, extraction and inference attacks against ML models, and the defences against them.
View on GitHub: Trusted-AI/adversarial-robustness-toolbox ↗AI-powered pentesting agents
AI agents that help authorised testers find and verify vulnerabilities in apps and networks.
PentestGPT
by Open-source project (USENIX Security 2024 paper)An AI-powered penetration testing agent, first published as research at USENIX Security 2024. Version 1.0 adds an autonomous, agentic workflow.
Strix
by StrixAutonomous AI agents that test your application for vulnerabilities, verify them and suggest fixes. Integrates with GitHub Actions to scan pull requests.
Nebula
by BerylliumSecAn AI-assisted workspace for security engagements. It keeps assets, browser sessions, Kali terminals, notes and findings together, and works with several AI models, including local ones via Ollama.
AI-powered defensive tools
Machine learning used directly for detection and triage.
Magika
by GoogleAI-powered file-type detection using a small deep-learning model. Google uses it at scale to route Gmail, Drive and Safe Browsing files to the right security scanners.
View on GitHub: google/magika ↗Quick comparison
Which tool fits which job, at a glance.
| Tool | Category | Best for | Licence |
|---|---|---|---|
| garak | LLM red teaming & vulnerability scanners | Quick, broad security scan of any LLM or LLM-backed app | Apache-2.0 |
| PyRIT | LLM red teaming & vulnerability scanners | Security teams running structured, repeatable AI red-team exercises | MIT |
| promptfoo | LLM red teaming & vulnerability scanners | Developers adding AI security tests to CI/CD | MIT |
| DeepTeam | LLM red teaming & vulnerability scanners | Testing RAG apps and AI agents with ready-made attacks | Apache-2.0 |
| Agentic Security | LLM red teaming & vulnerability scanners | Fuzzing and stress-testing LLM APIs and agents | Apache-2.0 |
| Giskard | LLM red teaming & vulnerability scanners | Teams that want security and quality tests in one framework | Apache-2.0 |
| NeMo Guardrails | Guardrails & AI firewalls | Production chatbots that need strict, auditable rules | Apache-2.0 |
| Guardrails AI | Guardrails & AI firewalls | Developers who want plug-in validators for specific risks | Apache-2.0 |
| Purple Llama | Guardrails & AI firewalls | Teams building on open models who want ready-made safety classifiers | Llama Community License |
| ModelScan | ML model & supply-chain security | Anyone downloading models from Hugging Face or other public sources | Apache-2.0 |
| Adversarial Robustness Toolbox (ART) | ML model & supply-chain security | Data scientists and researchers testing model robustness | MIT |
| PentestGPT | AI-powered pentesting agents | Learning and authorised CTF / lab pentesting with AI help | MIT |
| Strix | AI-powered pentesting agents | Dev teams wanting AI security testing in their pipeline | Apache-2.0 |
| Nebula | AI-powered pentesting agents | Pentesters who want one AI-assisted workspace per engagement | BSD-2-Clause |
| Magika | AI-powered defensive tools | Detecting disguised or mislabelled files in upload and malware-triage pipelines | Apache-2.0 |
Archived or inactive: avoid for new projects
These popular tools still appear in many “best tools” lists but are no longer maintained. Unmaintained security tools miss new attack techniques and may carry unpatched bugs.
- LLM Guard (Protect AI) (protectai/llm-guard): Archived: no longer maintained
- CAI – Cybersecurity AI (aliasrobotics/cai): Archived
- Rebuff (protectai/rebuff): No updates since January 2024
- Vigil (deadbits/vigil-llm): No updates since January 2024
How we choose tools
- Free and open source: source code on GitHub, usable at no cost. (*Purple Llama uses Meta’s Llama licence, which is free but has conditions.)
- Actively maintained: recent commits at the time of checking. Archived or long-inactive projects are flagged, not listed.
- Security-focused: the tool secures AI systems, or uses AI to improve security.
- Install commands are taken from each project’s own README. Always read a project’s docs and code before running it.
- Last checked: November 16, 2026. We re-check the list regularly. See our editorial policy.
Frequently asked questions
What is an AI security tool?
Either a tool that protects AI systems (testing chatbots and LLM apps for prompt injection, jailbreaks and data leaks, or filtering their inputs and outputs), or a security tool that uses AI to work better, such as an AI pentesting agent or ML-based file detection.
Which free tool should I start with to test my chatbot?
For a quick broad scan, try garak. If you’re a developer who wants tests on every code change, use promptfoo. For a full red-team programme, look at PyRIT.
Are AI pentesting agents legal to use?
Only on systems you own or have written permission to test. Running them against anyone else’s systems is illegal in the US and most countries.
Is it safe to install these tools?
These are well-known projects from established organisations or active communities. Still, install them in a virtual environment or container, read the docs, and never give an AI agent more access than it needs.
Can I suggest a tool?
Yes. Contact us with the GitHub link and we’ll review it for the next update.
