Quantum Machine Learning in Cybersecurity: A Hybrid Convolutional Neural Network with Skip Connections for QR Code Phishing Detection
This study proposes a Hybrid Quantum-Classical Convolutional Neural Network with skip connections (HybridSkip) that directly classifies QR code images based on visual structure to detect phishing, achieving significantly higher recall and F1-scores with fewer parameters than classical baselines, thereby offering a resource-efficient solution for proactive quishing defense.
Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
In the modern digital world, a simple square of black and white squares has become a universal key. These are Quick Response codes, or QR codes, the two-dimensional barcodes found on restaurant menus, payment terminals, and transit tickets. They are designed to be scanned instantly by a smartphone camera, bridging the physical and digital worlds without a single keystroke. However, this convenience has created a new vulnerability. Because the human eye cannot read the data hidden inside the pattern, a malicious actor can replace a legitimate code with a fake one that leads a victim to a fraudulent website. This specific type of attack, known as "quishing," bypasses traditional email filters and link scanners because the threat arrives as a printed image, not a digital message. The core challenge for security experts is that by the time a user scans the code, the damage is often already done, as the phone automatically opens the hidden link.
Researchers have long tried to solve this by decoding the image to read the hidden URL and then checking if that address is dangerous. But this method fails if the code is damaged, if the internet is unavailable, or if the bad link was created just moments before the scan. A new approach suggests looking at the picture itself rather than the text inside it. The idea is that the length and complexity of the hidden message leave a subtle statistical fingerprint on the arrangement of the black and white squares. A computer trained to recognize these visual patterns could spot a malicious code before it is ever decoded. This is where the intersection of cybersecurity and quantum computing enters the story. Quantum machine learning uses the principles of quantum mechanics to process information in ways that classical computers cannot, potentially offering a more efficient way to find patterns in small, complex datasets.
Md Farhan Shahriyar, a researcher at Hajee Mohammad Danesh Science and Technology University in Bangladesh, has developed a new system that combines these ideas to detect quishing attacks. The system is a hybrid model, meaning it mixes a standard classical computer program with a specialized quantum component. The classical part acts as a set of eyes, scanning the image of the QR code to identify its basic shapes and structures. The quantum part then takes a compressed version of those shapes and processes them through a simulated quantum circuit, a mathematical structure that can explore many possibilities at once. The goal was to see if this combination could identify a fake code more accurately than a standard computer program, while using fewer computing resources.
The study tested this system on a dataset of one thousand QR code images, split evenly between safe codes and malicious ones. The researchers trained the model to look at the raw images without ever trying to read the text inside them. They compared their new hybrid design against several other models, including standard computer-only programs and other hybrid versions without a specific architectural tweak. The most successful version of their system, which they named HybridSkip, introduced a "skip connection." In simple terms, this is a shortcut that allows the initial visual information from the classical part of the system to bypass the quantum processor and go straight to the final decision-making stage. This design ensures that no useful detail is lost during the complex quantum processing and helps the system learn more effectively.
The results showed that this new approach was highly effective. The HybridSkip model correctly identified malicious QR codes with a higher success rate than the best classical computer-only models. Specifically, it caught about 72 percent of the bad codes, compared to roughly 65 percent for the strongest traditional model. This improvement is significant in a security context because missing a bad code means a user could be tricked into giving away their passwords or money, while a false alarm only costs a few extra seconds of checking. Furthermore, the new model achieved this higher accuracy while using nearly 38 percent fewer adjustable settings, or parameters, than the classical models. In the world of artificial intelligence, having fewer parameters usually means the system is faster and requires less memory, making it easier to run on mobile phones or small devices.
The researchers confirmed that these improvements were not just a lucky fluke by running the tests multiple times with different splits of the data. Statistical analysis showed that the gains in detecting bad codes were real and consistent. The study also noted that the system works entirely offline. Because it analyzes the image directly, it does not need an internet connection to check a database of known bad links. This makes it particularly useful for scenarios like scanning a code at a remote kiosk or a point-of-sale terminal where a network connection might be unreliable.
While the results are promising, the study acknowledges certain limitations. The quantum part of the system was simulated on a standard computer, not run on actual quantum hardware, which is still an emerging technology. The researchers also noted that the dataset used was relatively small, containing only one thousand images, and that real-world codes can vary widely in quality, lighting, and damage. Future work will need to test the system on larger collections of images and on actual quantum devices to see how it holds up under real-world conditions. Nevertheless, the study demonstrates that a hybrid approach, which carefully blends classical and quantum processing, can offer a more efficient and effective way to spot visual threats. By treating the QR code as a picture rather than a message, this new method provides a proactive layer of defense that could help keep users safe in an increasingly connected world.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.