Please enable JavaScript to use CodeHS

Cybersecurity • Social Engineering

What is quishing?

A QR code can't be read with your eyes before you scan it. That makes it a perfect hiding spot for a malicious link. Learn how "quishing" works, why it's so easy to fall for, and how to scan safely.

Security ~9 min Beginner friendly
The Basics

What a QR code actually is

A QR code (short for "Quick Response code") is just a picture. It's a square pattern of black-and-white squares that encodes text — usually a web address — in a way a camera can read instantly. Your phone's camera looks at the pattern, decodes the text hidden inside it, and offers to open it for you.

That's it. A QR code isn't smart, and it isn't inherently safe or dangerous. It's a delivery mechanism, the same way a hyperlink is: a way to hand someone a web address without them having to type it. The catch is that a hyperlink is usually made of readable text you can glance at, while a QR code is a pattern of squares that means nothing to your eyes until a camera decodes it.

A QR code is just an address in disguise. Scanned, this pattern might decode to something like https://example.com/menu — but you can't tell that just by looking at it. You only find out where it leads after your camera reads it and your phone opens (or offers to open) that address.


The Attack

What quishing is

Quishing is "QR" plus "phishing." It means hiding a malicious link inside a QR code so that scanning it sends you somewhere the attacker wants, instead of somewhere safe.

Depending on what the attacker is after, scanning a quishing code might:

  • Open a fake login page that looks like your school portal, your email, or a banking app — designed to steal your username and password when you type them in.
  • Start a malicious download that installs unwanted software on your phone or computer.
  • On some payment QR codes (like the kind you scan to pay a food truck or a parking meter), redirect the payment to the attacker's account instead of the business you meant to pay.

Quishing is just an old idea — phishing, tricking someone into clicking a bad link or handing over information — wearing a new disguise.


Why It Works

Why quishing works so well

With a normal link, you often have a chance to check it before you click. On a computer, you can hover your mouse over a link and see the real web address appear at the bottom of the screen. Even on a phone, you can sometimes long-press a link to preview it.

A QR code gives you none of that — until it's too late. The destination is completely invisible until after you've already scanned it and your camera app has decoded it. By the time you see a preview, you've already pointed your camera at the attacker's code and let it read the payload.

Key idea: a normal link lets you look before you click. A QR code makes you scan first and look second — and by then, the decision to trust it has already been made.

QR codes also benefit from something psychologists call learned trust. You've probably scanned dozens of QR codes safely — on restaurant menus, event tickets, posters, and payment terminals — without a second thought. That habit is exactly what attackers count on. A fake sticker slapped over a real QR code, say on a parking meter or a poster, blends right in and gets scanned just as automatically as any of the safe ones.


Real World

Real-world quishing scenarios

Quishing shows up in ordinary places, not just email inboxes:

  • Parking meters and signs. An attacker prints a sticker with their own malicious QR code and places it directly over the legitimate code on a parking meter or public parking sign. Someone trying to pay for parking scans it and is taken to a fake payment page that steals their card information instead.
  • Restaurant table tents. A "scan to see our menu" card on a restaurant table gets its QR code swapped or covered with a fake sticker. The diner expects a menu and instead lands on a page built to steal information or trigger a download.
  • Phishing emails and letters. Instead of a clickable link, a phishing email or even a printed letter includes a QR code. Attackers do this on purpose: automated email scanners are much better at flagging a suspicious URL written as text than they are at recognizing a malicious link hidden inside an image.

Defenses

How to scan safely

You don't have to avoid QR codes altogether. A few habits make quishing much less likely to work on you:

  1. Check the URL preview before tapping to open it. Most modern phone cameras show a preview of the destination web address right after scanning, before actually opening it. Read that preview carefully instead of tapping "open" out of habit.
  2. Look for signs of physical tampering. A sticker placed on top of another QR code, a mismatched font or print quality compared to the sign around it, or a code that looks slightly crooked or newer than its surroundings are all red flags.
  3. Never enter a password or payment info right after scanning a public code without double-checking the domain. If a scanned page asks you to log in or pay, stop and verify the web address matches the real business or service you expect — not something close but slightly different.
  4. When you can, type the address yourself. If you already know the official website for a restaurant, event, or parking service, typing it in yourself skips the QR code entirely and removes the risk.

Remember: a QR code is neither safe nor dangerous by itself. What matters is whether you trust where it came from — and whether you check the destination before you trust it.


Interactive

QR code inspector

Here are four QR codes you might run into out in the world. Read each scenario and decide: does it look safe to scan, or suspicious enough to skip? Click a choice to see the explanation.

Look at where the code is placed, how it's printed, and whether it matches its surroundings.

Parking meter code

Location: street parking meter • a shiny sticker covers the center of the code

You're about to pay for parking. The QR code on the meter has a smooth, glossy sticker in the middle that looks a little newer and slightly crooked compared to the printed sign around it.

Restaurant menu code

Location: printed table tent • matches the restaurant's own branding

A "Scan to see our menu" table tent is printed with the restaurant's logo and matching fonts. The QR code is printed as part of the same card, not stuck on afterward.

"Verify your account" email code

Location: an email • asks you to scan instead of clicking a link

An email claiming to be from your school portal says your account needs "urgent verification" and includes a QR code to scan — with no regular clickable link anywhere in the message.

Event ticket check-in code

Location: printed on your own ticket • used only to check you in at the door

You printed your own ticket confirmation for a school event. It has a QR code printed as part of the ticket itself, used by staff at the door to scan you in — it doesn't ask you to enter any information.


Your Turn

Check yourself

1. You see a flyer taped to a lamppost with a QR code and the words "Scan for a free gift card." What would you check before scanning it?

Sample answer: I'd be suspicious of a random flyer promising a free gift card in the first place. I'd look for signs of tampering, like a sticker on top of another code, and if I did scan it, I'd read the URL preview carefully before tapping to open it, and I definitely wouldn't enter a password or payment info on whatever page came up.

2. Why is it harder to judge a QR code's safety than a normal text link in an email?

Sample answer: with a text link, I can often see or hover over the actual web address before clicking it. A QR code hides its destination inside a pattern of squares, so I have no idea where it leads until after I've already scanned it and my phone shows me a preview — by which point I've already trusted it enough to point my camera at it.


Check Yourself

Quick quiz

1. What is quishing?

2. Why is a QR code riskier to judge than a normal link?

3. What's the safest way to handle an unfamiliar public QR code?

Keep learning about modern scams

Quishing is just one way attackers repackage an old trick — phishing — for a new delivery method. See how the same idea shows up over text and phone calls in What Is Smishing and Vishing?, or go line by line through a fake message in Don't Fall for a Phishing Email. Next up in this series: what happens when attackers piece together your public posts.

Part of the Modern Scams and Cyber Threats tutorial series from CodeHS.