This field-guide entry has not been reviewed in its new form yet. The studies are summarized as published; no review date is implied.

Key findings #

At least 35 of 75 popular online services were vulnerable to one or more account pre-hijacking attacks.

Source: Sudhodanan and Paverd, Pre-hijacked accounts (USENIX Security 2022)

Link to this findingSave as image (PNG, 1200 by 630 pixels)

In an account pre-hijacking attack, an attacker who knows only the victim’s email address acts before the victim creates an account and gains access after the victim has signed up.

Source: Sudhodanan and Paverd, Pre-hijacked accounts (USENIX Security 2022)

Link to this findingSave as image (PNG, 1200 by 630 pixels)

Of 27 hack-for-hire services that researchers approached as buyers, only 5 succeeded in attacking the email accounts of the test identities.

Source: Mirian et al., Hack for Hire (WWW 2019)

Link to this findingSave as image (PNG, 1200 by 630 pixels)

Hack-for-hire attackers relied mainly on tailored phishing messages that were sophisticated enough to bypass SMS two-factor authentication.

Source: Mirian et al., Hack for Hire (WWW 2019)

Link to this findingSave as image (PNG, 1200 by 630 pixels)

Evidence #

Account hijacking studies
StudyYearSampleMethodFinding
Pre-hijacked accounts: An Empirical Study of Security Failures in User Account Creation on the WebIndependent researcher, Microsoft Security Response Center202275 popular online servicesAttack design and testing against live servicesAt least 35 services were vulnerable to one or more of 5 pre-hijacking attacks.
Hack for Hire: Exploring the Emerging Market for Account HijackingUC San Diego, Google201927 English, Russian and Chinese hack-for-hire servicesPosing as buyers against synthetic victim identities5 services succeeded, mostly through tailored phishing.

What to do #

For engineers #

  • Don’t let anyone use an account before they have proven they control its identifier. Verify the email address before the account becomes usable, and before you merge a password account with a federated login for the same address.
  • Only trust email addresses from identity providers that verify them. One of the 5 attacks relies on a non-verifying identity provider.
  • End all sessions and expire pending email-change links when the password is reset or the email address changes. Two of the attacks rely on unexpired sessions and email changes.
  • Offer phishing-resistant factors. The hack-for-hire services got past SMS codes with phishing. See passwordless authentication and my critical notes on passkeys.

For product and UX #

  • Show users which sign-in methods are linked to their account, and notify them when one is added.
  • When someone signs up with an address that already has a pending or unverified account, guide them through verification instead of silently signing them in.
  • Recovery flows are another takeover path. The account recovery entry lists the common weaknesses.

The studies in detail #

Account Pre-Hijacking Attacks: Security Failures in User Account Creation #

“The ubiquity of user accounts in websites and online services makes account hijacking a serious security concern. Although previous research has studied various techniques through which an attacker can gain access to a victim’s account, relatively little attention has been directed towards the process of account creation.”

In this study, Avinash Sudhodanan and Andrew Paverd show that there is a whole class of account pre-hijacking attacks. The key point: “The distinctive feature of these attacks is that the attacker performs some action before the victim creates an account, which makes it trivial for the attacker to gain access after the victim has created/recovered the account.”

The authors assume a realistic attacker who knows only the victim’s email address. They describe 5 attacks: Classic-Federated Merge, Unexpired Session, Trojan Identifier, Unexpired Email Change and Non-verifying IdP. Of 75 popular services they analyzed, at least 35 were vulnerable to one or more of them. Some attacks were completely undetectable from the victim’s point of view. The paper closes with security requirements that prevent these vulnerabilities.

Read the paper (PDF)

Hack for Hire: Exploring the Emerging Market for Account Hijacking #

In this paper, researchers from UC San Diego and Google “study a segment of targeted attackers known as ‘hack for hire’ services to understand the playbook that attackers use to gain access to victim accounts.”

Posing as buyers, they contacted 27 English, Russian and Chinese black-market services, and only 5 succeeded in attacking the synthetic but realistic identities the researchers controlled. The attackers mostly used tailored phishing that could bypass SMS two-factor authentication. The authors also observed low volume, poor customer service and multiple scammers in this market. The paper is a good read if you want to understand the commercial account hijacking ecosystem and the techniques criminals use.

Read the paper (PDF)

Cite this

Jan Brennenstuhl. “How do attackers take over accounts?.” Brennenstuhl on Security, 21 April 2023. https://www.janbrennenstuhl.eu/knowledge-base/account-security/account-takeover/

APA and BibTeX
APA

Brennenstuhl, J. (2023, April 21). How do attackers take over accounts?. Brennenstuhl on Security. https://www.janbrennenstuhl.eu/knowledge-base/account-security/account-takeover/

BibTeX
@online{brennenstuhl2023how,
  author = {Brennenstuhl, Jan},
  title = {How do attackers take over accounts?},
  date = {2023-04-21},
  organization = {Brennenstuhl on Security},
  url = {https://www.janbrennenstuhl.eu/knowledge-base/account-security/account-takeover/}
}

Markdown version ID jb-research-account-hijacking CC BY 4.0 Not yet reviewed Send a correction

What changed
  • : Rewritten as a field-guide entry: question title, short answer, key findings and evidence table. Study summaries kept and extended with numbers from the papers.