Signs of account takeover: the red flags in your logs

Intermediate4 min readUpdated

GET /learn/account-attacks/signs-of-account-takeover/ Accept text/html text/markdown

Short answer

The clearest signs of account takeover are a login from a new device or network followed quickly by changes that lock the owner out or move value out: a new email, phone number or password, MFA turned off or replaced, a new payout method or shipping address, fast redemption of points or gift cards, and a session that reappears on another device.

The login is often the hardest place to catch a takeover, because the attacker may have the right password. What happens next is easier to see. An attacker first secures their access, then moves value out, and the sequence differs from what the real owner does. Each sign below is weak alone. A chain of them in one session is strong.

Red flags at login

Most signs at this stage concern the device and network. Look for the first login from a device fingerprint never seen on the account, especially combined with an ASN (the network operator) or country the user has never used. A success that comes after a run of failures from other devices suggests the password was found by guessing or credential stuffing. A correct password followed by a failed MFA check means someone else knows the password, and OWASP recommends alerting the user when it happens. Password reset requests from devices the account has never used, or several resets from different devices, point the same way. Impossible travel, two logins too far apart for the time between them, is noisy alone.

Red flags in the first minutes after login

These are the strongest signals, because they are the attacker's first moves:

  • The email address, phone number or password changes within minutes of a login from a new device.
  • MFA is turned off, or a new phone or authenticator app is added.
  • Security notifications are switched off. On email services, new forwarding or filter rules appear that hide alerts from the owner.
  • A new payout bank account, shipping address or saved card is added.
  • Loyalty points, gift card balances or store credit are redeemed or transferred.
  • In business software, new API keys, OAuth app grants or admin users appear.
  • An order for easily resold goods, such as gift cards or electronics, ships to an address the account has never used.

Watch how the attacker moves as well. A session that goes straight from login to account settings, with no browsing and at a speed no person types, is following a script.

Red flags later in the session

A session cookie that shows up on a different device fingerprint, browser or ASN from the one it was issued to suggests it was stolen and replayed, which skips login and MFA altogether. Session hijacking and cookie theft explains how to detect and block it. One device that switches between many accounts in a short time is checking or using a batch of taken-over accounts, a pattern shared with multi-accounting.

Red flags outside your logs

Support and payments teams often see takeovers before engineering does. Watch for clusters of tickets saying "I can't log in" or "my email was changed", orders the customer says they did not place, and chargebacks on accounts with years of clean history. Feed these cases back into your log analysis, since each confirmed case shows what the attack looked like.

A query for the most common chain

This PostgreSQL query finds logins from a new device followed within 30 minutes by a sensitive change in the same session. It assumes login_events has a new_device flag set at login (for example, a device fingerprint not seen on this account in 90 days) and that account_events records changes by session_id.

sql
SELECT l.user_id, l.event_time AS login_time, l.ip, l.asn, l.device_fingerprint,
       string_agg(a.event_type, ', ' ORDER BY a.event_time) AS changes,
       min(a.event_time) - l.event_time AS time_to_first_change
FROM login_events l
JOIN account_events a
  ON a.session_id = l.session_id
 AND a.event_time BETWEEN l.event_time AND l.event_time + interval '30 minutes'
WHERE l.success
  AND l.new_device
  AND l.event_time >= now() - interval '7 days'
  AND a.event_type IN ('email_changed', 'phone_changed', 'password_changed',
                       'mfa_disabled', 'mfa_method_added', 'payout_method_added',
                       'shipping_address_added', 'points_redeemed')
GROUP BY l.user_id, l.event_time, l.ip, l.asn, l.device_fingerprint
ORDER BY time_to_first_change;

How to act on the signals

A practical starting rule: when a login from a new device is followed by a change to the email, phone, MFA or payout details within 30 minutes, hold the change, ask the user to confirm through the old email address or phone number, and notify the old contact details either way. For points redemption or orders to new addresses after a new-device login, add a step-up check before completing. Review the cases each week and tune the windows, since every rule here will flag some real users and the false positive rate needs measuring like any other number. If a takeover is confirmed, end all sessions, reset the password, restore the original contact details and reverse what you can. The longer-term controls are in how to prevent account takeover.

Tools that help

StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking.

  • Kairal connects device, network and behavioural signals across the customer journey, from first visit to login and checkout, to detect account takeover, and its console links related events, devices and IP addresses for each case.
  • FingerprintJS is an open-source browser fingerprinting library you can use to set the new_device flag in the query above for free.
  • Castle scores login and account change events through an API to flag likely takeovers.
  • Sift scores user events, including logins and profile changes, for fraud risk and fits teams that already use it for payment fraud.
  • Incognia uses device and location signals, mainly in mobile apps, to tell whether a login comes from the owner's usual device.

Common questions

What signs of account takeover do users notice?

Emails about password or email changes they did not make, orders or transfers they do not recognise, login alerts from places they have not been, being logged out without reason, and contacts who receive messages the user never sent.

How fast do attackers act after taking over an account?

It varies. Automated takeovers that check and spend balances can act within seconds of login, while attackers preparing a larger fraud may wait days so the change looks unconnected to the login. Look back over minutes, hours and days.

Is impossible travel a reliable sign of account takeover?

Not on its own. VPNs, corporate proxies, mobile carriers that route traffic through distant cities and wrong IP geolocation all produce false alarms, so count it only alongside a device change or a sensitive account change.