← Blog · Fraud Prevention
Reading the Chip: NFC Passport Verification in a Chat Flow

Most document checks still rely on a photograph of an ID: the user snaps a picture, and software inspects fonts, holograms, and MRZ formatting. That approach catches sloppy forgeries but struggles against high-resolution reprints and screen replays. Electronic passports and many national ID cards carry a contactless chip that changes the equation. Reading it over NFC shifts verification from "does this photo look right" to "is this document cryptographically signed by the issuing authority."
What the Chip Actually Contains
An ePassport chip follows the ICAO 9303 standard and stores data in numbered groups. The two most relevant are DG1, a digital copy of the machine-readable zone, and DG2, the holder's facial image. A separate Document Security Object (SOD) holds hashes of each data group, signed by the issuing country's Document Signer Certificate, which in turn chains to a national Country Signing Certificate Authority.
This structure enables Passive Authentication: recompute the hash of each data group, compare it to the signed values in the SOD, and validate the certificate chain against a trusted list such as the ICAO Public Key Directory. If the math holds, the data has not been altered since issuance. Chip Authentication and Active Authentication add protection against cloning by proving the chip holds a private key it cannot export.
Why This Beats a Photo
A printed forgery can reproduce a convincing surface, but it cannot forge a valid national signature over its contents. Passive Authentication therefore detects tampering that visual OCR cannot. Consider the practical gains:
- Data integrity: name, date of birth, and document number come from a signed record, not from error-prone text recognition on a blurry image.
- Face binding: the DG2 image is issuer-provided, giving liveness comparisons a trusted reference rather than a self-supplied selfie versus a self-supplied ID photo.
- Anti-cloning: Active or Chip Authentication frustrates copied chips.
The chip is unlocked using Basic Access Control or the newer PACE protocol, both of which derive a key from the MRZ. In practice the user first scans the passport's data page so the app reads the MRZ, then holds the document to the phone to open the chip. The phone never sees the key unless it can already read the printed page.
Fitting NFC Into a Chat-Based Flow
Chat interfaces are not a natural home for NFC, because the reader must be the device's own hardware. The workable pattern is to keep the conversation as the orchestration layer and hand off the physical read to a native capability. In a Telegram or WhatsApp flow, the bot collects consent, explains the two steps, and issues a short-lived link to a web or native component that performs the MRZ scan and chip read on the user's phone. The verified result — pass, fail, or unsupported document — returns to the chat, while the raw chip data is processed in a controlled environment.
Coverage is the main constraint. Not every ID has a chip, not every phone reads NFC reliably, and some older Android and iOS combinations behave inconsistently. Build a fallback path to visual document checks so users on unsupported devices are not stranded. Track chip-read success rates separately from overall completion so you can see where the technology helps and where it adds friction.
Handling the Data You Extract
Reading a chip yields a signed facial image and full biographic data — high-value personal information that deserves deliberate handling. Data minimization starts at extraction: pull only the data groups your risk model requires, and avoid persisting DG2 once the face match is scored. Keep the verification outcome and the evidence of the signature check, which is what an audit needs, rather than the underlying biometric payload indefinitely. Configurable retention lets you align storage windows with AML record-keeping obligations while discarding the rest on schedule. Framed as general information, the principle is consistent across regimes: prove the check happened without hoarding the raw identity data that made it possible.
General information, not legal advice. Talk to your compliance counsel for guidance on your specific obligations.