Macha
AI Support & Agents

Prompt Injection

Définition

Prompt injection is a security attack where malicious instructions are hidden in user input or external content to manipulate an AI system into ignoring its original instructions or performing unintended actions.

Aussi connu sous : prompt hackingjailbreakinjection attack

How it works

Because LLMs process instructions and data in the same text stream, an attacker can embed commands like "ignore your previous instructions" in a chat message, a support ticket, or a web page the agent reads. If the system can't distinguish trusted instructions from untrusted content, it may follow the injected command.

Indirect prompt injection is especially dangerous for AI agents that fetch external content or call tools, since the malicious instruction can arrive through retrieved data rather than directly from the user.

Why it matters for support

An AI support agent connected to real systems could be tricked into leaking data, bypassing policy, or taking harmful actions. Defenses include guardrails, input filtering, least-privilege tool permissions, and keeping the system prompt separate from and authoritative over user content.

Questions fréquentes

What is the difference between prompt injection and a jailbreak?

A jailbreak tricks a model into bypassing its safety rules; prompt injection more broadly overrides the system's intended instructions, often via untrusted input or external content. They overlap but injection includes indirect attacks through retrieved data.

How do you prevent prompt injection?

Separate trusted instructions from untrusted input, apply guardrails and input filtering, limit tool permissions to least privilege, and require confirmation for sensitive actions.

Passez à l'action

Macha est une couche d'agents IA qui se pose sur le help desk que vous utilisez déjà, Zendesk, Freshdesk, Front, Intercom ou Gorgias.

Démarrer l'essai