Skip to main content

Advanced Biometric Spoofing Detection: Stopping Deepfakes

Layer passive liveness ($0.10), active 3D liveness ($0.15), face match ($0.05) and device and IP analysis ($0.03). Read liveness check statuses and warnings, decline attack signals, review the rest.

Advanced Biometric Spoofing Detection: Stopping Deepfakes

Contents

In this guide

Jump to the part you need.

Advanced spoofing detection fits teams whose onboarding is already being attacked: printed photos, screen replays, masks, AI-generated faces. We run passive liveness on every user at $0.10 per check, active 3D liveness for higher-risk populations at $0.15, face match at $0.05 and device and IP analysis at $0.03. The caveat: no single score stops a deepfake. Your thresholds and review policy do.

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

The layers, and what each one costs

Didit modules used against deepfakes and presentation attacks, with published list prices. The $0.33 bundle includes ID verification, passive liveness, face match and device and IP analysis; active liveness and Face Search are priced separately.
LayerAttack it targetsModule and price (USD)
Passive livenessPrinted photos, screen replays, masks, single-frame rendered facesPassive Liveness, $0.10 per check
3D flashFlat photos and 2D screens, caught by a light-pattern depth mapActive Liveness, $0.15 per check
3D action and flashReplayed video and pre-recorded faces that are harder to pass with a randomised actionActive Liveness, $0.15 per check
Face match 1:1A real live face that is not the person on the ID documentFace Match, $0.05 per check
Face search 1:NThe same face returning across accounts, blocklisted facesFace Search, $0.05 per search
Device and IP analysisVPN, proxy, Tor, datacentre IPs, duplicated devices, location mismatch with the documentDevice and IP Analysis, $0.03 per check
Full ID check bundleID verification, passive liveness, face match 1:1 and device and IP analysis in one session$0.33 per completed check

Start free in the sandbox at business.didit.me, no sales call. For developer work, connect Didit to an AI assistant through the Didit MCP server. Liveness sits inside user verification, and every number below is on didit.me/pricing.

MCP setup for every client

Signals your review policy should use

A working anti-spoofing setup returns three things per session: a decision status, a score, and a named warning code when something looks wrong. A clean capture can be approved when the configured checks and policy pass. A printed photo, a screen replay, a mask or a rendered face is declined or sent to review with a reason your team can read. The policy that turns those signals into approve, review or block belongs to you. Didit returns the signals.

What advanced liveness detection for deepfakes checks

Liveness answers one question: is a live person in front of the camera right now? It does not answer whether that person is who they claim to be. That is face match, the next layer. Didit runs three liveness methods and you pick one per workflow node with face_liveness_method. Active 3D liveness and 3D flash run inside a session, where the SDK controls the capture and the light pattern. The standalone passive liveness API is different: you send one already-captured image server-to-server and get a passive result. It cannot run 3D flash or 3D action.

  • Passive liveness (PASSIVE) analyses a single frame with a convolutional neural network, looking for print artefacts, texture patterns, screen reflections and other indicators that separate a real face from a spoof. No user action. Standard security, which suits lower-risk onboarding and re-checks.
  • 3D flash (FLASHING) projects a light pattern onto the face at over 30 frames per second and reads the reflections to build a depth map. A flat photo or a 2D screen fails the depth test. Still no user action.
  • 3D action and flash (ACTIVE_3D) adds a randomised action such as blinking or nodding to the light-pattern analysis, then reads micro-expressions and the reflection response. It is the highest security setting, and the one to use for banking, healthcare and government use cases.

Didit reports 99.9% accuracy for liveness with a false acceptance rate under 0.1%. Passive liveness holds iBeta Level 1 and Level 2 certification for presentation attack detection under ISO/IEC 30107-3. Read that as a statement about the model, not a guarantee for your traffic: run your own capture conditions through it before you fix thresholds. The full method comparison is in the liveness documentation.

The face scanning step during a Didit verification session
The liveness step a user sees. The method behind it, passive, 3D flash or 3D action, is set per workflow node, not chosen by the user.

Anti-spoofing biometrics are one layer, not the whole check

Anti-spoofing biometrics checks whether the face is real. Two other questions decide the session. Face match 1:1 compares the live selfie with the portrait on the ID document, so a deepfake of a different person is less likely to pass as the document holder. Device and IP analysis runs inside the same session and flags VPN, proxy, Tor, datacentre addresses, duplicated devices, suspicious device fingerprints and a country that does not match the document. Face search 1:N adds duplicate and blocklist screening across the faces your application has already indexed. Put them together and an attacker has to beat a live capture, a portrait match and a device history at the same time.

Prerequisites

  • A Didit account and an application. The sandbox is free on every plan, and the Free plan adds $10.00 of monthly credit for eligible organizations that sign up with a work email.
  • An API key sent in the x-api-key header. Missing or invalid credentials return 403 on the standalone APIs, which never return 401.
  • A workflow that carries the LIVENESS feature, with face_liveness_method set to PASSIVE, ACTIVE_3D or FLASHING.
  • Selfie images in jpg, jpeg, png, tiff or webp, maximum 5 MB. PDFs are rejected by the liveness endpoint.
  • Biometric notice and explicit consent before the selfie where Illinois (BIPA), Texas (CUBI) or Colorado rules apply, as described in the biometric consent guide.
  • A decision sink: poll GET /v3/session/{sessionId}/decision/, or subscribe to the session.status.updated webhook.
  • A written policy that says which warning codes decline, which go to manual review and which you accept.

Step by step: a layered anti-spoofing flow

  1. Choose the method per population. In the Business Console, or with POST /v3/workflows/, set face_liveness_method. Passive for standard signup, 3D flash or 3D action for high-value accounts. The Workflow Orchestrator is free on every plan, so you can route by risk instead of forcing everyone through the strictest check.

  2. Create the session. Send workflow_id, a stable vendor_data value for the user and your callback URL.

    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"}'
  3. Send the user to the capture. Open the returned session.url, or mount the Web or Mobile SDK. The SDK also collects the device fingerprint and the IP in-band, so leave device and IP collection on rather than building it yourself.

  4. Fetch the decision. Call GET /v3/session/{sessionId}/decision/ or wait for session.status.updated. The liveness result lands in liveness_checks[], one entry per liveness node in the workflow.

  5. Map status and warnings to your policy. Approve on Approved. Route In Review to a human. Refuse Declined with LIVENESS_FACE_ATTACK or LOW_LIVENESS_SCORE. The warning catalogue is in the liveness warnings reference.

  6. Screen selfies you already hold. If a mobile app, branch or partner hands you a captured selfie, call the standalone passive liveness endpoint instead of creating a session.

    curl -X POST 'https://verification.didit.me/v3/passive-liveness/' -H 'x-api-key: YOUR_API_KEY' -F 'user_image=@./selfie.jpg' -F 'save_api_request=true' -F 'vendor_data=user-123'
  7. Add the identity and device layers. Add FACE_MATCH to the same workflow so the live selfie is compared with the document portrait, and keep device and IP collection on so duplicates and VPN flags land in ip_analyses[]. The face match and device and IP pages document those decision surfaces, and the integration prompt gives a coding agent the whole sequence in one file.

Expected output

The standalone passive liveness call answers HTTP 200 with the documented fields below. The numbers are illustrative placeholders that show each field's type, not test results.

{
  "request_id": "",
  "liveness": {
    "status": "Approved",
    "method": "PASSIVE",
    "score": 88,
    "warnings": [],
    "face_quality": 91,
    "face_luminance": 76
  }
}

The status enum is Not Started, In Progress, Approved, In Review, Declined, Abandoned or Kyc Expired. When a save_api_request call is persisted, the returned request_id is a real session id you can pass to the decision endpoint. The status becomes Declined when any error-severity warning fires: NO_FACE_DETECTED, LOW_LIVENESS_SCORE at or below face_liveness_score_decline_threshold (default 30), LIVENESS_FACE_ATTACK, or FACE_IN_BLOCKLIST / POSSIBLE_FACE_IN_BLOCKLIST. MULTIPLE_FACES_DETECTED is a warning-severity signal that does not decline, and DUPLICATED_FACE / POSSIBLE_DUPLICATED_FACE are information-severity signals that never decline.

A liveness result inside a session in the Didit Business Console
The liveness result in the Business Console session view: status, score and the warnings that fired, next to the captured face.

Failure cases and recovery

Documented failure modes on the liveness path and what to do
SignalWhat it meansRecovery
HTTP 403 before processingOut of credits, or the key cannot reach the resourceTop up or fix scopes. No image was processed and no credit was consumed.
HTTP 400Missing user_image, file over 5 MB, unsupported extension, or a PDFFix the payload. Nothing is billed.
Declined with LIVENESS_FACE_ATTACKThe model detected a presentation attackDo not approve. Route to manual review or block, according to your policy.
Declined with LOW_LIVENESS_SCOREScore at or below face_liveness_score_decline_thresholdAsk for a retry in better light, or send to review. Watch for users repeatedly landing here.
NO_FACE_DETECTED, MULTIPLE_FACES_DETECTEDCapture problem, not necessarily fraudAsk the user to retry with a single, well-framed face.
FACE_IN_BLOCKLISTThe face matches an entry on your blocklistBlock, or review if your policy allows an appeal.
DUPLICATED_FACEThe same face already appeared in an approved sessionYour decision: merge accounts, review, or accept. This code never declines on its own.
HTTP 429Over the shared write budget of 300 requests per minute per API keyBack off and retry.
No device signals in ip_analyses[]The user blocked SDK fingerprinting with a privacy extensionDecide fail-closed or soft-signal. Do not assume an empty array means low risk.

Inside a session flow, a face match that fails for a fixable capture reason is not an instant decline. The user is asked to retry with guidance, up to face_match_max_attempts (default 3, range 1 to 3 per workflow node), and the SDKs surface feedback_codes as coaching messages. When the budget is exhausted, the computed status is applied, Declined or In Review. Standalone Face Match is single-shot with no retry budget. Passive liveness can persist as an API-type session when save_api_request=true and has no retry budget. Your own retry logic decides what happens on standalone calls.

Inputs and outputs

Passive liveness and session fields you will actually set and read
FieldDirectionNotes
user_imageInput, requiredSingle front-facing face. jpg, jpeg, png, tiff or webp, max 5 MB. Compressed to about 0.5 MB before processing, so higher resolution does not improve accuracy.
save_api_requestInput, optionalDefault true: the call is persisted as an API-type session and the face is enrolled into your face search index. false is one-shot, nothing stored, nothing enrolled.
vendor_dataInput, recommendedYour stable user identifier. Prior faces with the same value are excluded from duplicate and blocklist matching.
face_liveness_methodInput, workflow levelPASSIVE, ACTIVE_3D or FLASHING.
liveness.statusOutputOne of the seven status values. Drive your approve, review and decline branches from this.
liveness.scoreOutput0 to 100. Use it to tune thresholds and to spot cohorts that fail.
warnings[]OutputThe named codes in the table above. Log them; they are what your review team reads.
face_quality, face_luminanceOutput0 to 100, nullable. Use them to coach capture, not to make fraud decisions.

Billing is per completed check from prepaid credit. Each successful standalone API response consumes one API credit, including a response whose status is Declined; session billing follows the published completed-check pricing. Requests rejected with 400 or 403 are not billed.

  • Passive liveness inside a session: $0.10. Active liveness: $0.15. Face match: $0.05, in session and on the API. Face Search API: $0.05 per search.
  • Device and IP analysis inside a session: $0.03.
  • ID document verification: $0.15.
  • Free on every plan: sandbox testing, the workflow orchestrator, reusable KYC, the MCP server and the SDKs.

The review boundary is the part teams get wrong. Didit applies the documented automatic declines, and it returns every other signal as a code with a severity. Whether DUPLICATED_FACE means a merge, a manual review or nothing at all is a business decision, and so is the score threshold above or below the default 30. Write that policy down before launch, keep a human queue for In Review, and revisit thresholds when you see a cohort failing for capture reasons rather than fraud.

Worked cost example

Take 10,000 completed ID checks on the full bundle, list price $0.33 each:

  • ID document verification: $0.15 x 10,000 = $1,500.00
  • Passive liveness: $0.10 x 10,000 = $1,000.00
  • Face match 1:1: $0.05 x 10,000 = $500.00
  • Device and IP analysis: $0.03 x 10,000 = $300.00
  • Total: $1,500.00 + $1,000.00 + $500.00 + $300.00 = $3,300.00, which is $0.33 x 10,000.

Now escalate the riskiest 500 users to active liveness. The step costs $0.15 instead of $0.10, so the extra is $0.05 x 500 = $25.00, and the total is $3,325.00. Suppose you also run 2,000 Face Search 1:N calls at $0.05 per search: $0.05 x 2,000 = $100.00. Grand total $3,425.00. The $0.33 bundle does not include active liveness or Face Search, which is why those two lines are added here. On the Scale plan, Didit prices carry a 10% discount: $3,425.00 x 0.90 = $3,082.50. Plan credit is consumed first, then top-ups. Check the arithmetic against the pricing page or the machine-readable pricing feed before you quote a budget.

A session overview with its warnings in the Didit Business Console
A session overview with the warnings that fired. This is the screen your review team works from when a liveness or device signal needs a human decision.

Sources

Next step: create a free sandbox account at business.didit.me, run the passive liveness call with your own test selfies, and wire the session decision into your review queue. No sales call, and nothing is charged until real checks run.

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

What is advanced liveness detection for deepfakes?

It is a check that confirms a live person is in front of the camera at capture time, rather than a photo, a screen replay, a mask or a rendered face. Didit runs passive, 3D flash and 3D action liveness and returns a status, a 0 to 100 score and named warning codes for each liveness node in the session. It sits inside a wider flow that also matches the face to an ID document and checks the device and network.

How does passive liveness detect a spoofed selfie?

Passive liveness analyses a single frame with a convolutional neural network and looks for print artefacts, texture patterns, screen reflections and other cues that separate a real face from a spoof. The user does nothing extra, which is why it suits high-volume onboarding. A low score at or below the decline threshold (default 30) or a detected presentation attack returns Declined with LOW_LIVENESS_SCORE or LIVENESS_FACE_ATTACK.

What is the difference between passive, 3D flash and 3D action liveness?

Passive reads one frame and needs no user action, which gives standard security for lower-risk flows. 3D flash projects a light pattern at over 30 frames per second and builds a depth map, so a flat photo or 2D screen fails. 3D action adds a randomised action such as blinking or nodding on top of the light-pattern analysis, which is the highest security setting and the right choice for banking, healthcare and government use.

Is Didit liveness certified against presentation attacks?

Yes. Didit passive liveness holds iBeta Level 1 and Level 2 certification for presentation attack detection under ISO/IEC 30107-3. The wider platform holds SOC 2 Type 2 and ISO/IEC 27001:2022 certification. Certification covers presentation attack detection, so pair it with your own injection and device controls for the full picture.

How much does anti-spoofing biometrics cost on Didit?

Passive liveness is $0.10 per check in a session. Active liveness is $0.15, face match is $0.05, face search is $0.05 and device and IP analysis is $0.03. The full ID check bundle, ID document plus passive liveness, face match and device and IP, is $0.33 per completed check; it does not include active liveness or Face Search. Sandbox testing is free on every plan.

What accuracy does Didit report for liveness?

Didit reports 99.9% accuracy for liveness with a false acceptance rate under 0.1%. That is a vendor-reported figure for the model, not a promise for your specific traffic, cameras and lighting. Validate it against your own captures before you set decline thresholds or promise a fraud rate to your board.

What should I do when a liveness check returns Declined?

Do not approve the session. A decline carrying LIVENESS_FACE_ATTACK or LOW_LIVENESS_SCORE means a presentation attack is suspected, so route it to manual review or block it. Decline codes caused by capture quality, such as NO_FACE_DETECTED or MULTIPLE_FACES_DETECTED, should send the user back for a single, well-framed retry.

Can a deepfake pass 3D action liveness?

A deepfake has to answer a randomised action and reproduce the light-pattern depth response in real time, which raises the difficulty of reproducing a live response with a pre-recorded or rendered face. That is why 3D action and flash is the highest security setting. No biometric control carries zero risk, so keep face match against the ID portrait, device and IP analysis and blocklist screening in the same flow.

How do I test spoofing detection without spending credits?

Sandbox API keys skip all processing and billing and return a static approved mock payload, with no session persisted and no credits consumed. That proves your integration and payload formats, not your detection accuracy. Test detection on a live application with your own challenge images, including a printed photo, a screen replay and a face that is not the document holder.

Does the standalone passive liveness API store the face?

By default yes. With save_api_request=true the call is persisted as an API-type session, the reference image and face crop are stored, and the face is enrolled into your face search index. Setting it to false makes the call one-shot: nothing is stored and nothing is enrolled, though blocklist and duplicate screening still run.

How many retries does a user get?

In a session flow, face_match_max_attempts controls face-match submissions per session, default 3 (one attempt plus two retries, range 1 to 3 per workflow node), and retryable failures return feedback_codes the SDKs show as guidance. Once the budget is exhausted the computed status applies. Standalone Face Match is single-shot, and passive liveness has no retry budget; your application owns retry logic for standalone calls.

What else should run next to liveness?

Face match 1:1 against the ID portrait, device and IP analysis for VPN, proxy, duplicate devices and location mismatch, face search 1:N for duplicate and blocklisted faces, and AML screening where the use case requires it. Each one closes a gap the others leave open. Full KYC bundles ID verification, passive liveness, face match and device and IP analysis at $0.33 per completed check; Face Search and AML screening are priced separately.

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.