Attack vectors FraudEG detects
FraudEG’s ATO detection covers the most common attack patterns seen across financial, e-commerce, and SaaS platforms:- Credential stuffing — automated login attempts using username/password pairs leaked from other breaches
- Brute force — high-volume attempts against a single account to guess a password
- Session hijacking — an attacker replays or steals a valid session token to impersonate a logged-in user
- SIM swap — a telecom social engineering attack that redirects a victim’s phone number, bypassing SMS-based 2FA
- Social engineering — manipulation of support staff or the user themselves to gain account access
Where to integrate
ATO protection is most effective when applied at three specific integration points:- Login events — score every login attempt, not just failed ones. Successful logins with anomalous signals are often the most dangerous.
- Account settings changes — password resets, email address changes, phone number updates, and 2FA method changes are the first actions an attacker takes after gaining access.
- High-value actions — withdrawal requests, payout address changes, and large transfers warrant independent risk scoring regardless of session age.
Integration guide
1
Add the FraudEG SDK to your login and account pages
Include the FraudEG JavaScript SDK on every page where login or account management occurs. The SDK collects passive behavioral signals — typing cadence, mouse movement patterns, device fingerprint, and browser environment — that feed into the ATO risk model.Capture the
session_id from the SDK callback and pass it to your backend with every login or account action request.2
Score the login event
When a login attempt occurs, call
POST /v1/transactions/score with event_type: "login" before completing authentication. Include the user identifier, device, IP, and session data.3
Act on the decision
Branch on the
decision field returned in the scoring response:allow— the login matches expected patterns. Complete authentication normally.challenge— the login shows suspicious signals. Require step-up authentication before granting access: an SMS OTP, authenticator app TOTP, or email verification code.block— the login matches a known attack pattern. Deny access, lock the account to prevent further attempts, and send a security alert to the account owner.
Node.js
4
Score high-risk account actions
Apply the same scoring pattern to sensitive account operations. When a user attempts to change their password, update their email address, modify their 2FA configuration, or change a payout destination, call
POST /v1/transactions/score with the appropriate event_type before executing the change.Node.js
5
Subscribe to the account.risk_detected webhook
FraudEG also emits asynchronous risk signals when it detects ATO-indicative patterns across sessions — such as an account being accessed from multiple geographies simultaneously. Subscribe to the When you receive an
account.risk_detected event to react to these signals in your backend without polling.cURL
account.risk_detected event, trigger your account protection workflow: force re-authentication, notify the user, and optionally suspend the session until the user confirms their identity.Key ATO signals
Thesignals array in the scoring response tells you exactly which risk factors influenced the decision. The following signals are most relevant to account takeover:
Impossible travel detection compares the current login’s IP geolocation against the user’s most recent successful login. If the physical distance between the two locations cannot be covered in the elapsed time, FraudEG surfaces the
impossible_travel signal. This catches session-sharing and credential handoff between attackers in different regions. You can tune the sensitivity of this check per user segment in your FraudEG dashboard settings.Related resources
Behavioral Analysis
Learn how FraudEG builds user behavior baselines and detects anomalies at login and beyond.
Device Intelligence
Understand device fingerprinting, emulator detection, and how device signals factor into ATO scoring.
Webhooks
Set up real-time event delivery for asynchronous ATO signals and account risk alerts.