[KongchangAI]
Concept提示注入 / Prompt Injection攻击

Prompt Injection

Prompt injection is an AI security attack technique that exploits the architectural limitation of large language models in distinguishing between data and instructions. By crafting specific inputs, attackers can bypass a model's safety constraints and redirect its behavior, drawing an analogy to traditional SQL injection attacks in conventional software systems.

Core Facts

Timeline (last 90 days)

Nov 24

In such scenarios, the risk of prompt injection is particularly prominent: if malicious instructions are embedded in files being read or in command output, they may induce the model to perform unauthorized operations, so the permission layer must be enforced independently of the model's judgment.

Unverified50%
Nov 24

The key difference between activation steering and prompt injection is that the former directly intervenes in the model's internal representations, while the latter only modifies the input text.

Unverified50%
Nov 10

In tool-calling agents, minimizing permissions and adding human confirmation for high-risk operations are common defenses against prompt injection; the scheme is essentially a combined practice of these two measures.

Unverified50%
Oct 28

Recommendations for defending against Prompt Injection and Tool Poisoning include: personally read the tool descriptions of new Servers, remove any suspicious instructions found, re-check after updates, least privilege, secondary confirmation for sensitive operations, and whitelist restrictions on data sources.

Unverified50%
Oct 24

In AI agents, instructions and data are merged into the same plain-text stream, and the model has no parser to determine whether the data is trustworthy, which is the root of prompt injection.

Unverified50%
Oct 23

Prompt Injection is an attack method against large language models, first systematically described in 2022 by security researcher Simon Willison; its principle is similar to SQL injection, and it is one of the biggest unsolved problems in the AI Agent field.

Unverified50%
Oct 23

The difficulty of defending against prompt injection lies in the inherently mixed input of language models (system prompts, user requests, and external data all enter the same context window), and there is currently no general technical means to fully isolate them; input filtering, least privilege, and secondary confirmation of sensitive operations can only reduce risk, not eliminate it.

Unverified50%
Oct 22

Mitigations such as adding a safety reminder to the model are inherently fragile and cannot fundamentally fix prompt injection.

Unverified50%
Oct 22

The key similarity between prompt injection and traditional injection attacks is that the system cannot reliably distinguish trusted instructions from untrusted data.

Unverified50%
Oct 22

Common variants of prompt injection include direct injection, indirect injection and jailbreak.

Unverified50%

40 more timeline events

All Facts (20)

Verified

Compared to traditional scripts, AI Agents are unpredictable and carry inherent risks such as hallucinations, context misinterpretation, and susceptibility to prompt injection attacks.

90%
Verified

Prompt Injection is divided into two categories: direct injection and indirect injection; direct injection plants malicious instructions through user input, while indirect injection conceals malicious instructions in external content that the AI may read.

90%
Verified

Indirect prompt injection can hide malicious instructions in external data sources (such as web pages or documents), triggering the attack automatically when an agent reads them.

90%
Verified

Prompt injection is an attack technique targeting large language models, where attackers embed malicious instructions in the model's input data to hijack the model's normal behavior.

90%
Verified

Prompt注入(Prompt Injection)是针对大语言模型应用的安全威胁,攻击者通过在输入中嵌入恶意指令试图覆盖系统原有行为约束

90%
Verified

OWASP has listed prompt injection as the top security risk among the ten major security risks for LLM applications.

90%
Verified

Prompt injection attacks are a serious threat facing local AI Agents, as maliciously crafted content in files processed by the Agent may induce it to execute dangerous operations.

90%
Verified

Prompt Injection is a security attack method targeting AI applications, analogous to SQL injection in traditional web development.

85%
Verified

The root cause of Prompt Injection is that large models cannot structurally distinguish between "system instructions" and "user data," as both are presented as natural language text at input time.

80%
Verified

MCP tools are essentially arbitrary code execution, indirect prompt injection is a real-world threat, and attack vectors can be hidden in resource content rather than in direct user input.

80%
Verified

The root cause of prompt injection is that large language models lack a native mechanism to distinguish between the instruction layer and the data layer.

80%
Verified

Prompt injection is essentially an architectural flaw in which large language models cannot distinguish data from instructions, analogous to traditional SQL injection in which the database engine confuses data with SQL instructions.

80%
Verified

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.

80%
Verified

Prompt injection attacks induce AI agents to execute malicious operations by embedding text disguised as system instructions in code comments, documentation, web content, or even file names.

80%
Verified

In a Prompt Injection attack, an attacker can craft a special input to induce the Agent to perform unintended operations.

80%
Verified

AI systems have introduced entirely new dimensions of security risk, including erroneous decisions caused by model hallucinations, prompt injection attacks, training data poisoning, and AI agent privilege abuse.

80%
Verified

Memory poisoning is an evolved form of prompt injection attack, in which an attacker induces an AI to write false information into long-term memory storage, thereby influencing the system's subsequent interactions with all users.

75%
Verified

An effective prompt injection defense system typically requires a combination of input content filtering, instruction source tracing, and pre-execution intent verification, as relying solely on the model's own safety training is insufficient to resist adversarial examples.

75%
Verified

Prompt injection has become one of the most closely watched attack surfaces in the field of agent security

75%
Verified

Guardrail is a mechanism for validating and filtering model inputs and outputs, capable of intercepting sensitive information before input enters the model or before output is returned to the user.

75%

Source Articles