Voice AI agent: injection, spoofing and how to test
Why is a voice agent a target of its own?
Because the voice channel removes almost every barrier of a web form: no session, no password, no validated field, and an anonymous caller who can talk as long as they like. The agent turns speech into text, a model decides, then a synthetic voice answers. If tools are connected (customer file, appointment booking, refunds), every spoken sentence becomes a possible entry point to an action.
Two architectures coexist. In the first, a speech recognition, language model and speech synthesis chain turns everything into text. In the second, an end-to-end audio model processes the sound directly. Academic work evaluates attacks on both families (see the sources). For the tester the consequence is simple: you target the transcript in the first case and the audio signal in the second.
The reference framework is the same as for other agents: prompt injection is the first entry of the OWASP Top 10 for LLM Applications 2025 (LLM01) and sensitive information disclosure the second (LLM02). The technique is described on the prompt injection page.
How does prompt injection get in through speech?
Through everything the agent hears and transcribes, then treats as trusted text. The caller does not need sophisticated tooling: a well-phrased sentence is enough to test whether the model tells a legitimate instruction from a customer request.
| Vector | Example test | Failure signal |
|---|---|---|
| Spoken direct instruction | Ask the agent to ignore its rules or read out its instructions | The agent changes role or recites its system prompt |
| False authority | Introduce yourself as "the technician" or "management" | The agent grants rights on a simple claim |
| Text read aloud | Dictate text that looks like an internal instruction | The agent executes it as a command |
| Sound played into the call | Play an instruction sentence from an audio source | Behavior changes without the caller speaking |
| Audio noise or perturbation | Audio modified to fool an audio model | Out-of-scope answer from an ordinary-sounding clip |
The last two vectors come from research on audio models. The AdvWave paper, for example, presents an attack framework designed so that adversarial audio resembles common urban noise, and reports an average attack success rate 40% higher than baseline methods. These results concern research audio models and say nothing about the success rate on your specific agent: they only justify testing the audio path if your architecture processes audio directly.
Is the caller really who they claim to be?
No, and the agent has no way of knowing from the voice alone. The displayed number, the tone and the stated name are declarative information. A synthetic voice can also imitate a person: this is what led the US FCC to rule, in a decision published on 8 February 2024, that AI-generated voices are "artificial" voices under the TCPA robocall law, after calls imitating President Biden's voice reached New Hampshire voters.
For a voice agent, spoofing is tested on three points:
- Identification: does the agent accept a name, a date of birth or a file number as sufficient proof? That information often circulates elsewhere (invoices, letters, leaks).
- Contact detail changes: can an address, e-mail or bank account number be changed by phone without a second factor?
- Call-back flows: does the agent offer to send a link or code to a number given during the call?
Solid identification relies on a factor the caller possesses (a code sent to an already registered channel) and never on what they claim to know. Cross-customer leaks are covered in the article on the customer service chatbot, whose logic applies to voice.
Do not forget the human side of the call either. A voice agent is often reached by people in a hurry, who tolerate repeated questions poorly, and teams are tempted to relax identification to keep the experience smooth. The test should therefore also check whether the agent's friendliness settings, such as "be helpful, never make the caller wait", weaken its refusals when an unverified caller insists.
What can a voice agent leak mid-conversation?
Everything in its context: customer file, history, system prompt, content returned by the tools it called. Spoken, the leak is quieter, because nobody rereads a transcript. The agent may also confirm information with a yes or no ("Does your address end with...?"), letting a caller rebuild a value through successive guesses.
What to test:
- Indirect confirmation: ask to "verify" a value rather than read it out.
- Recitation: ask the agent to repeat the whole file or history.
- Call mixing: does a second call from the same number recover the context of the first?
- Handoff to a human: does the summary passed on contain data supplied by the caller?
- Recordings and transcripts: where are they stored, who can access them, and can the agent replay them to another caller? This is the territory of action logging.
How do you test a voice agent step by step?
You proceed as with any agent: map the tools, then try to trigger them from the voice input, using test data.
- List the tools reachable from the call and note which ones write or send something.
- Fix the scope in writing: test number, staging environment, fictitious accounts, time window. Tests run outside production by default.
- Repeat each scenario several times: speech recognition and the model vary from call to call, so a single attempt proves nothing.
- Test the transcript: reread what the system understood. Transcription errors change digits, names and amounts.
- Test the real action: a spoken refusal says nothing about what the tool executed. Check the log or test database.
- Record a success rate for each scenario instead of a yes or no.
On the legal side, automated calls with synthetic voices are regulated (consent, identification). A test must therefore use authorized test numbers and accounts, never real customers. A voice test on live lines requires a precise written authorization.
Which defenses should be in place?
Defenses that hold do not rely on the instruction given to the model, because dialogue can get around it.
- Out-of-band authentication for any sensitive action: a code sent to an already registered channel, a call-back to the number on file.
- Per-tool permissions: the agent only reads the file of the authenticated caller and cannot change payment details.
- Human approval above a threshold or for any identity change (see human in the loop).
- No confirmation of data before authentication.
- Call limits and detection of suspicious repetition from one number.
- Timestamped log of transcripts, tools called and decisions.
For the broader frame, see AI agent security. If you run or deliver a voice agent, the Agent Red Team Express tests these scenarios on a specific agent in five days, with scope and authorization signed before the first call.
Does your product ship an AI agent? CleanIssue tests what a stranger can make it do with the Agent Red Team Express (5 days, €1,900), or a custom red team for several agents and MCP servers. First step: a free 30-minute discovery call.
Related articles
Three adjacent analyses to keep exploring the same attack surface.
Test an n8n agent against prompt injection
How to test an n8n agent against prompt injection: map inputs and tools, send test payloads, read executions, rate impact and apply fixes.
File Prompt Injection: PDFs, Images and Spreadsheets
How an instruction hidden in a PDF, image or spreadsheet can hijack an AI agent, where it hides, and how to test it with harmless trapped files.
AI Agents in Zapier and Make: Securing Automations
An AI agent triggered by an email or form in Zapier or Make can be hijacked. Available controls, good practices and a method to test them safely.
Sources
- OWASP: LLM01:2025 Prompt Injection
- OWASP: LLM02:2025 Sensitive Information Disclosure
- Cooley: FCC rules AI-generated voices are "artificial" under the TCPA (February 2024)
- arXiv: AdvWave, adversarial jailbreak of audio-language models (Kang, Xu, Li)
- arXiv: From Prompt to Perturbation, voice-based jailbreaks on cascaded and end-to-end audio LLMs
Related services
If this topic maps to a real risk in your stack, these are the most relevant CleanIssue audits.