security

Quishing Attack Vectors and the URL Preview as a Security Boundary: A QR Threat Model

The real risks of scanning QR codes, how to spot a malicious one, how to protect your customers, and what to do if you scanned a bad code.

Updated September 2026

A QR code itself is just data — it is not malicious by nature. The risk is in where the code sends you. Because you cannot read a QR code by eye, a sticker placed over a legitimate code can quietly redirect you somewhere harmful. Security researchers have a name for this: quishing — QR phishing. The attack is ordinary phishing, delivered through a printed code instead of a link in an email.

What an attacker can do

Attack vectorWhat the code encodesWhat happens if you approve it
Phishing pageA lookalike domainYou type your password into the attacker's form
Payment hijackA payment link pre-filled with the attacker's accountMoney goes to the attacker, not the merchant
Premium-rate call or texttel: or sms: with a short-code numberYour phone dials/texts a number that charges you
Hostile Wi-Fi joinA WIFI: string for an attacker's networkYour traffic passes through their router
Config profile / app installA mobileconfig or APK downloadYou install attacker-controlled software

The common thread: none of these work without a tap of approval from you. The code can only open a door; you still have to walk through it. That is why the URL preview — the one second before you tap — is the entire game.

How a quishing attack actually unfolds

Most QR attacks follow the same short script, and it almost always leans on urgency. The attacker prints a code — on a sticker, a fake parking notice, a poster, or a table card placed over the real one — and puts it where you are in a hurry. You scan it, and it opens a page that looks like a login form, a payment screen, or a delivery notice. The page asks for something valuable: a password, a card number, a small "re-scheduling fee", or a "holding deposit". You leave; the attacker uses what you entered.

The common thread is time pressure. "Your parcel is waiting — confirm delivery now." "Parking payment overdue." "Menu changed — scan for the new one." A legitimate business almost never needs you to act within seconds; an attacker almost always does. Treat urgency itself as the red flag, regardless of how official the sign looks.

Reading the URL before you tap

Both iPhone and Android show a preview of the decoded URL before opening it — that one-second glance is your best defence. But you have to know how to read it.

  • •Read the domain right to left: in pay.example-paypa1.com the real site is example-paypa1.com, not your bank.
  • •Look for lookalike characters: 1 for l, 0 for o, and rn masquerading as m.
  • •Treat unexpected subdomains and hyphens with suspicion: secure-login.example-bank.com is not example-bank.com.
  • •Check the scheme: a login or payment page that is not https is a stop sign.
  • •Short links (bit.ly and similar) hide the destination — if you cannot see where it goes, do not tap.

A worked example: reading a suspicious preview

You scan a "parking payment" sticker and the preview shows http://pay-managed-parking.co.uk/pay?bay=142. Reading it piece by piece: the scheme is http, not https — a payment page over plain HTTP is already disqualifying. The domain is pay-managed-parking.co.uk, not the council's actual domain or the parking operator named on the sign. The hyphenated lookalike plus the urgency of a "fine" is the classic combination. The correct action: do not tap, and pay through the official app or the number printed on the original machine signage instead.

How to scan safely

  1. 1Look at the code before scanning — check for a sticker placed over the original, or a code printed on plain paper taped over the real sign.
  2. 2Watch the URL preview your phone shows and read it before tapping, using the checks above.
  3. 3Be cautious of codes in unexpected places; trust codes on official signage, packaging, and receipts.
  4. 4Never enter passwords or payment details on a page a QR code opened without checking the address bar.
  5. 5On iPhone, the Camera app shows the URL before opening it; on Android, most scanners do the same.

If you publish codes

  • •Use clear calls to action so customers know what a code should do.
  • •Place codes where they are hard to tamper with (behind glass, laminated).
  • •Check your own codes periodically for sticker overlays.
  • •Point codes at HTTPS URLs you control.

A pre-print security checklist

Before any code goes to the printer, run through this list. It takes two minutes and covers every failure that regularly hits real businesses.

  • •The destination is an HTTPS URL on a domain you control.
  • •The landing page loads fast and works on a phone, not just a desktop.
  • •The code is mounted where it cannot be covered by a sticker — behind glass, laminated, or in a frame.
  • •The call to action next to the code says exactly what will happen ("Scan to see the menu").
  • •Someone on your team re-scans every published code on a schedule — monthly is enough for most businesses.

What to do if you scanned a malicious code

  1. 1If you entered a password on the fake page, change it immediately — starting with the real service, then anywhere you reused it.
  2. 2If you entered card details, contact your bank, freeze the card, and watch your statements for small test charges.
  3. 3If the page asked you to install a profile or an app, remove it and check your phone's settings for anything unfamiliar.
  4. 4If nothing loaded and you tapped nothing, you are almost certainly fine — a scan alone cannot install anything.
  5. 5Report it: to the venue whose sign was tampered with, and to your national fraud reporting body.
How a quishing (QR phishing) attack unfolds1. Attacker prints a sticker over the real code2. Victim scans — phone shows a lookalike URL preview3. Victim taps; a fake login or payment page opens4. Victim enters password / card details under urgency5. Attacker harvests the credentials
Diagram: the five stages of a quishing attack, from sticker overlay to credential theft.

How to protect your customers from quishing

If you publish QR codes, you are also the first line of defence for everyone who scans them. The good news is that the same handful of practices defeat almost every quishing attack, because the attack relies on physical tampering with codes you control. Make your codes hard to tamper with and easy to verify, and the attacker moves on to an easier target.

  • •Mount codes behind glass or inside a frame so a sticker cannot be laid over them.
  • •Laminate printed codes — a laminate layer resists sticker adhesion and shows tampering.
  • •Add a clear caption naming the destination ("Scan to see our menu at sweetbistro.com") so customers know the expected domain before they scan.
  • •Point every code at an HTTPS URL on a domain you own, never at a shortener that hides the destination.
  • •Assign someone to re-scan every published code on a schedule — monthly is enough for most businesses — and look for sticker overlays.
  • •Print codes in brand colours and on branded material, so a plain-paper sticker stuck on top looks obviously wrong.

The caption is more powerful than it looks. A customer who has been told the code should open "sweetbistro.com" will notice when the preview shows "sweet-bistro-pay.com" instead. You are pre-loading the very check that defeats the attack. Pair the caption with a staff habit of mentioning the code by name — "our menu is at sweetbistro.com/menu, scan the card" — and the domain becomes part of the customer's expectation, not a surprise.

What to do if your codes are tampered with

  1. 1Remove the tampered code immediately and inspect every other code on the premises for overlays.
  2. 2Photograph the tampered code before removing it — it may help identify the attacker or support a report.
  3. 3Warn customers who may have scanned it: post a notice, mention it on your site, and tell staff what to say.
  4. 4Report the incident to your national fraud reporting body and, if relevant, to the platform whose lookalike domain was used.
  5. 5Reprint the code on tamper-resistant material and mount it behind glass so it cannot be covered again.

The honest limits of QR security

No precaution makes a QR code perfectly safe, because the code itself is neutral — the risk is always in where it sends you. The goal is not zero risk but informed risk: a customer who reads the preview, expects a known domain, and treats urgency as a red flag is safe against the overwhelming majority of real attacks. The customer who taps without looking is not, no matter how careful you are. That is why the single most useful thing you can do, as a publisher of codes, is teach the people who scan them to read the one line of text their phone already shows.

The threat model: why the preview is the boundary

A useful way to reason about QR security is to treat the decode pipeline as a series of trust boundaries. The camera captures the pattern; the on-device decoder (Vision on iOS, ML Kit on Android) reads the payload; the system classifies it by type and surfaces a preview chip; only the user’s tap commits the phone to acting. Everything up to the chip is automatic and invisible; everything after the tap is automatic and irreversible. The preview chip is therefore the single human-in-the-loop checkpoint in the entire pipeline — the only moment a person inspects the destination before the phone acts on it.

Quishing succeeds precisely when a user taps without reading that chip, because nothing downstream re-verifies the destination against the user’s intent. The attack does not need to defeat cryptography or exploit a software flaw; it needs only to manufacture urgency strong enough that the victim taps before reading. This is why urgency is the most reliable signal of a malicious code: a legitimate menu, Wi-Fi, or review code never requires action within seconds, while a quishing sticker almost always does. The defence is not technical — it is the habit of reading the one line of text the phone already shows.

For publishers, the threat model inverts. You cannot control what a customer does with the preview, but you can pre-load the check they should perform. A caption naming the expected destination (“Scan to see our menu at sweetbistro.com”) trains the customer to expect a specific domain, so a tampered sticker pointing at sweet-bistro-pay.com reads as wrong before the tap. Combined with tamper-resistant mounting — behind glass, laminated, in a frame — the caption turns every customer into a verifier of the code’s integrity, which is far cheaper and more durable than any technical anti-tamper scheme.

A QR code can encode a URL that looks legitimate at a glance but uses a lookalike domain (paypa1.com instead of paypal.com). Always read the full URL in the preview, not just the brand name.