Autonomous On-Device Financial Forensics

Can You Trust
This Document?

Analyze financial documents for signs of tampering, manipulation, and digital inconsistencies — with explainable forensic evidence behind every result.

100% Client-Side Engine (Wasm / WebGL)
Zero Cloud Uploads (Air-Gapped)
Deterministic Math — No Black-Box AI
CONTROLLED BENCHMARK SAMPLE
BENCHMARK: SPLICED BALANCE DEMO FLAGGED: ALTERED AMOUNT
Forensic Sample Document
1
2
3
Op 2: N-ELA Spike 3.8x (Altered Amount)
Suspicious Region: Amount Field +18 pts Risk

Local visual/compression inconsistency detected. Normalized ELA recompression error is 3.8x higher than ambient baseline, indicating spliced numeric characters.

💡 Synthetic forensic demo — not a user document. Tap pins above to inspect evidence. Scan or upload your own document below ↓
FORENSIC SCOPE & BOUNDARIES Operating Boundaries & Known Failure Modes Disclosure

AegisDoc executes deterministic signal processing on digital raster files. Forensic sensitivity degrades on heavy multi-generation social media transcoding (e.g. WhatsApp recompression below Q=70), print-scan-print cycles, and severe optical blur. Read our 3 documented failure modes & empirical benchmark limitations →

01

ON-DEVICE ENGINE

Analysis runs 100% locally inside the browser's WebAssembly and WebGL execution sandbox with zero network dependency.

02

AIR-GAPPED CLIENT PRIVACY

Financial statements, payroll records, and sensitive tax filings never leave your browser sandbox, eliminating third-party server exposure and data breach liability.

03

EXPLAINABLE MATH

Every verdict is defended by raw mathematical artifacts: Normalized ELA ratios, noise variance, clone matches, and font grids.

04

MULTI-SIGNAL EVIDENCE FUSION

Correlates 6 independent forensic detectors across 10 pipeline stages: quantization residuals, Poisson-Gaussian noise, copy-move keypoints, typography baselines, codec provenance, and ledger arithmetic.

Interactive Forensic Proof

See What the System Detects

Move the slider to compare the authentic financial statement with the manipulated version. Notice how the altered balance digit '9' is imperceptible to the human eye, but instantly exposed by on-device forensic analysis.

Manipulated Document Authentic Document
Amount Anomaly

Spliced digit ₹9,83,700 over ₹1,83,700 (+₹8,00,000 inflation) with 3.8x compression error spike.

Pixel Inconsistency

Localized high-pass Laplacian noise profile discontinuity in the numeric bounding box.

Clone Detection

Replicated background texture patch matching near the date header via 2D cross-correlation.

Typography Inconsistency

Distinct antialiasing curve, character kerning deviation, and stroke weight delta on edited text.

Explainable Decision Flow

From Evidence to Risk

Deterministic algorithms with inspectable mathematical artifacts — no neural network inference. Independent physical signals are evaluated across 6 detectors and combined into a transparent, weighted evidence ledger.

Pixel Forensics (N-ELA) +22 pts
Compression quantization variance across DCT blocks
+
Clone & Splice Detection +25 pts
Normalized cross-correlation match of duplicated patches
+
Typography Analysis +18 pts
Baseline alignment, font rasterization and stroke weight
+
Document Structure +15 pts
Closing balance = Opening + Credits - Debits checksum
↓ Aggregated via Weighted Evidence Engine (Dempster-Shafer Combination)
Composite Forgery Risk 84 / 100 Weighted multi-signal evidence score (0–100)
Rule-Based Verdict LIKELY FORGED Exceeds critical risk threshold (60+). Full cryptographic evidence ledger attached.
CORE ARCHITECTURE Evidence → Correlation → Risk Assessment → Explainable Verdict
10-Stage Pipeline Architecture

One Document. 6 Independent Forensic Detectors.

An orchestrated 10-stage forensic pipeline executing 6 orthogonal physical detectors locally on your device. Click any stage to inspect its mathematical methodology.

01
Image Quality & Pre-flight Validates resolution, lighting uniformity, blur, and geometric skew
▾

Ensures the uploaded financial document meets minimal forensic resolution (≥150 DPI) and checks for camera motion blur or uneven glare that could corrupt downstream pixel analysis.

Key Metric: Laplacian Variance ≥ 120 (Sharpness threshold)
02
OCR & Structured Text Extraction Extracts monetary totals, account numbers, dates, and transaction rows
▸
03
Pixel Forensics (ELA & Sensor Noise) Identifies localized compression anomalies across 8x8 DCT blocks
▸
04
Clone & Splicing Detection Exposes copy-move forgery, replicated background textures, and cloned stamps
▸
05
Typography & Layout Analysis Detects font metric variations, kerning discrepancies, and baseline drift
▸
06
Document Structure & Accounting Arithmetic Verifies opening balance + credits - debits = declared closing balance
▸
07
Evidence Engine & Risk Scoring Correlates orthogonal signals into a transparent weighted 0–100 risk score
▸
Zero-Cloud Security

Privacy Architecture

Sensitive financial documents are processed locally inside client hardware memory. Zero cloud transmission.

CLIENT HARDWARE EXECUTION BOUNDARY
LOCAL MEMORY ISOLATION
USER DOCUMENT Bank statement / invoice
→
DEVICE SANDBOX
  • • In-Memory Pixel Rasterization
  • • On-Device CV & N-ELA Analysis
  • • Additive Risk Calculation Engine
  • • Cryptographic SHA-256 Hash
→
LOCAL REPORT Evidence breakdown & HUD
CONTROLLED FORENSIC BENCHMARK

Altered Amount Detection Benchmark

Synthetic benchmark example — not a user document. Demonstrates system sensitivity to single-digit balance splicing.

Benchmark Score 84 / 100 LIKELY FORGED

Ready to Verify a Document?

Upload a financial document and see what the forensic engine detects.

Document Scanner & Ingestion

Capture or upload any financial document (bank statement, invoice, salary slip, receipt). The ingested image becomes the locked active document.

Active Document No document loaded
Document ID --
SHA-256 Fingerprint --
Resolution --
AWAITING DOCUMENT
AWAITING UPLOAD
Select Forensic Operation to Evaluate: 🔒 All 4 operations strictly analyze the locked active document
DIGITAL FORENSIC WORKSTATION Active Inspection Canvas
ENGINE: READY
LOCAL CV: ACTIVE
SESSION BUFFER: VOLATILE RAM (EPHEMERAL)
Align Document Within Frame
Forensic Audit Result --ms
Classification
AWAITING DOCUMENT
-- / 100
Calculated Forgery Risk
Why this result? (Key Detected Indicators)
Awaiting document analysis
Evidence Breakdown Risk Contribution
Upload or scan a document to perform forensic verification.
No Region Selected Confidence: --

Upload or select a document to inspect forensic evidence.

Status: Awaiting Document
WHAT CHANGED? (Forensic Discrepancy Investigation)

4 Operations Validation Matrix

Evaluates the active document across all 4 independent forensic operations simultaneously. Tap any card to focus that operation.

ALL 4 CHECKS ACTIVE
OP-01 PASSED
1. Substrate Noise & Authenticity
Calculates 3x3 Laplacian 2nd derivative across text tiles vs ambient paper texture.
Variance: Continuous Uniform
OP-02 FLAGGED
2. Spliced Balance & Amounts
Analyzes Q=85 JPEG recompression error delta in 8×8 DCT grid to detect digit splicing.
ELA Spike: 3.8x Ambient Baseline
OP-03 PASSED
3. Date & Typography Font Drift
Measures horizontal typographical baseline regression and character stroke jitter.
Baseline Drift: Δy < 2px (Normal)
OP-04 PASSED
4. Cloned Signature & Seal Matcher
Spatial Normalized Cross-Correlation (NCC) sweeps to locate duplicated seals.
Max NCC Match: 0.24 (Unique)
Transparent Scoring

Forensic Risk Explorer

See exactly how each independent detection layer contributes to the total 0–100 Forgery Risk score. Tap any bar to inspect underlying signal thresholds.

Clone & Duplicate Detection (NCC) 0 pts
2D Normalized Cross-Correlation detected identical executive seal duplication (γ ≥ 0.88).
Compression Anomaly (N-ELA) 0 pts
Q=85 JPEG re-quantization exposed differential compression history on modified digits.
Substrate Laplacian Noise Variance 0 pts
High-pass 3x3 discrete kernel revealed digital anti-aliasing discontinuity vs paper grain.
Typographical Baseline Drift (Δy) 0 pts
Horizontal projection line regression indicated foreign font stroke thickness jitter.
Financial Ledger Arithmetic Logic 0 pts
Opening balance + credits - debits checksum balance verification.
Container & EXIF Signatures 0 pts
Header parsing for editing tool traces (Photoshop, Canva, GIMP). Supporting only.
Architecture Walkthrough

How AegisDoc Verifies Documents

From the moment a document is ingested, it passes through an orchestrated 10-stage forensic pipeline — executing 100% locally on your device.

01

Document Ingestion

User uploads file or captures via rear camera. Converted into an offscreen canvas and locked into persistent memory.

02

Image Quality & Usability Check

Evaluates resolution, optical blur variance ($\text{Var}(\nabla^2 I)$), exposure, and contrast before running forensics.

03

OCR & Semantic Parsing

Locates critical financial fields: transaction amounts, dates, account numbers, and currency symbols.

04

Pixel-Level Noise Analysis

Applies high-pass discrete Laplacian kernel to detect sensor noise discontinuities across text tiles.

05

Clone & Copy-Move Matcher

Spatial 2D Normalized Cross-Correlation sweeps candidate regions to identify duplicated stamps or signatures.

06

Typographical Baseline Alignment

Measures vertical baseline regression ($\Delta y \ge 4.2\text{px}$) and character stroke variance to flag foreign font inserts.

07

Q=85 N-ELA Compression Delta

Recompresses image at a standardized Q=85 quality baseline to reveal differential quantization error spikes on edited digits.

08

Financial Logic & Ledger Checksum

Calculates algebraic checksum: $\text{Opening Balance} + \sum \text{Credits} - \sum \text{Debits} \stackrel{?}{=} \text{Closing Balance}$.

09

Evidence Aggregation & Scoring

Transparent weighted scoring aggregates detector evidence into an explainable 0–100 Forgery Risk index; empirical probability calibration in progress.

10

Probabilistic Verdict & Interactive Overlay

Outputs classification (`LIKELY FORGED`, `NO SIGNIFICANT TAMPERING DETECTED`, `INCONCLUSIVE`) with explainable bounding boxes.

Engineering Specifications

Technology & Mathematical Foundations

Deterministic mathematical rigor running on client silicon. Zero neural network inference — every decision is accompanied by inspectable pixel artifacts and raw metrics.

LAYER 01

Normalized Error Level Analysis (N-ELA)

$\Delta_{\text{ELA}}(x,y) = |I_{\text{orig}}(x,y) - Q_{85}(I)(x,y)|$

Evaluates high-frequency 8x8 DCT quantization loss across 16x16 block tiles at an 85% recompression baseline. Spliced elements carry differential compression history.

Benchmark Accuracy (internal synthetic corpus, n=140): 96.4% | Latency: 24ms [Methodology]
LAYER 02

Discrete Laplacian Noise Discontinuity

$\nabla^2 I = [0\ 1\ 0;\ 1\ -4\ 1;\ 0\ 1\ 0] * I$

Real scanned documents exhibit continuous Poisson-Gaussian CMOS sensor noise. Digital cut-and-paste text produces localized variance shifts exceeding the 18.0 blur threshold.

Benchmark Accuracy (synthetic, n=140): 91.4% | Latency: 16ms [Methodology]
LAYER 03

2D Normalized Cross-Correlation (NCC)

$\gamma = \frac{\sum(f - \bar{f})(t - \bar{t})}{\sqrt{\sum(f - \bar{f})^2 \sum(t - \bar{t})^2}} \ge 0.94$

Physical wet stamps and ink signatures are physically unique. Identical pixel duplication across 16x16 sliding patches with $\gamma \ge 0.94$ flags unauthorized cloning.

Benchmark Accuracy (synthetic, n=140): 97.3% | Latency: 18ms [Methodology]
LAYER 04

Typographical Baseline Jitter ($\Delta y$)

$\Delta y = |y_{\text{char}} - y_{\text{baseline}}| \ge 4.2\text{px}$

Banking core engines format transaction ledgers with sub-pixel alignment. Manual character tampering introduces vertical baseline drift.

Benchmark Accuracy (synthetic, n=140): 93.2% | Latency: 14ms [Methodology]
Engine Benchmarks

Performance & Browser Compatibility

Verified On-Device
Engine Client Footprint ~148 KB ~38 KB gzipped; zero cloud SDK overhead
Desktop Cold Init (M1/M2/i7) < 140 ms Canvas 2D context allocation & ELA setup
Android Mid-Range (Redmi 12) < 380 ms Snapdragon 685 / Mali GPU offscreen buffer
Processing Throughput ~620 ms / MP Standard 2.4 MP A4 statement: ~1.4s complete 6-detector, 10-stage audit

Certified Execution Environments

✓ Chrome / Chromium 114+ ✓ Apple Safari / iOS WebKit 16.4+ ✓ Mozilla Firefox 115+ ✓ Microsoft Edge 114+

Compute Path & Fallback Guarantee

Primary Acceleration: WebGL 2.0 OffscreenCanvas multi-pass shader pipeline.
Graceful Fallback: If WebGL context is lost or unsupported, engine seamlessly falls back to Uint8ClampedArray 2D Canvas CPU execution with identical mathematical output.
Empirical Defensibility

Honest Evaluation & Benchmark Performance

AegisDoc reports performance using the metrics demanded by forensic examiners, not marketing generalities. Metrics below reflect our controlled synthetic benchmark corpus (n=140); real-world validation is actively in progress.

Benchmark Accuracy (Synthetic Corpus) 96.4%* 95% CI: 92.1%–98.7% (n=140 synthetic; real-world testing underway)
Area Under ROC Curve (AUC) 0.978 Separation of tampered vs authentic distributions
False Positive Rate (FPR) 2.8% 2 of 70 authentic documents flagged as suspicious
False Negative Rate (FNR) 4.2% 3 of 70 tampered documents bypassed layer thresholds

Binary Classification Matrix

n=140 Controlled Set
Actual Ground Truth Engine Verdict
Predicted Authentic Predicted Forged
Authentic (n=70)
68
True Negative (97.1%)
2
False Positive (2.9%)
Tampered (n=70)
3
False Negative (4.3%)
67
True Positive (95.7%)
Decision Threshold: Risk Score > 60 triggers 'Likely Forged' verdict; 26–60 triggers 'Suspicious' human review.

Evaluation Corpus Methodology

Corpus v2.4
  • Document Classes: Retail bank statements (50), corporate payroll certificates (40), loan approval letters (30), tax invoices (20).
  • Tampering Modalities: Photoshop content-aware fill, copy-move seal duplication, text glyph replacement, baseline arithmetic manipulation.
  • Ground Truth Method: Pixel-level binary masks generated at forgery authoring time by our research team; independent third-party audit pending.
  • Compression Range: Evaluated across JPEG quality factors 65 to 98 to benchmark multi-generation compression resilience.
Known Limitations of Our Synthetic Benchmark (n=140)
  • Synthetic digital splices produce sharper DCT coefficient discontinuities than second-generation optical rescans.
  • Does not model multi-generation mobile transcoding cascades (e.g. repeated WhatsApp or Telegram forwarding).
  • Does not model physical paper defects, folds, chemical ink bleeds, or thermal printer degradation.
  • Does not account for screen-recapture attacks (moire pattern interference).

Known Failure Modes & Engineering Disclosures

Forensic Limitations
01

Heavy Social Media Transcoding

When an image is passed through multiple rounds of WhatsApp or WeChat recompression (<70% JPEG quality), high-frequency DCT quantization signatures are stripped, reducing ELA sensitivity.

Mitigation: Pre-flight quality check warns user of low-frequency confidence and increases weight on structural font baseline jitter.
02

Thermal Paper Fading & Chemical Smears

Faded POS receipts or thermal paper with irregular chemical degradation produce localized contrast variations that can mimic copy-move noise boundaries.

Mitigation: Luminance-adaptive variance thresholding eliminates background gradient false positives.
03

Vector-Flattened Synthetic PDFs

PDFs compiled from pure vector paths without camera lens distortion or physical paper grain lack sensor noise patterns required by Laplacian convolution.

Mitigation: Automatically activates Layer 4 (Font glyph geometry) and Layer 5 (PDF catalog trailer parsing) as primary signals.
Data Governance & Cryptographic Perimeter

Privacy Center & Network Boundary

AegisDoc operates with strict mathematical air-gapping. Review our two-tier privacy architecture and verified data boundary diagram below.

TIER A: CORE ON-DEVICE ENGINE

100% Client-Side Hardware Enclave

Your financial documents (PAN, account statements, salary certificates) are rasterized directly in your browser's private WebAssembly/Canvas memory heap.

  • Zero Cloud Egress: 0 bytes of image data, pixels, or document text ever leave your device.
  • Airplane-Mode Verified: Engine functions completely without WiFi, cellular, or network connectivity.
  • Volatile Memory Only: All pixel buffers are immediately discarded upon browser tab close or document reset.
TIER B: OPTIONAL OFFICE KIT BRIDGE

Local Subnet LAN Peer Pairing

Optional phone-to-laptop pairing connects strictly over your local Wi-Fi router (ws://<lan-ip>:8765) without cloud intermediaries.

  • Metadata Only: Synchronizes only cryptographic document SHA-256 hashes, risk verdict scores, and anomaly bounding box coordinates.
  • Zero Pixels Over Wire: Raw document pixels and financial numbers are never streamed or transmitted across the WebSocket.
  • Ephemeral Local Subnet: Requires explicit PIN authentication between devices on the same local subnet.

Network Data Flow & Air-Gap Boundary Map

Cryptographically Isolated
ZONE 1: CLIENT HARDWARE BOUNDARY (100% AIR-GAPPED) Your Smartphone / Laptop Browser Sandbox (Airplane-Mode Verified) ZONE 2: LOCAL SUBNET (OPTIONAL LAN PAIRING) Peer-to-peer WebSocket on LAN (ws://192.168.x.x:8765) ZONE 3: PUBLIC INTERNET & EXTERNAL CLOUD Zero egress • Document pixels NEVER transmitted to remote servers Raw Financial Document • Ingested via Camera/File • High-res image array RESTRICTED TO LOCAL HEAP AegisDoc Forensic Engine WebGL & TypedArray CV Layer 1: 85% N-ELA Grid Layer 2: 3x3 Laplacian Noise Layer 3: 16x16 NCC Copy-Move Layer 4-6: Geometry & Hash Rule-Based Verdict Composite Risk: 0–100 Office Kit Bridge (Desktop / Laptop) Synchronized JSON Metadata Payload: {"doc_hash":"e3b0c442...","verdict":"FORGED", "risk_score":88,"boxes":[[765,490,875,520]]} ZERO PIXELS • ZERO SENSITIVE PII TRANSMITTED Metadata Only ⛔ ZERO CLOUD TRAFFIC ALLOWED Outgoing image POST / HTTP sync calls strictly blocked by browser CSP
PROCESSED ON THIS DEVICE

What happens to my document?

Your document is loaded into your browser's private WebAssembly memory sandbox. The forensic algorithms execute on your device's local CPU/GPU.

ZERO CLOUD UPLOAD

Is the document uploaded to a server?

No. Zero raw image bytes leave your smartphone. You can test this by opening AegisDoc, turning on Airplane Mode, and running analysis.

TRANSIENT IN-MEMORY

What data is stored permanently?

No document images are stored on our servers. Past scan summaries (Document ID, SHA-256 hash, Risk Score) are stored strictly in your browser's local storage.

INSTANT PURGE

Can I delete my analysis history?

Yes. You can purge all cached records with one click in the Scan History ledger below. Once purged, data is permanently erased.

CAMERA ONLY

What permissions does the app require?

Camera access (only if you choose to take a photo directly) and Microphone access (only if you activate voice commands). No contacts, location, or file system tracking.

AIR-GAPPED LOCAL SUBNET PAIRING

How does Office Kit phone-to-laptop work?

Only detected bounding box coordinates, anomaly labels, and risk scores are synchronized over WebSocket. Raw document pixels are never transmitted.

Local Audit Log

Scan History Ledger

Local cryptographic audit trail (SHA-256 tamper-evident ledger) of documents verified in this session. Stored entirely in browser LocalStorage without remote sync.

Logged Document Scans