> series: anatomy_of_a_breach —— part: 163 —— target: twitter —— records: 5,400,000 —— method: api_enumeration —— pattern: identical_to_facebook_linkedin<span class="cursor-blink">_</span>_
In July 2022, data scraped from Twitter through an API vulnerability was confirmed to be circulating on hacking forums. The vulnerability — in Twitter's API endpoint that allows users to find accounts by phone number or email address — had been reported through Twitter's bug bounty programme in January 2022 and patched. But before the fix was applied, at least one attacker had exploited the vulnerability to scrape the personal data of approximately 5.4 million accounts, including phone numbers and email addresses linked to Twitter handles.
The pattern was identical to the Facebook 533M leak (2021) and a concurrent LinkedIn scraping incident: an API endpoint designed for legitimate user-lookup functionality was abused for bulk enumeration of user data. A larger dataset — reportedly containing the email addresses of approximately 200 million Twitter users — subsequently surfaced, suggesting broader exploitation. The Twitter API breach joined an ever-growing list of API scraping incidents documented throughout this series — from AT&T iPad (2010) through Moonpig (2015) to Cambridge Analytica (2018).
We'll scope your test for free and tell you exactly what you need. No obligation, no hard sell.
Free Scoping CallThe Twitter scraping breach reinforced that API enumeration and scraping — documented in this series since 2010 — remain persistent, industry-wide vulnerabilities that affect the world's largest platforms. For UK organisations with user-facing APIs, API penetration testing must specifically assess enumeration, rate limiting, and bulk scraping defences. Cyber Essentials mandates access controls. SOC in a Box monitors for API abuse patterns. And UK Cyber Defence provides incident response when API abuse is detected.
Our <a href="/penetration-testing/api">API testing</a> assesses enumeration and scraping defences. <a href="/cyber-essentials">Cyber Essentials</a> mandates access controls. <a href="https://www.socinabox.co.uk">SOC in a Box</a> monitors for API abuse.
We'll scope your test for free and tell you exactly what you need. No obligation, no hard sell.
Free Scoping Call