Prompt Injection Attack
A security attack targeting large language models in which an attacker embeds text disguised as system instructions within user input or external content, overriding or tampering with the original system prompt to hijack model behavior. The technique is analogous to traditional SQL injection attacks.
Core Facts
Prompt注入(Prompt Injection)是针对大语言模型应用的安全威胁,攻击者通过在输入中嵌入恶意指令试图覆盖系统原有行为约束
Red-teaming originated in the military and cybersecurity fields and, in the AI safety context, has developed into multiple layers including prompt-level attacks, training infrastructure security testing, and model capability risk testing.
Indirect prompt injection attacks plant hidden instructions within normal business data to induce Agents into executing unauthorized operations, representing a security risk at the semantic level rather than the code level.
Timeline (last 90 days)
Granting an AI agent sudo or full shell access is equivalent to directly exposing a large number of privilege-escalation paths to a model that may be induced by prompt injection attacks, which is a common security mistake in practice.
The key similarity between prompt injection and traditional injection attacks is that the system cannot reliably distinguish trusted instructions from untrusted data.
Prompt injection attacks exploit the model's blurring of the boundary between instructions and data, and are difficult to completely block through model-layer filters.
The example finding given in the original was that an attacker used the Arabic ي to bypass the input filter, succeeding seven times out of ten attempts, with the model leaking the system prompt but not calling tools, rated medium severity; the root cause was that the filter compared raw text directly with no normalization at the boundary; after the fix, the same ten attempts yielded zero successes.
OpenClaw's documentation warns that smaller or heavily quantized models are more vulnerable to prompt injection attacks and recommends large models for any agent that uses tools.
Prompt injection attacks exploit large language models' tendency to follow instructions, inducing them to ignore the original system instructions, so security mechanisms that rely on prompts carry the risk of being bypassed.
Prompt injection attacks do not need to exploit software vulnerabilities; they exploit the model's difficulty in distinguishing instructions from data.
Prompt injection is difficult to defend against with traditional firewalls because it does not rely on code vulnerabilities, but exploits the model's tendency to obey natural-language instructions, and its attack surface completely overlaps with normal functional input.
Customer messages should be treated as task data rather than as authorization to modify workflows; this is a direct defense against prompt injection attacks.
Approaches to countering prompt injection attacks include enforcing human approval for sensitive operations, limiting agent permission scopes, and sandboxing execution environments, but no perfect solution currently exists.
5 more timeline events
All Facts (20)
Prompt注入(Prompt Injection)是针对大语言模型应用的安全威胁,攻击者通过在输入中嵌入恶意指令试图覆盖系统原有行为约束
90%VerifiedRed-teaming originated in the military and cybersecurity fields and, in the AI safety context, has developed into multiple layers including prompt-level attacks, training infrastructure security testing, and model capability risk testing.
80%VerifiedIndirect prompt injection attacks plant hidden instructions within normal business data to induce Agents into executing unauthorized operations, representing a security risk at the semantic level rather than the code level.
80%VerifiedThe core security risks faced by AI desktop agents include prompt injection attacks, privilege escalation risks, and irreversible operation risks.
80%VerifiedPrompt injection exploits not a vulnerability in the code parser, but the model's own insufficient awareness of the boundary between instructions and data
75%VerifiedPrompt injection attacks do not need to exploit software vulnerabilities; they exploit the model's difficulty in distinguishing instructions from data.
65%VerifiedIndirect injection refers to attackers hiding malicious instructions in external content that the model will read, such as webpage body text, email body text, or document content.
65%VerifiedBecause large models themselves cannot strictly distinguish between instructions and data, prompt injection is fundamentally very difficult to completely eliminate.
65%VerifiedLarge language models tend to solve problems using general reasoning while lacking strict adherence to domain-specific rules and self-verification capabilities.
65%VerifiedModern AI Agent frameworks require external tools to have deterministic inputs and outputs, predictable exit codes (0 for success, non-zero for failure), and machine-parsable output formats.
65%VerifiedThe principle of indirect prompt injection is that an attacker disguises malicious instructions as normal data, delivers them to the model through a data source trusted by the agent, and induces the model to interpret the data as instructions and execute them.
65%VerifiedThe core security risks of computer use capability include prompt injection attacks and unauthorized access to sensitive local data.
65%UnverifiedPrompt injection attacks exploit large language models' tendency to follow instructions, inducing them to ignore the original system instructions, so security mechanisms that rely on prompts carry the risk of being bypassed.
60%UnverifiedPrompt injection attacks refer to malicious third parties embedding instructions in content processed by an Agent to hijack the Agent's intended behavior.
60%UnverifiedGranting an AI agent sudo or full shell access is equivalent to directly exposing a large number of privilege-escalation paths to a model that may be induced by prompt injection attacks, which is a common security mistake in practice.
50%UnverifiedThe key similarity between prompt injection and traditional injection attacks is that the system cannot reliably distinguish trusted instructions from untrusted data.
50%UnverifiedPrompt injection attacks exploit the model's blurring of the boundary between instructions and data, and are difficult to completely block through model-layer filters.
50%UnverifiedOpenClaw's documentation warns that smaller or heavily quantized models are more vulnerable to prompt injection attacks and recommends large models for any agent that uses tools.
50%UnverifiedPrompt injection is difficult to defend against with traditional firewalls because it does not rely on code vulnerabilities, but exploits the model's tendency to obey natural-language instructions, and its attack surface completely overlaps with normal functional input.
50%UnverifiedCustomer messages should be treated as task data rather than as authorization to modify workflows; this is a direct defense against prompt injection attacks.
50%