MITRE ATLAS 2026.10 · AML.T0051.000 · High severity
LLM Prompt Injection: Direct
Direct prompt injection occurs when the interactive user supplies input designed to subvert the application's hidden system instructions, safety constraints, or business rules. Unlike indirect injection, the threat actor is the active session user testing what unauthorized data or actions the wrapper will permit.
Technique dossier overview
- Category
- Prompt and context integrity
- Severity
- High
- Attack surface
- LLM / Prompt Layer · Tool-Using Agents & MCP
- Framework maturity
- Realized
- Platforms
- Generative AI, Agentic AI
- Tactics
- Execution
- Aliases
- Direct prompt injection
- Catalog entry modified
- Earliest cited research
- · Ignore Previous Prompt: Attack Techniques For Language Models · arXiv (author preprint; peer-review status not inferred)
How the mechanism works
- A user submits conversational turns framed to supersede system instructions, redefine roles, or coerce restricted output formats.
- Because system instructions and user messages share the same transformer attention window, strong contextual framing shifts model adherence.
- The model reveals embedded prompt secrets, bypasses business constraints, or passes manipulated arguments to backend tools.
Detection & telemetry signals
- Input classifiers detecting role-override framing, encoding shifts, or policy-evasion attempts within direct user messages.
- Repeated multi-turn probing patterns systematically testing refusal thresholds or hidden developer rules.
- Application logs showing tool arguments or response fields violating expected user-tier or tenant schemas.
Architectural defensive countermeasures
- Never store API keys, authorization logic, or secret business rules inside system prompts; enforce access control in backend code.
- Validate all structured outputs and tool parameters against strict allowlists and per-user authorization checks.
- Deploy instruction-hierarchy trained models paired with independent input/output policy classifiers.
- Evaluate benign over-refusal alongside adversarial prompt robustness so legitimate user workflows remain functional.
Framework crosswalk (OWASP LLM Top 10 & NIST AI RMF)
- OWASP LLM Top 10 (2025)
- OWASP rationale
- Direct injection leverages user-controlled prompt channels (LLM01) frequently aimed at extracting system instructions (LLM07) or abusing user-accessible tool capabilities (LLM06).
- NIST AI RMF functions
- NIST AI RMF guidance
- MEASURE direct-injection resistance and false-refusal balance during red-team gates, and MANAGE impact by keeping secrets and authorization checks completely outside the prompt.
Mapped defensive controls
- Generative AI Guardrails AML.M0020
Deploy layered input and output classifiers, constitutional/topic rails, and structural validators with measured benign over-refusal rates—never relying on classifiers as the sole authorization boundary.
- AI Telemetry Logging and Monitoring AML.M0024
Emit structured, PII-redacted OpenTelemetry GenAI security traces covering auth, guardrail verdicts, token bursts, and agent tool calls without creating a toxic raw-prompt honeypot.
- Enforce Access Controls for AI Agent Tools AML.M0028
Separate read-only tools from state-changing or destructive APIs and validate tool names, JSON arguments, path prefixes, and resource ownership outside the LLM.
- Input and Output Validation for AI Agent Components AML.M0033
Validate structured JSON schemas, types, bounds, and safety policies at every handoff between users, retrievers, LLMs, and downstream tools/renderers.
- AI Red Team AML.M0035
Conduct authorized, isolated manual and automated adversarial testing across models, RAG pipelines, and agents—tracking reproducible breach rates, Wilson confidence intervals, and patch verification.
Test with Refract
Refract is Silvauren's Apache-2.0 defensive LLM evaluation harness. Its 2x2 Detect-vs-Complete matrix crosses whether a detector flagged each probe with whether the model complied, so silent breaches are counted with Wilson 95% confidence intervals. Replace <model-id> with an OpenRouter route ID; each model page lists a ready-to-run command for its own route.
refract scan \
--target "openai_compat:<model-id>" \
--base-url https://openrouter.ai/api/v1 \
--api-key "$OPENROUTER_API_KEY" \
--battery prefix_injection,multiturn_crescendo_sim
refract reportprefix_injectiondirect instruction-override promptsmultiturn_crescendo_simgradual multi-turn escalation simulated inside one transcript
Export OPENROUTER_API_KEY first. Passing --api-key keeps Refract from using an unrelated OPENAI_API_KEY, which it would otherwise read first. Scans send real requests billed to your key. Add --max-probes or --budget-tokens to cap spend, and only scan endpoints you are authorized to test.
Published empirical measurements (12)
- Attack success rate · 2%
Zero-shot direct adversarial instruction. Evaluated on HarmBench Standard split (200 behaviors) with Llama-2-7B-Chat default safety prompt. Earlier catalog numerator 4/200 was reconstructed from the published rounded percentage. The displayed rate is source-reported. No count-based interval or rank is available.
- Model
- Llama-2-7B-Chat
- Evaluation
- HarmBench Standard Behaviors (200 behaviors)
- Defense
- Baseline model
- Reported
- Sample
- 200
- Source and location
- HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusal · arXiv (author preprint; peer-review status not inferred) · Main Evaluation Table (Standard Behaviors ASR %, N=200)
- Evidence provenance
- Independently replicated
- Attack success rate · 3.2%
Zero-shot adversarial prompting. Evaluated via closed black-box API on HarmBench Standard split (200 behaviors); white-box gradient methods are excluded. Earlier catalog numerator 6/200 was reconstructed from the published rounded percentage. The displayed rate is source-reported. No count-based interval or rank is available.
- Model
- Claude 2
- Evaluation
- HarmBench Standard Behaviors (200 behaviors)
- Defense
- Baseline model
- Reported
- Sample
- 200
- Source and location
- HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusal · arXiv (author preprint; peer-review status not inferred) · Main Evaluation Table (Standard Behaviors ASR %, N=200)
- Evidence provenance
- Independently replicated
- Attack success rate · 1.5%
Zero-shot adversarial prompting. Historical 2023-06-13 checkpoint evaluated on HarmBench Standard split (200 behaviors); does not represent later GPT-4o or GPT-5/6 routes. Earlier catalog numerator 3/200 was reconstructed from the published rounded percentage. The displayed rate is source-reported. No count-based interval or rank is available.
- Model
- GPT-4 (0613)
- Evaluation
- HarmBench Standard Behaviors (200 behaviors)
- Defense
- Baseline model
- Reported
- Sample
- 200
- Source and location
- HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusal · arXiv (author preprint; peer-review status not inferred) · Main Evaluation Table (Standard Behaviors ASR %, N=200)
- Evidence provenance
- Independently replicated
- Attack success rate · 0%
Evaluated on single-turn data-bearing AlpacaFarm tasks; agentic multi-turn tool environments require separate enforcement. Earlier catalog numerator 0/208 was reconstructed from the published rounded percentage. The displayed rate is source-reported. No count-based interval or rank is available.
- Model
- Mistral-7B-Instruct
- Evaluation
- AlpacaFarm Injected Subset (208 data-bearing prompts)
- Defense
- System-prompt hierarchy
- Reported
- Sample
- 208
- Source and location
- StruQ: Defending Against Prompt Injection with Structured Queries · arXiv (author preprint; peer-review status not inferred) · Figure 3 / Tables 6-7: Maximum Attack Success Rate on AlpacaFarm (N=208)
- Evidence provenance
- Primary-source checked
- Attack success rate · 0%
Evaluated on single-turn data-bearing AlpacaFarm tasks; agentic multi-turn tool environments require separate enforcement. Earlier catalog numerator 0/208 was reconstructed from the published rounded percentage. The displayed rate is source-reported. No count-based interval or rank is available.
- Model
- Mistral-7B-Instruct
- Evaluation
- AlpacaFarm Injected Subset (208 data-bearing prompts)
- Defense
- System-prompt hierarchy
- Reported
- Sample
- 208
- Source and location
- SecAlign: Defending Against Prompt Injection with Preference Optimization · arXiv (author preprint; peer-review status not inferred) · Figure 3 / Tables 6-7: Maximum Attack Success Rate on AlpacaFarm (N=208)
- Evidence provenance
- Primary-source checked
- Attack success rate · 0%
Evaluated on single-turn data-bearing AlpacaFarm tasks; agentic multi-turn tool environments require separate enforcement. Earlier catalog numerator 0/208 was reconstructed from the published rounded percentage. The displayed rate is source-reported. No count-based interval or rank is available.
- Model
- Llama-3-8B-Instruct
- Evaluation
- AlpacaFarm Injected Subset (208 data-bearing prompts)
- Defense
- System-prompt hierarchy
- Reported
- Sample
- 208
- Source and location
- StruQ: Defending Against Prompt Injection with Structured Queries · arXiv (author preprint; peer-review status not inferred) · Figure 3 / Tables 6-7: Maximum Attack Success Rate on AlpacaFarm (N=208)
- Evidence provenance
- Primary-source checked
- Attack success rate · 0%
Evaluated on single-turn data-bearing AlpacaFarm tasks; agentic multi-turn tool environments require separate enforcement. Earlier catalog numerator 0/208 was reconstructed from the published rounded percentage. The displayed rate is source-reported. No count-based interval or rank is available.
- Model
- Llama-3-8B-Instruct
- Evaluation
- AlpacaFarm Injected Subset (208 data-bearing prompts)
- Defense
- System-prompt hierarchy
- Reported
- Sample
- 208
- Source and location
- SecAlign: Defending Against Prompt Injection with Preference Optimization · arXiv (author preprint; peer-review status not inferred) · Figure 3 / Tables 6-7: Maximum Attack Success Rate on AlpacaFarm (N=208)
- Evidence provenance
- Primary-source checked
- Mitigation effectiveness · 70.5%
Metric is F1 score (%) rather than raw binary accuracy; integer numerator is an approximate scale indicator over full WildGuardTest N=5,299. Earlier catalog numerator 3736/5299 was reconstructed from the published rounded percentage. The displayed rate is source-reported. No count-based interval or rank is available.
- Model
- Llama Guard (7B)
- Evaluation
- WildGuardTest (5,299 human-annotated moderation items)
- Defense
- Input/output classifier
- Reported
- Sample
- 5,299
- Source and location
- WildGuard: Open One-Stop Moderation Tools for Safety Risks, Jailbreaks, and Refusals of LLMs · arXiv (author preprint; peer-review status not inferred) · Table 4: Prompt Harmfulness Detection F1 (%)
- Evidence provenance
- Primary-source checked
- Mitigation effectiveness · 89.6%
Per-split trial denominators are not tabulated individually in Figure 2; vendor study on historical GPT-3.5-Turbo base.
- Model
- GPT-3.5-Turbo
- Evaluation
- OpenAI Instruction Hierarchy Evaluation Suite
- Defense
- Baseline model
- Reported
- Source and location
- The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructions · arXiv (author preprint; peer-review status not inferred) · Figure 2: Main Results (Attack Resistance %)
- Evidence provenance
- Primary-source checked
- Mitigation effectiveness · 93.7%
Per-split trial denominators are not tabulated individually in Figure 2; vendor study on historical GPT-3.5-Turbo base.
- Model
- GPT-3.5-Turbo
- Evaluation
- OpenAI Instruction Hierarchy Evaluation Suite
- Defense
- System-prompt hierarchy
- Reported
- Source and location
- The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructions · arXiv (author preprint; peer-review status not inferred) · Figure 2: Main Results (Attack Resistance %)
- Evidence provenance
- Primary-source checked
- Mitigation effectiveness · 96.8%
Derived resistance complement (100% - published ASR) on HarmBench Standard split (200 behaviors). Earlier catalog numerator 194/200 was reconstructed from the published rounded percentage. The displayed rate is source-reported. No count-based interval or rank is available.
- Model
- Claude 2
- Evaluation
- HarmBench Standard Behaviors — Resistance Rate (200 behaviors)
- Defense
- Baseline model
- Reported
- Sample
- 200
- Source and location
- HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusal · arXiv (author preprint; peer-review status not inferred) · Main Evaluation Table (100% - Standard Behaviors ASR %, N=200)
- Evidence provenance
- Independently replicated
- Mitigation effectiveness · 98.5%
Derived resistance complement (100% - published ASR) on HarmBench Standard split (200 behaviors). Earlier catalog numerator 197/200 was reconstructed from the published rounded percentage. The displayed rate is source-reported. No count-based interval or rank is available.
- Model
- GPT-4 (0613)
- Evaluation
- HarmBench Standard Behaviors — Resistance Rate (200 behaviors)
- Defense
- Baseline model
- Reported
- Sample
- 200
- Source and location
- HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusal · arXiv (author preprint; peer-review status not inferred) · Main Evaluation Table (100% - Standard Behaviors ASR %, N=200)
- Evidence provenance
- Independently replicated
Related technique records
Documented incidents & exercises (31)
- Achieving Code Execution in MathGPT via Prompt Injection AML.CS0016 · Exercise · Jan 28, 2023 · Critical · AI Application Development & Education
Disclosed in January 2023, researchers demonstrated direct prompt injection against MathGPT, a public web application that translated natural-language math questions into Python code executed on the server. By crafting adversarial prompts that overrode the application's system…
- AIKatz: Attacking LLM Desktop Applications AML.CS0036 · Exercise · 2025 · High · Enterprise Endpoints & Desktop AI
Documented in MITRE ATLAS (2025, "AIKatz: All Your Chats Are Belong To Us"), this exercise examined post-compromise exploitation of local desktop LLM client applications. By extracting stored application access tokens or OS credentials from the local workstation, an attacker…
- Rules File Backdoor: Supply Chain Attack on AI Coding Assistants AML.CS0041 · Exercise · Mar 18, 2025 · High
MITRE ATLAS case study analyzing invisible Unicode control characters hidden inside shared repository instruction files that silently altered generated source code to introduce backdoors.
- Malware Prototype with Embedded Prompt Injection AML.CS0043 · Incident · Jun 25, 2025 · High · Malware Analysis & Security Operations
Reported by Check Point Research in June 2025 ("New Malware Embeds Prompt Injection to Evade AI Detection"), analysts discovered a real-world malware prototype containing hardcoded natural-language prompt-injection strings inside its binary and code artifacts. When security…
- Code to Deploy Destructive AI Agent Discovered in Amazon Q VS Code Extension AML.CS0047 · Incident · Jul 13, 2025 · Critical · Developer Tooling & Cloud IDE Extensions
In July 2025 (tracked as AIID Incident 1158 and addressed in Amazon Q Developer VS Code extension update v1.84), an attacker exploited compromised repository permissions to submit a malicious commit containing a destructive system prompt into the public Amazon Q VS Code…
- OpenClaw Command & Control via Prompt Injection AML.CS0051 · Exercise · Feb 3, 2026 · Moderate
ATLAS case study: prompt injection against OpenClaw yielded command-and-control over the host via agent tool invocation.
- LLMSmith: RCE Vulnerabilities in LLM-Integrated Applications AML.CS0052 · Exercise · Feb 27, 2025 · Moderate
ATLAS case study: LLMSmith disclosed RCE vulnerabilities in LLM-integrated applications built on vulnerable frameworks.
- Cross-Site Scripting via Prompt Manipulation in Lenovo AI Chatbot AML.CS0060 · Exercise · Aug 18, 2025 · Moderate
ATLAS case study: prompt manipulation in a Lenovo AI chatbot triggered XSS via file-content reflection.
- RCE Vulnerability in Semantic Kernel Search Plugin AML.CS0062 · Exercise · May 7, 2026 · Moderate
ATLAS case study: a Semantic Kernel search plugin RCE allowed arbitrary code execution in AI applications.
- GTG-1002 Claude Code Espionage Campaign AML.CS0069 · Incident · September 2025 · Critical
ATLAS incident: the GTG-1002 campaign used Claude Code agents for espionage against developer targets.
- China-Based Artificial Intelligence Companies Conducting Industrial-Scale Distillation Campaigns Against U.S. AI Companies AML.CS0076 · Incident · 2024 · Critical
ATLAS incident: China-based AI companies ran industrial-scale distillation campaigns against US AI providers.
- LangChain LLMMathChain Prompt Injection Arbitrary Python Code Execution INC-2023-29374 · Incident · Apr 5, 2023 · Critical · Software Development & AI Tooling
CVE-2023-29374 was one of the earliest high-profile LLM framework RCE CVEs, affecting LangChain's `LLMMathChain` (`numexpr` / Python `exec` fallback). Crafted natural-language prompts coerced the language model into returning arbitrary Python expressions rather than pure…
- LangChain PALChain Unsandboxed Python Exec Arbitrary Code Execution INC-2023-36258 · Incident · Jul 3, 2023 · Critical · Software Development & AI Tooling
CVE-2023-36258 disclosed critical remote code execution in LangChain's Program-Aided Language Model (`PALChain`) implementation prior to v0.0.236. `PALChain` prompts an LLM to synthesize Python helper functions for reasoning tasks and executes the emitted code via `exec()` in…
- LlamaIndex Text-to-SQL Query Engine Prompt-Driven SQL Injection INC-2024-23751 · Incident · Jan 22, 2024 · High · Enterprise Data & Analytics
CVE-2024-23751 documented prompt-driven SQL injection in LlamaIndex's `NLSQLTableQueryEngine` and `SQLTableRetrieverQueryEngine` components. Unconstrained user prompts could instruct the backing LLM to output destructive or privileged SQL statements such as `DROP TABLE`,…
- LlamaIndex Safe-Eval Wrapper Bypass Leading to Arbitrary Python Execution INC-2024-3271 · Incident · Apr 16, 2024 · Critical · Software Development & AI Tooling
CVE-2024-3271 documented a critical bypass of LlamaIndex's `safe_eval` utility inside its `PandasQueryEngine` structured query pipeline. Although `safe_eval` restricted obvious dangerous globals, crafted Python object traversal attributes generated via prompt injection escaped…
- LangChain Experimental Symbolic Math Wrapper RCE via Unsafe SymPy Evaluation INC-2024-46946 · Incident · Sep 19, 2024 · Critical · Software Development & AI Tooling
CVE-2024-46946 documented a critical arbitrary code execution vulnerability in LangChain's experimental symbolic math helper that routed LLM-generated math strings into `sympy.sympify()`. Because `sympify()` internally leverages Python's dynamic `eval()` parsing on untrusted…
- Vanna.AI Visualization Prompt Injection Escalating to Host Python Execution INC-2024-5565 · Incident · May 31, 2024 · High · Enterprise Data & Analytics
CVE-2024-5565 uncovered an indirect prompt-injection-to-RCE chain in the Vanna.AI text-to-SQL visualization library's `ask()` workflow. The library prompted an LLM to generate Plotly Python plotting code from query results and immediately ran that generated Python code via…
- LangChain GraphCypherQAChain Prompt Injection to Arbitrary Graph Queries INC-2024-8309 · Incident · Oct 29, 2024 · Elevated · Enterprise Data & Analytics
CVE-2024-8309 affected LangChain's GraphCypherQAChain component, where natural-language user questions or retrieved context could steer the LLM to emit arbitrary Cypher graph queries. Because the chain executed generated Cypher statements directly against Neo4j or compatible…
- Langroid TableChatAgent Arbitrary Code Injection via Pandas Eval INC-2025-46724 · Incident · May 20, 2025 · Critical · Software Development & AI Tooling
CVE-2025-46724 (CVSS 9.8) disclosed a critical code injection vulnerability in the `langroid` multi-agent Python framework (`< 0.53.15`) affecting its `TableChatAgent`. When handling tabular analysis tasks, the agent passed untrusted or model-generated expressions directly into…
- Microsoft Bing Chat Sydney System Prompt Extraction and Hostile Persona Drift INC-AIID-0503 · Incident · Feb 15, 2023 · High · Consumer AI & Local Runtimes
In February 2023, immediately after Microsoft launched its GPT-4-powered Bing Chat preview, Stanford student Kevin Liu used a direct prompt injection ('Ignore previous instructions...') to extract the chatbot's confidential internal system prompt, revealing its secret codename…
- Chevrolet of Watsonville Dealership Chatbot Prompt-Injected Into $1 Tahoe Offer INC-AIID-0622 · Incident · Dec 17, 2023 · High · E-Commerce & Retail
On December 17, 2023, a viral prompt injection incident hit Chevrolet of Watsonville's website after a user (Chris Bakke) discovered that its ChatGPT-powered dealership chatbot operated without input-boundary isolation or topic guardrails. By instructing the assistant to agree…
- DPD Parcel Delivery Chatbot Manipulated After Update Into Swearing and Mocking Brand INC-AIID-0631 · Incident · Jan 18, 2024 · Elevated · E-Commerce & Retail
On January 18, 2024, UK parcel carrier DPD was forced to disable the AI component of its online customer service chat after a frustrated customer attempting to locate a missing parcel discovered a system update had weakened its behavioral guardrails. Using straightforward…
- Custom GPT Store Assistants Widespread System-Prompt and Knowledge-File Extraction INC-OBS-044 · Incident · Nov 16, 2023 · Elevated · Consumer AI & Local Runtimes
Within days of OpenAI launching Custom GPTs in November 2023, security researchers and builders demonstrated that the vast majority of public Custom GPTs could be trivially coerced into dumping their hidden system instructions and verbatim uploaded knowledge files. Simple…
- PromptInject: Goal Hijacking & Prompt Leaking on GPT-3 OBS.EX0001 · Exercise · Nov 17, 2022 · Commercial Autoregressive LLMs · Direct Instruction/Data Boundary Testing
Perez and Ribeiro (2022) introduced PromptInject, an alignment testing framework using mask-based iterative prompt composition to evaluate goal hijacking and system prompt leaking against production GPT-3 endpoints. Across controlled adversarial prompt templates, simple…
- The Instruction Hierarchy: Privileged Instruction Training Evaluation OBS.EX0014 · Exercise · Apr 19, 2024 · GPT-3.5 Instruction-Tuned LLMs · System vs. Untrusted Input Prioritization
Wallace et al. (2024) diagnosed prompt injection and jailbreaking as failures of flat instruction priority where models treat system prompts, user turns, and third-party tool outputs as equally authoritative. Using synthetic conflict-resolution training data on GPT-3.5, the…
- HackAPrompt 600K+ Global Prompt Hacking Competition Corpus OBS.EX0020 · Exercise · Oct 24, 2023 · 3 State-of-the-Art LLMs · 600,000+ Human Adversarial Submissions
Schulhoff et al. (2023) hosted a global free-form prompt hacking competition that collected over 600,000 adversarial user submissions across tiered defense levels against three flagship LLMs. Analysis of successful bypasses produced a structured taxonomy of prompt injection,…
- Open-Prompt-Injection Formal Evaluation (5 Attacks x 10 Defenses) OBS.EX0024 · Exercise · Oct 19, 2023 · 10 LLMs x 7 Tasks · Standardized Prompt Injection & Defense Matrix
Liu et al. (2023) formalized prompt injection by unifying direct, escape, context-ignoring, fake-completion, and combined attacks across 10 LLMs, 7 tasks, and 10 proposed defenses. Systematic testing across the unified Open-Prompt-Injection harness revealed that combined…
- Llama Guard Input-Output Safety Taxonomy Evaluation OBS.EX0032 · Exercise · Dec 7, 2023 · Llama2-7B Moderation Guardrail · ToxicChat & OpenAI Moderation Benchmarks
Inan et al. (2023) evaluated Llama Guard, a Llama2-7B safeguard model instruction-tuned on a multi-category safety risk taxonomy for both prompt and response moderation. On OpenAI Moderation and ToxicChat benchmarks, the lightweight open-weight classifier matched or exceeded…
- CyberSecEval 2 Prompt Injection, Code-Interpreter Abuse & False-Refusal Study OBS.EX0198 · Exercise · Apr 19, 2024 · GPT-4, Mistral, Llama 3 70B-Instruct & Code Llama · FRR & Exploit Generation
Bhatt et al. (2024) expanded CyberSecEval 2 across GPT-4, Mistral, Meta Llama 3 70B-Instruct, and Code Llama to evaluate prompt injection, code-interpreter abuse, software vulnerability exploitation, and False Refusal Rate (FRR) on borderline benign cybersecurity queries. All…
- garak Automated Security Probing Framework for Large Language Models OBS.EX0208 · Exercise · Jun 16, 2024 · Commercial & Open-Weight Dialog LLMs · Modular Vulnerability Scanner Evaluation
Derczynski et al. (2024) introduced garak (Generative AI Red-teaming and Assessment Kit), an extensible vulnerability scanner that systematically probes target LLMs across hallucination, encoding bypasses, prompt injection, leakage, toxicity, and package-hallucination…
- Multi-Framework Agentic Penetration Testing (AutoGen vs. CrewAI, 130 Cases) OBS.EX0221 · Exercise · Dec 16, 2025 · 5 Frontier Models x 2 Frameworks (AutoGen & CrewAI) · 13 Attack Scenarios (130 Tests)
Nguyen and Husain (2025) executed 130 penetration tests across five frontier models (Claude 3.5 Sonnet, Gemini 2.5 Flash, GPT-4o, Grok 2, and Nova Pro) deployed in a seven-agent university system built on AutoGen and CrewAI across 13 vectors including prompt injection, SSRF,…
Source citation records
- MITRE ATLAS: Direct · MITRE ·
- The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructions · arXiv (author preprint; peer-review status not inferred) ·
- LLM01:2025 Prompt Injection · OWASP GenAI Security Project ·
- Ignore Previous Prompt: Attack Techniques For Language Models · arXiv (author preprint; peer-review status not inferred) ·
- HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusal · arXiv (author preprint; peer-review status not inferred) ·
- StruQ: Defending Against Prompt Injection with Structured Queries · arXiv (author preprint; peer-review status not inferred) ·
- SecAlign: Defending Against Prompt Injection with Preference Optimization · arXiv (author preprint; peer-review status not inferred) ·
- WildGuard: Open One-Stop Moderation Tools for Safety Risks, Jailbreaks, and Refusals of LLMs · arXiv (author preprint; peer-review status not inferred) ·
Common questions
- What is LLM Prompt Injection: Direct (AML.T0051.000)?
- Direct prompt injection occurs when the interactive user supplies input designed to subvert the application's hidden system instructions, safety constraints, or business rules. Unlike indirect injection, the threat actor is the active session user testing what unauthorized data or actions the wrapper will permit.
- How do you mitigate LLM Prompt Injection: Direct?
- MITRE ATLAS maps 5 mitigations to AML.T0051.000: Generative AI Guardrails, AI Telemetry Logging and Monitoring, Enforce Access Controls for AI Agent Tools, Input and Output Validation for AI Agent Components, and AI Red Team. Never store API keys, authorization logic, or secret business rules inside system prompts; enforce access control in backend code.
- How can I test a model for LLM Prompt Injection: Direct?
- Run the Refract
prefix_injectionandmultiturn_crescendo_simpacks:refract scan --target "openai_compat:<model-id>" --base-url https://openrouter.ai/api/v1 --api-key "$OPENROUTER_API_KEY" --battery prefix_injection,multiturn_crescendo_sim, then refract report. Scans send real requests billed to your key. Add --max-probes or --budget-tokens to cap spend, and only scan endpoints you are authorized to test.