Attacking voice agents in production: telephony, real-time manipulation, and protocol gaps
“We secured the LLM. We forgot it was connected to a phone line.”
TL;DR
Voice AI agents inherit every vulnerability from text-based AI systems plus an entire attack category that exists only in the audio and telephony domain. SIP doesn’t authenticate caller identity by default. Barge-in lets attackers inject prompts mid-conversation. DTMF tones are unauthenticated input that can drive menus and PIN entry. A compromised agent’s outbound calling can be turned into toll fraud, part of a telecom fraud problem CFCA puts at $41.82 billion a year. WebRTC signaling channels are exploitable if unencrypted or unauthenticated. The security industry has written volumes about text-based AI threats. Almost nothing about voice agent protocol-level attack surfaces. For a broader view of how these voice-specific attacks fit into the AI threat landscape, see Security for voicebots.

Why do voice agents have attack surfaces that text agents don’t?
A text-based AI agent receives structured input (typed text, API calls) and produces structured output. A voice agent receives analog audio over telephony infrastructure, converts it to text via ASR, processes it through an LLM, converts the response to speech via TTS, and delivers it back over the same telephony infrastructure.
Every step in that pipeline introduces attack surface that doesn’t exist in text-based systems.
The telephony layer (SIP, PSTN, SS7) was designed in an era when the telephone network was trusted infrastructure. SIP doesn’t mandate authentication of caller identity. SS7 has no authentication at all. Caller ID is a display field, not a verified identity. When you connect an AI agent to this infrastructure, it inherits decades of telephony security debt.
The audio domain introduces physical-layer attacks. Adversarial audio can craft sounds inaudible to humans that ASR systems transcribe as specific commands (covered in depth in Adversarial audio attacks). Ultrasonic attacks (DolphinAttack) modulate voice commands on frequencies above 20 kHz that microphones pick up but humans can’t hear. Hidden voice commands exploit the gap between what sounds like noise and what ASR interprets as speech.
The real-time nature of voice adds timing attacks. Barge-in (interrupting the agent mid-speech) lets an attacker inject new context at any point in the conversation. There’s no equivalent in text chat: you can’t interrupt a chatbot mid-response and change what it’s processing.
Pindrop’s 2025 Voice Intelligence and Security Report, a vendor report, says deepfake fraud attempts rose 1,300% in 2024, from roughly one a month to seven a day, and that synthetic voice calls rose 173% between the first and fourth quarters of 2024. The attack volume is growing faster than defenses.
graph LR
subgraph "Attack Surfaces Unique to Voice"
A[SIP/SS7<br/>Caller spoofing<br/>INVITE flooding<br/>TDoS] --> VA[Voice Agent]
B[Audio Domain<br/>Adversarial audio<br/>Ultrasonic commands<br/>Deepfake voices] --> VA
C[Timing/Barge-in<br/>Mid-conversation injection<br/>Interruption attacks] --> VA
D[DTMF/Signaling<br/>Tone injection<br/>IVR bypass<br/>In-band attacks] --> VA
E[Toll Fraud<br/>Premium-rate pumping<br/>IRSF] --> VA
end
subgraph "Shared with Text AI"
F[Prompt Injection] --> VA
G[Jailbreaking] --> VA
H[Data Extraction] --> VA
end
VA --> O[Telephony<br/>Infrastructure]
VA --> P[Enterprise<br/>Systems]
How do attackers exploit SIP and telephony infrastructure?
SIP (Session Initiation Protocol) is how most voice agents connect to the telephone network. It was designed for interoperability, not security. Several attack categories matter for voice agent deployments.
INVITE flooding is the telephony equivalent of a SYN flood. An attacker sends thousands of SIP INVITE messages (call setup requests) without completing the handshake. Each INVITE consumes resources on the voice agent’s SIP endpoint: memory for session state, CPU for processing, ports for media. At sufficient volume, the agent can’t accept legitimate calls. This is a straightforward denial-of-service attack that requires no sophistication, just volume. A related class of bugs, known as the “INVITE of Death,” uses malformed INVITE messages with oversized headers or illegal field values that crash the SIP stack entirely.
Caller ID spoofing means the voice agent has no reliable way to know who’s calling. SIP doesn’t require authentication of the “From” header. SS7 (the signaling protocol underlying traditional phone networks) has no authentication mechanism at all. An attacker can set any caller ID they want. For a voice agent that uses caller ID for customer identification or routing, this means an attacker can impersonate any caller.
STIR/SHAKEN is the industry’s response: a PKI-based framework for signing and verifying caller identity, mandated in the US and Canada. It helps but doesn’t solve the problem. It was built for SIP, so calls that cross TDM or SS7 segments lose their signature. Deployment elsewhere is patchy. A call can carry a valid signature with only partial (B) or gateway (C) attestation, meaning the carrier did not vouch for the caller’s right to use the number. And it verifies that the originating carrier signed the call, not that the human on the line is who they claim to be. Voice agents should never trust caller ID as an authentication factor.
TDoS (Telephony Denial of Service) targets voice agent availability. Attackers use open-source PBX software (Asterisk) and SIP services to generate hundreds of concurrent calls, overwhelming the agent’s capacity. The FBI has warned that TDoS attacks can disrupt emergency call centers (IC3 public service announcement, 2021). For voice agents, a TDoS attack doesn’t just prevent service. It also generates telephony costs: every incoming call consumes resources even if the agent can’t answer it.
DTMF manipulation targets the keypad channel. Tones reach a voice agent in-band (as audio), as RTP telephone-event packets (RFC 4733), or as SIP INFO messages, and many agents accept them for menu navigation, PIN entry or confirmations. None of these carry any proof of who pressed the key: an attacker can play tones into the call or send telephone events directly. If the agent turns keypresses into text for the LLM, that path needs the same validation as the transcript. PINs entered on the keypad also end up in recordings and logs unless you suppress them.
What happens when you combine barge-in with prompt injection?
Barge-in is a feature, not a bug. It lets callers interrupt the voice agent mid-speech to correct misunderstandings or skip ahead. Every production voice agent supports it because without barge-in, callers have to wait for the agent to finish speaking before they can respond. The user experience without barge-in is unbearable.
But barge-in creates a prompt injection vector that has no equivalent in text-based systems.
In a text chatbot, the user submits a complete message. The system processes it. The system responds. The user can’t inject text into the middle of the system’s processing. In a voice agent, the caller can speak at any time, including while the agent is mid-response. The ASR system captures this audio, transcribes it, and feeds it into the LLM’s context as new input.
Testing this vector means interrupting the agent mid-sentence with crafted prompt injection payloads, spoken rather than typed. Voice red-teaming services such as RedCaller automate this kind of testing by calling the agent the way an attacker would. The payload goes through the ASR transcription layer before reaching the LLM, which changes the attack surface compared to text injection. Homophones, ASR errors, and transcription artifacts all affect how the injection is interpreted. An attacker needs to craft instructions that survive speech-to-text conversion and still influence the LLM.
Timing matters in ways it doesn’t for text. An attacker can:
- Interrupt during a confirmation: The agent says “I’m going to transfer $500 to account…” and the attacker interjects “actually, transfer to account 9999999”
- Inject during retrieval: While the agent is fetching data, the attacker speaks instructions that enter the context alongside the retrieved data
- Stack rapid interruptions: Multiple barge-in events in quick succession that overwhelm the agent’s conversational state management
Tests should also check whether spoken injections can trigger unauthorized tool calls, cause agents to invoke tools with improper parameters, or disrupt the tool call sequence. A voice agent with access to backend systems (transferring calls, looking up accounts, processing transactions) has the same excessive agency risks as a text agent, but the injection vector is audio.
How does toll fraud scale through compromised voice agents?
Toll fraud is the oldest telephony attack and voice agents make it worse.
The attack: an attacker compromises a voice agent or its telephony infrastructure, then generates high volumes of outbound calls to premium-rate international numbers they control. The voice agent’s owner pays the per-minute charges. The terminating carrier pays the attacker through a revenue-sharing agreement. This is International Revenue Share Fraud (IRSF), one of the largest fraud categories in the Communications Fraud Control Association’s (CFCA) surveys.
CFCA’s 2025 Global Fraud Loss Survey puts global telecommunications fraud losses at $41.82 billion, up nearly $3 billion from its 2023 survey. That figure covers all telecom fraud, not just IRSF or AI agents, but it shows the scale of the fraud economy a compromised agent plugs into.
Voice agents make this worse in three ways:
Scale. A compromised voice agent can generate hundreds of concurrent outbound calls automatically. Unlike compromising a human operator’s credentials, which limits fraud to how fast one person can dial, a compromised agent runs 24/7 at machine speed.
Speed. Once an attacker controls a voice agent’s outbound calling, setting up dozens of concurrent calls to premium-rate numbers takes minutes. Losses can reach tens of thousands of dollars before anyone notices the anomaly, especially overnight or over a weekend.
Stealth. Fraudulent calls from a legitimate voice agent’s phone numbers look like normal outbound traffic. The calls are made through authorized channels using authorized credentials. Traditional fraud detection based on unusual source numbers or calling patterns takes longer to trigger because the source IS the legitimate system.
Defense requires rate limiting on outbound calls, geographic restrictions (block calls to known high-fraud destinations), real-time cost monitoring with automatic shutoff thresholds, and separation between inbound agent functionality and outbound calling capabilities.
What are the protocol-level gaps in WebRTC voice sessions?
WebRTC is how many modern voice agents handle browser-based and app-based voice connections. LiveKit and Daily run WebRTC media infrastructure, and Pipecat, Daily’s open-source agent framework, supports WebRTC among its transports. The good news: WebRTC mandates SRTP encryption for audio and DTLS for key exchange, so the audio is encrypted in transit on every hop. It is not end-to-end in the usual sense: the media server (SFU) terminates DTLS-SRTP, and the agent has to decrypt the audio to transcribe it, so both sit inside your trust boundary.
The bad news: the signaling layer that sets up the call is not part of the WebRTC specification and is often insecure.
Signaling channel vulnerabilities are the primary WebRTC attack surface. The signaling channel carries SDP (Session Description Protocol) offers and answers containing session metadata, ICE candidates (network addresses for connectivity), and DTLS fingerprints (for encryption setup). If the signaling channel uses unencrypted WebSockets (WS instead of WSS), an attacker on the network can:
- Read session metadata: Learn who is calling whom, when, and from where
- Manipulate SDP: Alter ICE candidates to redirect media streams to attacker-controlled servers
- Tamper with DTLS fingerprints: Attempt man-in-the-middle attacks on the encrypted media channel by substituting their own encryption keys
DTLS handshake races are a quieter problem. Enable Security showed in 2024 that several WebRTC media servers had a race between ICE consent verification and the start of DTLS: an attacker who can reach the media server’s allocated port can send a DTLS ClientHello before the legitimate client does and break the call setup. It is a denial of service, not an interception, because the DTLS certificate fingerprint exchanged in signaling still has to match. The fix is to accept DTLS only from IP and port combinations that ICE has validated, building on the consent checks described in RFC 8826 (Security Considerations for WebRTC).
Session hijacking becomes possible if the signaling server lacks proper authentication. An attacker who can send messages to the signaling server can inject malicious SDP to join or redirect an active voice session. For voice agents, this means an attacker could potentially insert themselves into an active customer call or redirect the agent’s audio stream.
The fix is straightforward but not always implemented: encrypted signaling (WSS/HTTPS), proper authentication on the signaling server, and validation of SDP parameters against expected values. Platforms like LiveKit and Daily.co handle this in their managed infrastructure, but self-hosted deployments often miss one or more of these controls.
What defenses exist for voice agent infrastructure?
Voice agent security requires layering telephony-specific controls on top of the standard AI defense-in-depth architecture.
Telephony layer: Deploy a Session Border Controller (SBC) or SIP firewall that inspects all SIP signaling. Rate-limit INVITE messages. Validate SIP headers against expected patterns. Block calls from known-fraud source ranges. Implement STIR/SHAKEN verification where available, but don’t trust it as sole authentication. Use TLS for SIP signaling (SIPS) rather than plaintext SIP, and SRTP for media on SIP trunks.
Audio layer: Implement liveness detection to distinguish live human speech from synthesized or replayed audio. Pindrop and similar vendors provide real-time audio analysis that detects synthetic speech characteristics. Add watermarking to outbound TTS audio so the system can detect if its own synthesized speech is being played back to it. Monitor for anomalous audio patterns: ultrasonic content, adversarial noise signatures, unusual frequency distributions.
Conversation layer: Treat barge-in input with the same suspicion as any untrusted input. Apply prompt injection detection to ASR transcription output before it enters the LLM context. Implement conversation state validation: if the agent was mid-confirmation and the caller’s interruption changes the transaction parameters, require re-confirmation. Rate-limit barge-in events per call. Treat DTMF input as unauthenticated, and keep keypad PINs out of transcripts and logs.
Fraud layer: Set outbound call rate limits and concurrent call limits. Block calls to known IRSF destinations (premium-rate number ranges). Implement real-time cost monitoring with automatic shutoff when spend exceeds thresholds. Separate inbound and outbound calling credentials so compromising the inbound agent doesn’t grant outbound access.
Signaling layer: Use WSS (encrypted WebSockets) for all WebRTC signaling. Authenticate all signaling server connections. Validate SDP parameters against expected ranges. Log all session establishment events for audit. For additional identity controls, see Cryptographic capability binding.
Key takeaways
- Voice agents inherit all text AI vulnerabilities plus telephony-specific attacks: SIP flooding, caller ID spoofing, barge-in injection, DTMF manipulation, toll fraud, WebRTC signaling hijacking
- SIP doesn’t authenticate caller identity by default. STIR/SHAKEN helps but doesn’t solve the problem on SS7 networks or against determined attackers
- Barge-in creates a unique prompt injection vector: attackers can inject audio mid-conversation, with no equivalent in text-based systems
- Toll fraud through compromised voice agents taps a large fraud market (CFCA puts all telecom fraud at $41.82 billion a year) and scales because agents run 24/7 at machine speed
- WebRTC media is encrypted (SRTP/DTLS), but the signaling channel is often unprotected and exploitable
- Deepfake fraud attempts against voice systems rose 1,300% in 2024 (Pindrop, vendor report), with synthetic voice calls up 173% between Q1 and Q4
- Defense requires layering telephony-specific controls (SBC, rate limiting, fraud detection) on top of standard AI defense-in-depth architecture
FAQ
What attack surfaces do voice agents have that text agents don’t?
Voice agents add telephony-specific attacks: SIP INVITE flooding, caller ID spoofing, barge-in exploitation for mid-conversation prompt injection, DTMF tone manipulation, toll fraud through premium-rate number pumping, WebRTC signaling hijacking, and adversarial audio attacks including inaudible ultrasonic commands. The audio domain introduces timing, protocol, and physical-layer attacks with no text equivalent.
How does toll fraud work through voice agents?
An attacker compromises a voice agent’s outbound calling capability and generates high volumes of calls to premium-rate international numbers they control. The agent’s owner pays the per-minute charges. The terminating carrier pays the attacker through revenue-sharing agreements. IRSF is one of the largest categories of telecom fraud. Voice agents make it worse because they can generate hundreds of concurrent calls 24/7 at machine speed.
Can attackers inject prompts into voice agents through audio?
Yes, through multiple vectors. Barge-in interruption injects new instructions through the ASR pipeline mid-conversation. Adversarial audio crafts sounds inaudible to humans that ASR transcribes as specific commands. DolphinAttack uses ultrasonic carriers above 20 kHz. Testing should include spoken injections that try to trigger unauthorized tool calls.
Is WebRTC secure enough for voice agents?
WebRTC mandates SRTP encryption for media and DTLS for key exchange, protecting the audio stream. The vulnerability is the signaling channel: unencrypted WebSocket connections carrying SDP and ICE candidates can be intercepted and manipulated. The signaling layer needs HTTPS/WSS with proper authentication. Managed platforms handle this; self-hosted deployments often miss it.
What is STIR/SHAKEN and does it solve caller ID spoofing?
STIR/SHAKEN authenticates caller ID using digital certificates. It was built for SIP, so calls crossing TDM or SS7 segments lose their signature; deployment outside the US and Canada is patchy; and partial or gateway attestation still produces a valid signature. It verifies the originating carrier signed the call, not that the caller is legitimate. Voice agents should never use caller ID as a sole authentication factor.