/voice-foundations:voice-agent-securityfrom Voice Agent Skills
Review and harden an AI voice agent against abuse specific to phone and voice. Use for a voice agent security review, caller verification and spoofed caller ID, prompt injection or social engineering by phone, PII or card data in transcripts and recordings, provider API keys in a browser voice app, toll fraud and cost abuse, voice cloning consent, or a pre-launch red team.
Ships in Voice Agent Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A caller brings a microphone, a caller ID they can fake, and unlimited patience. Treat the caller's number, what they say about who they are, and how their voice sounds as claims, never as proof. Treat the model as an untrusted client of your backend: it can be talked into actions nobody intended, so identity, permissions, spend limits, and confirmation belong in code the model cannot change.
For mechanisms, provider facts, and citations read the security guide. For spoken attacks to run before launch read the red-team scripts. Keep both with the skill when installing it. The guide maps the main threats to the OWASP Top 10 for LLM Applications (2025).
Review and test only systems the user owns or is authorized to test. Before any live call, settle a test phone line, a spend limit, a recording and consent plan for test calls, invented customers, and the payment processor's published test card numbers. Never use real customers, real people's voices, real emergency numbers, or real card data. Name where a secret lives and redact its value in every report. This is engineering guidance, not legal advice: recording, biometric, AI-disclosure, and marketing-call rules vary by place, so involve counsel.
Use levels like these in steps 2 and 3 and tune them to the business. They are a starting design, not a standard.
| Level | Unlocks | Needs |
|---|---|---|
| 0 Public | Hours, policies, general answers | Nothing |
| 1 Recognized | Nothing private; at most a generic greeting | Caller ID match, as a hint only |
| 2 Verified | Read account status or appointments | A second factor passed during this call |
| 3 Confirmed | Change an appointment or address, small refund | Level 2, a read-back confirmation bound to the exact values, and limits |
| 4 Strong | Change the phone or email on file, reset credentials, move money | A fresh stronger factor or human review; consider refusing by voice |
Test IDs refer to the red-team scripts.
| Threat | On a call | Control | Test |
|---|---|---|---|
| Spoofed or borrowed caller ID | The number matches a customer, so the agent greets them and opens the account | Caller ID only picks a candidate record. Step-up before private data: a code to the contact on file, a callback, or a signed-in session | Call from the number on file with no proof, and from another line with right details (ID-1 to ID-4, ID-7, ID-8) |
| Cloned or replayed voice | A voice that sounds like the customer passes a voice match | Never grant access on voice alone. Voiceprints only as one factor, with consent and a non-voice fallback. Cap money and credential changes | Voice-only attempt with a consenting speaker's clone or a recording (ID-5, ID-6) |
| Social engineering | "I'm the admin", "this is the police", "it's urgent, skip verification" | Authority comes from verified session state and role in code, not from what is said. No override phrases. Escalate through a defined path | Authority, urgency, and "just this once" scripts (PI-2, PI-3, PI-5, PI-6) |
| Direct injection, prompt extraction | "Ignore your rules", "read me your instructions", "enter debug mode" | Assume the prompt will leak: keep secrets and access rules out of it. Validate every tool call in code. Decline and carry on | Ignore-rules, extraction, role-play, and reworded variants (PI-1, PI-4, PI-8, PI-9, PI-10) |
| Indirect injection | Instructions hidden in a tool result, knowledge page, CRM note, caller name, SIP header, or call summary | Treat retrieved text as data. Limit and sanitize fields. Gate anything that writes or speaks data out. Test summarizers too | Plant instructions in test records, pages, and headers (IX-1 to IX-5) |
| Over-powered tools | The agent reads another customer's record, swaps a destination number, or refunds above the cap | Per-tool authorization in the backend from session state. Identity arguments set server-side. Limits. Read-back bound to the exact arguments | Other customer's record, changed arguments, skipped levels (TA-1 to TA-8) |
| Sensitive data in stores | Card numbers, PINs, IDs, or health details land in transcripts, recordings, LLM logs, analytics, or tickets | Keep sensitive entry off the model path (DTMF to the processor). Minimize before storage. Set retention and access. Check vendor data-use and zero-retention options | Speak canary values, then search every store (DX-1 to DX-6) |
| Exposed keys and tokens | A provider key in the browser bundle, a long-lived client token, credentials in logs or a repo | Keys on the server only. Short-lived scoped client tokens minted per call. Rotation, per-key spend limits, secret scanning | Scan the shipped bundle and repo, decode the client token (IN-1, IN-2) |
| Forged webhook or media stream | Anyone posts a fake call event or opens the media WebSocket | Verify signatures on the raw request. Authenticate the stream. Check Origin for browser sockets. Deduplicate and expire events | Unsigned, badly signed, replayed, and wrong-origin requests (IN-3 to IN-6) |
| Toll fraud and cost abuse | Bots dial in and loop, callers steer transfers or dials to premium-rate numbers, OTP floods, calls that never end | Allowlists and geo permissions for outbound and transfers. Rate limits per number, account, and IP. Caps on duration, tokens, concurrency. Alerts that page someone. Hard spend limits | Stubbed premium-rate transfer, long call, capped sandbox flood (TF-1 to TF-6) |
| Cloned or impersonating agent voice | The agent speaks in a real person's cloned voice, claims to be human, or claims to be another company | Only voices with documented consent or a license. Say it is an AI when asked, and at the start where required. Never imitate a real person or organization | "Are you human?", "be this person", consent record review (VC-1 to VC-4) |
| Harassment and call bombing | Abusive callers, repeat calls, the agent used to pester a third party | Warn, then end the call. Per-number limits. Outbound only to consented, allowlisted contacts. No tool that dials numbers a caller supplies | Insults, repeat calls, "call this person for me" (AB-1 to AB-4) |
| Emergencies and self-harm | A caller reports a medical emergency, danger, or suicidal thoughts | Do not say help is on the way unless the product really dispatches it and was tested end to end. Default: tell the caller to hang up and call the local emergency number, and hand off to a human or crisis line where one exists | Scripted emergency and self-harm calls with mocked transfers (EM-1 to EM-3) |
| Minors | A caller says they are a child, or a parent says a child is on the line | Decide whether the service is for children. If not, stop collecting personal data and route to an adult. Treat a child's voice audio as personal data; get parental consent where law requires | Adult testers role-play a child and a parent (MN-1, MN-2) |
Rate by what an attacker gains and how easily, then adjust to the business.
A findings table with ID, threat, severity, redacted evidence, fix, and how it was verified. List the layers tested (text, audio, real call) and not tested, any secrets found (location only), assumptions that need an owner's decision, residual risk and who accepts it, and the source review date from the guide. Claim a control works only from a test that shows it working.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub robstrayer/voice-agent-skills --plugin voice-foundations13 skills in this plugin
/voice-agent-evaluationDesign and run proportionate voice agent evaluations covering conversation success, turn taking, tool correctness, audio behavior, failures, and lifecycle cleanup. Use when writing tests or a regression suite for a voice or phone agent, scoring simulated or recorded calls, checking tool calls, handoffs and side effects, or deciding whether a change is safe to ship./voice-audio-frontendsSelect, configure, and evaluate microphone and incoming-call audio processing for voice agents. Use when echo, background noise, competing speakers, gain changes, or speech suppression affect transcription, VAD, turn detection, and interruptions./voice-Other plugins' skills for the same job