Document Fraud Detection: Techniques That Actually Work
Stack MRZ check digits, document authenticity checks and OCR with NFC chip authentication and registry lookups, then send ambiguous documents to review. Didit ID Verification is $0.15 per check, NFC $0.15 more.

Contents
In this guide
Jump to the part you need.
Document fraud detection fits teams that verify government IDs at volume: fintech and neobank onboarding, crypto exchanges, marketplaces, gig platforms and age-gated products. On Didit an ID document check costs $0.15 inside a workflow and $0.20 through the standalone ID verification API, with NFC chip reading as a $0.15 add on. The main caveat: no single signal proves a document is genuine, so detection means stacking independent signals and sending the ambiguous cases to a reviewer.
Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.
In practice, a forged document often trips more than one check. The method is to run the cheaper checks first, keep the expensive ones for the documents that carry money or regulatory weight, and make every result land in one decision with named warnings.
| Check | Forgery it catches | Price |
|---|---|---|
| MRZ parsing, check digits and cross-zone consistency | Fabricated or edited MRZ, field values that disagree with the visual zone | Included in ID Verification, $0.15 per check |
| ID document authenticity and OCR checks across 14,000+ document types | A document that fails the authenticity check, or a document type that does not match the claim | Included in ID Verification |
| Document liveness checks for screen replay, printed copies and portrait replacement | A photo of a screen, a printed reproduction, a swapped portrait | Part of the ID document check, $0.15 |
| NFC chip reading with passive and active authentication | Cloned chips, an image presented in place of a chip read, tampered chip data | $0.15 per check, add on |
| Database validation against national registries | Synthetic identities, stolen document numbers, name and date mismatches | Variable by country and service |
| Document AI tampering check on supporting documents | Edited bank statements, payslips, proof of funds, invoices | $0.20 per document |
Start free in the sandbox at business.didit.me, no sales call, and read the ID Verification docs at docs.didit.me. Developers who want an AI assistant to drive the setup can connect Didit through the MCP server. Every published module price is on didit.me/pricing.
The four forgery types a document check has to catch
Fraud techniques differ in what they leave behind. Matching the check to the forgery type is most of the work.
- Photoshopped originals. A genuine document with edited fields. The base is real, so the layout and the printed features look correct, but re-encoding artifacts, cloning around the edited field and font strokes that differ from laser engraving or polycarbonate printing give it away.
- Template counterfeits. A document built from scratch on a downloaded template. Layout and colors can be right, while microprinting, guilloche patterns, UV inks and laser perforation come out as flat pixels instead of physical features.
- Printed and re-photographed reproductions. A digital fake printed on paper and photographed to look like a physical card. Moire interference, specular reflection patterns and shadow geometry differ from a real card held in space, and silent capture during document photography adds a second face comparison.
- Synthetic and AI-generated documents. Images produced by generative models with no genuine original behind them. Visual inspection fails here, which is why the strongest answers are cryptographic or registry based.
Anti-counterfeiting document technology that holds up
Every technique that works reads something the counterfeiter cannot copy: the issuer's signature, the physics of the material, or the issuer's own record. The rest are heuristics that raise or lower confidence.
MRZ check digits
Passports and many national IDs carry a Machine-Readable Zone built to ICAO 9303. It holds check digits computed from the document number, date of birth, expiry and a composite field. A fabricated MRZ has to satisfy all of those constraints at once, and low-effort forgeries do not. An MRZ that fails its own check digits raises INVALID_MRZ, and a value that disagrees with the visual zone raises INCONSISTENT_DATA.
NFC chip authentication
For ePassports and chip eIDs, NFC reading gives the highest level of security available for ID Verification. Passive Authentication verifies the chip signature against the issuing government public key, so altered data cannot produce a valid signature. Active Authentication answers a challenge signed with the chip private key, which exposes cloned chips. NFC authentication needs a real chip and signed chip data, and an image on its own cannot supply either. NFC on Didit is session only: the mobile SDK uses the device NFC radio, and the flow photographs the document first to derive access keys from the MRZ. There is no standalone NFC endpoint.
Physical security features and what a camera can test
Microprinting, guilloche geometry, optically variable ink and laser-perforated serials are the anti-counterfeiting features issuers print into the card. A camera cannot test UV ink, so a photo-based check does not prove that a physical feature is present. What the check can do is read the document, test it for tampering and extract its fields. That is where we draw the line at Didit: ID Verification reads and authenticates government-issued documents, extracts the data with AI OCR, and returns a status with named warnings. The cryptographic side of a chip document is covered by NFC reading.
Registry cross-checks
A document number that does not exist in the issuer registry is a hard signal, and a stolen number attached to a different name is another. Didit Database Validation queries national registries and returns a per-field match plus an aggregated outcome. Where the registry holds a photo (Argentina through RENAPER, Panama through the Tribunal Electoral SIB), the check can include a biometric face match against the official record. Coverage is per country, so treat it as a strong option where it exists rather than a universal layer.
Tampering checks on supporting documents
Much of the document fraud that reaches a live business is not the ID card. It is the bank statement, the payslip, the proof of funds or the invoice. Didit Document AI extracts fields you define from any PDF or image, decodes supported QR codes and barcodes, and checks the file for manipulation. A suspected manipulation raises DOCUMENT_AI_SUSPECTED_MANIPULATION, which declines by default. This is where anti-counterfeiting document technology meets back-office verification.

What we claim, and what we do not
Documented on Didit today: ID Verification reads and authenticates government-issued documents across 14,000+ document types in 220+ countries and 54 languages, extracts the data with AI OCR including MRZ parsing and barcode decoding, and returns warnings such as INVALID_MRZ, INCONSISTENT_DATA, FRAUD_RISK_FROM_OCR, DUPLICATED_DOCUMENT and DOCUMENT_LIVENESS_FAILED. NFC Verification reads the chip in ePassports and eIDs and returns nfc_verifications[] with its own warning codes. Database Validation matches identity data against national registries. Document AI extracts fields from supporting documents and flags suspected manipulation.
What we do not claim: that a photo-based test proves a physical security feature is present, or that one signal settles a case. Where a document carries a chip, the chip is the strongest evidence. Where it does not, the decision rests on the extracted data, the warnings and your review policy.
Prerequisites
- A Didit account and an API key, created at business.didit.me. The sandbox is free on every plan.
- A workflow id that includes the ID verification feature, or a backend that can call the standalone API with a server-to-server key.
- Images that meet the limits: tiff, jpg, jpeg, png, webp or pdf, up to 5 MB per file, uncropped with all four corners visible. Dual-sided documents also need a back image.
- A written policy per warning code: decline, review, or no action. Decide it before you see the first real result.
- A review queue. Every automated check leaves a set of cases no model should close on its own.
How to run document fraud detection on Didit, step by step

- Write the decision policy first. Map each warning to an action. Expired document, invalid MRZ and inconsistent data are terminal for most flows. A liveness result that could not be computed is not a pass, it is an unchecked document that goes to review.
- Build the workflow. Add the ID verification feature in the Business Console or through
POST /v3/workflows/. Add NFC to the same workflow if you need chip documents read. - Create a session with
POST https://verification.didit.me/v3/session/, sendingworkflow_id,vendor_dataand an optionalcallback. Send the user to the returnedsession.urlor mount the Web or Mobile SDK. Thevendor_datavalue binds sessions to one user and feeds duplicate detection. - Or call the standalone API when your backend already holds the images. This request turns document liveness on and makes the three hard warnings terminal:
curl -X POST 'https://verification.didit.me/v3/id-verification/' \ -H 'x-api-key: YOUR_API_KEY' \ -F 'front_image=@./id_front.jpg' \ -F 'back_image=@./id_back.jpg' \ -F 'perform_document_liveness=true' \ -F 'minimum_age=18' \ -F 'expiration_date_not_detected_action=DECLINE' \ -F 'invalid_mrz_action=DECLINE' \ -F 'inconsistent_data_action=DECLINE' \ -F 'preferred_characters=latin' \ -F 'save_api_request=true' \ -F 'vendor_data=user-123' - Fetch the decision with
GET /v3/session/{sessionId}/decision/or from thesession.status.updatedwebhook. Read the plural arrayid_verifications[], one entry per document collected in the workflow, not a singular key. - Read the warnings, not just the status. The status tells you where the case landed. The warnings array names the reason, and that reason is what your reviewer, your audit trail and your policy need.
- Add NFC for chip-capable documents. Put the NFC feature in the same workflow and run the session on a phone with NFC. The chip result arrives in
nfc_verifications[]. A chip read that disagrees with the printed data raisesNFC_DATA_DOES_NOT_MATCH_OCR, and a failed passive authentication raisesNFC_PASSIVE_AUTHENTICATION_FAILED. Neither should be approved. - Cross-check the registry where the country allows it. Add Database Validation to the workflow, or call
POST https://verification.didit.me/v3/database-validation/withissuing_stateandidentification_number. Ano_matchis a synthetic identity signal, apartial_matchgoes to review. - Route reviews and record outcomes. Every
In Reviewstatus needs an owner and a service level. Record the reviewer decision in your own review system and retain the warnings with it.
Expected result
A successful standalone call returns a request id and an id_verification object with the status, the extracted fields, the MRZ, decoded barcodes, the portrait image and a warnings array. The status is one of Approved, In Review, Declined, In Progress, Abandoned, Not Started or Kyc Expired. The warnings array carries the risk codes that fired for that document, and when a code fires with its action set to DECLINE the result comes back Declined with that code listed. Read the codes, not only the status, because the codes drive the review queue.

Inputs and outputs
| Item | Direction | What it does |
|---|---|---|
front_image | Input, required | The front of the document, uncropped, max 5 MB |
back_image | Input, required for dual-sided documents | The back of ID cards and driver licences |
perform_document_liveness | Input | Runs the forgery check for screen replay, printed copy and portrait replacement |
invalid_mrz_action, inconsistent_data_action, expiration_date_not_detected_action | Input | Set the action per warning: DECLINE, REVIEW or NO_ACTION |
minimum_age | Input | Fails the check when the extracted date of birth does not reach the age |
status | Output | Where the case landed after the configured actions were applied |
warnings[] | Output | Risk codes such as INVALID_MRZ, INCONSISTENT_DATA, FRAUD_RISK_FROM_OCR, DUPLICATED_DOCUMENT, DOCUMENT_LIVENESS_FAILED |
mrz, barcodes, document_type, document_number | Output | Parsed values you can match against your own records |
Failure cases and recovery
| Failure | What you see | Recovery |
|---|---|---|
| Insufficient balance | HTTP 403 with a credits message | Top up in the console, then retry the request. |
| Bad upload | HTTP 400 with multipart validation detail | Missing back image on a dual-sided document, a file over 5 MB, or an unsupported extension. Re-capture or re-encode and retry. |
| Terminal forgery signal | Declined with DOCUMENT_EXPIRED, INVALID_MRZ, COULD_NOT_RECOGNIZE_DOCUMENT or DOCUMENT_LIVENESS_FAILED | Surface the first warning to the user and stop the flow. |
| Forgery check did not run | In Review with a liveness-not-computed warning | Treat the document as unchecked and route it to manual review. Never read this as a soft pass. |
| Ambiguous result | In Review with one or more risk codes | Send to the review queue with the warnings attached. |
| NFC not read | NFC_NOT_READ or NFC_BAC_FAILED | Usually the phone moved away from the chip or the MRZ read failed. Allow a retry, then fall back to document plus face match. |
| Registry outage | HTTP 502 on Database Validation with validation errors | The request is not billed. Retry later or fall back to OCR plus document checks. |
Paid steps and review boundaries
Billing is per completed check from prepaid credit. The ID document step is $0.15 inside a workflow and the standalone ID verification API is $0.20 per call. NFC adds $0.15. Document AI is $0.20 per document. Face Search 1:N is $0.05 per search and also runs automatically during liveness checks, which is how a duplicate face gets flagged. Database Validation is billed per successful service hit, so a multi-service request can produce more than one usage event.
Review is a human boundary, not a model output. Didit returns the status and the reasons; your policy decides what an approved customer is, and your team owns every case that lands in review. Keep the automated layer to the signals it can prove, and give reviewers the warnings array instead of a bare score.
Worked cost example
Take 10,000 verifications a month, of which 3,000 are chip-capable passports and 800 arrive with a bank statement that needs field extraction.
- ID document checks: 10,000 x $0.15 = $1,500.00
- NFC chip reads on 3,000 documents: 3,000 x $0.15 = $450.00
- Document AI on 800 statements: 800 x $0.20 = $160.00
- Total for those three lines: $1,500.00 + $450.00 + $160.00 = $2,110.00
- Same population as full KYC checks: 10,000 x $0.33 = $3,300.00, because the bundle is ID $0.15 + passive liveness $0.10 + face match $0.05 + device and IP $0.03
- On the Scale plan Didit prices are 10% lower: $0.33 becomes $0.297, so 10,000 x $0.297 = $2,970.00
Database Validation is variable by country and service, so it is left out of that total. Read the per-service table before you quote an internal cost, and remember the free plan includes $10 of monthly credit for organizations that sign up with a work email.
Sources
- Didit docs: ID Verification API, 14,000+ documents
- Didit docs: ID verification warning catalogue
- Didit docs: NFC Verification API
- Didit docs: NFC warning catalogue
- Didit docs: Database Validation API
- Didit docs: Document AI API
- Didit docs: Create Session API and Retrieve Session API
- Didit docs: Face Search 1:N API
- Didit pricing page and pricing in the docs, read November 26, 2026
Next step: create a free account at business.didit.me, run a forged and a genuine document through the sandbox, and write your warning policy from the results. No sales call is involved.
Try it
Try this in the sandbox
Run the check this guide describes, free.
The product this post is about, taken from its topic. Run it free in the sandbox.
Author
Alberto Rosas
Co-founder and CEO

Questions
Frequently asked questions
What is document fraud detection?
Document fraud detection is the set of checks that decide whether a presented identity document is genuine, unaltered and issued to the person using it. It combines MRZ check digits, chip authentication, document authenticity checks and registry lookups. On Didit it runs on every document submission and returns one status with a list of named warnings.
How much does a Didit document fraud check cost?
An ID document check costs $0.15 inside a workflow and $0.20 through the standalone ID verification API. NFC chip reading is a $0.15 add on, Document AI is $0.20 per document, and the full KYC bundle of ID, passive liveness, face match and device and IP analysis is $0.33. Prices are per completed check from prepaid credit.
Can an AI-generated fake ID pass document verification?
It can pass a visual inspection, because a good generative image has the right fonts and layout. It cannot produce government-signed chip data, so an NFC read on a chip-capable document rules it out. Without a chip, the decision comes from the document authenticity checks Didit runs and from database validation against the issuing registry where that country is covered.
What is an MRZ checksum and why does it catch forgeries?
The Machine-Readable Zone on a passport or national ID contains check digits computed from the document number, date of birth, expiry and a composite field using a weighted modulo-10 algorithm. A fabricated or altered MRZ has to satisfy every constraint at once, and many forgeries do not. A failure raises INVALID_MRZ, and a value that disagrees with the visual zone raises INCONSISTENT_DATA.
Does NFC chip reading stop forged documents?
For ePassports and chip eIDs it gives the highest level of security available for ID Verification. Passive Authentication verifies the issuer signature and Active Authentication answers a challenge signed with the chip private key, so cloned chips and manipulated data fail. NFC on Didit is session only and needs a phone with the NFC radio through the mobile SDK.
What is anti-counterfeiting document technology for identity documents?
It is the combination of features issuers print into a document and the checks that test them. Physical elements include microprinting, guilloche patterns, UV inks and laser-perforated serials, and a camera cannot test most of them. The practical rule is to rely on what a counterfeiter cannot reproduce: the issuer signature, the material physics, or the issuer record. Didit reads and authenticates the document, extracts the data with AI OCR and returns named warnings, and NFC covers the cryptographic side of chip documents.
What happens when a document is flagged for review?
The session status becomes In Review and the warnings array lists what triggered it. The document is not approved, and your reviewers decide the outcome. A review status caused by a forgery check that could not run should always be treated as unchecked, never as a pass.
Does document fraud detection replace liveness and face match?
No. Document checks prove things about the document, and liveness plus face match prove that a real person is present and matches the portrait. Both are needed to confirm that a genuine document is being used by its rightful holder. The full KYC bundle covers all of it for $0.33.
Which document types and countries are supported?
Didit ID Verification covers 14,000+ document types in 220+ countries and territories, in 54 languages, including passports, national ID cards, driver licences and residence permits. Database Validation coverage is separate and depends on which national registries expose an interface.
Can I test document fraud detection before paying?
Yes. The sandbox is free and unlimited on every plan, and you can create sessions and run the standalone endpoints without a sales call. The free plan also includes $10 of monthly credit for organizations that sign up with a work email, which covers real calls outside the sandbox.
How do I run the checks without the hosted flow?
Call the standalone endpoints from your backend: POST https://verification.didit.me/v3/id-verification/ for the document, POST https://verification.didit.me/v3/database-validation/ for a registry lookup and POST https://verification.didit.me/v3/document-ai/ for supporting documents. NFC has no standalone endpoint and needs a session on a phone with the NFC radio.
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.
Your obligations · 3 regions
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.
- 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.
Didit Academy


