No — scanning a QR code cannot by itself infect your phone with malware. A scan just decodes text: the payload is data, not a program, and your phone cannot run data. Infection attempts happen after the scan, when a decoded link opens a malicious page that tricks you into approving an install or entering credentials. Block those two moves and QR-borne malware has no path in.
That distinction matters because almost everything written about "QR code malware" skips it. The scan is safe; the destination and the approvals are where the risk lives. This guide walks through what a scan actually does, the three ways real infections happen, and the specific settings on Android and iPhone that shut each path down.
What a Scan Actually Does
When your camera reads a QR code, the phone converts the pattern of black and white modules back into a plain string of characters. Nothing executes at that moment — the string just sits there until something decides what to do with it. What happens next depends on what the string starts with:
| Payload starts with | Your phone offers to… | Where any risk could hide |
|---|---|---|
| A URL | Open the page in a browser | The page itself — the open, not the scan |
WIFI: | Join a network | Joining a hostile network; see the security guide |
tel: | Call a number | Premium numbers — but the dialer shows the number first |
mailto: / smsto: | Draft an email or text | Nothing runs — it is only a draft |
| A vCard or calendar entry | Save a contact or event | Contact clutter, not code execution |
Every one of those is an offer — the native camera apps on both Android and iPhone show you what the code contains before anything opens, and the scanning methods in the Android and PC scanning guide all work that way. The dangerous moment is never the decode. It is the tap on "open" — and what waits on the other side.
The Three Real Infection Paths
Malware needs to get onto your device, and from a QR code there are only three roads in. Each one ends with something that is unambiguously your decision — which is exactly why the settings section below works.
Path 1: The opened page exploits your browser
A malicious page can try to abuse a security hole in the browser itself — a "drive-by" exploit that installs something with no prompt at all. This is the scariest path and by far the rarest on a current device: it requires an unpatched vulnerability, which is why OS and browser updates are a security control and not just a chore. One nuance worth knowing: pages opened inside the built-in browsers of social apps can lag behind your real browser in patches, so opening a suspicious QR destination in your main, updated browser is the better habit of the two.
Path 2: The page tricks you into approving an install
This is the workhorse of real-world attacks. The page shows a "your device is infected" banner, a "required update", a "missing plugin" — anything to make you install what it is holding. On Android, a web-downloaded app file cannot install until you grant the browser an "install unknown apps" permission and then approve that specific install: two explicit roadblocks you control. On iPhone, a web page cannot install apps at all — apps arrive through the App Store — but iOS has one analogous door: configuration profiles, which require you to review and approve them in Settings. Every step of Path 2 is a dialog box asking your permission. The attack succeeds only when the dialog feels routine.
Path 3: No malware at all — just theft
The most common QR harm involves no infection and no exploit: the code opens a convincing fake page that collects your password, card number, or a payment. The FTC's consumer alert on QR code scams describes the pattern — codes that send you to phishing and payment pages instead of the real ones, including stickers slapped over legitimate payment terminals. Fake parking meters, spoofed invoice portals, and lookalike login screens steal more money than QR malware ever has, which is why the wider QR code safety guide treats phishing as the primary threat. This post stays on malware mechanics — but never forget which threat actually pays the attacker.
Settings That Block Each Path
None of these take more than a couple of minutes, and each one maps directly to a path above.
On Android
- Keep Play Protect on. Play Store → tap your profile icon → Play Protect → settings gear → "Scan apps with Play Protect" on. This is the scanner that reviews apps, including ones installed outside the Play Store.
- Take the install door off its hinges. Settings → Apps → Special access → Install unknown apps. Go through the list and make sure your browser is set to "Don't allow". Legitimate app installs come from the Play Store, which does not need this permission.
- Install updates promptly. Path 1 lives on unpatched holes. System update settings → "Check for updates" — monthly is plenty.
- Treat APK prompts as an alarm. Any page that hands you an app file to open is announcing itself. There is no legitimate version of that flow for a page you reached from a poster.
On iPhone
- Know where profiles live. Settings → General → VPN & Device Management. Anything listed there was deliberately installed; if you find a profile you never approved, remove it. iOS makes web pages ask before downloading a configuration profile — the ask is your signal to stop.
- Install updates promptly. Same logic as Android: exploits target known, patched holes.
- Trust the App Store wall. A QR destination cannot push an app onto your phone. Any page claiming you must "install" something outside the App Store is describing an attack, not a feature.
On both
- Read the preview every time. The domain shown after a scan is your one honest signal. If it is a redirector, a shortened link, or a domain that does not match the brand on the poster, do not open it.
- Never approve unexpected permission dialogs. Camera, notifications, accessibility — a page you reached by scanning has no business requesting these.
QR Codes vs Links: Which Is Riskier?
A QR code is a link with the label painted over. That is the entire security difference. With a printed or typed URL you can read where you are going before you commit; with a QR code the destination is invisible until after the scan, which is why attackers prefer codes for switching payment terminals and login pages. Mechanically, though, the two converge: once the page is open, a QR-delivered phishing page is exactly as dangerous as an email-delivered one.
Two practical consequences follow. First, the preview screen is the whole ballgame — it restores the label that the code hid, so favor scanners that show it and pause on it every time. A browser-based scanner adds a deliberate step: paste or upload the image, read the decoded destination in a scanner that shows the result before opening, then decide. Second, judge context before scanning: a code laminated onto a restaurant table is lower risk than a printed sticker covering another sticker at a payment kiosk, because placement is where most physical tampering shows.
If you want the broader threat model — data collection by scanner apps, malicious WiFi codes, and the full safe-scanning checklist — the QR code security risks guide covers it in depth.
Frequently Asked Questions
Are QR codes themselves dangerous?
No. A QR code is a container for text, and text cannot run on your phone. The risk lives entirely in what the decoded content triggers — an opened page, an offered download, a requested approval — all of which happen after the scan and all of which involve your decision.
What is quishing?
Quishing is phishing delivered through a QR code — the word mashes "QR" and "phishing". A typical case swaps a legitimate sticker at a payment terminal or parking meter for one pointing at a lookalike page. The FTC documented the pattern in its 2023 consumer alert on QR code scams, including fake reasons to "verify" account details.
How can I tell if a QR code is malicious?
You can't by looking at the pattern — two codes that look identical can point anywhere. Judge the context (is this sticker aligned, laminated, and where I'd expect it?) and then the preview (does the domain match the brand?). A scanner that displays the decoded destination before opening is your best tool for that second check.
Is it safe to scan QR codes with my phone's camera?
Yes — decoding is safe, and the native camera apps show a preview before anything opens. Treat that preview as the checkpoint it is: read the domain, then decide. The camera's scan is not the risk; the tap on the destination is.
Can a QR code automatically install malware?
No. Android requires an explicit "install unknown apps" grant plus a per-install approval; a web page cannot put an app on an iPhone at all — apps come from the App Store. The real attack is social engineering: a page that talks you into approving those dialogs yourself.
How can businesses reduce QR code security risks?
Use dynamic codes so destinations can be switched off when tampering is suspected, inspect public-facing codes on a schedule (payment terminals especially), keep printed frames intact so stickers stand out, and train staff on what a swapped code looks like. The security risks guide has the full business checklist.
What are common QR code phishing red flags?
Urgency ("account will be closed today"), payment or login requests right after a scan, domains that don't match the brand or use redirectors and shorteners, and physical misalignment — a sticker with rounded corners sitting on top of a printed code.
What should I do if I scanned a malicious QR code?
Work out how far it went. Closed the page immediately: nothing to do. Entered credentials: change that password now, enable two-factor authentication, and treat other accounts reusing the password as compromised. Paid or entered card details: contact your bank and dispute the charge. Installed an app or profile: remove it, run Play Protect on Android, and re-check VPN & Device Management on iPhone.
Wrap-Up
A QR scan cannot infect your phone — the payload is text, and text needs your cooperation to become a threat. Malware arrives through a patched-over browser hole, an approved install, or (most profitably for attackers) a phishing page that never involved malware at all. Keep Play Protect on and install permissions closed on Android, review profiles and updates on iPhone, read the preview before every open, and treat unexpected dialogs as the alarm they are. Scan the code; judge the destination; never approve what you didn't start.