QRAnalytica

Can Someone Hack Your Phone If You Scan a QR Code?

Scanning a QR code almost never hacks a phone by itself. The danger is the link it opens, so read the preview before you tap and never pay through it.

Nookesh Karri · 8 min read
Dark cover card with the title 'Can Someone Hack Your Phone If You Scan a QR Code?' in white and a lime accent bar

Someone can’t hack your phone just because you scanned a QR code. A QR code is only text, and your phone’s camera shows you a preview of what it says before anything happens. The danger starts when you tap: the code can open a fake login page, push an app download or lead to a payment page run by a scammer.

So can a QR code hack your phone? No. The page behind it can still trick you into handing over what a hacker wants.

Can scanning a QR code hack your phone by itself?

Scanning a QR code with your phone’s built-in camera does not, on its own, hack the phone. The camera decodes the pattern into text, such as a web address, and waits for you to choose what to do with it.

The FBI’s public service announcement puts it plainly: “QR codes are not malicious in nature.” The same notice warns that a malicious code can lead to embedded malware that steals “location as well as personal and financial information.” The code is the delivery route. The damage happens at the destination.

The UK’s National Cyber Security Centre frames the risk the same way. It says most QR fraud happens in open spaces like stations and car parks, and “often involves an element of social engineering.” Someone has to talk you into the next step.

What each type of QR code can do when you scan it

Different QR codes carry different kinds of content, and each one asks your phone to do something different. The ZXing Barcode Contents reference, maintained by the team behind one of the most widely used open-source barcode readers, describes how a reader app should handle each type:

Content in the codeWhat a well-behaved reader doesWhat still needs you
Web address (URL)Shows the URL and asks whether to proceedTapping to open it
Phone number (tel:)Pre-fills the dialer, “but not automatically initiate a call”Pressing call
Text message (sms:)Opens a new message, ready to sendPressing send
Email (mailto:)Opens a blank email to that addressWriting and sending
Contact card (MECARD, vCard)Prompts you to add the contactSaving it
Wi-Fi network (WIFI:)Joins the network “after prompting the user”Approving the join

Every row ends with a choice you make. On a current phone, a QR code can suggest an action. It can’t complete one for you. A scammer’s code that opens a text to a premium number still needs your thumb on send.

The Wi-Fi row deserves more caution, because joining an unknown network is a risk on its own. Here’s how a Wi-Fi QR code sign should work.

How QR code scams actually get your data

QR code scams work by sending you to a page that asks for something: a password, card details or permission to install an app. The code just makes the link harder to inspect than a typed web address.

These are the patterns official agencies report:

  • Stickers over real codes. The FTC’s consumer alert describes scammers covering parking meter QR codes with their own. The FBI says criminals tamper with “both digital and physical QR codes.”
  • Codes in emails and texts. The NCSC says QR codes are increasingly used in phishing emails, a technique called “quishing,” to hide the link to a malicious site.
  • Spoofed sites. The FTC warns a scammer’s code “could take you to a spoofed site that looks real but isn’t.”
  • App installs. The FBI’s advice is direct: “Do not download an app from a QR code. Use your phone’s app store for a safer download.”

For the step-by-step version, see how to scan a QR code safely.

When the phone’s own scanner was the weak point

There has been at least one documented case where a phone’s built-in QR scanner showed people the wrong address. In iOS 11, Apple’s Camera app could display one website in its notification and open a different one in Safari.

MacRumors reported that a crafted code showed “Open facebook.com in Safari” but led to the researcher’s own site. The trick was a web address with “facebook.com” placed before an @ sign, which the Camera app read as the destination and Safari didn’t. The researcher reported it to Apple on December 23, 2017. TechTarget names him as Roman Mueller and says the flaw “was fixed in iOS 11.3.1.”

Even this bug didn’t hack the phone. It made a phishing link look trustworthy, and you still had to tap. It was also fixed in a software update, which is why the FTC lists updating your phone’s operating system among its protective steps.

Why scanner apps make it worse, not better

A downloaded QR scanner app adds risk instead of removing it. The FBI says, “Do not download a QR code scanner app,” because it “increases your risk of downloading malware onto your device,” and notes most phones have a scanner built into the camera.

The NCSC gives the same advice: use “the QR-scanner that comes with your phone, rather than using an app downloaded from an app store.”

How to check a QR code before you tap

The moment that matters is the preview, between scanning and tapping. Read the address your camera shows, and decide from there.

  1. Look at the code first. On a sign or meter, check for a sticker on top of the original, as the FBI advises.
  2. Read the domain in the preview. The FBI warns a fake domain may look like the real one “with typos or a misplaced letter.”
  3. Don’t pay through it. The FBI says to avoid payments through a site reached from a QR code and to type a known address instead.
  4. Don’t install anything. Go to the app store yourself.
  5. Be wary of codes in emails. The NCSC says to take extra care with QR codes in messages asking you to scan.

My take: most advice treats the scan as the risky moment, and that puts people’s caution in the wrong place. Scan freely. Save your suspicion for the preview and the page that follows. The NCSC even says restaurant and pub QR codes are “probably safe for you to scan.”

The limitation is that a preview only helps if you know what the real address should look like. A parking company you’ve never heard of has no domain you can recognize. There, typing the operator’s website yourself beats any check.

If you run the QR codes people scan

Businesses can make their codes easier to trust. Print a short, readable URL next to the code, ideally on your own branded domain, so people can match the preview to the sign.

Before printing, you can run a code through our free QR code validator, which checks for hijacked links and low contrast. It can’t stop someone sticking a fake code over yours later, so check public signs now and then. If you’re unsure what kind of code you’re holding, here’s how to tell a static code from a dynamic one.

If you already tapped a suspicious code

If you tapped through but entered nothing, close the page. If you typed a password, change it on the real site and turn on multi-factor authentication, which the FTC recommends. If you paid, call your bank using the number on your card.

FAQ

Can just scanning a QR code hack my phone?

Almost never. A QR code is text, and your camera only shows a preview of it. The harm comes from opening the link, installing an app or typing details into the page it leads to.

Can a QR code install malware without me tapping anything?

Not with the built-in camera on an up-to-date phone, which asks before opening a link. The FBI warns that malicious codes can lead to malware, which is why it says never to install an app from a QR code.

Is it safer to use a QR scanner app?

No. The FBI and the UK’s NCSC both recommend the scanner built into your phone’s camera rather than a downloaded scanner app.

What should I do if I opened a suspicious QR code?

Close the page without entering anything. If you typed a password, change it and turn on multi-factor authentication. If you paid, contact your bank straight away.

Sources

Track your dynamic campaigns. 7-day trial, no credit card.
Generate Dynamic QR