Directory • Free • Open source

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.

15maintained tools
5categories
100%free & open source*
4archived tools flagged

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 NVIDIA

An 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.

Best for
Quick, broad security scan of any LLM or LLM-backed app
Licence
Apache-2.0
Last update
Nov 2026
Install
python -m pip install -U garak
View on GitHub: NVIDIA/garak ↗

PyRIT

by Microsoft

The 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.

Best for
Security teams running structured, repeatable AI red-team exercises
Licence
MIT
Last update
Nov 2026
Install
See the official docs
Moved from Azure/PyRIT to microsoft/PyRIT. Use the new address.
View on GitHub: microsoft/PyRIT ↗

promptfoo

by Promptfoo

A 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.

Best for
Developers adding AI security tests to CI/CD
Licence
MIT
Last update
Nov 2026
Install
npm install -g promptfoo
View on GitHub: promptfoo/promptfoo ↗

DeepTeam

by Confident AI

A 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.

Best for
Testing RAG apps and AI agents with ready-made attacks
Licence
Apache-2.0
Last update
Oct 2026
Install
pip install -U deepteam
View on GitHub: confident-ai/deepteam ↗

Agentic Security

by Open-source project

A vulnerability scanner for LLMs and agent workflows, with multimodal (text, image, audio) attacks, multi-step jailbreaks and fuzzing.

Best for
Fuzzing and stress-testing LLM APIs and agents
Licence
Apache-2.0
Last update
Nov 2026
Install
pip install agentic_security
View on GitHub: msoedov/agentic_security ↗

Giskard

by Giskard

Testing for AI agents and LLM apps, including an AI vulnerability scanner. Version 3 is a rewrite focused on dynamic, multi-turn agent testing.

Best for
Teams that want security and quality tests in one framework
Licence
Apache-2.0
Last update
Nov 2026
Install
pip install "giskard[scan]"
v2 is no longer maintained, so use v3.
View on GitHub: Giskard-AI/giskard ↗

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 NVIDIA

A toolkit for adding programmable guardrails to LLM apps. Control topics, block jailbreak attempts, and check inputs and outputs with configurable rails.

Best for
Production chatbots that need strict, auditable rules
Licence
Apache-2.0
Last update
Nov 2026
Install
pip install nemoguardrails
View on GitHub: NVIDIA/NeMo-Guardrails ↗

Guardrails AI

by Guardrails AI

A Python framework that validates LLM inputs and outputs using reusable 'validators' (PII, toxic language, regex, schema and more) from a public hub.

Best for
Developers who want plug-in validators for specific risks
Licence
Apache-2.0
Last update
Aug 2026
Install
pip install guardrails-ai
View on GitHub: guardrails-ai/guardrails ↗

Purple Llama

by Meta

Meta'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.

Best for
Teams building on open models who want ready-made safety classifiers
Licence
Llama Community License
Last update
Nov 2026
Install
See each component's folder
Free to use, but under Meta's Llama licence rather than a standard open-source licence. Read the terms.
View on GitHub: meta-llama/PurpleLlama ↗

ML model & supply-chain security

Check downloaded models for hidden code and test models against adversarial attacks.

ModelScan

by Protect AI

Scans 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'.

Best for
Anyone downloading models from Hugging Face or other public sources
Licence
Apache-2.0
Last update
Feb 2026
Install
pip install modelscan
Updated less often than the others. Check for recent releases.
View on GitHub: protectai/modelscan ↗

Adversarial Robustness Toolbox (ART)

by Linux Foundation AI & Data

A comprehensive library for evasion, poisoning, extraction and inference attacks against ML models, and the defences against them.

Best for
Data scientists and researchers testing model robustness
Licence
MIT
Last update
Nov 2026
Install
pip install adversarial-robustness-toolbox
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.

Best for
Learning and authorised CTF / lab pentesting with AI help
Licence
MIT
Last update
Jul 2026
Install
git clone + make install (see README)
Use only on systems you own or are authorised to test.
View on GitHub: GreyDGL/PentestGPT ↗

Strix

by Strix

Autonomous AI agents that test your application for vulnerabilities, verify them and suggest fixes. Integrates with GitHub Actions to scan pull requests.

Best for
Dev teams wanting AI security testing in their pipeline
Licence
Apache-2.0
Last update
Nov 2026
Install
See the official install guide
Only test apps you own or are authorised to assess.
View on GitHub: usestrix/strix ↗

Nebula

by BerylliumSec

An 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.

Best for
Pentesters who want one AI-assisted workspace per engagement
Licence
BSD-2-Clause
Last update
Nov 2026
Install
Build from source (see README)
For authorised testing only.
View on GitHub: berylliumsec/nebula ↗

AI-powered defensive tools

Machine learning used directly for detection and triage.

Magika

by Google

AI-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.

Best for
Detecting disguised or mislabelled files in upload and malware-triage pipelines
Licence
Apache-2.0
Last update
Nov 2026
Install
pip install magika
View on GitHub: google/magika ↗

Quick comparison

Which tool fits which job, at a glance.

ToolCategoryBest forLicence
garakLLM red teaming & vulnerability scannersQuick, broad security scan of any LLM or LLM-backed appApache-2.0
PyRITLLM red teaming & vulnerability scannersSecurity teams running structured, repeatable AI red-team exercisesMIT
promptfooLLM red teaming & vulnerability scannersDevelopers adding AI security tests to CI/CDMIT
DeepTeamLLM red teaming & vulnerability scannersTesting RAG apps and AI agents with ready-made attacksApache-2.0
Agentic SecurityLLM red teaming & vulnerability scannersFuzzing and stress-testing LLM APIs and agentsApache-2.0
GiskardLLM red teaming & vulnerability scannersTeams that want security and quality tests in one frameworkApache-2.0
NeMo GuardrailsGuardrails & AI firewallsProduction chatbots that need strict, auditable rulesApache-2.0
Guardrails AIGuardrails & AI firewallsDevelopers who want plug-in validators for specific risksApache-2.0
Purple LlamaGuardrails & AI firewallsTeams building on open models who want ready-made safety classifiersLlama Community License
ModelScanML model & supply-chain securityAnyone downloading models from Hugging Face or other public sourcesApache-2.0
Adversarial Robustness Toolbox (ART)ML model & supply-chain securityData scientists and researchers testing model robustnessMIT
PentestGPTAI-powered pentesting agentsLearning and authorised CTF / lab pentesting with AI helpMIT
StrixAI-powered pentesting agentsDev teams wanting AI security testing in their pipelineApache-2.0
NebulaAI-powered pentesting agentsPentesters who want one AI-assisted workspace per engagementBSD-2-Clause
MagikaAI-powered defensive toolsDetecting disguised or mislabelled files in upload and malware-triage pipelinesApache-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.

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.

Want to check your own website first? Try our free online security tools. Read the full ranked list: Best Free AI Security Tools on GitHub (2026). Learning to use AI in security work? See the AI for Security Analysts course.