twilio-security-hardening
Skill by twilio
Secures Twilio applications against credential leaks, spoofed webhooks, SMS pumping and compliance gaps. It is written for developers building or deploying Twilio apps.
Install twilio-security-hardening
Built from the published package, never by AI.
git clone --depth 1 https://github.com/twilio/ai /tmp/ai && mkdir -p ~/.claude/skills && cp -r /tmp/ai/skills/twilio/twilio-security-hardening ~/.claude/skills/twilio-security-hardeningRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install twilio-security-hardening in Claude Code
git clone --depth 1 https://github.com/twilio/ai /tmp/ai && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/ai/skills/twilio/twilio-security-hardening ~/.gemini/antigravity-cli/skills/twilio-security-hardeningAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install twilio-security-hardening in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
Twilio Security Hardening is a skill that guides an AI assistant through securing Twilio applications against common attacks. It covers credential management, including the differences between API keys, Auth Tokens and Access Tokens. It also covers webhook request validation with X-Twilio-Signature checks using the SDK validator. The skill explains PCI DSS and HIPAA account requirements, SMS pumping prevention, geo-permissions and account isolation with sub-accounts.
The skill also describes a zero-downtime credential rotation workflow and recommends a secrets manager for injecting credentials at runtime. Its guidance includes warnings such as PCI Mode being irreversible and account-wide. It is aimed at developers building or deploying Twilio apps. It points to related Twilio skills for setup, webhook architecture, account structure and phone intelligence.
Written from the project's SKILL.md and checked against it.
What it can do
- Credential managementCompares API keys, Auth Tokens and Access Tokens and recommends scoped API keys for production.
- Webhook signature validationVerifies X-Twilio-Signature on incoming webhook requests using the SDK validator.
- PCI DSS guidanceExplains PCI Mode and suggests a separate sub-account for payment-related calls.
- HIPAA requirementsLists steps to take before handling Protected Health Information, including executing a BAA.
- SMS pumping preventionLayers Verify Fraud Guard, Lookup checks, geo-permissions and rate limiting against fraud.
- Geo-permissionsRestricts which countries can receive SMS or voice traffic from the account.
- Credential rotationDescribes a zero-downtime workflow for rotating API keys and Auth Tokens.
What you need
- Twilio account
- Twilio API keys or Auth Token
- Node.js (SDK examples)
- Python (example)
Try asking
- Validate Twilio webhook signatures in my Express /sms route
- Explain the difference between Twilio API keys and Auth Tokens
- Create a zero-downtime plan to rotate my Twilio API keys
Good to know
- PCI Mode is irreversible and applies to the whole account.
- Rotating the Auth Token breaks integrations and webhook signature validation.
- Twilio does not publish most-targeted SMS pumping prefixes.
- HIPAA use requires a Business Associate Agreement with Twilio.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/twilio/twilio-security-hardening/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to twilio-security-hardening
All alternatives →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
Compare with function_health, windows-privilege-escalation or github-actions-advanced
twilio-security-hardening: common questions
Should I use API keys or the Auth Token in production?
The skill says to avoid the Auth Token in production and use API keys instead, since API keys are scoped and revocable individually. The Auth Token is used for webhook signature validation.
What is the most effective measure against SMS pumping?
The skill calls geo-permissions the single most effective anti-fraud measure for SMS pumping. It recommends disabling countries you do not serve.
Does PCI Mode affect the whole Twilio account?
Yes. The skill says PCI Mode is irreversible and affects every service on the account, so it recommends a separate sub-account for payment use cases.
How do I install twilio-security-hardening?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is twilio-security-hardening free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is twilio-security-hardening safe to use?
It scores 71 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to twilio-security-hardening?
Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.
