Planning skill that interrogates your use case before any code is written, then recommends the right Twilio Conversations stack — ConversationRelay, Memory, Intelligence, Orchestrator, TaskRouter — and the implementation skills to follow.
Twilio Security Hardening
Summary
Harden a Twilio integration against credential leaks and fraud — API keys instead of auth tokens, webhook signature validation, geo-permissions, SMS pumping prevention and zero-downtime credential rotation.
Features
- Auth token vs API key vs access token comparison with production guidance
- Webhook signature verification and request validation patterns
- SMS pumping prevention, geo-permissions and account isolation
- Zero-downtime credential rotation procedure
Install This Skill
Add this skill to your favorite AI agent in a few steps.
Skill Content
Usage Instructions
Learn how to use this skill with different AI agents.
Description
Security on a telephony account is not a one-time setup step, because the failure modes cost real money: a leaked credential is an attacker sending your messages, and an unvalidated webhook is anyone able to drive your application. This skill covers the account-level decisions and the application-level patterns that prevent both.
The credential section is the one worth reading first. It lays out auth tokens (full account access, revocable only by rotating), API key and secret pairs (scoped and individually revocable — the right default for production, CI/CD and server-side code), and short-lived access tokens for client-side Voice, Video and Conversations SDKs. It flags a specific trap: rotating your auth token invalidates every integration authenticating with AccountSID:AuthToken and breaks webhook signature validation, while leaving SK-prefixed API keys untouched. Start with API keys and you rarely have to touch the auth token at all.
From there it covers request validation and webhook signature verification, account-level compliance posture for PCI DSS and HIPAA, fraud prevention including SMS pumping and geo-permissions, account isolation patterns, a list of common mistakes, and a zero-downtime credential rotation procedure.
Part of Twilio's official Skills set, MIT-licensed in the twilio/ai repository. Twilio Skills are a Public Beta product and not covered by Twilio's support terms or SLA.
Related Skills
Foundational fal.ai skill that drives the genmedia CLI across 1200+ hosted generative model endpoints — smart routing, schema inspection, async queues and agent-parseable JSON.
Official AWS skill for authoring, deploying and debugging CDK stacks — construct patterns, bootstrap, drift, resource import and the CloudFormation errors that trap people.
The official Genkit skill for Node.js and TypeScript — flows, Dotprompt files, tools and the beta agent API with sessions, interrupts and branching.