Error Level AnalysisRutvij Khatri•9 min read•Published 2026-10-14

Spotting Spliced Documents, Invoices, and Fake Receipts with ELA

Learn how forensic examiners detect forged invoices, altered financial receipts, and tampered dates using Error Level Analysis and block grid alignment.

Executive Verdict & Direct Answer
✓ 100% Client-Side In-Browser Engine

Learn how forensic examiners detect forged invoices, altered financial receipts, and tampered dates using Error Level Analysis and block grid alignment. Digitally inserted numbers and altered transaction dates glow brighter under ELA because they lack the background compression history.

The Mechanics of Receipt and Invoice Forgery

In financial auditing, procurement verification, and expense reimbursement systems, fraudulent receipts represent a multi-billion dollar vector. Forgers frequently take a legitimate scanned PDF or photograph of a receipt, open it in Photoshop or Canva, and alter a single digit (changing $120.00 to $720.00) or modify the vendor name.

Because the added numbers are typed or pasted on top of an already compressed JPEG scan, the altered characters have not experienced the historical compression iterations of the background document. This discrepancy can be clearly exposed with Error Level Analysis.

Key Investigative Takeaway

Digitally inserted numbers and altered transaction dates glow brighter under ELA because they lack the background compression history.

JPEG Block Grid Alignment (8x8 Boundary Violations)

JPEG compression divides images into rigid 8x8 pixel blocks starting from the top-left coordinate (0,0). In an authentic scan, text glyphs sit naturally across these block boundaries.

When a forger pastes text from another document, the pasted block rarely aligns perfectly with the original 8x8 DCT grid. Under high ELA amplification, grid misalignment creates bright fringe halos around the spliced numbers, providing conclusive evidence of digital insertion.

Investigative Checklist for Document Audits

1. Scan baseline text: Verify the error level of untouched printed characters on the invoice.

2. Inspect total amounts and dates: Look for sharp brightness discrepancies between the numbers and neighboring headers.

3. Check font sharpness: Cross-reference ELA highlights with Laplacian edge filters to verify if the altered text has sharper edges than surrounding text.

Invoice Verification Methods: ELA vs. Manual Review vs. OCR

Assessing detection efficacy against sophisticated invoice and receipt tampering.

Feature / DimensionOverlayCheck (Client-Side)Manual Visual InspectionAutomated OCR Scanning
Tampered Digit Detection
Detects invisible compression discrepancies
Fails if fonts match visuallyFails (Extracts manipulated text as truth)
8x8 Grid Misalignment Detection
Exposes block boundary shifts
Cannot detectCannot detect

Command-Line Automation & CLI Workflows

For security engineers and forensic examiners automating pipelines or conducting terminal audits, the equivalent low-level commands can be executed natively:

Extract 8x8 DCT Grid Boundaries via Python
python
from PIL import Image
im = Image.open("receipt.jpg")
w, h = im.size
print(f"Dimensions: {w}x{h} | 8x8 Grid Aligned: {w % 8 == 0 and h % 8 == 0}")
Technical Breakdown: Checks if image dimensions conform to strict 8x8 JPEG DCT block boundaries.

Frequently Asked Technical Questions

Q1:Can re-saving a forged receipt as a flat PDF hide the forgery?

If the PDF simply embeds the tampered JPEG stream, the DCT quantization tables are preserved and can still be analyzed with ELA. However, scanning a printed physical copy of the fake document introduces a new analog optical pass that flattens error levels.

#detect fake receipts#forged invoice forensics#spot tampered documents#ela invoice verification#document fraud analysis
RK
Rutvij KhatriSecurity Analyst & Aspiring Security Engineer

Security Analyst and Aspiring Security Engineer passionate about client-side media verification, binary parsing, web application security auditing, CTF steganography challenges, and zero-knowledge privacy architecture.

Connect on LinkedIn

Companion Verification & Privacy Toolkits

Cross-Cluster Workflows

Related Deep Dives in Error Level Analysis