Skip to main content

IP Anomaly Detection: Wire It Into a Verification Flow

Device and IP Analysis runs inside every Didit verification session for $0.03 per check. Create a session, read the per-session IP analysis report and its LOCATION warnings, then branch on the risk codes.

IP Anomaly Detection: Wire It Into a Verification Flow

Contents

In this guide

Jump to the part you need.

IP anomaly detection fits teams that already run identity checks and want network and device signals read inside the same session. On Didit, Device and IP Analysis runs on every verification and costs $0.03 per check, part of the $0.33 full KYC. The caveat matters: it is session-only. There is no standalone IP analysis endpoint, so you build it into a workflow rather than calling a bare API.

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

IP anomaly detection on Didit at a glance
ItemDetail
OutcomeEach verification session returns IP geolocation, ASN, VPN, proxy and Tor flags, a device fingerprint id and duplicate-device matches for your policy to act on
DeliverySession-only. The Web and Mobile SDKs collect the fingerprint and IP in the hosted flow; the result lands under ip_analyses[] on the session decision
PriceDevice and IP Analysis $0.03 per check. Full ID check $0.33 = ID $0.15 + passive liveness $0.10 + face match $0.05 + device and IP $0.03
Warnings bucketLOCATION, not IP_ANALYSIS
Console controlDevice and IP Analysis is a feature node in the Workflow Builder, with strict-mode rules such as decline on VPN or review on duplicate device
PlansAvailable on every plan. The sandbox is free on every plan and unlimited. Eligible Free organizations receive $10 of monthly credit; eligibility means the first organization created with a work email for a company domain
Standalone APINone documented for IP analysis. Use the session decision or the session.status.updated webhook

Start free in the sandbox at business.didit.me with no sales call. The sandbox is free on every plan and unlimited. If you drive the work from an AI assistant, connect Didit through the MCP server. The published unit prices behind every number below are on Didit pricing.

What the outcome looks like

After a session finishes, the decision payload carries an ip_analyses[] array with one entry per IP and device collection point in the workflow. Each entry holds the resolved geo (country, region, city and coordinates), the ASN, the VPN, proxy and Tor flags, the device fingerprint id, any duplicate-device matches, and a warnings array. The full field list is on the IP analysis overview in the docs, and every per-check price sits on Didit pricing.

The matching engine compares the current session against earlier sessions from other vendor_data values. The documented checks are duplicated IP, meaning the same address seen across different users; duplicated device fingerprint, meaning exact reuse of the same persistent device identity; and recovered device, a high-confidence match on the v2 fingerprint signal vector. Didit also runs expected IP checks when you supply an allowed IP for the session, and IP blocklist checks configured in your application.

This is a risk surface, not a verdict. The docs list the flags and the checks that produce them; weighing them is implementation guidance from us, not a documented Didit behavior. Our guidance: a VPN flag on its own is weak evidence, and a blocklisted device that also shows a liveness failure is strong evidence. Your job is to decide which combinations move a user to review and which block the session.

Prerequisites

  • A Didit organization. The console is at business.didit.me.
  • An API key sent in the x-api-key header. Reading decisions needs the read:sessions privilege.
  • No feature toggle is required. Device and IP Analysis runs automatically during every session. Add its feature node in the Workflow Builder only when you need graph placement or configured rules.
  • A stable identifier for each user, sent as vendor_data. Duplicate detection only works across sessions when you send it.
  • An allowed domain configured for your application if you send an https callback. Otherwise session creation fails with a 400 on callback.
  • A written policy for each risk code: pass, challenge, route to review, or decline.

Step by step: add IP anomaly detection to a workflow

  1. The basic signal set runs automatically during every session and needs no feature toggle, so you can go straight to creating a session. Open the Workflow Builder and add the Device and IP Analysis feature node only when you need graph placement or configured rules. The node fixes where the collection point sits in a multi-step flow and pins the report to that node.

  2. Set strict-mode rules in the console for IP and device results, for example decline on VPN, review on duplicate device, or decline when the IP country does not match the document. Keep the first version of the rules narrow, and widen them after you have seen live traffic.

  3. Publish the workflow. Workflows use draft and publish versioning: publishing creates an immutable version, and past sessions keep the version they were created with. Copy the workflow UUID from /v3/workflows/.

  4. Create the session with a POST to /v3/session/. Send vendor_data so duplicate detection can compare this session against earlier ones.

curl -X POST 'https://verification.didit.me/v3/session/' \
  -H 'x-api-key: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "workflow_id": "YOUR_WORKFLOW_ID",
    "vendor_data": "user-123",
    "callback": "https://yourapp.com/post-kyc"
  }'
  1. Open the returned session.url for the user. The SDK collects the device fingerprint and the IP in-band during the hosted flow. Nothing else is required from your side.
  2. Fetch the decision when the session ends, or subscribe to session.status.updated and read the same object from the webhook envelope.
curl https://verification.didit.me/v3/session/<SESSION_ID>/decision/ \
  -H "x-api-key: <API_KEY>"
  1. Read ip_analyses[] and the warnings attached to each entry. Filter on feature equal to LOCATION; the risk codes are not filed under an IP_ANALYSIS bucket.
  2. Branch on the risk codes in your own handler. The documented pattern branches on session_kind first, because KYC and KYB sessions share the same feature arrays but not the same downstream logic.
const decision = await (await fetch(url, { headers: { "x-api-key": API_KEY } })).json();

switch (decision.session_kind) {
  case "user":
    return handleUserDecision(decision);
  case "business":
    return handleBusinessDecision(decision);
}
A session overview in the Didit Business Console showing the warnings raised during the check
The session overview lists the warnings from the IP and device collection point alongside the other checks in the flow.

Expected output

Every warning in the payload uses the same object shape. The documented example from the data models page is below. A LOCATION warning has the same fields, with a risk code such as VPN_DETECTED instead of DOCUMENT_EXPIRED.

{
  "feature": "ID_VERIFICATION",
  "risk": "DOCUMENT_EXPIRED",
  "additional_data": null,
  "log_type": "error",
  "short_description": "Document expired",
  "long_description": "The document's expiration date has passed, rendering it no longer valid for use.",
  "node_id": "first_id_verification"
}

Per entry, ip_analyses[].status is one of Not Started, In Progress, Approved, In Review, Declined, Abandoned or Kyc Expired. The top-level session status uses the wider session enum, which also includes Expired, Resubmitted and Awaiting User. When a reviewer changes the status by hand, status_override records the automatic status it replaced, and decision_trace says who decided and when.

The risk codes and what to do with them

Documented LOCATION risk codes and a starting response for each
Risk codeWhat it tells youSensible first response
VPN_DETECTEDThe connection is routed through a VPNPass, or add a liveness step on higher-value flows
PROXY_DETECTEDThe connection is masked by a proxyRoute to review when the product is geo-restricted
TOR_DETECTEDThe session came through a Tor exit nodeReview or challenge, since exit nodes are shared
DATACENTER_IPThe IP belongs to a hosting range, not a residential or mobile networkReview for signup flows; weak alone
HIGH_RISK_COUNTRYThe country falls in a risk set you configuredReview, or decline when your policy forbids the jurisdiction
LOCATION_MISMATCH_WITH_DOCUMENTThe IP country does not match the document issuing countryRoute to review
DUPLICATED_DEVICEThe same device was enrolled under a different vendor_dataMerge accounts or block, per policy
POSSIBLE_DUPLICATED_DEVICEA high-confidence fingerprint recovery matchReview before you merge or block
IMPOSSIBLE_TRAVELTwo locations the user could not physically reach in the elapsed timeReview, and check the device history
DEVICE_FINGERPRINT_BLOCKLISTEDThe device sits on a blocklist you configuredApply your fraud policy, such as review or decline
DEVICE_LINKED_TO_LIVENESS_ATTACKThe device is tied to a previous liveness attackDecline, or require review
DEVICE_MODEL_INCONSISTENTThe reported device model does not fit the rest of the fingerprintReview, since the client may be spoofed

Inputs and outputs

What you send to the session and what you read back
FieldDirectionWhere it appearsWhat it is for
workflow_idInputPOST /v3/session/ bodyWorkflow UUID. Add the Device and IP Analysis node only when you need graph placement or configured rules
vendor_dataInputPOST /v3/session/ bodyYour stable user id. Duplicate detection compares sessions across different values
callbackInputPOST /v3/session/ bodyWhere the hosted flow returns the user after the check
session.urlOutputCreate responseThe hosted URL you open for the user; fingerprint and IP are collected here
ip_analyses[]OutputDecision payloadGeo, ASN, VPN, proxy and Tor flags, fingerprint id, duplicate matches and warnings
warnings[].riskOutputEach ip_analyses[] entryThe risk code your policy branches on
ip_analyses[].statusOutputDecision payloadLifecycle of that collection point, from Not Started to Declined
linked_recordsOutputDecision payloadSame-face and earlier-verification summaries linked to this session
status_override, decision_traceOutputDecision payloadWhether a human changed the automatic status, and how the status was reached

Failure cases and recovery

What breaks, what you see, and how to recover
FailureWhat you seeRecovery
The user blocks the fingerprinting scriptip_analyses[] is emptyDecide in advance between failing closed and falling back to soft signals such as phone and email verification
VPN, proxy or Tor detectedA warning under LOCATIONApply your fraud policy: pass, review, decline, or add a liveness step
Duplicate deviceDUPLICATED_DEVICE on the entryMerge accounts or block per policy; check vendor_data on both sessions first
Location mismatchLOCATION_MISMATCH_WITH_DOCUMENTRoute to review. Do not auto-decline on a single soft code
Wrong session id404 with {"detail": "Not found."}The session does not exist or belongs to another application. Check the id and the key
Key without read access403 with a permission detailUse a key that holds read:sessions
Callback rejected400 on callbackPut the callback on one of the application's allowed domains, or use an app deep link
Link expired before the user finishedSession status ExpiredSet session_expiration_time between 3600 and 2419200 seconds, or fix the workflow default

The empty-array case is the one that catches teams. It is not an error and it will not throw. Your code has to treat "no signals" as its own branch, because a user who cannot be fingerprinted is neither clean nor guilty.

A liveness check result inside a session in the Didit Business Console
Adding a liveness step is one of the documented responses to a VPN or proxy warning.

Device and IP Analysis is $0.03 per check at list price, $0.0288 on Growth and $0.027 on Scale. It is billed when the check finishes with a result, and a Declined result is still a result, so a session your rules block at the IP stage is not free.

Our recommendation, not a documented Didit behavior: reserve automatic decisions for conditions you can state as a rule and defend in an audit, such as a blocklisted device, a device tied to a liveness attack, or a country your licence excludes, and send everything else to a person. What the docs do define is the record: when a reviewer overrides the automatic status, status_override and decision_trace keep who decided and on what basis.

Worked cost example

Take 10,000 full ID checks a month on the Growth plan. The list price is $0.33 per completed check and Growth takes 4% off every Didit price, so each check costs $0.3168. The device and IP portion is $0.03 at list, or $0.0288 with the same discount.

  • Checks: 10,000 x $0.3168 = $3,168.00
  • Device and IP portion: 10,000 x $0.0288 = $288.00, about 9% of the bill
  • Plan credit applied: $115.00
  • Paid from top-up: $3,168.00 - $115.00 = $3,053.00
  • Total for the month, plan fee included: $99.00 + $3,053.00 = $3,152.00

At a smaller volume the same unit prices apply. An eligible Free organization receives $10 of monthly credit, which buys about 30 full ID checks at $0.33 each: 30 x $0.33 = $9.90. The device and IP portion of those checks is 30 x $0.03 = $0.90. There is no plan fee, and the sandbox stays free and unlimited for testing before any of that credit is spent.

Sources

The next step is a sandbox session: create an application at business.didit.me, add the Device and IP Analysis node to a workflow, and read a real decision payload in a few minutes. No sales call.

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

Alejandro Rosas

Co-founder and CTO

Alejandro Rosas

Alejandro Rosas

Co-founder and CTO

About Didit

Questions

Frequently asked questions

What is IP anomaly detection in a verification flow?

It reads the IP address, its geolocation, ASN and connection type together with the device fingerprint collected during a session, then flags anything that departs from your policy: VPNs, proxies, Tor, hosting ranges, country mismatches and devices already seen under another account. On Didit this is part of Device and IP Analysis, and its warnings arrive in the LOCATION bucket of the session decision.

Does Didit offer a standalone IP analysis endpoint?

No. IP Analysis is session-only. The Web and Mobile SDKs collect the device fingerprint and IP inside the hosted flow, and the result is returned under ip_analyses[] on GET /v3/session/{sessionId}/decision/ or in the session.status.updated webhook. To run it you create a verification session.

How much does IP anomaly detection cost?

Device and IP Analysis is $0.03 per check at list price, $0.0288 on Growth and $0.027 on Scale. It is also one of the four parts of the $0.33 full ID check, alongside ID verification at $0.15, passive liveness at $0.10 and face match at $0.05. You pay when a check finishes with a result.

Which risk code should trigger a decline?

Few codes justify a decline on their own. A single VPN_DETECTED or DATACENTER_IP is weak evidence, so many teams route it to review or add a liveness step. DEVICE_FINGERPRINT_BLOCKLISTED, DEVICE_LINKED_TO_LIVENESS_ATTACK and an exact DUPLICATED_DEVICE match are stronger and commonly justify a block. You set the thresholds yourself in the console.

What happens if a user blocks the fingerprinting script?

ip_analyses[] comes back empty, because the SDK could not collect the signals. Decide in advance whether to fail closed, meaning require another check, or fall back to soft signals such as phone and email verification. Write the choice into your policy so every reviewer applies it the same way.

Can I test IP anomaly detection without real fraud traffic?

Yes. The sandbox is free on every plan and unlimited. Point the workflow at a sandbox application, run sessions, and read the same decision payload you get in production. Published prices and sandbox availability do not establish production availability, so check the product page for supported methods before you launch.

What is the difference between DUPLICATED_DEVICE and POSSIBLE_DUPLICATED_DEVICE?

DUPLICATED_DEVICE is an exact match on the persistent device identifier used for same-device detection. POSSIBLE_DUPLICATED_DEVICE comes from the recovered-device path, which uses the v2 fingerprint signal vector and high-confidence gates so unrelated users are not merged too aggressively. Treat the exact match as stronger evidence and the possible match as a review trigger.

Does IP analysis run on business verification sessions too?

Yes. The retrieve-session documentation lists ip_analyses among the feature arrays shared by both session kinds, so a KYB session returns the same array as a KYC session. Branch on session_kind before you handle the rest of the payload, because the surrounding feature arrays differ.

What does IP analysis add to a full KYC check?

A Didit KYC is three parts in one check: the ID document, biometrics with passive liveness and face match, and device and IP analysis. The IP part tells you where the session came from and whether that device has been seen before. Combined with the document country and the liveness result, it produces the location and device warnings that drive review.

Can IP anomaly detection stop account takeover by itself?

No, it is one signal in a decision. It is strongest when correlated with the document country, the liveness result and duplicate-device history, which is why Didit returns these as arrays on one payload rather than as a separate score. For the login path, pair it with biometric authentication at $0.10 per auth, where the first 50,000 authentication active users each month are free.

How do I move an existing IP rule set onto Didit?

The console can hold strict-mode rules for IP and device results, while your application code consumes the warnings the session returns. Read warnings[].risk and branch on the documented codes in your own handler, publish the workflow as a version so you can roll back, and compare the new automatic decisions against your current ones on a sample before you switch traffic. The IP analysis overview lists the full warning catalogue.

Didit Academy lesson showing how to use Didit with an MCP client
Developers can drive the same session workflow from an AI assistant through the Didit MCP server.

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.