# Prompt and Agent Attacks

- **URL:** https://hackindex.io/platforms/ai/exploitation/prompt-and-agent-attacks
- **Path:** AI Platforms > Exploitation
- **Up:** [Exploitation](https://hackindex.io/platforms/ai/exploitation.md)
- **Published:** 2026-03-18
- **Updated:** 2026-03-26

Prompt attacks target the instruction-following behavior of language models. LLMs process user input, system instructions, retrieved context, and tool results as a single token stream. When attacker-controlled content enters that stream, it can override system instructions, redirect agent behavior, and cause the model to perform actions outside its intended scope.

These attacks do not require access to model weights or infrastructure. They operate through the same interface legitimate users interact with, making them difficult to distinguish from normal usage and relevant across every deployed LLM application regardless of the underlying model or hosting environment.

## Prompt Injection and LLM Exploitation Techniques

Prompt injection LLM exploitation covers a range of attack patterns:

- Direct prompt injection to override system instructions through user input
- Indirect injection via retrieved documents, emails, or web content
- Tool abuse to escalate from chat to backend system access
- Memory poisoning to persist across agent sessions
- Jailbreaking and safety filter bypass through persona framing

## Pages in This Section

**Prompt Injection Against LLM Applications** covers direct prompt injection techniques that override system instructions through user input, including role switching, instruction cancellation, and context manipulation to redirect model behavior.

**Tool Abuse and Privilege Escalation Through Agent Tools** covers manipulating agent tool calls to perform unauthorized actions, escalate from user-level interactions to backend system access, and chain tool calls to reach resources outside the intended scope.

**System Prompt Extraction and Bypass** covers extracting the system prompt and any injected instructions through direct requests, behavioral probing, token completion, and encoding bypasses to recover hardcoded credentials and internal configuration.

**Memory Poisoning in Persistent AI Agent Sessions** covers injecting false memories into persistent agent memory stores to corrupt the agent's long-term context, redirect future behavior, and maintain influence across session boundaries.

**Jailbreaking and Safety Filter Bypass** covers bypassing model safety filters through roleplay framing, hypothetical scenarios, persona switching, and token-level manipulation to cause the model to produce restricted outputs.

**Indirect Prompt Injection via External Content** covers embedding malicious instructions in web pages, uploaded documents, email content, and search results that the agent retrieves and processes, causing the injection to execute through a trusted retrieval channel rather than direct user input.

## Steps

- [Indirect Prompt Injection via External Content](https://hackindex.io/platforms/ai/exploitation/prompt-and-agent-attacks/indirect-prompt-injection-via-external-content.md)
- [Jailbreaking and Safety Filter Bypass](https://hackindex.io/platforms/ai/exploitation/prompt-and-agent-attacks/jailbreaking-and-safety-filter-bypass.md): Techniques for bypassing AI safety filters and alignment controls through prompt injection, role-playing exploits, and instruction override attacks.
- [Memory Poisoning in Persistent AI Agent Sessions](https://hackindex.io/platforms/ai/exploitation/prompt-and-agent-attacks/memory-poisoning-in-ai-agent-sessions.md)
- [Prompt Injection Against LLM Applications](https://hackindex.io/platforms/ai/exploitation/prompt-and-agent-attacks/prompt-injection-against-llm-applications.md): Exploiting prompt injection vulnerabilities in LLM-powered applications to manipulate model behaviour, bypass controls, and extract sensitive data or execute unintended actions.
- [System Prompt Extraction and Bypass](https://hackindex.io/platforms/ai/exploitation/prompt-and-agent-attacks/system-prompt-extraction-and-bypass.md): Techniques to extract hidden system prompts and bypass AI instruction constraints through prompt injection, jailbreaking, and context manipulation attacks.
- [Tool Abuse and Privilege Escalation Through Agent Tools](https://hackindex.io/platforms/ai/exploitation/prompt-and-agent-attacks/tool-abuse-and-privilege-escalation-through-agent-tools.md)
