---
author: Jan Brennenstuhl
canonical_url: https://www.janbrennenstuhl.eu/knowledge-base/account-security/account-takeover/
description: Two ways attackers take over accounts, pre-hijacking at sign-up and paid hack-for-hire phishing, and the controls that stop each.
id: jb-research-account-hijacking
kind: guide
license:
  name: CC BY 4.0
  scope: Original text; credited third-party media retain their own rights.
  url: https://creativecommons.org/licenses/by/4.0/
markdown_url: https://www.janbrennenstuhl.eu/knowledge-base/account-security/account-takeover/index.md
modified: '2026-10-13T00:00:00+02:00'
published: '2023-04-21T00:00:00+02:00'
review_basis: ''
review_status: not-reviewed
reviewed: ''
series: ''
status: published
title: How do attackers take over accounts?
topics:
- identity-authentication
- application-security
---

# How do attackers take over accounts?

**Short answer:** Some attackers prepare an account before the victim even signs up: at least 35 of 75 popular services studied were vulnerable to such pre-hijacking. Others are paid to break into a specific account and mostly use tailored phishing that can get past SMS two-factor authentication.


<a id="key-findings"></a>
## Key findings


<a id="f-hijack-prehijack-35-of-75"></a>
> **Finding f-hijack-prehijack-35-of-75:** 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)](https://arxiv.org/pdf/2205.10174.pdf)
> Link: https://www.janbrennenstuhl.eu/knowledge-base/account-security/account-takeover/#f-hijack-prehijack-35-of-75



<a id="f-hijack-prehijack-email-only"></a>
> **Finding f-hijack-prehijack-email-only:** 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)](https://arxiv.org/pdf/2205.10174.pdf)
> Link: https://www.janbrennenstuhl.eu/knowledge-base/account-security/account-takeover/#f-hijack-prehijack-email-only



<a id="f-hijack-hire-5-of-27"></a>
> **Finding f-hijack-hire-5-of-27:** 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)](https://dl.acm.org/doi/pdf/10.1145/3308558.3313489)
> Link: https://www.janbrennenstuhl.eu/knowledge-base/account-security/account-takeover/#f-hijack-hire-5-of-27



<a id="f-hijack-hire-phishing-sms-2fa"></a>
> **Finding f-hijack-hire-phishing-sms-2fa:** 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)](https://dl.acm.org/doi/pdf/10.1145/3308558.3313489)
> Link: https://www.janbrennenstuhl.eu/knowledge-base/account-security/account-takeover/#f-hijack-hire-phishing-sms-2fa


<a id="evidence"></a>
## Evidence


**Account hijacking studies**

| Study | Year | Sample | Method | Finding |
| --- | --- | --- | --- | --- |
| [Pre-hijacked accounts: An Empirical Study of Security Failures in User Account Creation on the Web](https://arxiv.org/pdf/2205.10174.pdf) (Independent researcher, Microsoft Security Response Center) | 2022 | 75 popular online services | Attack design and testing against live services | At least 35 services were vulnerable to one or more of 5 pre-hijacking attacks. |

| [Hack for Hire: Exploring the Emerging Market for Account Hijacking](https://dl.acm.org/doi/pdf/10.1145/3308558.3313489) (UC San Diego, Google) | 2019 | 27 English, Russian and Chinese hack-for-hire services | Posing as buyers against synthetic victim identities | 5 services succeeded, mostly through tailored phishing. |


<a id="what-to-do"></a>
## What to do

<a id="for-engineers"></a>
### 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](https://www.janbrennenstuhl.eu/passwordless-authentication/) and my [critical notes on passkeys](https://www.janbrennenstuhl.eu/fido-passkeys/).

<a id="for-product-and-ux"></a>
### 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](https://www.janbrennenstuhl.eu/knowledge-base/account-security/account-recovery/) lists the common weaknesses.

<a id="the-studies-in-detail"></a>
## The studies in detail

<a id="account-pre-hijacking-attacks-security-failures-in-user-account-creation"></a>
### 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)](https://arxiv.org/pdf/2205.10174.pdf)

<a id="hack-for-hire-exploring-the-emerging-market-for-account-hijacking"></a>
### 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)](https://dl.acm.org/doi/pdf/10.1145/3308558.3313489)

<a id="related"></a>
## Related

- [How secure are email-based password resets?](https://www.janbrennenstuhl.eu/knowledge-base/account-security/account-recovery/)
- [Do login challenges and risk scoring stop account takeover?](https://www.janbrennenstuhl.eu/knowledge-base/account-security/reinforced-authentication/)
- [Where do OpenID Connect implementations break?](https://www.janbrennenstuhl.eu/knowledge-base/oidc/openid-connect-security/)


---

Cite as: Jan Brennenstuhl. "How do attackers take over accounts?." Brennenstuhl on Security, 21 April 2023. https://www.janbrennenstuhl.eu/knowledge-base/account-security/account-takeover/
License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) for the original text; credited third-party media keep their own rights.
