Open-source AI repos
Open-source AI, all in one place.
13,356 open-source AI repositories for learning, teaching, research and building. Kept up to date by the community: anyone can add a repo with a pull request.
16 repos in AI safety & security matching “attack”
Red-teaming, guardrails, privacy and security tools for AI systems.
AI safety & security
Stars:3.5kTextAttack
TextAttack is a Python framework for adversarial attacks, data augmentation, and model training in NLP https://textattack.readthedocs.io/en/master/
Python · MIT · updated 3 months agoDetails›AI safety & security
Stars:2.2kadversarial-attacks-pytorch
PyTorch implementation of adversarial attacks [torchattacks]
Python · MIT · updated 2 years agoDetails›AI safety & security
Stars:1.3kattackgen
AttackGen is a cybersecurity incident response testing tool that leverages the power of large language models and the comprehensive MITRE ATT&CK framework. The tool generates tailored incident response scenarios based on user-selected threat actor groups and your…
Python · GPL-3.0 · updated 12 days agoDetails›AI safety & security
Stars:52.2kshannon
Shannon is an AI pentester for web applications and APIs. It analyzes your source code, identifies attack vectors, and executes real exploits to prove vulnerabilities before they reach production.
TypeScript · AGPL-3.0 · updated 10 days agoDetails›AI safety & security
Stars:6.3kadversarial-robustness-toolbox
Adversarial Robustness Toolbox (ART) - Python Library for Machine Learning Security - Evasion, Poisoning, Extraction, Inference - Red and Blue Teams
Python · MIT · updated 17 days agoDetails›AI safety & security
Stars:4.7knlpaug
Data augmentation for NLP
Jupyter Notebook · MIT · updated 17 days agoDetails›AI safety & security
Stars:3kfoolbox
A Python toolbox to create adversarial examples that fool neural networks in PyTorch, TensorFlow, and JAX
Python · MIT · updated 11 months agoDetails›AI safety & security
Stars:1.1kagentdojo
A Dynamic Environment to Evaluate Attacks and Defenses for LLM Agents.
Python · MIT · updated 5 months agoDetails›AI safety & security
Stars:1kmedusa
AI-first security scanner. NEW in v2026.7: Claude Code compromise detection — vet .claude/ hooks, permissions & skills before you clone — plus an always-on AI attack-signature scanner and native Rust & PHP rules. Also: medusa scan --git to vet any repo, medusa secrets scan for leaked API keys. 40,0…
Python · AGPL-3.0 · updated 3 months agoDetails›AI safety & security
Stars:1kphotoguard
Raising the Cost of Malicious AI-Powered Image Editing
Jupyter Notebook · MIT · updated 3 years agoDetails›AI safety & security
Stars:529PromptInject
PromptInject is a framework that assembles prompts in a modular fashion to provide a quantitative analysis of the robustness of LLMs to adversarial prompt attacks. Best Paper Awards @ NeurIPS ML Safety Workshop 2022
Python · MIT · updated 7 months agoDetails›AI safety & security
Stars:511vigil-llm
Vigil Detect prompt injections, jailbreaks, and other potentially risky Large Language Model (LLM) inputs
Python · Apache-2.0 · updated 2 years agoDetails›AI safety & security
Stars:429AIJack
Security and Privacy Risk Simulator for Machine Learning (arXiv:2312.17667)
C++ · Apache-2.0 · updated 6 months agoDetails›AI safety & security
Stars:369prompt-hacker-collections
prompt attack-defense, prompt Injection, reverse engineering notes and examples | 提示词对抗、破解例子与笔记
MIT · updated 1 year agoDetails›AI safety & security
Stars:116VoxShield
Protecting digital communications against audio deepfakes with real-time AI. This system analyzes audio streams to detect synthesized voices and actively prevents voice cloning impersonation attacks.
JavaScript · MIT · updated 2 months agoDetails›AI safety & security
Stars:47llm-firewall
AI Firewall & LLM security toolkit - protect your AI applications from prompt injection, jailbreaks, PII leakage, and adversarial attacks
MIT · updated 12 days agoDetails›
Details come from each project’s own repository. Something wrong or missing? Tell us or open a pull request.