aisecurity.ninja

Code and PoCs

80 entries · last reviewed: 20 October 2026

I am not affiliated with, endorsed by, or directly connected to any of the sites listed here. Inclusion is not a recommendation or endorsement of any kind; these are provided for informational purposes only. Read, use, and live at your own risk.

ADR (Agentic AI Detection and Response)

Uber's detection and response system for AI agents, covering both the coding agents employees run and customer-facing ones, through observability, security benchmarking and threat detection. Open sourced from a deployment inside Uber, which makes it one of the few tools here arriving with a production track record attached.

github.com ↗

Adversarial Robustness Toolbox (ART)

Python library for machine learning security, hosted by the Linux Foundation AI and Data Foundation. It implements evasion, poisoning, extraction and inference attacks together with the matching defences and robustness metrics, and works with TensorFlow, Keras, PyTorch, scikit-learn, XGBoost, LightGBM, CatBoost and GPy across images, tables, audio and video. MIT licence. The last commit on the main branch was on 13 November 2025.

github.com ↗

Agent Governance Toolkit

Microsoft's toolkit for running agents under policy: enforcement, zero-trust identity for the agent itself, execution sandboxing and reliability engineering, with the specifications published alongside the code.

github.com ↗

Agent Security Bench (ASB)

Code for an ICLR 2025 benchmark that formalises attacks and defences against LLM-based agents and runs them across ten scenarios, from academic advising to investment and legal advice. Covers prompt injection, memory poisoning and tool misuse, and measures the defences on the same footing as the attacks. Last updated April 2026.

github.com ↗

Agent Threat Rules (ATR)

An open format for writing detection rules about AI agent threats. Rules are YAML against a versioned schema and carry public identifiers in the form ATR-YYYY-NNNNN, so a specific agent threat can be cited the way a CVE is. Ships a reference engine on npm and PyPI plus a GitHub Action, and the specification carries a Zenodo DOI.

github.com ↗

Agent Wiz

Extracts the workflow out of an agent built on LangGraph, AutoGen or CrewAI, draws it, and runs an automated threat assessment over the result. Threat modelling for agentic systems is still mostly a whiteboard exercise, so a tool that reads the actual graph is worth knowing about. Last updated November 2025.

github.com ↗

AgentDojo

A dynamic environment for evaluating prompt injection attacks and defences against LLM agents, from ETH Zurich's SPY Lab with Invariant Labs. It ships user tasks and injection tasks so that attacks and defences can be measured on the same ground, and accompanies a paper in the NeurIPS 2024 datasets and benchmarks track.

github.com ↗

Agentic Radar

Scans an agentic workflow and reports on its security posture, including which tools each agent can reach and where untrusted input enters the system. Produces a visual map alongside the findings. Last updated November 2025.

github.com ↗

AgenticSecurity

Vulnerability scanner aimed at LLM applications and agents, running a library of attack techniques against a target endpoint and reporting what got through. Configurable for custom integrations rather than assuming a particular provider. Apache-2.0.

github.com ↗

AgentPoison

Official implementation of the NeurIPS 2024 paper on backdooring an LLM agent through its memory or knowledge base, so that a trigger appearing in retrieved context steers the agent while ordinary queries behave normally. Relevant to anyone assessing a RAG pipeline whose retrieval corpus is not fully under their control.

github.com ↗

AI Infra Guard

Tencent's red-teaming platform for AI systems, covering model endpoints, agents and MCP servers, with a scanner for known weaknesses in AI infrastructure components alongside the prompt-level testing. Apache-2.0.

github.com ↗

AI Prompt Fuzzer

Burp Suite extension that brute-forces AI prompts straight from Intruder, easing integration of LLM testing into web-app pentest workflows.

github.com ↗

AI Red Teaming Playground Labs

This repository contains the challenges for the labs that were used in the course AI Red Teaming in Practice. The course was originally taught at Black Hat USA 2024.

github.com ↗

AI-BOM

Produces a bill of materials for AI: which agents, models and APIs are actually running across an infrastructure, including the ones nobody registered. Inventory is the step most AI security programmes skip, and nothing that has not been found can be secured. Last updated May 2026.

github.com ↗

AIGoat

Deliberately vulnerable AI infrastructure from Orca's research team, built to be attacked as a learning exercise. The AI equivalent of the older intentionally-insecure web apps, useful for practising against something you are allowed to break. Last updated in September 2025.

github.com ↗

AIMap

Internet-scale discovery for exposed AI infrastructure, from Bishop Fox. It finds and fingerprints publicly reachable MCP servers, Ollama instances, vLLM and LiteLLM proxies, LangServe chains and Gradio apps, then security-tests what it finds. Useful for establishing what an organisation has left open before somebody else does. Last updated April 2026.

github.com ↗

AIRTBench

Dreadnode's benchmark for measuring how far a language model can carry out an AI red teaming operation by itself, against capture the flag style challenges. It ships with the paper and a published dataset of the agents' own transcripts, so the failures can be read rather than only scored. Last updated April 2026.

github.com ↗

AIShield Watchtower

Bosch AIShield's scanner for model files and Jupyter notebooks, built on the argument that notebooks are part of the AI supply chain and are rarely included in a security review. Inspects models for unsafe serialisation and notebooks for secrets and risky code. Last updated March 2026.

github.com ↗

Anamorpher

Implements image-scaling attacks for multimodal prompt injection: an image that looks innocuous at full size resolves into instructions once the pipeline downsamples it, so a human reviewer and the model see different content. Companion to the Trail of Bits write-up listed under guides and tutorials. Apache-2.0.

github.com ↗

Arcjet

Security primitives called from inside application code rather than at the network edge, so the decision happens before the action does. Covers prompt injection detection, authorising an agent's tool calls, redacting sensitive data, and bot and abuse handling. JavaScript and TypeScript.

github.com ↗

Augustus

A Go language vulnerability scanner for language models from Praetorian, testing against more than 210 adversarial attacks spanning prompt injection, jailbreaks, encoding tricks and data extraction, across 28 providers. Built for production security testing, with concurrent scanning and rate limiting, which puts it in different territory from the research-oriented scanners also listed here.

github.com ↗

Charcuterie

This is a collection of code execution techniques for ML or ML adjacent libraries and a sample attack on a blackbox model using Optuna.

github.com ↗

Corpus Poisoning Attack for Dense Retrievers

Corpus poisoning attack for dense retrieval models is where a malicious user generates and injects a small fraction of adversarial passages to a retrieval corpus to fool retrieval systems into returning them among the top retrieved results. Last commit December 2023.

github.com ↗

Counterfit

A CLI that provides a generic automation layer for assessing the security of ML models.

github.com ↗

Deep-Drop

ML-enabled dropper. Last updated in May 2023.

github.com ↗

DeepTeam

Red teaming framework for LLMs and agents from the team behind DeepEval. Covers more than 50 vulnerability types across privacy, safety, security and agentic failure modes such as goal theft and excessive agency, and around 20 attack methods including linear and tree jailbreaks, crescendo, roleplay and encoding obfuscation. Runs locally and is scored by a model you choose, so it needs an LLM backend and an API key. Apache-2.0.

github.com ↗

Dioptra

Dioptra is a NIST software test platform for assessing the trustworthy characteristics of artificial intelligence. Dioptra provides a REST API, which can be controlled via an intuitive web interface, a Python client, or any REST client library of the user's choice for designing, managing, executing, and tracking experiments.

github.com ↗

dstack

A framework for confidential AI, running models inside trusted execution environments so that whoever operates the hardware cannot read the data or the weights. Addresses the deployment case where the infrastructure itself belongs in the threat model.

github.com ↗

EasyJailbreak

Python framework for building and running jailbreak attacks against language models, assembling published methods into comparable components so techniques can be measured against each other rather than demonstrated one at a time. GPL-3.0.

github.com ↗

fickling

A decompiler, static analyser and bytecode rewriter for Python pickle files, from Trail of Bits. Pickle is the format most model checkpoints still ship in and it executes code the moment it is loaded, so fickling exists to read what a given file will actually do before you run it, and to construct malicious ones when you are testing a defence.

github.com ↗

Foolbox

Long-running library for generating adversarial examples against neural networks, with a large collection of published attacks and support for PyTorch, TensorFlow and JAX. From the Bethge Lab. Last updated in December 2025.

github.com ↗

FuzzyAI

CyberArk’s coverage-guided fuzzer that auto-generates malicious prompts across 10+ attack families and logs jailbreak success rates. Ideal for CI red-team pipelines.

github.com ↗

Garak

Garak is an open-source framework designed to identify vulnerabilities in Large Language Models (LLMs).

docs.garak.ai ↗

Giskard

Evaluation, red teaming and test generation for agentic systems, with a focus on multi-turn testing where the failure only shows up several exchanges into a conversation. Version 3 is a rewrite built for dynamic testing.

github.com ↗

GPTFuzzer

Reference implementation of GPTFuzzer, which starts from human-written jailbreak templates and mutates them to find prompts that transfer across models. Accompanies the paper of the same name. Last updated in February 2026.

github.com ↗

Guardrails AI

YAML/Python DSL to validate or repair LLM outputs (regex, JSON Schema, semantic similarity, PII) and automatically re-ask on failure.

github.com ↗

HackAgent

A Python SDK and command line tool for testing AI agents as deployed, covering prompt injection, jailbreaks and goal hijacking against the running system rather than the model in isolation. Apache licensed, with a hosted app and API alongside the library.

github.com ↗

HarmBench

The Center for AI Safety's standard evaluation framework for automated red teaming. It fixes the harmful requests and the judging, so that attack and defence results from different papers measure the same thing: 400 text behaviours split into standard, contextual and copyright types, across subjects from cybercrime to chemical and biological harm, a separate multimodal set, and classifier models that decide whether a response actually carried out the behaviour. The accompanying paper compares 18 red teaming methods against 33 target models and defences. Last updated August 2024; a benchmark that holds still is what keeps results comparable across papers.

github.com ↗

Julius

Fingerprints which AI serving software sits behind an address, covering Ollama, vLLM, LiteLLM and more than sixty others. A narrow tool that answers one question quickly, and a sensible first step before the broader scanning that AIMap does.

github.com ↗

L1B3RT4S

A collection of jailbreak prompts maintained by elder-plinius, organised into one file per provider or product, covering around forty of them from OpenAI, Anthropic, Google and Meta through to coding tools such as Cursor and Windsurf, plus material on special tokens and system prompts. Useful to red teamers as a corpus of known attacks to test a deployment against. The prompts target production models directly, so any given one may already have been patched. Last updated February 2026.

github.com ↗

Lakera PINT Benchmark

The Prompt Injection Test (PINT) Benchmark provides a neutral way to evaluate the performance of a prompt injection detection system. Archived by its owner on 5 August 2026 and now read-only, so it receives no further updates. The last commit was on 16 April 2026.

github.com ↗

LLAMATOR

A Python red teaming framework for chatbots and generative AI systems, with a catalogue of attacks that can be run as a suite against a deployed assistant. Last updated May 2026.

github.com ↗

LLM Guard

Drop-in Python/REST library that redacts PII, blocks jailbreak strings, enforces token limits, detects policy violations. Ships with a CLI and Hugging Face model hub presets. Archived by its maintainer on 9 July 2026 and now read-only, so it receives no further updates.

github.com ↗

MCP Context Protector

Security wrapper that sits between an MCP client and its servers, so tool descriptions and responses can be inspected and constrained rather than trusted by default. Aimed at the trust boundary an agent crosses whenever it calls a tool. Apache-2.0.

github.com ↗

MCP Scanner

Scans MCP servers and the tools they expose for malicious behaviour, combining YARA rules, Cisco AI Defense's inspection API and model-based analysis. Aimed at the moment an agent is about to trust a third-party MCP server that nobody on the team wrote.

github.com ↗

Model Inversion Attack ToolBox

A toolbox of model inversion attacks and their defences implemented together, so the two can be measured against each other. Model inversion reconstructs training data from a model's outputs, and this gathers the main approaches into one place. Last updated June 2026.

github.com ↗

Model Transparency

Sigstore project for signing and verifying machine-learning models, so a model can be traced to who produced it and checked for tampering before it is loaded. Addresses the supply-chain half of model security rather than the model's behaviour. Apache-2.0.

github.com ↗

ModelScan

Scans serialised models for code that runs the moment the file is loaded, which is the risk in pickle-based formats where a model can carry a payload as legitimately as it carries weights. Handles H5, SavedModel and several PyTorch and TensorFlow serialisations. Built by Protect AI, since absorbed into Palo Alto Networks, and last updated February 2026.

github.com ↗

Moonshot

Evaluation and red-teaming toolkit from Singapore's AI Verify Foundation, combining benchmark runs with interactive red teaming behind one interface. Institutional rather than vendor-backed. Apache-2.0.

github.com ↗

NeMo Guardrails

NVIDIA's open-source toolkit for adding programmable guardrails to LLM-based conversational systems. Rails are written in a dedicated modelling language and can hold a conversation to permitted topics, check inputs and outputs, and gate tool calls.

github.com ↗

OBLITERATUS

A toolkit for abliteration: locating the directions in an open-weight model's hidden states that drive refusal, and removing them without retraining, with the stated aim of keeping the model's general capability intact. Covers the pipeline from probing the hidden states to producing the modified model, and has a hosted demo on Hugging Face. Runs with telemetry enabled contribute anonymous benchmark data to a shared dataset. Relevant to the abliteration research in the papers archive, including work on defending against it. From the same author as L1B3RT4S.

github.com ↗

Offensive ML Playbook

An amalgam of TTP's on different offensive ML attacks encompassing the ML supply chain and adversarial ML attacks. It is focused heavily on attacks that have code you can use to perform the attacks right away, rather than a database of research papers. (PoC or GTFO type logic).

wiki.offsecml.com ↗

OpenDP

The core differential privacy library of the OpenDP project, a modular collection of algorithms with proofs behind them, for building analyses whose privacy loss is bounded and stated. The defensive counterpart to the membership inference and model inversion work covered elsewhere here.

github.com ↗

OpenPromptInjection

Open-source toolkit for attacks and defenses in LLM-integrated applications, which enables easy implementation, evaluation, and extension of attacks, defenses, and LLMs.

github.com ↗

OWASP Agent Memory Guard

An OWASP incubator project defending against memory poisoning, where an agent is steered by something planted in its own long-term memory rather than in the prompt in front of it. It is built to catch the poisoning after a context window has rolled over, which is exactly when the original injection is no longer visible. Pairs with AgentPoison, the attack side, also listed here.

github.com ↗

Parley

This is a minimal implementation of the "Tree of Attacks (TAP): Jailbreaking Black-Box LLMs Automatically" Research by Robust Intelligence. Last updated in February 2024.

github.com ↗

picklescan

Scanner for Python pickle files that detects the imports and calls used to run code on load. Directly relevant because several model formats are pickles underneath, so loading a downloaded model can be equivalent to running its author's code. MIT.

github.com ↗

pipelock

Firewall for AI agents, covering MCP traffic and outbound network access so an agent's tool use and egress can be constrained at runtime rather than only at the prompt. Apache-2.0.

github.com ↗

PoisonedRAG

Knowledge Poisoning Attacks to Retrieval-Augmented Generation of Large Language Models

github.com ↗

promptfoo

Command-line tool for testing prompts, agents and RAG pipelines, with a red-teaming mode that generates adversarial inputs and scans for vulnerabilities. Configuration is declarative and runs in CI alongside ordinary tests.

github.com ↗

PromptInject

The framework from “Ignore Previous Prompt: Attack Techniques For Language Models”, the 2022 paper that named goal hijacking and prompt leaking. It assembles adversarial prompts from modular parts so attacks can be composed and measured rather than hand-written. Worth reading as the point the field started from, and separate from the Open-Prompt-Injection benchmark also listed here. Last updated April 2026.

github.com ↗

promptmap

An automated prompt injection scanner for custom LLM applications. It reads the application's own system prompt, generates attacks aimed at that specific deployment, and reports which ones landed. Last updated December 2025.

github.com ↗

Proof Pudding

Model extraction attack for ProofPoint's e-mail scoring system by stealing scored datasets (core/data/*.csv) and creating a copy-cat model for abuse. Last updated in April 2020.

github.com ↗

Purple Llama

Meta’s umbrella repo ships ready-to-use models plus “PromptGuard 2” jailbreak detector and an agent-focused firewall with code-safety scans. Covers risks (prompt injection, insecure code) that classic chatbot guardrails miss.

github.com ↗

PyRIT

Microsoft's Python Risk Identification Tool for generative AI: an automation framework for red teaming that supplies attack strategies, scores model responses and keeps conversation history across runs. Documentation, including installation and worked examples, is at microsoft.github.io/PyRIT. The repository moved from the Azure organisation to microsoft, and the old location is archived. MIT licence.

github.com ↗

RAMPART

A pytest-native framework from Microsoft for writing safety and security tests against agentic applications, so that agent red teaming runs in the same place as the rest of a project's test suite instead of as a separate exercise.

github.com ↗

safetensors

The storage format built to replace pickle for model weights, holding tensors with no code path that runs on load and with zero-copy reads so little is given up on speed. This is the mitigation that the model serialisation attacks described elsewhere on this site are aimed at, and it is now the default across much of the Hugging Face ecosystem.

github.com ↗

SCAM (Security Comprehension Awareness Measure)

A benchmark from 1Password measuring whether an AI agent notices security-relevant details during ordinary multi-turn work, which is a different question from whether it can be jailbroken on request. Comes with a leaderboard and replayable runs. Last updated February 2026.

github.com ↗

SecML-Torch

A PyTorch library for evaluating the adversarial robustness of deep learning models, from the PRA Lab at the University of Cagliari, whose machine learning security course is also listed here. Built for running attacks carefully, which is where robustness claims usually come apart. Last updated July 2026.

github.com ↗

Skill Scanner

Scans agent skills for prompt injection, data exfiltration and malicious code, using YARA-X pattern matching, AST and dataflow analysis, and an optional model acting as a judge. Skills get installed the way packages do and are rarely read first, which is the gap this addresses.

github.com ↗

SkillSpector

NVIDIA's scanner for AI agent skills: it inspects skill definitions for prompt injection, unsafe tool use and permission problems before they are installed. Aimed at the packaging layer, which is newer than the model layer and less well covered. Apache-2.0.

github.com ↗

Snyk Agent Scan

Scanner that discovers agent components on a machine, including MCP servers, agents and skills, and checks them for prompt injections and known vulnerabilities. It started as Invariant Labs' mcp-scan and is now maintained by Snyk under the name agent-scan.

github.com ↗

spikee

Prompt injection toolkit from Reversec Labs for building test datasets, running them against a target and measuring what succeeded, so injection resistance can be tracked over time rather than probed once. Apache-2.0.

github.com ↗

Superagent

An SDK for guarding an AI application while it runs: classifying input for prompt injection and malicious instructions, stripping personal data and secrets out of what the model sees, and running red team scenarios against an agent. TypeScript and Python.

github.com ↗

TenSEAL

Homomorphic encryption over tensors, built on Microsoft SEAL with a Python interface, for running inference on data that the party doing the computing never decrypts.

github.com ↗

tensor-man

tensor-man is a utility to inspect, validate, sign and verify machine learning model files.

github.com ↗

TensorFlow Privacy

Optimisers for training models with differential privacy, together with the analysis tools for computing what guarantee a given training run actually achieved. Maintained by Google.

github.com ↗

TextAttack

Framework for adversarial attacks, data augmentation and adversarial training on NLP models, with published attack recipes reimplemented against a common interface. One of the established tools for text-domain adversarial work. MIT.

github.com ↗

TruLens

Instrumentation and eval library (OpenTelemetry style) that traces LLM chains, scores outputs with configurable feedback functions, and stores runs for comparison.

github.com ↗

Vigil-LLM

Alpha-stage scanner and REST API that applies a configurable chain of detectors to find prompt injections, jailbreaks, and other threats in prompts/responses. Last updated in January 2024.

github.com ↗