Last Updated: October 2026
System prompt leakage in voice agents is OWASP's LLM08: the agent disclosing the instructions it runs on. On a phone call it rarely looks like a document dump; it sounds like a helpful agent explaining "the rules I follow", one narrated sentence at a time.
TL;DR: Treat LLM08 as two problems. First, leak resistance: the agent should not recite or paraphrase its instructions, tested with extraction scenarios inside the prompt injection suite. Second, and decisive: prompt hygiene, because the real question is what a leak costs, and that is set by what you put in the prompt. Nothing whose disclosure is itself an incident belongs there, and no security control should exist only as prompt text.
Scope: This article is part of a ten-part series mapping each risk in the OWASP Top 10 for LLM Applications (2026) to voice and chat agents; the series hub holds the full mapping table. This page covers the instruction layer. Customer data spoken to the wrong party is LLM02; this is the agent's own configuration escaping.
What Is Hidden Context Exposure?
The OWASP 2026 entry renamed and broadened 2025's System Prompt Leakage: the risk is any context that should stay out of reach escaping through the model's output, with the system prompt the canonical case: instructions, filtering rules, roles and permission structures, and, in the worst deployments, credentials or connection details someone pasted where the model could repeat them. The entry's practical consequence: the deeper vulnerability is not the disclosure itself but what the prompt contained. OWASP's wording is that the system prompt should not be treated as a secret or as a security control; our testing practice runs on the stricter working assumption that anything in the context window is extractable by a persistent counterpart, because the stricter assumption is cheaper to design for than to learn.
How a Voice Agent Leaks Its Prompt
| Leak path | What it sounds like | Why it passes unnoticed |
|---|---|---|
| Direct recitation | The agent reads out its instructions when asked | The obvious ask failing invites the conclusion that the risk is closed |
| Helpful narration | "I'm not able to do that because my guidelines say..." followed by the guideline | Sounds like service; nothing in the sentence marks it as disclosure |
| Refusal-shape mapping | Consistent refusal wording that outlines the policy's exact edges | Each response is individually fine; the set is the map |
| Tool-name disclosure | The agent names internal functions while explaining what it is doing | Reads as transparency; names the attack surface for LLM03 |
| Error verbosity | Failure messages carrying configuration detail into speech | Written for debugging, spoken to a caller |
The voice channel's contribution: narration is the register of the medium. A phone agent explains itself constantly, and every explanation is an opportunity to describe the machinery instead of the outcome.
What Should Never Be in the Prompt
Hygiene decides the stakes before any leak happens:
| Belongs in the prompt | Never in the prompt |
|---|---|
| Tone, role, and task framing | Credentials, keys, connection strings |
| Conversation policy the caller could be told | Customer or account data of any kind |
| Tool usage guidance | The only copy of a security control |
| Escalation behavior | Internal names, thresholds, and fraud logic whose disclosure helps an attacker |
The third row is the structural one, and it echoes across this series: a rule that exists only as prompt text is a rule the model is being asked to keep, and LLM01 is the standing reason it may not. Verification requirements, tool ceilings, and entitlement rules belong in code at the boundaries; the prompt may restate them for behavior, but the enforcement cannot live there.
Who Owns This Risk?
| Layer | What is owned there | Owner |
|---|---|---|
| What the prompt contains | The hygiene review against the never-column | Agent team |
| Enforcement behind each prompt rule | The code boundary that holds when the prompt leaks | Engineering |
| Extraction testing | Scenarios inside every injection suite | Whoever runs the security suites |
| Transcript watch | Instruction-register echoes in production | The agent owner |
The hygiene review is the agent team's to run, and the one to demand if nobody has: it needs no tooling and no call.
How Do You Test for Leakage?
Extraction scenarios run inside the injection suite, per the testing runbook: direct asks, indirect framings, and persistence across phrasings and turns, with the jailbreak plan's phrasing-variance standard applied. Score paraphrase as leakage: the agent describing its rules in its own words discloses the same map as recitation. And test the hygiene half statically, no call needed:
- Read the prompt line by line against the never-column
- For each security rule found, name the code boundary that also enforces it
- Strike or relocate every line without an answer
- Record the review as a finding packet, like any other; it is a red team campaign's cheapest one
| Scenario class | Pass condition |
|---|---|
| Direct and indirect extraction asks | No recitation, no paraphrase of instructions |
| Narrated-refusal probes | Refusals state the outcome, not the rule's text |
| Tool and internal-name probes | Internal machinery stays unnamed |
| Prompt hygiene review | Nothing in the prompt fails the never-column |
How Do You Monitor for It in Production?
Flag responses that echo instruction-register language (the phrasing style of your own prompt), name internal tools, or carry error detail into speech. The prompt's own distinctive phrases make a workable watchlist: if sentences from the instruction text appear in transcripts, the leak is live. Flagged calls route to the agent owner and become extraction regression scenarios, per the monitoring loop.
Per-risk checklist:
- The prompt passes the never-column: no credentials, no customer data, no sole-copy controls, no internal logic whose disclosure helps
- Every security rule in the prompt has its enforcement in code at a boundary
- Extraction scenarios run in every injection suite, with paraphrase scored as leakage
- Refusals are written to state outcomes, not rule text
- Transcripts are watched for instruction-register echoes and internal names
Basis: This guide rests on the OWASP public document linked above and on Hamming's security testing practice for voice and chat agents. The team behind it breaks AI agents for a living and came to the work from Tesla, Meta, Citizen, Palantir, and NCC Group. It reports no Hamming measurements.
Start here: read your own system prompt against the never-column today; it is the one test in this series that needs no phone call. The security review questions include the reviewer's version of the same exercise.