← Latest papers
🤖 AI

Detecting Quishing Attacks with Machine Learning Techniques Through QR Code Analysis

This paper proposes a novel machine learning framework that detects quishing attacks by directly analyzing QR code structural and pixel patterns without extracting embedded content, achieving high accuracy with XGBoost and demonstrating that visual features alone can effectively identify phishing risks.

Original authors: Fouad Trad, Ali Chehab

Published 2026-08-04
📖 4 min read☕ Coffee break read

Original authors: Fouad Trad, Ali Chehab

Original paper licensed under CC BY 4.0 (http://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

Imagine the digital world as a bustling city where information travels on tiny, invisible highways. For years, the police of this city—cybersecurity experts—have been very good at spotting bad guys by reading the license plates on the cars (the URLs or web addresses) before they enter the neighborhood. But recently, a new kind of thief has arrived. Instead of driving a car with a visible license plate, they are handing out mysterious, black-and-white square stickers called QR codes. You can't read what's inside the sticker just by looking at it; you have to scan it with your phone to see where it leads. This is the world of "Quishing" (QR code phishing). The problem is that by the time you scan the sticker and your phone opens the link, the thief has already tricked you. The old police methods can't help because they can't read the license plate until it's too late. So, scientists are asking a big question: Can we spot a fake sticker just by looking at the pattern of black and white squares on the sticker itself, without even opening it up to see what's inside?

This is exactly what Fouad Trad and Ali Chehab set out to do in their new study. They decided to stop trying to read the secret message inside the QR code and instead treat the QR code like a piece of art. They asked: "Do fake stickers look different from real ones, even if we don't know what they say?" To find out, they built a massive training ground. They created a dataset of 10,000 QR codes—5,000 from safe websites and 5,000 from known phishing (trick) websites. They made sure all these codes were the same size, like printing them all on identical 69-by-69 pixel squares, so the only difference was the pattern of the dots.

Then, they taught a team of digital detectives (machine learning models) to look at these squares. They didn't use fancy deep-learning cameras; instead, they used classic detective tools like Decision Trees, Random Forests, and XGBoost. They asked these models to look at the tiny black and white pixels and guess, "Is this a safe sticker or a trap?" The results were exciting. The best detective, a model called XGBoost, was able to tell the difference with a high level of confidence, scoring an AUC of 0.9106. This score suggests that looking at the shape and pattern of the QR code is a very effective way to spot a fake, even without knowing what the code says.

But the researchers didn't stop there. They wanted to know why the models were so good. They looked at the "feature importance," which is like asking the detective, "Which part of the sticker made you think it was fake?" They discovered something surprising: most of the sticker didn't matter at all. Huge chunks of the black-and-white grid were ignored by the models. It turned out that only specific, tiny regions of the QR code held the clues. By throwing away the useless parts of the image and only keeping the important pixels, they made the detectives even sharper. The LightGBM model, using this trimmed-down list of clues, improved its score to 0.9133.

The paper explicitly rules out the idea that you need to decode the QR code to find the threat. The authors argue that trying to read the URL first is dangerous because it might expose the user to malware before the threat is even identified. They also note that their current work is limited to QR codes that contain web links (URLs). They admit they haven't tested this method on QR codes that do other things, like connecting to Wi-Fi or sending text messages, because they don't have a dataset for those yet. However, they suggest that since their method looks at the structure rather than the content, it might work for those other types of codes too, but that remains a question for future research.

In short, this study suggests that we can build a "pre-scan" shield. Instead of waiting to see where a QR code leads, we can look at the code itself and say, "That pattern looks suspicious; don't scan it." While the authors are careful to say this is a foundation for future work and not a perfect, finished solution, their findings show that analyzing the visual structure of a QR code is a powerful, promising new way to keep our digital city safe from these sneaky stickers.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →