> ## Documentation Index
> Fetch the complete documentation index at: https://docs.promptguard.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Extended Threat Coverage

> The AI Agent Traps vectors PromptGuard detects beyond standard prompt injection, including agentic and multimodal ones, and which are not yet active.

DeepMind's AI Agent Traps framework sorts environment-driven attacks against autonomous AI agents into six categories and 21 attack vectors. PromptGuard runs detection for **15 of the 21** today. The other six (dynamic cloaking, approval fatigue and the four systemic correlators) are written but not yet active: nothing in the request path calls them, so they never produce a finding. Each is marked below.

## Coverage by category

| Category | Vectors | Running | Detectors |
| - | - | - | - |
| Content Injection | 7 | 6 | HTML/CSS obfuscation, Markdown/LaTeX masking, image stego, audio stego, adversarial patch, font injection. Dynamic cloaking: **not yet active** |
| Semantic Manipulation | 3 | 3 | Framing bias, critic evasion, persona drift |
| Cognitive State | 3 | 3 | RAG poisoning, memory poisoning, few-shot poisoning |
| Behavioural Control | 3 | 3 | Sub-agent spawning, plus the existing prompt-injection (embedded jailbreaks) and data-exfiltration detectors |
| Systemic | 4 | 0 | Fragment reassembly, sybil detection, cascade anomaly, tacit collusion: **not yet active** |
| Human-in-the-Loop | 1 | 0 | Approval-fatigue policy: **not yet active**. The agent policy stores approval-velocity limits, but nothing enforces them |

## Availability by tier

| Tier | Included detectors |
| - | - |
| **Free and Developer** | All single-call text detectors (HTML, Markdown, critic evasion, framing bias, few-shot, RAG, font, memory, sub-agent, persona), plus the two deterministic opt-in detectors: **gibberish** and **language violation**, plus the multimodal detectors (image stego, image adversarial, audio stego) |
| **Enterprise** | Developer's detectors. Cross-tenant correlation (sybil, fragment, cascade, collusion) is entitled on Enterprise with opt-in consent, but is **not yet active** on any plan |

## How detection works

Each detector follows the existing `InjectionDetectionProvider` pattern:

* **Heuristic detectors** (HTML, Markdown, critic evasion, few-shot, font, memory, sub-agent, persona) use regex/pattern matching and run on every request at negligible latency cost.
* **LLM-judge detectors** (framing bias, RAG poisoning) use a heuristic prefilter first, then escalate to an LLM call only when the prefilter fires. This caps LLM cost to the population of suspicious requests.
* **Multimodal detectors** (image/audio stego, adversarial patch) operate on media attachments via the `media` field on the [Guard API](https://docs.promptguard.co/api-reference/guard.md).
* **Systemic correlators** (sybil, fragment, cascade, collusion) are designed to run as a background service that reads from `security_events`, not on individual requests. That service is **not yet running**, so these four produce no findings today.

All detectors are surfaced through the same dashboard, audit log, and webhook infrastructure as existing threat types.

## API integration

The [Guard API](https://docs.promptguard.co/api-reference/guard.md) accepts two new optional fields for agent-traps detection:

```json theme={"system"}
{
  "messages": [{"role": "user", "content": "..."}],
  "direction": "input",
  "retrieved_context": [
    {"content": "...", "source": "doc-id-123"}
  ],
  "media": [
    {"type": "image", "mime_type": "image/png", "base64": "..."}
  ]
}
```

Both fields are optional and backwards-compatible.

### What a media part can now cost you

On Free, Developer and Enterprise the multimodal detectors are live on the `media` field, so a request carrying a base64 attachment can come back with `decision: "block"` and a `threat_type` of `image_stego`, `image_adversarial` or `audio_stego`: outcomes that were not reachable before. When that happens the event metadata carries `media_provider` and `media_part_index`, naming exactly which attachment to drop or re-encode; you do not have to guess which of several parts tripped it.

> [!WARNING]
>
> Parts that supply only a `url` are **not fetched server-side** and therefore are not scanned. If you want an attachment inspected, send it inline as `base64`. A `url`-only part passing is not a verdict of safe, it is an absence of one.

## Further reading

For the academic research behind these threat categories, see the [PromptGuard blog](https://promptguard.co/blog).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.