ASD Advisory: Unfixable Prompt Injection Risks in LLMs and AI Agent Frameworks LangChain, AutoGPT, CrewAI
The Australian Signals Directorate (ASD) has warned that prompt injection vulnerabilities in Large Language Models (LLMs) are fundamentally unfixable because natural language cannot be fully sanitized. Adversaries exploit this via "Ignore All Previous Instructions" payloads, DAN jailbreaks, and chain-of-thought manipulation to bypass system directives. This risk is amplified in autonomous agent frameworks like LangChain, AutoGPT, and CrewAI, where injections can trigger unauthorized tool execution, privilege escalation, or "goal-loop" recursive exploits. ASD mandates a defense-in-depth posture, emphasizing runtime sandboxing (e.g., gVisor), strict principle of least privilege, and continuous telemetry monitoring of prompt-response pairs to mitigate inevitable exploitation attempts in critical infrastructure and government services.
- Vulnerability Mechanics & Attack Vectors
- Exploits the model's prioritization of user-supplied natural language over hardcoded system instructions.
- Common payloads include DAN (Do Anything Now) jailbreaks and role-play-based prompt engineering.
- Adversaries employ chain-of-thought manipulation to bypass regex-based pattern matchers.
-
Injection triggers are increasingly embedded in API calls, data grounding queries, or benign chat interfaces.
-
Expanding Attack Surface in AI Agents
- Frameworks like LangChain, AutoGPT, and CrewAI expand the attack surface through recursive self-prompting and orchestration.
- Misconfigured tool-use capabilities allow injected commands to trigger unauthorized code execution or sensitive API calls.
-
Cohesity RedLab identifies "goal-loop" exploits, where malicious instructions drive agents into harmful, recursive execution cycles.
-
Quantifiable Risk and Systemic Impact
- IBM X-Force reported a ~150% year-over-year increase in prompt injection attempts throughout 2023-24.
- Controlled red-team exercises demonstrate successful injection rates of 20-40% against unhardened LLM deployments.
- ASD estimates up to 30% of AI-enabled services in Australian critical infrastructure could be compromised without harness controls.
-
The average cost of a data breach involving AI-mediated exfiltration is estimated at USD $4.2M (Ponemon Institute 2024).
-
Mitigation & Defense-in-Depth Strategies
- Deploy harness controls including runtime sandboxing (gVisor/Firecracker) and strict principle of least privilege.
- Implement specialized guardrail frameworks such as NeMo Guardrails, Guardrails AI, or Microsoft Presidio.
- Utilize technical constraints including token limits, stop sequences, and reinforcement learning (RLHF) for alignment.
- Maintain comprehensive logging and telemetry for all prompt-response pairs to enable post-hoc forensic analysis.
Related posts
- iTnews — ASD says prompt injection in AI cannot be fixed
- Ibm
- Cohesity
- Dataguidance
- Nbh
- Medium
- Youtube
- Securitybrief
- Govtechreview
- Armis