Twilio

WikipediaVerified

Breach Date

June 26, 2024

Records Affected

33,000,000

Verified

Yes

Source

wikipedia

Summary

In June 2024, Twilio confirmed that an unauthenticated API endpoint in its Authy two-factor authentication (2FA) app was exploited to enumerate and extract phone numbers associated with 33 million Authy accounts. The threat actor group ShinyHunters posted the data — a CSV file containing 33,420,546 rows of Authy account IDs and associated phone numbers — on the cybercrime forum BreachForums.

The vulnerability was straightforward: an API endpoint accepted phone numbers as input and returned information about whether an Authy account was registered to that number, without requiring authentication. Attackers used credential stuffing techniques to feed large lists of phone numbers into the endpoint, systematically building a database of phone numbers linked to Authy accounts. Twilio patched the endpoint after disclosure and released updated versions of the Authy app (Android v25.1.0, iOS v26.1.0).

While no passwords, authentication tokens, or seed secrets were compromised — meaning the 2FA functionality itself remained secure — the breach carried significant implications. The exposure of phone numbers linked to 2FA accounts enables targeted phishing and SIM-swapping attacks against users who are, by definition, security-conscious enough to use 2FA. The irony was not lost on the security community: a breach of a two-factor authentication provider, while not compromising the second factor itself, provided attackers with a roadmap to target users who rely on that second factor for their most important accounts.

Breach Details

Breach Date
June 26, 2024
Records Affected
33,000,000
Source
Wikipedia
Verified
Verified
Industry
Technology
Type
Poor Security

Impact Analysis

Scale of Impact

  • 33,420,546 Authy accounts had their associated phone numbers exposed
  • Authy is one of the most popular 2FA apps globally, used by individuals and businesses
  • Phone numbers are inherently persistent identifiers — unlike passwords, they cannot be easily changed

Data Types Exposed

  • Phone numbers linked to Authy accounts
  • Authy account IDs
  • Account registration status (active/inactive)

Data NOT Exposed

  • Passwords or authentication tokens
  • 2FA seed secrets or TOTP codes
  • Account contents or linked service information
  • Email addresses (not directly — though cross-referencing with other breaches can link them)

Risk Assessment

The exposed data enables several attack vectors:

Attack TypeRisk LevelDescription
SIM swappingHighAttackers know which phone numbers are linked to 2FA, making them high-value SIM swap targets
Smishing (SMS phishing)HighTargeted phishing messages can reference Authy/2FA to appear legitimate
Social engineeringMediumKnowledge that a user uses Authy can be leveraged in pretexting attacks
Account takeover preparationMediumCombined with credentials from other breaches, attackers can prioritize targets who use SMS-based 2FA
Vishing (voice phishing)MediumPhone numbers enable direct voice-based social engineering

Reputational Impact

  • Twilio's brand as a security-focused communications platform was damaged
  • The breach of a 2FA provider undermined trust in the authentication security ecosystem
  • Security community criticism focused on the fundamental design flaw of an unauthenticated API endpoint in a security product

Timeline

  • Late June 2024: Threat actors exploit the unauthenticated Authy API endpoint to enumerate phone numbers associated with Authy accounts
  • June 26, 2024: ShinyHunters posts a CSV file containing 33,420,546 Authy account phone numbers on BreachForums
  • June 27, 2024: Security researchers and journalists begin analyzing the posted data and notifying Twilio
  • July 1, 2024: Twilio publicly confirms the breach, stating that an unauthenticated endpoint was exploited to identify phone numbers associated with Authy accounts
  • July 1, 2024: Twilio releases patched versions of the Authy app — Android v25.1.0 and iOS v26.1.0 — which secure the vulnerable endpoint
  • July 2024: Twilio advises all Authy users to update their apps immediately and be vigilant against phishing and SIM-swapping attempts
  • July-August 2024: Reports emerge of targeted smishing campaigns against known Authy users, leveraging the exposed phone numbers
  • August 2024: Security researchers publish analyses demonstrating how the phone number data could be cross-referenced with other breach datasets to identify high-value targets

Lessons Learned

1. Every API Endpoint Must Be Authenticated

The root cause of the breach was an API endpoint that accepted requests without authentication. In a security product, this is especially egregious. Every API endpoint — regardless of how innocuous the data it returns appears — must require authentication. Unauthenticated endpoints that reveal any information about user accounts enable enumeration attacks.

2. Rate Limiting Is a Critical Security Control

The attackers were able to check millions of phone numbers against the API. Effective rate limiting would have made bulk enumeration impractical. API rate limiting should be implemented at multiple levels: per IP, per session, and globally. Anomalous query patterns (millions of sequential phone number lookups) should trigger automated blocking.

3. Information Disclosure Is a Vulnerability

Returning different responses for "account exists" versus "account does not exist" is an information disclosure vulnerability. Security-sensitive APIs should return identical responses regardless of whether an account exists, preventing enumeration. This is a well-known pattern (OWASP API Security Top 10: API3 - Broken Object Property Level Authorization).

4. Security Products Face Elevated Threat Levels

Products in the security space — authentication providers, password managers, VPNs — are inherently high-value targets. Attackers specifically seek to compromise security tools because their user bases are security-conscious and likely protect high-value assets. Security products must hold themselves to the highest security standards.

5. Phone Numbers Are Sensitive Data

The breach exposed "only" phone numbers, which might seem low-severity. But phone numbers are persistent identifiers that enable SIM swapping, smishing, vishing, and social engineering. When linked to a 2FA service, they become even more valuable because they identify users who are protecting important accounts. Data classification must account for context, not just data type.

6. Metadata Can Be as Valuable as Content

No 2FA tokens or passwords were stolen, yet the breach was still significant. Knowing which phone numbers have Authy accounts is metadata — but it tells attackers exactly who to target with SIM-swapping attacks for maximum impact. Security assessments must consider the value of metadata, not just primary data.

Technical Details

Vulnerability: Unauthenticated API Endpoint

The core vulnerability was an unauthenticated API endpoint in Authy's backend services that could be used to verify whether a given phone number was registered to an Authy account.

Technical details:

  • Endpoint type: REST API endpoint accepting phone numbers as input
  • Authentication: None required — the endpoint was publicly accessible
  • Response behavior: Returned different responses for registered vs. unregistered phone numbers (information disclosure)
  • Rate limiting: Insufficient to prevent bulk enumeration

Attack Method: Phone Number Enumeration

Attack flow:

  1. Preparation: Attackers compiled large lists of phone numbers (potentially from other breaches, phone number ranges, or purchased datasets)
  2. Enumeration: Phone numbers were systematically submitted to the unauthenticated API endpoint
  3. Classification: Based on API responses, attackers determined which numbers had associated Authy accounts
  4. Compilation: 33,420,546 confirmed Authy-linked phone numbers were compiled into a CSV file
  5. Publication: The dataset was posted on BreachForums by ShinyHunters

This technique is commonly called credential stuffing when applied to username/password pairs, but in this case it was phone number enumeration — testing whether known phone numbers have accounts on a service.

Why the 2FA Itself Was Not Compromised

Authy's core security mechanism — time-based one-time password (TOTP) generation — was not affected because:

  • Seed secrets are stored encrypted on the device and Authy's servers, not accessible through the enumeration endpoint
  • TOTP codes are generated client-side and are time-limited (30-second validity)
  • Account recovery requires additional verification beyond just a phone number
  • The exposed data (phone numbers + account IDs) does not provide any path to generating valid 2FA codes

ShinyHunters

ShinyHunters is a prolific cybercrime group known for:

  • Multiple high-profile breaches (Ticketmaster, AT&T, Microsoft private repositories)
  • Selling stolen data on BreachForums and other darknet marketplaces
  • Specializing in exploiting API vulnerabilities and cloud misconfigurations
  • Operating since at least 2020

Twilio's Remediation

  • Immediate: Patched the unauthenticated endpoint to require authentication
  • App updates: Released Android v25.1.0 and iOS v26.1.0 with the fix
  • User advisory: Recommended all users update the Authy app and be alert for phishing/SIM-swapping
  • No password resets required: Since authentication tokens were not compromised

Frequently Asked Questions

What happened in the Twilio/Authy breach?

In June 2024, attackers exploited an unauthenticated API endpoint in Twilio's Authy 2FA app to enumerate phone numbers associated with 33 million Authy accounts. The data was posted on BreachForums by the threat actor group ShinyHunters. No passwords, 2FA tokens, or seed secrets were compromised.

Were my 2FA codes compromised?

No. The breach exposed only phone numbers and account IDs associated with Authy accounts. TOTP seed secrets, authentication tokens, and the actual 2FA codes were not accessed. Your 2FA protection remains intact, but you should be vigilant about phishing and SIM-swapping attacks targeting your phone number.

Why is a phone number leak from a 2FA app dangerous?

Knowing which phone numbers are linked to Authy accounts tells attackers that those numbers belong to security-conscious users protecting important accounts. This makes them prime targets for SIM-swapping attacks (taking over the phone number through the carrier) and targeted phishing campaigns that reference 2FA or Authy specifically to appear legitimate.

What should Authy users do?

  1. Update the Authy app to the latest version (Android v25.1.0+, iOS v26.1.0+)
  2. Add a SIM PIN with your mobile carrier to prevent SIM-swapping
  3. Be suspicious of any SMS or calls referencing Authy, Twilio, or 2FA
  4. Consider switching to app-based 2FA (which Authy already provides) rather than SMS-based 2FA for critical accounts
  5. Monitor for unauthorized SIM swap attempts or account recovery notifications

Who are ShinyHunters?

ShinyHunters is a prolific cybercrime group active since at least 2020, known for high-profile data breaches including Ticketmaster, AT&T, and Microsoft. They specialize in exploiting API vulnerabilities and cloud misconfigurations, and typically sell or publish stolen data on cybercrime forums.

Is it ironic that a 2FA provider was breached?

Yes, and the security community acknowledged this. However, it is important to note that the core 2FA functionality was not compromised — no one's second factor was broken. The breach was an API information disclosure issue, not a cryptographic or authentication failure. It highlights that even security-focused companies can have vulnerabilities in peripheral systems that do not directly impact their core security offering.

Back to Breach Database
Breach data sourced from Wikipedia: List of data breaches, licensed under CC BY-SA 3.0.

Protect Your Organization From Data Breaches

Our security experts can help you identify vulnerabilities and strengthen your defenses.