Peruvian DNI fraud: which fields get edited and how it is caught
The Peruvian Documento Nacional de Identidad (DNI), issued by RENIEC and now only as the electronic DNIe, is the mandatory national ID and the primary document for banking and fintech onboarding. Its number is eight digits with a verification character, and the machine-readable zone carries standard ICAO check digits, so a card edited on the front tends to contradict its own zone.
Last updated:
Where the edits land
Field
portrait
Edited on an otherwise genuine page.
Identifier
DNI number
Well-formed but orphaned from the rest of the file.
Person or party
name and DOB fields
Borrows a real issuer's credibility for someone else.
Date
caducidad date
Cheapest to change, easiest to leave out of sequence.
Forgery methods seen on a Peruvian DNI
MRZ check digits
The machine-readable zone repeats the number and dates with ICAO check digits. Digits that fail, or a zone that contradicts the front, point to edited print.
Verification-character rules
A letter is valid on cards from before May 2007 and a digit afterwards. A letter on a card issued after the change contradicts its own date.
Caducidad logic
Expiry must follow from the issue date and the generation's age rule. A date that breaks the rule is an internal inconsistency.
Generation conformance
The DNIe 3.0 carries a QR code on the reverse and the placement of the verification digit differs between generations. A missing code or wrong placement signals assembly.
Photograph and field patching
Portrait swaps and edited names or birth dates leave cut-line edges, font passes, and resolution steps that differ from uniform issued print.
Inside the forensic analysis of a Peruvian DNI
Portrait substitution and face-swap analysis
The document is isolated from whatever it was photographed on, then the portrait region is assessed against the card surface around it. A pasted or generated face rarely matches the substrate it was placed onto.
Reference and document number checks
Document, account, and reference numbers are checked for issuer format conformance and against every other place the same value appears on the page.
Date and validity consistency
Issue, expiry, and period dates are checked against one another and against the file's own creation metadata, which catches backdating and validity extension.
And many more checks
The three above are the layers that carry the most weight on a Peruvian DNI. Every upload runs the full suite of 300+ checks regardless of document class, spanning file structure and metadata, pixel-level forensics, font and text rendering, optical and print characteristics, provenance signals, AI-generation signatures, and many more checks.
What looks wrong on a Peruvian DNI
A portrait that does not match the page around it
Zoom in on the edge of the portrait. A pasted or generated image often leaves a faint halo, or lighting and texture that do not match the rest of the document.
A DNI number that appears only once
Genuine documents usually repeat an identifier in a header, footer, barcode or reference block. Look for every place the DNI number should appear and check they agree. An edit that updates one and forgets the others is one of the most common mistakes.
Edges and corners that were rebuilt
Rounded corners, laminate edges and background patterns are hard to recreate. Look for a pattern that breaks, blurs or repeats around the edited area.
Data that disagrees with its own encoding
Where a card carries a barcode, QR code or machine-readable line, the printed text should match it exactly. Mismatch is a strong sign the face was edited and the encoding was not.
A security feature that is printed, not built in
A hologram or foil should change as you tilt it. A flat printed picture of one looks identical in every photograph and never shifts.
A practical checklist for a Peruvian DNI
1. Capture both sides
Photograph front and back flat at full resolution so the number, machine-readable zone, and QR region survive close analysis.
2. Check the number
Confirm the eight digits and the verification character, and that its type fits the issue date.
3. Verify the zone
Recompute the MRZ check digits and compare the zone with the front for number, birth date, and sex.
4. Run a forensic check on the file
The zone carries the structural story, and the print carries the edit history. TamperCheck runs 300+ forensic checks including MRZ and number checks and patch detection, returning a risk score from 0 to 100 with findings tied to specific regions of the image.
What to expect on a genuine Peruvian DNI before you test it
The number is eight digits plus a separate verification character after a hyphen, placed at the upper right on newer DNIe cards and the upper left on earlier ones. The card shows surnames, prenombres, birth date, birth place with a ubigeo code, sex, civil status, signature, registration, emission and expiry dates, and photograph, with a machine-readable zone and a QR code on the DNIe 3.0.
Before May 2007 the verification character was a letter, and after it a digit, so both appear on legitimate cards. Validity differs by generation, and older holders over sixty may have no expiry on older cards. Several DNIe generations coexist, so each is judged against its own layout and rules.
What gets missed when a Peruvian DNI is checked by eye
Number checks pass on altered documents
A well-formed number proves the structure is right. It says nothing about whether the name, photo or date printed beside it were changed.
Volume makes every review shorter
At onboarding scale a review of a Peruvian DNI takes seconds, and short reviews catch the obvious fake and miss the careful one.
Reviewers compare faces, not substrates
A person looks at whether the portrait resembles the applicant. Nobody looks at whether the portrait belongs to the card it sits on.
Peruvian DNI fraud: your questions answered
How long is a Peruvian DNI number?
It is eight digits followed by a separate verification character. The verification character is not part of the number itself.
Why do some DNIs show a letter and others a digit?
Before 23 May 2007 the verification character was a letter, and since then it has been a digit. Both appear on legitimate cards.
Does the Peruvian DNI have a check-digit algorithm I can recompute?
The verification character is not publicly specified, so it is not used for rejection. The MRZ uses standard ICAO check digits, which can be recomputed.
How does TamperCheck verify a Peruvian DNI?
TamperCheck recomputes the MRZ check digits, compares the zone with the printed fields, tests caducidad and verification-character rules, and inspects the portrait region for patching. Uploads run through a single REST endpoint, are processed ephemerally and not stored, and findings tie to specific regions.
What does TamperCheck look at first on a Peruvian DNI?
On a Peruvian DNI, the review prioritises the 8-digit number and its verification character, the QR code on the electronic DNI, and a patched portrait or field. The rest of a Peruvian DNI is covered by the general pixel, font and metadata layers.
What inconsistency should I check first on a Peruvian DNI?
Compare the machine-readable lines (MRZ) with the data printed on the front. A forger who changes one rarely updates the other, and on a Peruvian DNI that gap is among the first things measured.
Is a phone photo of a Peruvian DNI enough for remote KYC?
A photo shows what is printed on a Peruvian DNI but strips most of the evidence an edit would leave. For remote onboarding, ask for a fresh capture of a Peruvian DNI or the original file, and run it through a forensic check instead of relying on a visual read.
What is the difference between a fake and an altered Peruvian DNI?
An altered Peruvian DNI starts from a genuine one with changed fields such as portrait, so a real number may still exist. A fabricated one comes from a template or an AI model. Altered documents pass number checks, fabricated ones pass visual review, and each leaves different forensic traces on a Peruvian DNI.
Is there an API for checking a Peruvian DNI?
Yes. Upload a Peruvian DNI through the REST API, receive a JSON verdict, and use async jobs and webhooks for high volume. The docs cover authentication, webhooks and MCP.
Check a document
Upload a PDF or a photo of Peruvian DNI. TamperCheck returns a risk score from 0 to 100 and marks the region that was edited, usually within seconds.
For developers, the API class is peru_dni. See the API and MCP documentation.