What You Decode Depends on Where You Stand: Distance-Based Optical QR Code

Authors: 

Pulkit Garg, Indian Institute of Technology Jodhpur; Robin Verma, Marshall University; Somitra Sanadhya, Indian Institute of Technology Kanpur; Gaurav Gupta, MeitY, Government of India

Abstract: 

Quick Response (QR) codes are ubiquitous; we can see them in authentication, payments, advertising, and other information-sharing use cases. QR code’s security relies on the assumption that every scanner decodes identical information from the same code. This work introduces Optical Quick Response (OQR) codes, a novel multi-layer QR code design that challenges this assumption. OQR uses specially designed optical patterns to encode distinctive information across distance-dependent layers within a single code, while upholding full backward compatibility with standard QR decoders. This paper presents 2-layer (OQR2) and 3-layer (OQR3) OQR configurations that achieve up to 300% higher data capacity. Exploiting this multi-layer capability, a filter evasion vulnerability is identified in which automated QR validators decode only the innermost layer of pixel-perfect images, enabling attackers to conceal malicious content in the outer layers and remain undetected. To counter this threat, a blurring-based defense is developed that recovers all layer content, enabling detection and flagging of malicious OQR codes before they reach end users. A custom dataset of 600 OQR codes was generated for evaluation. Results across six smartphones, for both printed and digital formats, demonstrate a reliable multi-layer Code Decodability Rate (CDR) of 100% for OQR2 and over 98% for OQR3. The filter evasion attack success rate against two popular QR decoding libraries reaches 100% for OQR2 and 98.67% for OQR3.

USENIX Security '26 Open Access Sponsored by
King Abdullah University of Science and Technology (KAUST)

Open Access Media

USENIX is committed to Open Access to the research presented at our events. Papers and proceedings are freely available to everyone once the event begins. Any video, audio, and/or slides that are posted after the event are also free and open to everyone. Support USENIX and our commitment to Open Access.

BibTeX
@inproceedings {320907,
author = {Pulkit Garg and Robin Verma and Somitra Sanadhya and Gaurav Gupta},
title = {What You Decode Depends on Where You Stand: {Distance-Based} Optical {QR} Code},
booktitle = {35th USENIX Security Symposium (USENIX Security 26)},
year = {2026},
isbn = {978-1-939133-58-8},
address = {Baltimore, MD},
pages = {5553--5572},
url = {https://www.usenix.org/conference/usenixsecurity26/presentation/garg-pulkit},
publisher = {USENIX Association},
month = aug
}

Presentation Video