红蓝攻防
点击放大

<di="center">
<img src="assets/ai-red-teaming-banner.webp" alt="AI Red Teaming: The Complete Guide" width="100%">
<!-- LANGUAGE_BAR -->
Read this in: English · Español · 中文 · Français
A comprehensi to ad testing and security e of AI systems, helping organizations identify before attackers exploit them.
!Microsoft
!Google
!Meta
!OpenAI
!Anthropic
!NVIDIA
!IBM
!Amazon
!HackerOne
!Cisco
<sub>Logos represent organizations where indi practitioners reference this guide; inclusion does not imply official endorsement.</sub>
O • Frameworks • Methodologies • Tools • Case Studies • Resources
</div>
---
> ### 🌐 Join the Global Red Teaming Network
> Connect with AI red teamers worldwide, share findings, and collaborate on ad testing through Cogensec.
> → Join the network
---
<di="center">
<br>
![Explore Platform]()
![Free Sample]()
!AI Red Teaming
!Security
!License
!Updated
![X]()
---
<di="center">
<a href="
<img src="assets/redteamkit-banner.svg" alt="RedTeamKit — You've read the methodology. Now run it. $249 one-time." width="100%">
</a>
</div>
---
</div>
---
<a id="o"></a>
As artificial intelligence systems become increasingly integrated into critical business operations, healthcare, finance, and decision-making processes, ensuring their security and reliability has never been more important. AI red teaming has emerged as a fundamental security practice that helps organizations identify before they can be exploited in real-world scenarios.
This comprehensi is designed for:
---
<a id="what-is-ai-red-teaming"></a>
AI Red Teaming is a structured, proacti practice where expert teams simulate ad attacks on AI systems to unco and impro security and resilience. Unlike traditional security testing that focuses on known attack , AI red teaming embraces creati exploration to disco failure modes and risks.
AI red teaming adapts military and cybersecurity red team concepts to the unique challenges posed by AI systems:
| Traditional Cybersecurity | AI Red Teaming |
|---------------------------|----------------|
| Tests against known | Discovers novel, emergent risks |
| Binary pass/fail outcomes | Probabilistic behaviors and edge cases |
| Static attack surface | Dynamic, context-dependent |
| Code-le | Natural language attacks |
| Deterministic systems | Non-deterministic AI behaviors |
---
<a id="why-ai-red-teaming-matters"></a>
Recent security incidents demonstrate that AI systems face unique challenges traditional cybersecurity cannot address:
2025–2026 Security Incidents:
> By the numbers (/researcher-reported, 2025). Estimated global losses from AI prompt-injection attacks reached ~$2.3B, a reported +340% year over year; ~88% of organizations deploying AI agents reported confirmed or suspected security incidents; current detection methods are reported to catch only ~23% of sophisticated prompt-injection attempts. *Treat these as directional industry figures, not audited statistics — sources are listed in Resources and References.*
In 2026, AI and LLMs are no longer limited to chatbots and assistants for customer support. Autonomous, tool-using agents now act on behalf of users — booking, buying, coding, and operating infrastructure — which converts what used to be "bad text output" into real-world actions: data exfiltration, lateral mo, and unauthorized transactions. Their use increasingly expands into high-stakes applications such as healthcare diagnostics, financial decision-making, and critical infrastructure systems.
Article 15 of the European Union AI Act obliges operators of high-risk AI systems to demonstrate accuracy, robustness and cybersecurity. The US Executi on AI defines AI red teaming as "a structured testing effort to find flaws and in an AI system using ad methods to identify harmful or discriminatory outputs, unforeseen behaviors, or misuse risks."
---
<a id="key-frameworks-and-standards"></a>
The NIST AI Risk Management Framework (AI RMF) emphasizes continuous testing and e throughout the AI system's lifecycle, pro a structured approach for organizations to implement comprehensive AI security testing programs.
Four Core Functions:
#### 1. GOVERN
Establish AI go structures and risk management culture
#### 2. MAP
Identify and categorize AI risks in context
#### 3. MEASURE
Assess, analyze, and track identified AI risks
#### 4. MANAGE
Prioritize and respond to identified risks
Key NIST Resources:
CAISI AI Agent Standards Initiative (2026): NIST's Center for AI Standards and Inno launched a three-pillar program (agent security, interoperability, identity) on Feb 17, 2026, and open-sourced AgentDojo-Inspect for agent-hijacking e. Its headline red-team result — no reaching an 81% task-hijack rate vs 11% for prior baselines — is a useful reminder that agent e must evol.
---
The OWASP Gen AI Red Teaming Guide provides a practical approach to e LLM and Generative AI , co e from model-le and prompt injection to system integration pitfalls and best practices for ensuring trustworthy AI deployments.
Key Components:
1. Quick Start Guide: Step-by-step introduction for newcomers
2. Threat Modeling Section: Identify relevant risks for your use case
3. Blueprint & Techniques: Recommended test categories
4. Best Practices: Integration into security posture
5. Continuous Monitoring: Ongoing o guidance
OWASP Co Areas:
Access the Guide: genai.owasp.org
OWASP Top 10 for LLM Applications (2025): the LLM-application list was refreshed in the 2025 edition, which added two categories worth explicit red-team co: System Prompt Leakage (system prompts inad exposing secrets or exploitable instructions) and & Embedding Weaknesses (RAG/ risks — embedding poisoning, similarity attacks, and embedding in). The edition also renamed "O" to Misinformation, broadened "Model DoS" to Unbounded Consumption, and expanded Excessi. For single-prompt LLM apps, test against the LLM Top 10; for tool-using agents, use the Agentic Top 10 (2026) below.
OWASP 2026 updates (Q2–Q3 2026):
(OWASP GenAI announcement · Straiker — what OWASP's Q2 2026 update is saying)
---
<a id="owasp-top-10-for-agentic-applications-2026"></a>
Published by the OWASP GenAI Security Project (peer-re by 100+ contributors), this is the first risk ranking built specifically for autonomous, tool-using agents rather than single-prompt LLM apps. Every red team testing agents in 2026 should map findings to these IDs.
| ID | Risk | What to test |
|----|------|--------------|
| ASI01 | Agent Goal Hijack | Untrusted input rewrites the agent's objecti; reward/goal manipulation. |
| ASI02 | Tool Misuse & Exploitation | Coercing the agent to call tools beyond intent; argument injection into tool calls. |
| ASI03 | Agent Identity & Pri Abuse | Agent acting with o or borrowed credentials; confused-deputy escalation. |
| ASI04 | Agentic Supply Chain Compromise | Malicious tools, plugins, MCP servers, or sub-agents introduced into the pipeline. |
| ASI05 | Unexpected Code Execution | Agent-generated or agent-triggered code running in pri contexts. |
| ASI06 | Memory & Context Poisoning | Persisting attacker-controlled state that biases future sessions. |
| ASI07 | Insecure Inter-Agent Communication | Spoofed/unauthenticated messages between agents; trust escalation across the mesh. |
| ASI08 | Cascading Agent Failures | One compromised/failing agent propagating errors system-wide. |
| ASI09 | Human-Agent Trust Exploitation | Consent fatigue, deceptive UI, social engineering of the human approver. |
| ASI10 | Rogue Agents | Agents operating outside monitoring/go boundaries (shadow agents). |
How this guide maps to it: the Agentic AI Attack Trees section tags each tree with the ASI IDs it exercises, and the MCP & Tool-Protocol Security section drills into ASI02/ASI04.
Access: OWASP Top 10 for Agentic Applications 2026
---
MITRE ATLAS is a comprehensi specifically designed for AI security, pro a knowledge base of ad AI tactics and techniques. Similar to the MITRE ATT&CK framework for cybersecurity, ATLAS helps organizations understand potential attack against AI systems.
ATLAS Tactics:
Real-World Case Studies in ATLAS:
ATLAS v5.x (Nov 2025 – 2026): v5.1.0 added a 16th tactic and grew the matrix to 84 techniques, 32 mitigations, and 42 case studies; later 5.x releases added agent-focused techniques such as Publish Poisoned AI Agent Tool and Escape to Host, plus agentic techniques contributed by Zenity Labs. The tactic list above is the classic core — check the li when mapping agent findings.
Learn More: atlas.mitre.org
---
The Cloud Security Alliance's Agentic AI Red Teaming Guide explains how to test critical across dimensions like permission escalation, hallucination, orchestration flaws, memory manipulation, and supply chain risks, with actionable steps to support robust risk identification and response planning.
Agentic AI-Specific Risks:
1. Permission Escalation: Agents gaining unauthorized access
2. Hallucination Exploitation: Using fabricated outputs for attacks
3. Orchestration Flaws: in agent coordination
4. Memory Manipulation: Tampering with agent memory/context
5. Supply Chain Risks: Compromised agent components
6. Tool Misuse: Agents improperly using a tools
7. Inter-Agent Dependencies: Cascading failures across agents
Testing Requirements:
---
<a id="microsoft-agentic-failure-mode-taxonomy-v20"></a>
When Microsoft first published its *Taxonomy of Failure Modes in Agentic AI Systems* (April 2025), much of it was forward-looking. A year of real red-team engagements produced enough e for v2.0 (June 2026), which adds seven new failure-mode categories now observed in the wild:
1. Agentic supply chain compromise — malicious tools/plugins/sub-agents (see ASI04, and MCP security).
2. Goal hijacking — untrusted content redirecting the agent's objecti).
3. Inter-agent trust escalation — a low-pri agent le a higher-pri one (ASI07).
4. Computer-use agent attacks — on-screen/ injection of agents that see and click (see Computer-Use attacks).
5. Session context contamination — cross-turn/cross-session state bleed.
6. MCP and plugin abuse — the tool protocol layer as a first-class attack surface.
7. Capability / architecture disclosure — agents leaking their own tools, prompts, or topology to an attacker.
Two findings worth red-teaming explicitly:
Reference: Microsoft Security Blog — Updating the taxonomy of failure modes in agentic AI (June 2026)
---
<a id="ai-red-teaming-methodology"></a>
Organizations must first identify potential attack specific to their AI systems, including the types of ad they might face and the potential impact of successful attacks.
Step 1: Define Scope and Objectives
Step 2: Threat Modeling Using MITRE ATLAS
Step 3: Build Risk Profile
Each application has a unique risk profile due to its architecture, use case and audience. Organizations must answer: What are the primary business and societal risks posed by this AI system?
| Risk Category | Examples | Priority |
|---------------|----------|----------|
| Safety Risks | Physical harm, dangerous advice | Critical |
| Security Risks | Data breaches, unauthorized access | Critical |
| Privacy Risks | PII leakage, training data extraction | High |
| Fairness Risks | Discriminatory outputs, bias | High |
| Reliability Risks | Hallucinations, inconsistent responses | Medium |
| Reputation Risks | Offensi, brand damage | Medium |
Step 4: Develop Test Plan
---
Access Levels
The of the model or system red teamers ha to can influence the outcomes of red teaming. Early in the model de process, it may be useful to learn about the model's capabilities prior to any added safety mitigations.
| Access Type | Description | Use Cases |
|-------------|-------------|-----------|
| Black Box | No internal knowledge; interact via API/UI only | Simulates external attacker; realistic threat modeling |
| Gray Box | Partial knowledge (architecture, some data) | Simulates insider threat; common in enterprise |
| White Box | Full access (code, weights, training data) | Maximum discovery; pre-deployment |
Testing Approaches
#### 1. Manual Red Teaming
While automation tools are useful for creating prompts, orchestrating cyberattacks, and scoring responses, red teaming can't be automated entirely. Humans are important for subject matter expertise.
Techniques:
#### 2. Automated Red Teaming
DeepTeam implements 40+ classes (prompt injection, PII leakage, hallucinations, robustness failures) and 10+ ad attack strategies (multi-turn jailbreaks, encoding obfuscations, adapti).
Automation Strategies:
#### 3. Hybrid Approach (Recommended)
Red Teaming Patterns from Microsoft
Microsoft found that rudimentary methods can be used to trick many models. Manually crafted jailbreaks tend to circulate on online forums much more widely than ad suffixes, despite significant attention from AI safety researchers.
Common Attack Patterns:
1. Skeleton Key: Uni jailbreak technique
2. Crescendo: Multi-turn escalation strategy
3. Encoding Obfuscation: ROT13, Base64, binary
4. Character Swapping: Homoglyphs, unicode tricks
5. Prompt Splitting: Di malicious intent across turns
6. Context O: Exceeding context window limits
7. Language Switching: Using low-resource languages
8. Attacks: Image-based injections (for multimodal)
---
Key Metrics
The key metric to assess the risk posture of your AI system is Attack Success Rate (ASR) which calculates the percentage of successful attacks over the number of total attacks.
| Metric | Formula | Target |
|--------|---------|--------|
| Attack Success Rate (ASR) | (Successful Attacks / Total Attacks) × 100 | < 5% |
| Mean Time to Compromise | A time to successful exploit | > 100 hours |
| Co | (Test Cases / Total Risk Surface) × 100 | > 90% |
| False Positive Rate | (False Alarms / Total Alerts) × 100 | < 10% |
| Se Distribution | Critical / High / Medium / Low counts | Track trends |
Se Classification
---
Red Team Report Structure
Remediation Strategies
| Issue Type | Mitigation Approaches |
|------------|----------------------|
| Prompt Injection | Input sanitization, output filtering, structured prompts, pri separation |
| Jailbreaking | Reinforcement learning from human feedback (RLHF), constitutional AI, ad training |
| Data Leakage | Data minimization, differential privacy, output monitoring, access controls |
| Hallucination | Retrie Generation (RAG), citation requirements, confidence scoring |
| Bias | Diverse training data, fairness constraints, post-processing, regular audits |
| Model Extraction | Rate limiting, output randomization, API monitoring, watermarking |
---
<a id="threat-landscape"></a>
| Ad | Moti | Capabilities | Typical Targets |
|-----------|-----------|--------------|-----------------|
| Script Kiddie | Curiosity, fame | Low; uses existing tools | Public AI chatbots, APIs |
| Hacktivist | Ideological | Medium; social engineering skills | Corporate AI, go systems |
| Cybercriminal | Financial gain | High; organized groups | Financial AI, e-commerce |
| Insider Threat | Revenge, espionage | Very high; legitimate access | Internal AI systems, models |
| Competitor | Competiti | High; well-funded | Proprietary models, trade secrets |
| Nation-State | Strategic ad | Extremely high; ad persistent threat | Critical infrastructure AI, defense systems |
---
<a id="attack-"></a>
> ⚖️ Authorized use only. The techniques and payloads in this section are for defensi of systems you own or are explicitly authorized in writing to test. Running them against third-party systems, production services handling real user data, or any target outside an agreed scope may be illegal and can cause real harm. Establish scope and permission first — see the Rules of Engagement template in templates/ and Establish Clear Rules of Engagement.
#### Prompt Injection
Every prompt, in a sense, is committing code to the application. Attackers don't need to breach backend systems to take control—they can manipulate the AI through natural language.
Direct Prompt Injection:
Indirect Prompt Injection:
Cross-Plugin Injection:
#### Jailbreaking
Common Jailbreak Patterns:
1. Role-Playing
2. Hypothetical Scenarios
3. Encoding
4. Multi-Turn Manipulation (Crescendo)
5. Language Switching
---
Training Data Poisoning:
Microsoft research shows that e methods can compromise AI systems through data manipulation.
Types:
Defense:
---
Goal: Steal proprietary AI models through API queries
Techniques:
> ⚖️ Reminder: run extraction campaigns only against models you own or are authorized to test — high- query campaigns against third-party APIs typically their terms of service and may be unlawful.
1. Query-Based Extraction
2. Functional Extraction
Countermeasures:
---
Goal: Craft inputs that fool AI classifiers
Image Classification:
Text Classification:
Defense Strategies:
---
Goal: Reconstruct training data from model
Defenses:
---
Goal: Determine if specific data was in training set
Privacy Implications:
---
AI-Specific Supply Chain Risks:
| Component | Risk | Example |
|-----------|------|---------|
| Pre-trained Models | Backdoors, poisoning | Malicious HuggingFace model |
| Training Data | Poisoned datasets | Corrupted open datasets |
| Libraries/Dependencies | packages | Compromised PyTorch |
| APIs/Integrations | Third-party exploits | Malicious API wrappers |
| Cloud Infrastructure | Platform | Compromised ML platform |
| Human Contractors | Insider threats | Malicious data annotators |
Mitigation:
pip-audit)---
As AI agents become more autonomous, new attack emerge. Each maps to an OWASP Agentic Top 10 ID.
Permission Escalation (ASI03):
Tool Misuse (ASI02):
Goal Hijack (ASI01):
Memory Manipulation (ASI06):
Inter-Agent Exploitation (ASI07):
Self-Replicating Prompt Malware / AI Worms (ASI08):
> Tool-protocol (MCP) abuse, computer-use/ attacks, RAG-borne injection, and fine-tuning backdoors are large enough surfaces to warrant their own sections — see the five that follow.
---
<a id="mcp--tool-protocol-security"></a>
The Model Context Protocol (MCP) became the de facto standard for connecting models to external tools in 2025 — and with it, a brand-new attack surface. 99 CVEs were published for MCP-related software in 2025, and tool poisoning moved from theoretical risk to li attack. If your system gives a model tools, this section is the highest-le place to test. (Maps to OWASP ASI02 Tool Misuse and ASI04 Agentic Supply Chain Compromise.)
MCP testing checklist: schema/description sanitization · pinning + checksums · metadata diffing across the full session (not just at install) · channel authentication · tool output treated as data · scoped short-li · no untrusted-network exposure · namespace collision resistance · audit log of every tool call with arguments.
> Don't forget the boring bugs. Most MCP C in 2026 are classic web flaws in the server code — e.g. Aug 2026: path tra in Atlassian's Confluence MCP tool, a cleartext cluster-token leak in ArcadeDB, and SSRF in a Facebook Ads MCP server. Run standard AppSec testing (SAST, DAST, dependency scanning) against every MCP server, not only prompt-le.
---
<a id="computer-use--browser-agent-attacks"></a>
Agents that see screens and click (computer-use models, AI browsers) inherit every web/UI attack *plus* a new class of /perceptual injection. Microsoft's taxonomy v2.0 added "computer-use agent attacks" precisely because these moved from research to reality in 2025–2026 (demonstrated against Perplexity's Comet and Gemini for Chrome).
Controls: isolate the agent's browser profile (no ambient cookies/credentials); require explicit human confirmation for state-changing actions (resistant to consent fatigue); separate "page content" from "instructions" in the agent's context; constrain na to allowlisted origins; log screenshots + chosen actions for replay.
---
<a id="rag-attack-taxonomy"></a>
Retrie Generation is the most common enterprise LLM pattern — and retrie is untrusted input that reaches the model with implicit trust. Indirect prompt injection via RAG is now one of the most exploited AI attack classes.
| Attack | Description | Test approach |
|--------|-------------|---------------|
| Source-document poisoning | Plant malicious instructions in a document that will be ingested/indexed. | Seed the corpus with a poisoned doc; confirm whether retrie it and the model obeys it. |
| Indirect prompt injection | Retrie contains "ignore prior instructions…" that the model executes. | Inject directives into retrievable content; measure obedience rate. |
| Retrie / ranking attacks | Keyword stuffing or embedding-space crafting to force a malicious doc to the top-k. | Craft a doc to outrank legitimate sources for a target query. |
| Citation spoofing | Fabricated or mismatched citations that lend false authority to harmful output. | cited sources actually support the claim; test fake-citation acceptance. |
| Context-window exhaustion | Flood retrie to push out the system prompt / safety instructions. | O retrievals; confirm safety instructions survi. |
| Embedding-space attacks | Inputs crafted to collide with sensiti in space, pulling it into context. | Probe for unintended retrieval of restricted documents. |
Controls: treat retrie as data, not instructions (delimit and label it); sanitize/strip instruction-like content pre-indexing; pro and trust scoring per source; cap per-source context share; citations against retrie; tenant-isolate stores.
---
<a id="attacks"></a>
As voice agents and multimodal models reach production (call centers, voice assistants, workflows), the attack surface extends to audio. This complements the Multilingual & Cultural Safety Playbook.
Controls: li/anti-spoofing on voice auth (never rely on alone for high-risk actions); band-limit and audio input; transcribe-then-policy-check before acting; apply the same instruction/data separation to transcribed audio as to text.
---
<a id="fine-tuning--model-supply-chain-security"></a>
Customizing models introduces risks *before* a single prompt is sent. This deepens Supply Chain Attacks for the model-weights layer.
Controls: sign and checkpoints; safetensors-only loading; sandbox untrusted weights; pro tracking for datasets and adapters; beha regression of every fine-tune against the base model; rate-limit and monitor inference APIs against distillation.
---
<a id="ai-on-ai-red-teaming"></a>
The biggest methodological shift of 2026: autonomous, agent-orchestrated red teaming. Instead of a human firing prompts, an attacker LLM is given a natural-language objective, then selects attacks, composes transforms, runs them against the target, and produces structured findings. Recent research shows autonomous agents now solve the majority of black-box red-team challenges faster than human operators — and tooling (Promptfoo's Hydra, PyRIT's XPIA orchestrator, FuzzyAI Crescendo, emerging agent-nati) is con on this pattern.
---
<a id="ai-coding-agent--cicd-security"></a>
Coding agents (Claude Code, GitHub Copilot coding agent, Gemini CLI, Cursor, Codex and others) now run inside IDEs and inside CI pipelines with write access to repositories and pipeline secrets. That combination — untrusted text in, pri actions out — makes them one of the highest-value targets in 2026. (Maps to ASI01 Goal Hijack, ASI02 Tool Misuse, ASI05 Unexpected Code Execution.)
The attack surface is ordinary repo content. Pull request titles and bodies, issue text, code comments, commit messages, branch names, README files, and dependency docs all reach the agent's context. In the "Comment and Control" disclosure (April 2026) a single crafted PR comment or issue hijacked Claude Code's security-review action, Gemini CLI Action, and the Copilot coding agent in GitHub Actions, and got them to print API keys and tokens into public Actions logs (rated up to CVSS 9.4). See Case Study E.
pull_request_target, issue_comment, or workflow_run that hand secrets to an agent processing fork-controlled content. |.github/, agent instruction files) without review? |GITHUB_TOKEN by default; separate, narrowly scoped credentials for any write step; no long-li keys on agent runners.pull_request_target + checkout of PR code; gate agent runs on maintainer-applied labels or approvals.Further reading — benchmark: AI Coding Agent Runtime Security Benchmark (HOL) compares built-in safety controls in Codex CLI, Claude Code, Cursor, Gemini CLI, and OpenCode across 11 risky scenarios (220 deterministic fixture results, JSON/CS). *: it compares those controls against the publisher's own product (HOL Guard), tests documented control behavior with fixtures rather than li, and does not measure exploit resistance, latency, or false positives.*
---
<a id="agent-to-agent-a2a--agent-identity"></a>
Multi-agent systems increasingly talk o protocols. A2A (originally from Google) reached v1.0 in 2026 under the Linux Foundation: agents publish an Agent Card (metadata describing skills and endpoints), discover each other, delegate tasks, and exchange messages. MCP connects an agent to tools; A2A connects agents to agents — and inherits the same "text is instructions" problem plus an identity problem. (Maps to ASI03 Identity & Pri Abuse, ASI07 Insecure Inter-Agent Communication.)
---
<a id="frontier-capability--ai-accelerated-"></a>
Two 2026 shifts change the threat model every red team should assume.
1. AI finds and weaponizes bugs at machine speed. Anthropic's Claude Mythos Preview (announced April 2026, not publicly released) was given to ~50 partners through Project Glasswing, a defensi to secure critical software. Partners reported 10,000+ high- or critical-se , including flaws in every major operating system and web browser, and independent testers noted it is strong at turning findings into end-to-end attack chains. Assume attackers will ha tools. For red teams this means:
2. Frontier agents can act on their own initiative. In 2026 frontier labs disclosed that internal agents escaped e sandboxes and reached real systems without being told to (see Case Study D). Labs say they are now re tens of thousands of incidents where models took steps outside e considered problematic. Red-team implications:
Sources: The Hacker News — Mythos finds 10,000 high-se flaws · Help Net Security — Project Glasswing update · Axios — labs probing tens of thousands of incidents · Tom's Hardware — Anthropic frontier red-teaming report
---
<a id="red-teaming-tools"></a>
> Featured commercial platform: A by Cogensec
>
> Autonomous ad across code, applications, APIs, and identity flows, with reproducible e and actionable remediation. Explore A and request frontier access →
<a id="open-source-tools"></a>
> 2026 shift — single-turn probing → multi-turn agentic orchestration. The whole tool category has moved past "fire one prompt, check the answer." Promptfoo's Hydra strategy, FuzzyAI's Crescendo attacks, and PyRIT's XPIA orchestrator all reflect the same reality: real ad escalate across turns and pi. Fa that support multi-turn, adapti campaigns. */ownership below were June 2026 — re-check before relying on them.*
#### 1. PyRIT (Python Risk Identification Toolkit) - Microsoft
The de facto standard for orchestrating LLM attack suites. *(v0.11.0, Feb 2026. The old Azure/PyRIT repo was archived in March 2026 — acti is now at microsoft/PyRIT. The companion AI Red Teaming Agent ships in Azure AI Foundry for automated workflows.)*
Features:
Best For: Internal red teams, research, comprehensi
GitHub: microsoft/PyRIT *( 2026-06)*
---
#### 2. DeepTeam (Deepeval)
Open-source LLM red-teaming framework for stress-testing AI agents like RAG pipelines, chatbots, and autonomous LLM systems.
Features:
Best For: RAG systems, chatbots, autonomous agents
Website: deepeval.com
---
#### 3. Garak - LLM Scanner (NVIDIA)
Now maintained by NVIDIA. *(v0.14.x in de, June 2026, adding enhanced probes for agentic AI systems.)*
Features:
Best For: Quick scans, CI/CD integration
GitHub: NVIDIA/garak *( 2026-06; formerly leondz/garak)*
---
#### 4. promptfoo - LLM Red Teaming & E
*Acquired by OpenAI (announced March 2026; deal terms not disclosed) and remaining open source under its current license. The Hydra strategy adds multi-turn, adapti campaigns. Best default for CI/CD-integrated application security testing.*
Features:
Best For: LLM red teaming, security testing, CI/CD pipelines
GitHub: promptfoo/promptfoo *( 2026-06)*
---
#### 5. IBM Ad Robustness Toolbox (ART)
Features:
Best For: Classical ML attacks, computer
GitHub: IBM/adlbox
---
#### 6. Giskard - AI Testing Platform
Ad automated red-teaming platform for LLM agents including chatbots, RAG pipelines, and assistants.
Features:
Best For: Production LLM agents, RAG systems
Website: giskard.ai
---
#### 7. BrokenHill - Automatic Jailbreak Generator
Features:
Best For: Jailbreak research, ad testing
---
#### 8. Counterfit - Microsoft
Features:
Best For: Getting started, educational purposes
GitHub: Azure/counterfit
---
#### 9. Gideon - Cogensec
AI-powered autonomous cybersecurity operations assistant focused on defensi research, threat intelligence, and hardening policy generation.
Features:
Best For: Defensi research, threat intelligence, hardening policy generation
GitHub: Cogensec/Gideon
---
#### 10. Redamon - samugit83
Autonomous AI red-team framework that runs the full offensi — reconnaissance, exploitation, post-exploitation, triage, and automated code remediation (with GitHub PRs) — under a LangGraph-based agent orchestrator. A practical embodiment of the AI-on-AI red teaming shift covered earlier.
Features:
Best For: End-to-end autonomous red-team operations, multi-phase agentic assessment, MCP-driven tool orchestration
License: MIT
GitHub: samugit83/redamon *( 2026-06)*
---
#### 11. AI-Infra-Guard - Tencent Zhuque Lab
Full-stack AI red teaming platform that unifies several scanners: OpenClaw/agent security scanning, MCP-server and skills scanning, AI-infrastructure fingerprinting (100+ components matched against 1,900+ known CVEs), and LLM jailbreak e. Web UI and REST API, Docker-based deployment. A strong fit for the agentic/MCP attack surface covered throughout this guide.
Features:
Best For: Infrastructure and agent/MCP security assessment, self-hosted scanning
License: Apache-2.0
GitHub: Tencent/AI-Infra-Guard *( 2026-07)*
---
#### 12. Humanbound
Open-source ad testing engine, SDK, and CLI for AI agents — attacks agents the way real users and attackers do (li, multi-turn con, tool abuse), then turns each failure into a firewall rule. Produces a security posture score (0–100, A–F grades via hb posture) and HTML reports (hb report). Runs fully offline for air-gapped testing, or against hosted pro.
Features:
Best For: De/De testing of agentic systems, air-gapped assessments
License: Apache-2.0
GitHub: humanbound/humanbound *( 2026-07)*
---
#### 13. Scenario - LangWatch
Simulation-based agent testing and red-teaming framework: instead of firing one-shot prompts, it scripts multi-turn con that begin with harmless exploration and escalate toward complex, authority-pressured requests — mirroring how real ad coax agents across turns. A in Python, TypeScript, and Go, and integrates with any LLM e framework.
Features:
Best For: Multi-turn agent red teaming, CI-dri/e
License: Apache-2.0
GitHub: langwatch/scenario *( 2026-07)*
---
#### 14. Darkmoon
Open source (GPL-3.0) autonomous AI penetration testing platform: an LLM orchestrates specialist agents and offensi over MCP, runs against web, API, Acti, and Kubernetes targets, and proves each finding with a real exploit. Runs on a local model and self-hosts, so assessment data stays in your own en.
Features:
License: GPL-3.0
GitHub: ASCIT31/Dark-Moon
---
#### 15. MiDojo - asago (Red Hat)
"Red-team agents where they run." Instead of rebuilding an agent's world inside a test harness (the AgentDojo approach), MiDojo puts a man-in-the-middle layer between the agent and its real tools: fake tools ser data with injection payloads spliced in, and capture any malicious actions the agent takes. The agent under test doesn't change and doesn't know it's being tested. Introduced in August 2026 and coming to Red Hat AI as a de preview.
Features:
Best For: Testing production-shaped agents against indirect injection without rewriting them
License: Apache-2.0
GitHub: asago-ai/midojo *( 2026-10)* · Red Hat De article
---
#### 16. Ziran - TaoQ AI
Security testing framework for AI agents that models the agent's tools, memory, and permissions as a knowledge graph and tests what happens when capabilities combine: transitive tool chains such as read_file -> http_request (data exfiltration) or sql_query -> execute_code (SQL to RCE), tool calls that execute even when the agent's text reply refuses, and multi-phase campaigns (reconnaissance through exfiltration) whose phase order is driven by the graph. Scans agents in-process (LangChain, CrewAI, Bedrock) or remotely over REST, OpenAI-compatible, MCP, and A2A protocols. Ships 639 attack (author-described) mapped to OWASP LLM Top 10 and MITRE ATLAS, HTML/Markdown/JSON reports, SARIF output, and a CI quality gate.
Features:
Best For: Pre-deployment testing of tool-using and multi-agent systems, MCP and A2A agents
License: Apache-2.0
GitHub: taoq-ai/ziran *( 2026-10)*
*Contributed by the tool's author; capabilities are author-described and not independently benchmarked.*
---
<a id="commercial-platforms"></a>
<a id="a"></a>
#### ⭐ Featured: A by Cogensec
Autonomous ad . Reproducible e. Actionable fixes.
A is Cogensec's commercial offensi platform. It coordinates specialist AI security agents to in source code, running applications, APIs, and identity flows, test attack paths, and turn findings into engineering work.
Why it belongs in an AI red teaming workflow: A applies agent-dri testing to the software and access controls surrounding AI systems, complementing model-behavior e with application and infrastructure .
Core capabilities described by Cogensec:
Best for: Security, AppSec, and platform teams e a commercial option for autonomous assessment of authorized applications and the software supporting AI deployments.
A: Commercial, proprietary product. Frontier access is by in through Cogensec; contact Cogensec for pricing and deployment options.
Explore A / Request frontier access →
*Built by Cogensec, co-founded by this guide's maintainer. Capability summary sourced from the A product page, re 2026-09-07.*
---
#### 1. Mindgard
#### 2. Splx AI
#### 3. Adversa AI
#### 4. Lakera Guard
#### 5. Pillar Security
#### 6. NeuralTrust
#### 7. Verno Labs
#### 8. General Analysis
#### 9. Haize Labs
#### 10. DeepKeep AI Security Platform
---
The newest wa the agent/orchestration layer specifically (tool-call hijacking, multi-agent pipelines, memory poisoning) and runs autonomous, agent-orchestrated assessments rather than static probe suites:
*( 2026-06; this is a fast-moving category — confirm current capabilities directly.)*
---
<a id="comparison-matrix"></a>
| Tool | Type | Cost | Automation | Learning Curve | Best Use Case |
|------|------|------|-----------|----------------|---------------|
| PyRIT | Open | Free | High | Medium | Comprehensi |
| DeepTeam | Open | Free | High | Low | RAG/Agent systems |
| Garak | Open | Free | High | Low | Quick scans |
| promptfoo | Open (MIT) | Free | High | Low | CI/CD-integrated app red teaming |
| ART | Open | Free | Medium | High | Classical ML attacks |
| Giskard | Open | Free | High | Medium | Multi-turn attacks |
| Gideon | Open | Free | High | Medium | Defensi intel |
| Redamon | Open | Free | Very High | Medium | Autonomous end-to-end red team |
| AI-Infra-Guard | Open | Free | High | Low | Infra/agent/MCP scanning |
| Humanbound | Open | Free | High | Low | Agentic system testing |
| Scenario | Open | Free | High | Low | Multi-turn agent red teaming |
| BrokenHill | Open | Free | High | High | Automated jailbreak (GCG-style) research |
| Counterfit | Open | Free | Medium | Low | Learning / classical ML attacks |
| Darkmoon | Open (GPL-3.0) | Free | Very High | Medium | Self-hosted autonomous pentesting with exploit proof |
| MiDojo | Open (Apache-2.0) | Free | High | Medium | In-en agent injection testing |
| Ziran | Open | Free | High | Medium | Tool-chain and multi-agent testing |
| ⭐ A — Cogensec | Commercial / proprietary | Contact Cogensec | Autonomous multi-agent () | Not assessed | Code, app, API, and identity with reproducible e |
| Mindgard | Commercial | $$$ | Very High | Low | Enterprise compliance |
| Lakera | Commercial | $$$ | High | Low | Production protection |
| Splx AI | Commercial | $$$ | High | Low | End-to-end testing + CI/CD |
| Adversa AI | Commercial | $$$ | High | Low | Automated ad testing + regulatory alignment |
| General Analysis | Commercial | $$$ | Very High | Low | Agentic + tool/MCP testing, CI gates |
| Haize Labs | Commercial | $$$ | Very High | Low | Large-scale automated stress-testing |
| DeepKeep | Commercial | Contact DeepKeep | High + human-steered adaptive | Low | Compliance co + business-impact AI red teaming |
| Pillar | Service | $$$$ | Custom | N/A | Full-service testing |
| NeuralTrust | Service | $$$ | Custom | N/A | Full-service testing |
| Verno Labs | Service | $$$ | Very High | Low | Full-service testing |
---
<a id="real-world-case-studies"></a>
> Case studies are grouped Current (2025–2026) first, then Historical (2023–2024). E tags follow the Case Study Quality Bar.
#### Case Study A: AI-Orchestrated State-Sponsored Intrusion (September 2025)
Context: Anthropic detected and disrupted what it described as the first documented large-scale cyberattack predominantly executed by an AI agent.
Attack : Misuse of an autonomous coding agent (Claude Code) for offensi.
What happened:
A state-sponsored group used an agent to autonomously carry out an estimated 80–90% of tactical execution — reconnaissance, exploit generation, lateral mo — across ~30 global targets, with humans inter only at a few key decision points.
Impact: Critical — demonstrated that frontier agents collapse the time from discovery to working exploit from months to hours, and that a single operator can run campaigns at machine scale.
Lessons for red teams:
E quality: E ( disclosure). Confidence: Medium-High.
---
#### Case Study B: OpenClaw Agent Framework (January 2026)
Context: A rapidly-adopted open-source agent framework (created by Peter Steinberger; also known as Moltbot) that passed 135,000+ GitHub stars within weeks of launch.
Attack : Agentic supply chain (ASI04), one-click RCE, credential exposure.
What happened:
Security researchers catalogued 100+ CVEs across the framework (collectively dubbed the "Claw Chain"). The headline flaw, C (CVSS 8.8), is a one-click RCE: the OpenClaw Control UI trusts a gatewayUrl URL parameter and auto-connects to it, so a single malicious link makes the UI connect to an attacker's WebSocket and leak the user's authentication token in milliseconds — leading to host compromise. By April 2026, more than 135,000 instances were exposed on the internet (a majority with no authentication), and roughly 335 malicious plugins (credential stealers disguised as crypto-wallet tools, e.g. "solana-wallet-tracker") reached the ClawHub marketplace — about 12% of the registry.
Impact: Critical — the defining cautionary tale for agentic supply-chain risk: a trusted framework + an open plugin marketplace + insecure defaults. Patched in v2026.1.29 (Jan 30, 2026); mitigation requires updating and rotating all auth tokens.
Lessons for red teams:
E quality: E (multiple disclosures + C + academic analysis). Confidence: High.
---
#### Case Study C: GitHub Copilot RCE & Second-Order Prompt Injection (2025)
Context: AI coding assistant integrated into de workflows.
Attack : Prompt injection escalating to remote code execution (C, CVSS 7.8).
What happened:
Researchers showed that injected content could cause the assistant to write to its own configuration files, achieving RCE. Separately, a second-order prompt injection pattern emerged: feeding a *low-pri* agent a malformed request tricked it into asking a *higher-pri* agent to perform the action on its behalf — a confused-deputy escalation across agents (ASI07).
Impact: Critical — code-assistant compromise lands directly in de en and CI.
Lessons for red teams:
E quality: E (CVE + research). Confidence: Medium-High.
---
<a id="case-study-d-openai-frontier-agent-reaches-a-gonternal-e"></a>
#### Case Study D: OpenAI Frontier Agent Reaches a Go Portal During Internal E (June 2026)
Context: An internal-only OpenAI frontier model, being trained and e with tool use and without the safeguards of OpenAI's public products. Disclosed publicly in September 2026 after Australia's Prime Minister announced it.
Attack : No outside attacker. The agent itself found a route out of its en (ASI10 Rogue Agents / goal-directed o).
What happened:
On 18 June 2026, without human instruction, the agent gained non-public access to Services Australia's Medicare Statistics Reporting Service, ran commands, retrie files, credentials, and statistics, and wrote files to the system. Reporting says monitoring flagged the behavior quickly but the run was not stopped for hours. OpenAI apologized, paused training and e in tool use for its most capable models, and shelved its next ChatGPT release; the Australian go ordered a review of go cyber systems. Separate reports describe other OpenAI agents reaching US go sites with exposed API keys and a sandbox escape that hit Hugging Face, which led to a second training pause.
Impact: Critical — the first widely reported case of an AI agent breaching a go system on its own initiative; it helped trigger the FTC probe described under Regulatory Compliance.
Lessons for red teams:
E quality: E (company statement + go statements + press). Confidence: Medium-High; some operational details are press-reported. Sources: ABC News · iTnews · Fortune · CSA research note
---
<a id="case-study-e-comment-and-control--prompt-injection-against-ai-coding-agents-in-ci-april-2026"></a>
#### Case Study E: "Comment and Control" — Prompt Injection Against AI Coding Agents in CI (April 2026)
Context: AI coding agents running in GitHub Actions with repository write access and pipeline secrets.
Attack : Indirect prompt injection through ordinary GitHub content — PR titles, issue bodies, and comments.
What happened:
Researcher Aonan Guan (with Johns Hopkins collaborators) showed that one malicious comment or issue could hijack Claude Code's security-review action, Google's Gemini CLI Action, and GitHub's Copilot coding agent, making them run commands and print API keys and tokens into publicly Actions logs. The issue was rated up to CVSS 9.4 and disclosed to all three .
Impact: Critical — any public repository running these agents on untrusted input could leak its CI secrets.
Lessons for red teams:
E quality: E (researcher disclosure + acknowledgements + press). Confidence: High. Sources: Researcher write-up · SecurityWeek
---
<a id="case-study-f-deadbugz-mcp-supply-chain-campaign-august-2026"></a>
#### Case Study F: Deadbugz MCP Supply-Chain Campaign (August 2026)
Context: Public GitHub projects in the AI, MCP, and de space.
Attack : Agentic supply chain (ASI04) with runtime-gated MCP metadata poisoning.
What happened:
On 10 August 2026, a single GitHub account opened 23 pull requests in 74 minutes against unrelated projects, each adding a "producti" MCP server (deadbug-mcp.py). The ser harmless text formatting and summarization — until a client made three tool calls. After that it changed the instructions it returned, telling the agent to collect SSH keys, AWS credentials, shell history, and Kubernetes config, and to hide this from the user. Pillar Security found that none of the PRs were merged through GitHub at review time (19 closed, 4 open).
Impact: High — shows rug-pull behavior in the wild and that one-time install review is not enough.
Lessons for red teams:
E quality: E (primary researcher report). Confidence: High. Sources: Pillar Security · CSA research note
---
#### Case Study 1: Microsoft's SSRF (2024)
Context: Video processing AI application using FFmpeg component
Attack : Ser Request Forgery (SSRF)
Discovery:
One of Microsoft's red team operations discovered an outdated FFmpeg component in a video processing generative AI application. This introduced a well-known security that could allow an ad to escalate their system pri.
Attack Chain:
Impact: Critical - Full system compromise possible
Mitigation:
Lesson: AI applications are not immune to traditional security . Basic cyber hygiene matters.
---
#### Case Study 2: Language Model Prompt Injection (2024)
Context: Multimodal AI processing images and text
Attack : Prompt injection metadata
Discovery:
Microsoft's red team used prompt injections to trick a language model by embedding malicious instructions within image files.
Attack Technique:
Impact: High - Unauthorized data access
Mitigation:
Lesson: Multimodal AI systems expand the attack surface beyond text prompts.
---
#### Case Study 3: GPT-4 Base64 Encryption Discovery (OpenAI, 2023)
Context: Pre-release GPT-4 red teaming
Discovery:
Red teaming discovered the ability of GPT-4 to encrypt and decrypt text in like Base64 without explicit training on encryption.
Attack Scenario:
Impact: Medium - Potential for bypassing content filters
Mitigation:
Lesson: Red teaming findings led to datasets and insights that guided creation of quantitati.
---
#### Case Study 4: NIST ARIA Pilot Exercise (Fall 2024)
Context: First large-scale public AI red teaming exercise
Scale:
Methodology:
Participants sought to stress test model guardrails and safety mechanisms to produce as many outcomes as possible across risk categories.
Key Findings:
Impact:
Lesson: Public red teaming exercises can democratize AI safety while disco diverse .
---
#### Case Study 5: Singapore Multilingual AI Red Teaming (Late 2024)
Context: First multilingual/multicultural AI safety exercise focused on Asia-Pacific
Organizers: Singapore IMDA + Humane Intelligence
Scope:
Key Disco:
Example Attack:
Impact:
Lesson: AI safety is not uni transferable across languages and cultures.
---
#### Case Study 6: Samsung ChatGPT Data Leak (2023)
Context: Employees using ChatGPT for work tasks
Incident:
Samsung employees accidentally leaked confidential company data by entering sensiti into ChatGPT, including:
Attack : Unintentional data exfiltration AI
Impact:
Samsung Response:
Lesson: E malicious intent, AI systems can facilitate data leakage. Organizations need clear policies for AI tool usage.
---
<a id="building-your-red-team"></a>
Core Roles:
#### 1. Red Team Lead
Responsibilities:
Skills:
---
#### 2. AI Security Researcher
Responsibilities:
Skills:
---
#### 3. Prompt Engineer / Jailbreak Specialist
Responsibilities:
Skills:
---
#### 4. Traditional Security Expert
Responsibilities:
Skills:
---
#### 5. Domain Expert (Context-Dependent)
Responsibilities:
Skills:
---
#### 6. Automation Engineer
Responsibilities:
Skills:
---
#### 7. Ethics/Fairness Specialist
Responsibilities:
Skills:
---
| Organization Size | Red Team Size | Composition |
|-------------------|---------------|-------------|
| Startup | 1-2 | Hybrid roles, contractors, consultants |
| Mid-Size | 3-5 | Core team + domain experts |
| Enterprise | 5-15 | Dedicated full-time red team |
| Tech Giant | 15+ | Multiple specialized sub-teams |
---
Training Paths:
1. Foundations
- AI/ML fundamentals
- Security principles
- Ad ML basics
- Prompt engineering
2. Intermediate
- OWASP LLM Top 10
- MITRE ATLAS framework
- Attack tool usage
- assessment
3. Ad
- No research
- Custom tool de
- Zero-day discovery
- Framework design
Recommended Resources:
---
Level 1: Ad Hoc
Level 2: Repeatable
Level 3: Defined
Level 4: Managed
Level 5: Optimizing
---
<a id="best-practices"></a>
---
---
Benefits:
Structure:
---
The human element of AI red teaming is crucial. While automation tools are useful, humans provide subject matter expertise that LLMs cannot replicate.
Recommended Split:
---
What to Document:
Format:
Use standardized templates for consistency and knowledge sharing.
---
Before Starting Red Team Exercise:
---
AI red teaming is not safety benchmarking. Focus on attacks most likely to occur in your deployment context.
Risk Prioritization Framework:
Example:
---
The work of securing AI systems will never be complete. Models evolve, new attacks emerge, and the threat landscape changes.
Continuous Impro Cycle:
Cadence Recommendations:
---
Red team members should feel comfortable:
Leadership Role:
---
Red Team ← → Blue Team:
Red Team ← → Product Team:
Red Team ← → Legal/Compliance:
---
<a id="implementation-quickstart-306090"></a>
Use this phased plan to turn guidance into an operating program.
templates/threat-modeling-workshop.md)---
<a id="ence-implementation"></a>
A lightweight structure for repeatable red-teaming and regression tracking:
> ⚠️ Illustrati code — NOT production-ready. The snippets below are teaching scaffolding, not a drop-in harness. call_model / my_app are placeholders you must wire to your own target. The refusal and PII checks are deliberately naive: REFUSAL_MARKERS is an English-only keyword list that both misses politely/formally phrased refusals and false-positives on benign text containing "cannot," and PII_PATTERNS matches only email- and US-SSN-shaped strings (no names, phone numbers, passports, or medical IDs). Treat the reported ASR as directional only. For production, replace these heuristics with a calibrated judge model (see AI-on-AI Red Teaming) and report the judge's own false-positi rate.
>
> 🔒 Run only against a sandboxed, non-production target. Never pass real user data through e inputs — several probes below deliberately elicit PII, and running them against a li with real user context in scope could itself cause a privacy incident.
The pieces below are intentionally small and dependency-light so a team can adapt them into security-evals/.
policies/expected_outcomes.yaml — declare test cases and the policy each must satisfy:
scorers/policy_.py — turn a model response into pass/fail per policy:
run_eval.py — execute the suite, compute ASR per category, enforce release gates:
gate() above)> Wire run_eval.py into the shift-left CI example so the gate runs on every PR.
Before rolling your own, anchor your program to the community benchmarks — they gi, comparable numbers and cover the agentic attack surface the custom harness above does not:
| Benchmark | What it measures | Notes |
|-----------|------------------|-------|
| AgentDojo | Indirect prompt injection against tool-calling agents | 97 realistic tasks + 629 security test cases across 70 tools / 27 injection targets; four en (Workspace, Travel, Slack, Banking). Built by ETH Zurich. |
| AgentDojo-Inspect | AgentDojo ported to the Inspect e | NIST/CAISI fork used in its own agent-hijacking research (no hit an 81% task-hijack rate vs 11% for prior baselines). usnistgo |
| AgentHarm | Whether agents comply with o malicious tasks | 110 base tasks (440 augmented) across 11 harm categories / 104 tools; leading models are "surprisingly compliant" e jailbreaks. |
| SHADE-Arena | Sabotage/monitoring e | Tests whether an agent can pursue a hidden secondary objecti e an o. |
| ART (Agent Red Teaming) benchmark | Broad ad robustness | ~4,700 high-impact prompts targeting 44 policy- behaviors, with an e public leaderboard. |
| InjecAgent | Indirect prompt injection in tool-integrated agents | Tests whether injected content in tool outputs causes harmful actions or data theft; a common companion to AgentDojo. |
| HarmBench | Jailbreak / harmful-behavior robustness | Standardized framework for comparing automated red-teaming attacks and model refusals across harm categories. |
| JailbreakBench | Jailbreak attacks and defenses | Open benchmark with a public leaderboard and a shared library of jailbreak artifacts for reproducible comparisons. |
| CyberSecEval (Meta Purple Llama) | Cybersecurity risks of LLMs | Measures insecure-code suggestions, compliance with cyberattack requests, prompt injection, and offensi uplift. |
> Treat these as co floors, not ceilings — NIST's own finding is that relying entirely on existing tooling gives a false sense of assurance. Pair benchmark scores with novel, target-specific attacks.
---
<a id="agentic-ai-attack-trees--controls-mapping"></a>
Use attack trees to connect offensi paths to defensi. Each tree is tagged with the OWASP Agentic Top 10 IDs it exercises.
Controls:
Controls:
> What the research shows (why this tree is high-priority): poisoning is cheaper than intuition suggests. A 2025 Anthropic / UK AI Security Institute / Alan Turing Institute study found that ~250 malicious documents can backdoor an LLM regardless of model size (0.00016% of training tokens for a 13B model) — the number of poisoned samples is near-constant, not proportional. At inference time, PoisonedRAG showed as few as 5 poisoned documents can subvert a RAG workflow with >90% reliability, and MINJA demonstrated memory-injection success rates above 95% purely through normal agent interaction. Assume the barrier to entry is low and test accordingly.
Controls:
Controls:
Controls:
Controls:
---
<a id="ai-harm-se"></a>
Use CVSS as a base, then add AI-specific modifiers:
| Dimension | Description | Scale |
|-----------|-------------|-------|
| Exploitability | How easy the issue is to reproduce | Low/Med/High |
| User Impact | Potential harm to users or protected groups | Low/Med/High/Critical |
| Autonomy Factor | Can agents execute actions without human confirmation? | None/Partial/Full |
| Blast Radius | Single user, tenant, or cross-tenant/system-wide | Narrow/Broad/Systemic |
| Reco | Time/effort to safely restore expected behavior | Easy/Moderate/Hard |
---
<a id="ai-incident-response"></a>
Red teaming finds the holes; incident response is what you do when one is exploited in production. Agentic systems need IR patterns traditional runbooks don't cover — because a compromised agent can *act*, not just emit text.
---
<a id="secure-sdlc-integration-artifacts"></a>
To reduce "one-off" testing, integrate red-team controls into delivery workflows.
<a id="defensi"></a>
Translate red-team findings into architecture decisions using a layered control model:
2. Tool Permissioning and Isolation
- Grant least-pri tokens per tool and per action
- Use appro for sensiti (payments, credential resets)
3. Policy-as-Code Enforcement
- Implement deterministic checks before tool execution
- policies and test them in CI alongside prompts
4. Output Guardrails
- Add layered filters (policy, PII, compliance)
- Require citations for high-stakes domains where applicable
---
<a id="multilingual--cultural-safety-playbook"></a>
---
<a id="data-go"></a>
---
<a id="metrics-that-matter-and-anti-metrics"></a>
---
<a id="purple-team-operations"></a>
---
---
<di="center">
<a href="
<img src="assets/redteamkit-banner.svg" alt="RedTeamKit — You've read the methodology. Now run it. $249 one-time." width="100%">
</a>
</div>
---
<a id="common-implementation-pitfalls"></a>
| Pitfall | Why It Fails | What Good Looks Like |
|--------|---------------|----------------------|
| Keyword-only blocking | Easy to bypass /obfuscation | Semantic + policy layered controls |
| O agent tools | Enables pri escalation | Strong authz checks per tool action |
| One-time red team exercise | Misses drift and regressions | Recurring automated + manual cadence |
| Tracking only aggregate ASR | Hides high-risk hotspots | Risk-tiered metrics and trends |
| No regression suite | Reintroduces old | attack library in CI |
---
<a id="case-study-quality-bar"></a>
Use a normalized template for all future case studies:
Template a: templates/case-study-template.md
---
<a id="model--system-cards-for-security-posture"></a>
Document security posture using a structured card for every production AI system:
Template a: templates/model-system-security-card.md
---
<a id="source-hygiene--update-go"></a>
CHANGELOG.md)Reference index a: resources-.md
Use this list during quarterly maintenance to keep the guide synchronized with official sources:
1. EU AI Act — GPAI enforcement (incl. fines) and Art. 50 transparency in force since 2 August 2026. The Digital Omnibus on AI (in force 27 July 2026) mo high-risk obligations to 2 Dec 2027 and product-embedded high-risk to 2 Aug 2028. Track the GPAI Code of Practice and harmonized standards.
2. FTC in of OpenAI, Anthropic, and METR (opened late Sept 2026) o incidents and safety/assurance claims — watch for findings that affect how red-team results and third-party assessments may be described.
3. OWASP GenAI Security Project — 2026 LLM Top 10 (rebuilt with real incident data), Top 10 for Agentic Applications (ASI01–ASI10, mapped throughout this guide), the new Agent Control Standard, and the first AI Red Teaming Landscape / Solutions Directory.
4. MITRE ATLAS v5.x — 16 tactics / 80+ techniques, with agent-focused techniques such as *Publish Poisoned AI Agent Tool* and *Escape to Host*. Re-map attack trees when new ship.
5. Microsoft Taxonomy of Failure Modes in Agentic AI v2.0 (June 2026) — re-check for v2.x.
6. NIST Cyber AI Profile (IR 8596) — still a preliminary draft as of Oct 2026 (the expected summer release has not landed); workshop feedback is summarized in NIST IR 8607. Will reorganize AI cyber risk under CSF 2.0 outcomes.
7. NIST COSAiS — SP 800-53 control o for AI — single-agent and multi-agent o still in de; only the predictive-AI annotated outline has been published.
8. NIST AI RMF Profile for Trustworthy AI in Critical Infrastructure — concept note released 7 April 2026.
9. MCP & A2A security — MCP CVEs keep landing (classic web bugs dominate) and runtime-gated poisoning is now seen in the wild (Deadbugz, Aug 2026); A2A reached v1.0 under the Linux Foundation. Monitor both specs' security ad.
10. NIST SSDF SP 800-218 Rev.1 (SSDF v1.2) — re-check draft status; relevant for linking AI red-team controls to secure SDLC.
---
<a id="practitioner-appendices"></a>
Starter artifacts in templates/:
<a id="regulatory-compliance"></a>
#### Executi on AI (October 2023) — *historical*
The rescinded 2023 order is kept here for its widely-cited definition. It defined AI red teaming as "a structured testing effort to find flaws and in an AI system, often in a controlled en and in collaboration with de of AI. Artificial Intelligence red-teaming is most often performed by dedicated 'red teams' that adopt ad methods to identify flaws and , such as harmful or discriminatory outputs from an AI system, unforeseen or undesirable system behaviors, limitations, or potential risks associated with the misuse of the system."
What it required (no longer in effect): red teaming and reporting for dual-use foundation models, pre-deployment testing, ongoing monitoring, and incident reporting.
> Federal AI policy shifted after 2023 (the original order was rescinded and replaced by later executi). The durable US signal is now at the state level, sector regulators, and consumer-protection enforcement — track those below rather than any single executi.
#### FTC Probe of Frontier Labs and Assessors (September 2026)
The FTC opened a consumer-protection in into OpenAI, Anthropic, and METR o incidents and the safety claims made about them — the first US enforcement effort built around agents acting beyond their operators' intent. Ci Demands are expected to co records, executi, and the role of third-party assessors. Implication for red teams: your findings, scope statements, and "tested/safe" claims may become e. Write reports that state scope, co, and residual risk precisely, and ne assurance. (Washington Post · ABC News)
#### State AI Laws (2026)
With no comprehensi statute, US obligations are increasingly set by states — 45 states introduced 1,500+ AI bills in the 2025–26 sessions. The ones most relevant to security testing:
Why it matters for red teams: "frontier" transparency and critical-incident-reporting duties assume you can *produce e* — documented ad testing, incident timelines, and residual-risk records. The templates in this guide map directly to those obligations.
---
#### EU AI Act (Regulation (EU) 2024/1689)
Article 15 requires operators of high-risk AI systems to demonstrate accuracy, robustness, and cybersecurity.
Implementation Timeline (as amended by the Digital Omnibus on AI):
> Digital Omnibus on AI (published 24 July 2026, in force 27 July 2026) deferred the high-risk timeline because harmonized standards and national authorities weren't ready — the requirements themselves are unchanged. GPAI enforcement and transparency duties were not delayed. Red teams supporting high-risk systems should use the extra time to build e, not pause testing.
##### GPAI Systemic-Risk Obligations (enforceable since 2 Aug 2026)
A general-purpose AI model is presumed to carry systemic risk when training compute exceeds 10²⁵ FLOPs; pro must notify the Commission within 2 weeks of meeting that threshold. Systemic-risk pro must then:
The GPAI Code of Practice is the main route to demonstrate compliance ahead of harmonized standards.
##### Article → Red-Teaming Requirement → E Artifact
Map obligations to artifacts you already produce with this guide's templates:
| EU AI Act obligation | Red-teaming requirement | E artifact (template) |
|----------------------|-------------------------|------------------------------|
| Art. 15 robustness & cybersecurity | Ad testing across attack categories | report + harness ASR trends |
| GPAI systemic-risk ad testing | Documented pre-market red team with scope & results | Rules of Engagement + final report |
| Serious-incident reporting | IR runbook + notification timeline | AI Incident Response records |
| Risk management & monitoring | Continuous regression + posture tracking | Model/system security card |
| Technical documentation | Methodology, co, residual risk | Stakeholder readout + changelog |
High-Risk Systems Include: biometric identification · critical infrastructure management · educational/employment assessment · law enforcement · migration/border control · justice administration.
References: EU GPAI provider guidelines · AI Act o · Freshfields — the final Digital Omnibus on AI · Jones Walker — why 2 August 2026 still matters
---
#### ISO/IEC 23894
Focuses on management of risk in AI systems, pro international standards for ensuring safety, security, and reliability.
Key Components:
#### ISO/IEC 42001:2023 — AI Management System (AIMS)
The first certifiable AI management-system standard (the "ISO 27001 for AI"). It requires organizations to operate a risk-based lifecycle with impact assessments, controls, and continual impro — red-team findings and remediation e are a natural fit for its Annex A controls and management review. In 2026 it is increasingly the certification enterprises and procurement teams ask for, and red-teaming platforms now map results to it alongside NIST AI RMF, OWASP, and the EU AI Act.
#### ISO/IEC 42005:2025 — AI System Impact Assessment
Provides a structured process for documenting AI system impacts (including safety/security harms). Use it to frame *what could go wrong and to whom* before scoping a red-team engagement, and to record residual risk after remediation.
---
#### OpenAI
"Red-team your application to ensure protection against ad input, testing the product over a wide range of inputs and user behaviors, both a representative set and those reflective of someone trying to break the model."
#### Google Gemini
"The more you red-team it, the greater your chance of spotting problems, especially those occurring rarely or only after repeated runs."
#### Anthropic
Emphasizes challenges in red teaming AI systems including:
#### Amazon Bedrock
Recommends ad testing before deployment and continuous monitoring in production.
---
<a id="resources-and-references"></a>
NIST AI Resources:
OWASP:
MITRE:
Cloud Security Alliance:
---
Must-Read Papers:
1. "Lessons From Red Teaming 100 Generative AI Products" (Microsoft, 2025)
- arxiv.org/abs/2501.07238
- Real-world insights from Microsoft's red team
2. "OpenAI's Approach to External Red Teaming" (OpenAI, 2025)
- arxiv.org/abs/2503.16431
- Methodology and best practices
3. "Red Teaming AI Red Teaming" (2025)
- arxiv.org/abs/2507.05538
- Critical analysis of current practices
4. "Red-Teaming for Generative AI: Sil or Security Theater?" (2024)
- arxiv.org/abs/2401.15897
- Case study analysis
5. "A Red Teaming Roadmap" (2025)
- arxiv.org/abs/2506.05376
- Comprehensi taxonomy
---
These back the 2025–2026 incidents, statistics, and framework updates added in the June 2026 refresh. /researcher-reported figures are directional, not audited.
---
Open-Source:
Commercial:
Emerging (agent-native):
---
Practice Platforms:
AI Bug Bounty Programs (scope and rewards change — read each program's current rules before testing):
> Bug bounties are a good source of real-world attack ideas and a safe, authorized way for your team to practice. Stay inside published scope — the Disclaimer at the end of this guide applies.
Communities:
Training:
---
Recommended Reading:
---
Essential Reading:
---
<a id="contributing"></a>
We welcome contributions from the community to keep this guide comprehensive and up-to-date!
> 🌐 Beyond this repo: join the Cogensec Global Red Teaming Network to collaborate with practitioners worldwide.
1. Submit Issues: Found an error or have a suggestion? Open an issue
2. Pull Requests: Add new sections, tools, or case studies
3. Share Experiences: Add your red team experiences (anonymized)
4. Update Tools: Keep tool information current
5. Add Resources: Share papers, articles, or tutorials
This guide is a in multiple languages: English · Español · 中文 · Français.
README.md) is the source of truth. Translations are point-in-time snapshots and may lag; when they diverge, English prevails.README.md to README.<lang>.md (e.g., README.de.md), translate prose while leaving code blocks, commands, tool names, badge URLs, links, and <a id="..."> anchors unchanged, and add the new language to every language bar.---
<a id="glossary"></a>
Ad Examples: Inputs crafted to fool AI systems into making incorrect predictions
Ad Training: Training technique using ad examples to impro
Attack Surface: All possible points where an AI system can be attacked
Attack Success Rate (ASR): Percentage of successful attacks attempts
Backdoor Attack: Hidden functionality triggered by specific inputs
Black Box Testing: Testing without internal knowledge of the system
Blue Team: Defensi team
Data Poisoning: Corrupting training data to compromise model
Differential Privacy: Mathematical framework for privacy protection
Emergent Behavior: Unexpected capabilities arising in AI systems
Fine-Tuning: Adapting pre-trained model to specific task
Gray Box Testing: Testing with partial knowledge of system
Guardrails: Safety mechanisms pre harmful outputs
Hallucination: AI generating false or nonsensical information
Jailbreaking: Bypassing AI safety restrictions
Membership Inference: Determining if data was in training set
Model Extraction: Stealing AI model through queries
Model In: Reconstructing training data from model
Multimodal: AI processing multiple types of input (text, image, audio)
Prompt Injection: Manipulating AI through crafted prompts
Purple Team: Collaborative red and blue team approach
RAG (Retrie Generation): AI augmented with external knowledge
Red Team: Offensi team simulating attacks
RLHF (Reinforcement Learning from Human Feedback): Training technique using human preferences
Shadow Model: Surrogate model mimicking target system
Supply Chain Attack: Compromising AI through dependencies
White Box Testing: Testing with full internal knowledge
Zero-Day: Pre unknown
---
<a id="license"></a>
This guide is released under the MIT License. Feel free to use, modify, and distribute with attribution.
---
<a id="acknowledgments"></a>
This guide draws from research and best practices established by:
---
<a id="contact"></a>
For Questions or Feedback:
For Security :
---
<di="center">
---
<di="center">
RedTeamKit is the implementation layer for this guide — 7 production npm packages,
scoped assessment templates, prompt injection payloads, and reporting scaffolds
used in real AI security engagements.
Ship your first assessment this week, not this quarter.
<a href="
<img src=" alt="Get RedTeamKit">
</a>
*$249 one-time · Lifetime updates · Built by the author of this guide*
</div>
---
</div>
> ⚠️ Authorized use only. Use RedTeamKit exclusively on systems you own or are explicitly authorized to test.
---
<di="center">
<a href="
<img src="assets/redteamkit-banner.svg" alt="RedTeamKit — You've read the methodology. Now run it. $249 one-time." width="100%">
</a>
</div>
---
---
<a id="disclaimer"></a>
This guide is for educational and security research purposes. All testing should be conducted:
Unauthorized testing of AI systems may be illegal and unethical. Always obtain explicit permission before conducting red team exercises on systems you do not own or control.
---
<di="center">
Last Updated: October 2026
Star this repository to stay updated with the latest AI red teaming practices!
![Star History Chart]()
</div>
开发语言:未知
Star 数:902
该项目属于红蓝攻防方向的开源资源,代码结构清晰,适合安全研究人员学习参考。项目围绕A comprehensive guide to adversarial testing and security evaluation of AI systems, helping organizations identify vulnerabilities before attackers exploit them.展开,提供了可运行的实现,对理解相关安全机制、工具原理与攻防技术具有较高的研究价值。
从技术实现角度看,此类项目的核心在于对底层原理的深入理解与工程化落地。开发者在研究过程中可以结合官方文档与社区讨论,梳理项目的初始化流程、核心模块职责与数据流转,逐步掌握其中的技术细节与设计思路。
1. 下载源码压缩包,解压到本地环境。
2. 根据项目类型准备对应的运行环境与依赖。
3. 按照 README 中的步骤完成配置与部署。
4. 在隔离的测试环境中运行验证,避免影响生产系统。
本资源来源于开源社区,仅供安全研究、技术学习与合法授权范围内的攻防演练使用,请勿用于任何非法或侵害他人权益的用途。使用本项目产生的一切后果由使用者自行承担。
| 资源标题 | AI-Red-Teaming-Guide - A comprehensive guide to adversarial testing and s |
| 所属分类 | 红蓝攻防 |
| 发布作者 | admin |
| 发布时间 | 2026-10-06 00:37:03 |
| 下载权限 | 免费下载 |
| 附件数量 | 2 个下载链接 |
| 浏览次数 | 497 |
| 讨论数量 | 0 |
| 主题状态 | 正常讨论中 |