Logo

Tamper Lab DEMO

⚪ Initializing...
Security Demonstration Lab: Use these pre-generated attack and edge-case QR codes to demo how the offline verifier catches forged, tampered, expired, or unrelated codes.
How to test: Point your phone's camera at the screen running /scan, or click Download QR Image and upload it to the scanner's image dropzone.
Attack: Payload Tampering

1. Quantity Alteration (24.2 → 48.0 MT)

Simulates an operator modifying the quantity field from 24.2 MT to 48.0 MT without the private key.

Expected Result:
DIGITAL SIGNATURE FAILED / TAMPERED

Attack: Vehicle Plate Swap

2. Vehicle Reg Swap (JH10AB → JH10XX)

Simulates reusing a genuine pass on an unauthorized truck by changing registration to JH10XX9999.

Expected Result:
DIGITAL SIGNATURE FAILED / TAMPERED

Time Boundary: Expired Pass

3. Expired Transit Pass (2 Days Old)

Simulates a pass with timestamps 2 days in the past. Demonstrates that time validity is checked against the device clock.

Expected Result:
EXPIRED JOURNEY PASS

Time Boundary: Future Dated

4. Journey Starts Tomorrow (Future)

Simulates a pass generated for dispatch tomorrow. Scanned before the journey window opens.

Expected Result:
NOT YET ACTIVE (FUTURE)

Security: Rogue Authority

5. Untrusted Key ID (ROGUE_KEY_99)

Signed with an unauthorized private key not recognized by the official cached public key registry.

Expected Result:
UNTRUSTED SIGNING KEY ID

Foreign Format: UPI Payment

6. UPI Merchant Payment Code

Simulates an inspector accidentally scanning a payment counter UPI code instead of the mineral receipt.

Expected Result:
UNRELATED UPI PAYMENT QR DETECTED

Foreign Format: Web Link

7. Arbitrary Web Link / Phishing URL

Scanning a web link. The verifier safely catches it and never executes or automatically opens external links.

Expected Result:
UNRELATED WEB URL DETECTED

Benchmark: Authentic Pass

8. Genuine Legitimate Pass (Valid)

The control benchmark pass generated with valid Ed25519 digital signature and active validity window.

Expected Result:
✓ CRYPTOGRAPHICALLY VALID & ACTIVE

Interactive Custom Tamper Sandbox

Edit any individual letter, timestamp, or digit in the canonical QR string below and click Re-render QR Code. Test how even a 1-character typo or alteration completely breaks cryptographic validation.