Twilio — Auth Token
Twilio Auth Tokens authenticate API requests for SMS, voice, and messaging services. Exposure enables unauthorized messaging billed to your account.
Immediate Action Required
Deleting a leaked credential from a repository does not invalidate it. Assume it has already been copied. Follow the revocation steps below immediately, then investigate for unauthorized access.
What Is This Credential?
Twilio Auth Tokens authenticate API requests for SMS, voice, and messaging services. Exposure enables unauthorized messaging billed to your account.
Permissions Granted
- Send SMS and MMS messages
- Make and receive voice calls
- Access message history and logs
- Manage phone numbers and subaccounts
Exposure & Blast Radius
- Unauthorized SMS/MMS messages billed to your account
- Spam or phishing campaigns using your phone numbers
- Access to message history containing sensitive data
- Phone number hijacking
Immediate Response Steps
Rotate the Auth Token
Go to Twilio Console → Account → API keys & tokens → Rotate Auth Token.
Review message logs
Check Twilio Console → Monitor → Logs for unexpected messages or calls.
Check billing for anomalies
Review Twilio Console → Billing for unexpected charges.
Update all consumers
Update environment variables in all services using the Twilio API.
Revocation vs Rotation
Revocation
Rotate the Auth Token in Twilio Console. The previous token is immediately invalidated.
Rotation
Use the 'Rotate' function in Twilio Console → Account → API keys & tokens.
Grace Period & Session Persistence
Grace Period
None. Auth Token rotation is immediate.
Session Persistence
Twilio API calls are stateless. No session invalidation required.
Investigation Checklist
- Review message logs for unauthorized SMS/MMS
- Check call logs for unexpected voice calls
- Review billing for cost anomalies
- Look for new phone number purchases
- Check for new subaccount creation
Recovery Steps
- Update all environment variables with the new Auth Token
- Consider switching to API Keys instead of Auth Token for better security
- Set up usage triggers to alert on unusual activity
Prevention
- Use API Keys instead of the primary Auth Token
- Set usage triggers and spending limits
- Store credentials in a secrets manager
- Validate webhook signatures to prevent request forgery
Sources & Evidence
Always verify critical instructions with official provider documentation before taking action. Provider behavior may change without notice.
Found an issue with this playbook?
If these instructions are incorrect, outdated, or missing important information, please report it so we can improve the playbook.
Report an Issue on GitHub