LLM08 Hidden Context Exposure in Voice Agents: The Agent That Narrates Its Own Rules

Sumanyu Sharma
Sumanyu Sharma
Founder & CEOAn industry expert reviewed this article for accuracy and quality., Voice AI QA Pioneer

Hamming protects 10K+ voice agents in production.

· Updated · 6 min read

LLM08 Hidden Context Exposure in Voice Agents: The Agent That Narrates Its Own Rules

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 pathWhat it sounds likeWhy it passes unnoticed
Direct recitationThe agent reads out its instructions when askedThe 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 guidelineSounds like service; nothing in the sentence marks it as disclosure
Refusal-shape mappingConsistent refusal wording that outlines the policy's exact edgesEach response is individually fine; the set is the map
Tool-name disclosureThe agent names internal functions while explaining what it is doingReads as transparency; names the attack surface for LLM03
Error verbosityFailure messages carrying configuration detail into speechWritten 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 promptNever in the prompt
Tone, role, and task framingCredentials, keys, connection strings
Conversation policy the caller could be toldCustomer or account data of any kind
Tool usage guidanceThe only copy of a security control
Escalation behaviorInternal 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?

LayerWhat is owned thereOwner
What the prompt containsThe hygiene review against the never-columnAgent team
Enforcement behind each prompt ruleThe code boundary that holds when the prompt leaksEngineering
Extraction testingScenarios inside every injection suiteWhoever runs the security suites
Transcript watchInstruction-register echoes in productionThe 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:

  1. Read the prompt line by line against the never-column
  2. For each security rule found, name the code boundary that also enforces it
  3. Strike or relocate every line without an answer
  4. Record the review as a finding packet, like any other; it is a red team campaign's cheapest one
Scenario classPass condition
Direct and indirect extraction asksNo recitation, no paraphrase of instructions
Narrated-refusal probesRefusals state the outcome, not the rule's text
Tool and internal-name probesInternal machinery stays unnamed
Prompt hygiene reviewNothing 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.

Frequently asked questions

The agent's own hidden context escaping through conversation, with the system prompt the canonical case: the 2026 OWASP edition renamed System Prompt Leakage to Hidden Context Exposure to cover all of it. The agent disclosing the instructions it runs on: reciting them, paraphrasing them while refusing, outlining them through consistent refusal shapes, or naming its internal tools while narrating. New in OWASP's 2026 edition, and on a phone call it usually sounds like helpfulness rather than a breach.

It is a map for the next attempt: refusal wording to steer around, tool names to target, escalation rules to exploit. And anything secret that was pasted into the prompt is now disclosed, which is why this guide treats hygiene, not leak resistance, as the decisive control.

Credentials or connection details, customer data of any kind, the only copy of any security control, and internal thresholds or fraud logic whose disclosure helps an attacker. The belongs-versus-never table in this guide is the review artifact, and it can be run today without a single test call.

Extraction scenarios inside the prompt injection suite: direct and indirect asks, narrated-refusal probes, and tool-name probes, across phrasings and turns. Score paraphrase as leakage, since the agent describing its rules in its own words discloses the same map as recitation.

Yes. The pass standard in this guide is that refusals state outcomes, not rule text: the caller learns what will not happen, never the guideline's wording or the machinery behind it. Helpful narration is the voice channel's main leak path precisely because it does not sound like one.

Transcript responses echoing the prompt's own distinctive phrasing, internal tool names appearing in speech, and error detail carried into spoken responses. The prompt's phrases make a workable watchlist, and every flagged call becomes an extraction regression scenario.