Securing an AI application takes three kinds of tools: red-teaming and vulnerability scanners that attack your model or agent before others do (promptfoo, garak, PyRIT), guardrails that filter what goes in and out at run time (NeMo Guardrails, Guardrails AI, Llama Guard from Purple Llama), and basic hygiene such as scanning code for leaked API keys (TruffleHog). Start from the OWASP Top 10 for LLM Applications to know which risks to test, then pick the tools below, ranked by GitHub stars and refreshed weekly.
Open-source AI security tools
| Name | What it does | Level | GitHub stars | Last update | License |
|---|---|---|---|---|---|
| TruffleHog secrets | Find, verify, and analyze leaked credentials | Intermediate | 29,687 | Nov 25, 2026 | AGPL-3.0 |
| promptfoo red teaming, evals | Test your prompts, agents, and RAGs. Red teaming/pentesting/vulnerability scanning for AI. Compare performance of GPT, Claude, Gemini, DeepSeek, and more. Simple declarative configs with command line and CI/CD integration. Used by OpenAI and Anthropic. | Intermediate Advanced | 27,701 | Nov 26, 2026 | MIT |
| garak red teaming | the LLM vulnerability scanner | Advanced | 10,191 | Nov 25, 2026 | Apache-2.0 |
| Guardrails AI guardrails | Adding guardrails to large language models. | Intermediate | 7,642 | Nov 24, 2026 | Apache-2.0 |
| NeMo Guardrails guardrails | NeMo Guardrails is an open-source library for applying programmable safety and security controls to LLM and agentic applications. | Advanced | 7,583 | Nov 25, 2026 | NOASSERTION |
| PyRIT red teaming | Open-source AI red teaming toolkit from Microsoft. Test generative AI systems with automated scans, adaptive multi-turn attacks, and a web UI. | Advanced Advanced++ | 5,101 | Nov 25, 2026 | MIT |
| Purple Llama guardrails, evals | Set of tools to assess and improve LLM security. | Advanced | 4,496 | Nov 20, 2026 | NOASSERTION |
| LLM Guard Archived guardrails | The Security Toolkit for LLM Interactions Repository archived on GitHub. | Intermediate | 3,223 | Jul 8, 2026 | MIT |
Description, stars, license and last update come from GitHub’s API, refreshed every week (last refresh Nov 26, 2026). Levels are our editorial call.
Frameworks to know the risks
| Name | What it does | Level | Price |
|---|---|---|---|
| OWASP Top 10 for LLM Applications framework | The ten main risks of LLM apps, from prompt injection to excessive agency | Beginner Intermediate | Free |
| MITRE ATLAS framework | Knowledge base of attack techniques against AI systems | Advanced | Free |
| NIST AI Risk Management Framework framework | US framework to manage AI risks | Intermediate Advanced | Free |
Links checked every week (last check Nov 26, 2026). Levels are our editorial call.
An AI security routine, by level
- Beginner (you use AI tools): read what each tool does with your data before pasting anything sensitive. Our terms table shows which tools may train on your inputs, and never paste API keys or client data into a chatbot.
- Intermediate (you build with an API): keep keys out of code (scan with TruffleHog), add input and output checks, and test prompt injection with promptfoo before launch.
- Advanced (you ship agents): limit each agent’s tools and permissions, log every action, and run garak or PyRIT against the system, not just the model.
- Advanced++: map threats with MITRE ATLAS, manage risk with the NIST AI RMF, and red-team on every model or prompt change.
Questions about AI security
What is prompt injection? Text hidden in an input, a web page or a document that makes a model ignore its instructions. It is the first risk in the OWASP Top 10 for LLM Applications.
Do AI tools train on what I paste? Some do. MakeUGC’s terms allow training on inputs and outputs; Postiz and Virlo say they do not train on your content. Each tool’s line, with the section of its terms, is in our terms table.
Update log
Nov 26, 2026: page published; GitHub data and links checked weekly.