Skip to main content

Detecting Compromised Credentials: A 2026 How-To

Detecting a compromised credential means catching a correct password used by someone who is not its owner. In Didit Authentication you turn on bot protection, set block or challenge per policy, and act on auth.* webhooks and.

Detecting Compromised Credentials: A 2026 How-To

Contents

In this guide

Jump to the part you need.

Detecting a compromised credential means catching a correct password used by someone who is not its owner. This guide is for teams that run their own sign-in and want those checks inside Didit Authentication. Prices are published: the first 50,000 active users each month are free, then $0.02 per active user month. The caveat is that bot protection is off until you turn it on, so the first step is a setting, not code.

Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.

Summary

Compromised credential detection in Didit Authentication
ItemDetail
What you buildSign-up, sign-in and password reset checked against six policies, with events, webhooks and console views.
Default stateProtection is off and breached_password_check is false. Rate limits and bounded code attempts always apply.
Policiesbots, stuffing, brute, disposable, vpn, travel. Each has Off, Log, Challenge and Block modes.
What the attacker sees403 {"error": "attempt_blocked"}, or invalid_credentials and invalid_grant, never a hint about the account.
PriceActive users: first 50,000 each month free, then $0.02 per active user month. Verification checks are a separate charge, per check: liveness $0.10, selfie login $0.10, full ID $0.33.
ReviewA verification or step-up can land in review. It keeps the price of the check that ran, and the status stays review until your team decides.

Start free in the sandbox at business.didit.me, with no sales call. Developers who want an AI assistant to read the docs and drive setup can connect Didit through MCP. Both routes use the same Authentication docs and the same public prices.

What a compromised credential looks like at sign-in

Two different things get called a compromised credential. Breach exposure means the password is known to have been breached, so someone else may already know it. Confirmed account takeover means the account is being driven by someone who is not its owner right now. The first is a property of the password, the second is an event on the account, and the checks below cover both.

Reuse leaves patterns rather than one signal. A single device or IP touches 10 or more different accounts within 15 minutes. A password that already appears in a public breach is used to sign in. Five failures land on the same account in a row. A sign-in arrives from a data-center address, or more than 500 km from the previous one at more than 1,000 km/h within 24 hours. The bot protection docs define each match.

Didit Authentication checks every sign-up, sign-in and password reset against six policies. Each policy has four modes. Off means the policy is not checked. Log lets the attempt continue and records a risk_logged event. Challenge requires an extra proof before the attempt continues. Block fails the attempt.

Bot protection policies, what each matches, and the mode we recommend first
PolicyMatches whenMode we start with
botsDidit's server scores the request 0.8 or more, from signals such as an automation user agent, missing browser headers, a webdriver flag or a headless browser.Block
stuffingOne device or IP tries 10 or more different accounts within 15 minutes, or the password is a known breached password.Challenge
bruteThe account has 5 or more failed attempts. Wrong passwords and wrong email, phone and authenticator codes all count.Challenge
disposableA sign-up, or an email code or magic link sign-in, uses a disposable email domain.Block
vpnThe IP is a VPN, Tor or data-center network.Challenge
travelThe sign-in is more than 500 km from the previous one, at more than 1,000 km/h, within 24 hours.Block
A six-digit email code typed into a Didit sign-in step
Email code sign-in gives five code attempts, then the person must request a new code.

Outcome and the method we recommend

The outcome is narrow and testable. An attacker holding a correct password cannot finish a sign-in. Your team gets an event that names the policy that matched. Your app receives a webhook it can act on, and the person's profile carries a sign-in status your support team can read.

We recommend this order. Turn protection on. Block the policies that should never be negotiable, which are bots and disposable. Challenge the ones where shared networks are normal, which are stuffing, brute and vpn. Block travel only if your users do not move that fast. Then subscribe to the auth.* webhooks, and before you add any event rule, run a measured observation window: for two weeks, log every auth.login_failed and auth.new_device event your destinations receive, label each one true or false positive, and only then turn rules on. That is an operational recommendation, not a product setting, and it is the step that decides whether your rules survive their first month. Add a step-up before payouts as well, since that is the moment a stolen session turns into money leaving.

stuffing defaults to Challenge on purpose. Offices, campuses and mobile carriers put many real people behind one address. They get an extra proof instead of a lockout, and someone replaying a correct breached password still cannot finish.

Prerequisites

  • A Didit application with Authentication turned on. Every Sandbox application has it on from the start. A Live application turns it on from the Products page of the console, and until it is on, every runtime route for that application answers 404.
  • Your redirect URLs registered, because the flow is OAuth 2.0 authorization code with PKCE, S256 only.
  • A console session, an owner-approved management grant, or an authentication-scoped API key for the management API calls.
  • A webhook destination you control. Only destinations subscribed to a type receive it.
  • Your application's published keys, so your backend can verify the access token on every request.
  • Allowlist and blocklist features need Growth or above. Rate limits and bounded code attempts apply on every plan.

Step-by-step: turn on compromised credential detection

  1. Note your application's sign-in origin. A Live application uses https://<slug>.auth.didit.me. A Sandbox application uses https://<slug>.sandbox.auth.didit.me. The console shows yours, and a verified custom domain can replace it. The issuer is the origin itself, and discovery sits at {origin}/.well-known/openid-configuration.

  2. Read the current settings. Send GET to protection/ in your application's Authentication management API, or open Authentication, Bot protection in the console. Note available on each policy: vpn and travel only take effect when Didit's IP analysis can be reached for your application, and the console marks them as not available yet until then.

  3. Choose a mode per policy using the table above. Two rules of thumb. Block the decisions that are made before the secret is checked, because no legitimate person needs to finish those. Challenge the decisions where a shared address is normal, because a challenge costs one extra proof and a lockout costs a support ticket.

  4. Apply the settings with PATCH on the same path. This is the body we start with, and it is the example from the bot protection docs:

    curl --fail-with-body "${DIDIT_AUTH_API}/protection/" \
      -X PATCH \
      -H "Authorization: Bearer $MANAGEMENT_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
        "enabled": true,
        "breached_password_check": true,
        "policies": {
          "bots": "block",
          "stuffing": "challenge",
          "brute": "challenge",
          "disposable": "block",
          "vpn": "challenge",
          "travel": "block"
        }
      }'

    The management API base and the token come from your application's Authentication settings in the console. The path is protection/.

  5. Set the password floor alongside the breach check. password_min_length accepts 8, 10, 12 or 14 characters and defaults to 10. Common and all-numeric passwords are rejected with password_policy. With breached_password_check on, a known breached password is rejected with password_breached.

  6. Subscribe your webhook destination to the auth.* types you will act on. auth.login_failed, auth.new_device, auth.account_locked and auth.mfa_changed cover most takeover stories. Use Try Webhook in the console to send a sample of each type before you write the handler. The table of stored events and their webhook types is in the events and webhooks docs.

  7. Keep your responses uniform. The full contract is in the bot protection docs under what a blocked attempt returns, and it is worth one read rather than a paraphrase: the decisions taken before the secret is checked answer the same for an existing and an unknown account, and the account-dependent ones answer like a wrong secret. Your error handling should not try to distinguish them, and your UI should not either.

  8. Ask for a step-up before a sensitive action. This is the documented call, run with the person's access token:

    curl --fail-with-body "${DIDIT_AUTH_ISSUER}/step-up/" \
      -H "Authorization: Bearer $ACCESS_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{"action": "payout", "amount": "900.00", "currency": "USD", "return_to": "https://app.example.com/payouts/confirm"}'

    A 200 {"required": false} means no rule applies, so go ahead. A 201 with verification_url means send the person there; the step-up stays open for 30 minutes. Read the result on your backend with GET {issuer}/step-up/{step_up_id}/ and act only when status is approved. The rules and statuses are in the verified identity docs.

  9. Review what matched. Sign-in events land on the person's timeline and on the Events page. Opening a sign-in event shows its device and network, the protection reason (bots, stuffing, brute, vpn, travel or attack_mode) and the rules it matched.

A face scan step in a Didit flow used for a step-up check
A step-up asks for one selfie before a payout, a bank change or a contact change.

Expected output

Reading protection/ returns the settings object you wrote, plus available for each policy. That object is your confirmation that the checks are live:

{
  "enabled": true,
  "breached_password_check": true,
  "policies": {
    "bots": "block",
    "stuffing": "challenge",
    "brute": "challenge",
    "disposable": "block",
    "vpn": "challenge",
    "travel": "block"
  }
}

Each person also gets a sign-in summary, shown on the People list and profile and returned on /v3/users/ as authentication:

{
  "authentication": {
    "status": "ACTIVE",
    "methods": ["password", "passkey"],
    "mfa_enabled": true,
    "last_sign_in_at": "2026-10-14T09:12:44Z"
  }
}
  • status is ACTIVE, LOCKED when a security policy locked the account, or BLOCKED when your team blocked it.
  • authentication is null for a person with no sign-in identity.
  • Sign-up, sign-in, failure, lock, password change and MFA change are all stored as events on the person's timeline, as auth.* or security.*. Only event types with a documented webhook are delivered to subscribed destinations: a password change is stored as security.password_changed and a sign-out as auth.logout, and neither has a webhook.
  • Webhook types are stored with the same vendor_data as the person's verifications, so a takeover event and the identity behind it sit together in the console.
A session overview in the Didit Business Console with its warnings
A session overview with its warnings. Sign-ins and verifications land on the same person.

Failure cases and recovery

What goes wrong and what to do next
SymptomCauseRecovery
Nothing is checkedProtection was never switched on, or enabled and breached_password_check are still false.Write the settings object with PATCH, then read it back and check enabled.
Accounts lock after 5 failures with a 15 minute lock you did not configureYou never saved protection settings, so the simpler default rule applies.Save settings. Pick brute Block to force a password reset, or Challenge for a 15 minute extra proof instead of a lock.
vpn or travel never matchesThe policy is not available for your application, or the IP analysis lookup is unreachable.The mode has no effect while unavailable, and a sign-in never fails because of the lookup. Check the console marker, then test again once IP analysis resolves for your application.
Sandbox misses a VPN or travel case that Live catchesA Sandbox application only answers for addresses Didit has already resolved.Test with a known address in Sandbox, and confirm the case in a Live application.
A real user is blocked and cannot say whyThat is the design: blocked attempts never reveal whether the account exists.Read the person's event in the console. It always shows which policy matched. Password reset stays available after a brute-force block and clears the lock, and your team can clear a lock from the console.
An event rule does not sign the person outThe sign out and block actions for sign-in events are not active yet. A rule using them is recorded with status DISABLED and is not applied.Use the console action for now. The other actions (score, status, tags, notes, lists and cases) work as usual.
No webhook arrivesThe destination is not subscribed to that type.Subscribe the type, then send a sample with Try Webhook.
Sign-ins appear twiceYou also posted your own auth.login events to /v3/events/.Stop posting them. Didit sends sign-in activity itself, and duplicate posts do not update the person's summary.

Inputs and outputs

What you send, what Didit computes, what comes back
DirectionItemNotes
InputSign-in request with redirect_uri, state, code_challenge and code_challenge_method=S256The hosted page or your own screens run the method you enabled.
InputProtection settings via PATCH protection/enabled, breached_password_check and one mode per policy.
InputWebhook destinationSubscribed per auth.* type.
InputStep-up request: action, amount, currency, return_toamount is required for payout, with up to two decimals. currency is an ISO 4217 code.
ComputedBot score from 0 to 1The strongest signal found. bots matches at 0.8 or more, and the console lists the signals that matched.
ComputedStuffing, brute, disposable, VPN and travel matches10 accounts per device or IP in 15 minutes, 5 failures, a disposable domain, a VPN, Tor or data-center IP, or 500 km at 1,000 km/h within 24 hours.
Output403 attempt_blocked, 400 invalid_credentials, 400 invalid_grantNever a hint about account existence.
Outputauth.* events and webhooks, plus the authentication objectPer person, with method, reason, IP, device ID, fingerprint, user agent, bot score and session ID.

Two separate charges, and they never merge. Active users are billed on the person count for the month: the first 50,000 are free, then $0.02 per active user month. Verification checks attached to sign-up or to a step-up are billed per completed check, at the same list prices as any other verification. The public price book has no separate line for bot protection settings, so turning protection on adds nothing on its own.

  • Liveness at sign-up or before a contact change: $0.10 per check.
  • Selfie login before a payout, matched to the face Didit already holds: $0.10 per check.
  • Full ID, which is document, liveness and face match: $0.33 per check.
  • Device and IP analysis: $0.03 per check, and it is already one of the four lines inside the $0.33 full ID check.

The review boundary follows the check, not the decision. A liveness, selfie login or full ID check that lands in review keeps the price of the check that ran, and its status stays open until your team decides. A step-up uses the documented statuses: pending, approved, review, declined, expired and superseded, and your backend acts only on approved. A step-up never fails open: when verification is unavailable, the action stays blocked.

The other boundaries matter as much as the prices. Didit returns signals and modes; your team still owns the account policy, the support script and the decision to block. Didit never sees the identifier of an unknown or unproven account, only a keyed hash of it, so those attempts are never linked to a person. Sign-in activity is recorded on the person's timeline and in the Events page; verification checks can enter review.

Real-Time Transaction Monitoring: Fraud Rules for Fiat and Crypto
Event rules run on sign-in events too, using the same rule engine as transactions.

Event rules to add once you know your false positives

The Authentication fraud bundle ships four presets. Account takeover matches a password or MFA change after 3 or more failed sign-ins and a new device within 1 hour, and its actions are decline at score 90, tag, sign out and block. Credential stuffing matches a successful sign-in from an IP with 10 or more failures on 3 or more accounts within 1 hour, with review at score 60, tag and sign out. New device then payout matches a withdrawal within 15 minutes of a new device. Impossible travel matches more than 500 km between sign-ins at more than 1,000 km/h.

For your own rules, these fields are the useful ones: event.category, event.action_type, event.payload.method, event.payload.reason, event.security.changed_field, event.device.fingerprint, event.device.persistent_device_id, event.device.bot_score, event.ip.is_vpn_or_tor, event.ip.is_data_center, event.ip.country, event.ip.travel_distance_km and event.ip.travel_speed_kmh. The ready-made fraud views look back up to 31 days: one device with several people, a failed sign-in spike, a new device followed by a payout, a password change followed by a transaction, and many sessions from one IP.

Worked cost example

Assume one month with 120,000 active users, 4,000 liveness checks at sign-up, and 900 full ID step-ups before a bank account change. Active-user billing and verification billing are separate charges, and both are computed here at list prices:

  • Active users: 120,000 minus the 50,000 free allowance = 70,000 billable. 70,000 × $0.02 = $1,400.00.
  • Liveness at sign-up: 4,000 × $0.10 = $400.00.
  • Full ID step-ups: 900 × $0.33 = $297.00.
  • Total: $1,400.00 + $400.00 + $297.00 = $2,097.00 for the month.

On Growth every Didit price is 4% lower and on Scale 10% lower, which applies to the check prices above and to the active-user price. Plan fees and included credit change, so read them from the pricing page or the pricing docs before you quote them internally.

Sources

The next step is a sandbox application at business.didit.me. Sandbox testing is free and unlimited, and you do not need a sales call to turn protection on and watch a stuffing policy match.

Try it

Try this in the sandbox

Run the check this guide describes, free.

ID Verification

The product this post is about, taken from its topic. Run it free in the sandbox.

$0.15 per checkStart free

Author

Alberto Rosas

Co-founder and CEO

Alberto Rosas

Alberto Rosas

Co-founder and CEO

About Didit

Questions

Frequently asked questions

How do I detect a compromised password at sign-in?

Turn on bot protection for the application and set breached_password_check to true, which rejects a known breached password with password_breached. Then block or challenge the policies that catch replay: stuffing matches one device or IP trying 10 or more accounts in 15 minutes, and brute matches 5 failures on one account. Every match is stored as an event, and subscribed webhook destinations receive the matching auth.* event, so your team reads what happened instead of guessing.

Does Didit check passwords against breach data?

Yes, through the breached-password check inside bot protection. With breached_password_check on, a known breached password is rejected with the password_breached error at the point the person sets or uses it. A breached password is also one of the two conditions that trigger the stuffing policy, so a correct but leaked password still cannot finish a sign-in when that policy is set to Challenge or Block.

What counts as credential stuffing in Didit?

The stuffing policy matches when one device or IP tries 10 or more different accounts within 15 minutes, or when the password used is a known breached password. Its default mode is Challenge because offices, campuses and mobile carriers put many real people behind one address. A challenge adds one proof instead of locking everyone out, and the person replaying the leaked password still cannot complete the sign-in.

What does a blocked sign-in return to my app?

The bots, stuffing, disposable and vpn policies are decided before the secret is checked, so the call answers 403 {"error": "attempt_blocked"} the same way for an existing account, an unknown one, a right secret and a wrong one. The brute and travel policies depend on the account and answer 400 {"error": "invalid_credentials"} for a password or 400 {"error": "invalid_grant"} for a code. The console event always shows which policy matched, even when the response does not.

How many failed attempts before an account locks?

Five. With brute set to Block, the person must reset their password before signing in again, and until then every password attempt answers like a wrong password. With Challenge, a sign-in with the right password also needs an extra proof for 15 minutes. If you have never saved protection settings, the simpler default applies and 5 failed passwords lock the account for 15 minutes.

Is bot protection on by default?

No. Authentication is new and protection is off until you turn it on, and breached_password_check is false by default. Rate limits and bounded code attempts always apply, and allowlist and blocklist features apply on Growth and above. Set the modes once per application, either in the console or with PATCH protection/.

Can I get a webhook when a person signs in from a new device?

Yes. A new device is one that matches neither a device ID nor a fingerprint the person has signed in from before, and it is sent as auth.new_device alongside the stored security.device_changed event. Subscribe your destination to that type, and use Try Webhook in the console to send a sample before you write the handler. Other useful types are auth.login_failed, auth.account_locked and auth.mfa_changed.

Which sign-in activities have no webhook?

Password changes and sign-outs. A password change is stored as security.password_changed and a sign-out or revoked session as auth.logout, and the docs list no webhook type for either. They still appear on the person's timeline and in the Events page, so your team can read them in the console and combine them with events that do reach your destination.

Can Didit sign a person out automatically when a rule matches?

Not yet. The sign out and block actions exist only for sign-in event rules and are not active: a rule that uses them records the action with status DISABLED and does not apply it. The other actions work as usual, which are score, status, tags, notes, lists and cases, and your team can sign a person out from the console in the meantime.

How do I require a selfie before a payout?

Turn on the payout rule in Authentication, Verified identity, then call POST {issuer}/step-up/ with the person's access token and the action, amount, currency and return_to. A 200 {"required": false} means go ahead, and a 201 with verification_url means send the person there; it stays open for 30 minutes. Read the result with GET {issuer}/step-up/{step_up_id}/ and act only on approved, never on the query string alone.

What does compromised credential detection cost?

The first 50,000 active users each month are free, then $0.02 per active user month, and that active-user charge is billed separately from verification checks. A liveness check at sign-up or a contact change is $0.10, a selfie login before a payout is $0.10, and a full ID is $0.33, which already includes device and IP analysis at $0.03. A check that goes to review keeps the price of the check that ran, and bot protection settings have no separate line in the public price book.

Compliance built in

Audited, certified and attested.

We hold the certifications and build each country's rules into your flows, so you can launch anywhere without worrying. Security and Compliance center

  • Regulation encoded into your flows

    Tell us what you do and where. Didit lists the rules that apply to you, with sources, and builds the checks each country needs into one workflow.

  • Ready for AMLR

    Every requirement of the new EU anti-money laundering rules, from checking customers to human review, is already covered by a Didit check.

  • Tested in Spain's Treasury sandbox

    Spain's Treasury published its supervised sandbox report on Didit's NFC plus active liveness onboarding; SEPBLAC took part and valued the added measures positively.

  • Audited, not self-declared

    iBeta Level 1 and Level 2. Liveness tested under ISO/IEC 30107-3.

Compliance assistant

Your obligations · 3 regions

EU · AMLRCustomer due diligence, human reviewCovered
Illinois, Texas, ColoradoExplicit biometric consentCovered
Germany · Youth protectionVerified adults only (JMStV)Covered
Workflow checked. Every obligation is met
  • SOC 2 Type 2
  • ISO 27001
  • iBeta Level 1 and Level 2
  • EU regulator attestation
  • FSM youth protection
  • GDPR
  • EBA remote onboarding
  • MiCA compatible
  • FIDO Alliance member
  • AMLREU AML Regulation ready

Integration · Didit MCP

Run Didit from your own AI agent

Connect Didit to Claude, Cursor, VS Code or ChatGPT and just ask in plain words. Your agent can do anything you can do in the console, with the same permissions you have.

Add to ClaudeChatGPT
Didit Academy · Lesson 04 · Use Didit with MCP
  • Build workflowsDescribe the checks you need. The agent creates and publishes the flow.
  • Run investigationsAsk why a session was declined, review cases, search people and companies.
  • Change rulesCreate payment rules, test them on past data and switch them on.
  • Pull reportsAsk for numbers, exports or the audit log.

Verify your first user today.

Start free

Free sandbox. Credit applies to work-email sign-ups.