AI security · detection · threat intel · vulnerabilities & supply chain · appsec
Open-source security projects
Well-known defensive, dual-use and AI-security open-source projects. Repository, licence and maintainer come from each project's official repository; stars and latest release are refreshed daily. Exploit frameworks and PoC collections are not listed.
25 projects
AI security
- promptfooCLI and library for testing prompts, agents and RAG pipelines, including red-teaming and vulnerability scanning of LLM applications.
- garakLLM vulnerability scanner that probes language models for weaknesses such as prompt injection, jailbreaks, data leakage and toxic output.
- Guardrails AIPython framework that adds input/output guards to LLM applications to detect and mitigate risks and structure outputs.
- NeMo GuardrailsLibrary for adding programmable safety and security controls (rails) to LLM and agentic applications.
- CleverHansAdversarial example library for constructing attacks, building defenses and benchmarking both.
- Adversarial Robustness Toolbox (ART)Python library for machine learning security covering evasion, poisoning, extraction and inference threats, for both red and blue teams.
- GiskardOpen-source evaluation, red-teaming and test-generation library for LLM agents, with an AI vulnerability scanner.
- PyRITMicrosoft's Python Risk Identification Tool, an open-source AI red-teaming framework for proactively identifying risks in generative AI systems.
- Purple LlamaUmbrella project of tools to assess and improve LLM security: Llama Guard and Prompt Guard safeguard models, Code Shield insecure-code filtering, and the CyberSecEval benchmarks.
- safetensorsSimple, safe tensor storage format that avoids the arbitrary code execution risk of pickle-based model files.
- TextAttackPython framework for adversarial attacks, data augmentation and adversarial training of NLP models.
- InspectFramework for large language model evaluations, including safety and dangerous-capability evals.
- Snyk Agent Scan (formerly mcp-scan)Scanner that discovers agent components on a machine (agents, MCP servers, skills) and checks them for prompt injection and vulnerabilities.
- LLM GuardSecurity toolkit of input/output scanners for LLM interactions (prompt injection, data leakage, harmful content).
- Agentic SecurityAgentic LLM vulnerability scanner and AI red-teaming kit.
- RebuffSelf-hardening prompt injection detector with multi-layered defenses for AI applications.
- OWASP Top 10 for LLM ApplicationsDocumentation project listing the top ten security risks for large language model applications, part of the OWASP GenAI Security Project.
- MCP Scanner (Cisco AI Defense)Scans MCP servers and tools for security findings using YARA rules, LLM-based analysis and the Cisco AI Defense API.
- CounterfitCLI providing a generic automation layer for assessing the security of machine learning models.
- ModelScanScanner that detects unsafe code in serialized ML model files to protect against model serialization attacks.
- FicklingPython pickle decompiler and static analyzer for detecting malicious code in pickle files, including ML model files.
- Invariant GuardrailsContextual guardrails for securing agent systems.
- MoonshotModular tool to evaluate and red-team LLM applications.
- MITRE ATLAS DataMachine-readable data for MITRE ATLAS: adversary tactics, techniques and case studies targeting AI systems.
- AI Verify ToolkitToolkit for testing traditional AI applications for fairness, explainability and robustness.