Browser & Tracking

QR Code

About 4 min read

What Is a QR Code

A QR code (Quick Response Code) is a square matrix-type two-dimensional barcode. It was developed by a team at Denso Wave (then a division of Denso) in response to users who wanted a code that could hold more information than a barcode, including Kanji and Kana, and was announced in 1994. Unlike traditional barcodes that store information only horizontally, QR codes encode data in both directions, allowing thousands of characters to fit in a small area.

After its release it was adopted for production management such as the auto industry's electronic kanban. Denso Wave holds patents on the QR code but has declared that it will not exercise them, and states that anyone can use the code freely as long as it follows the JIS or ISO standards; the company's history page names this policy as one of the factors behind its spread. Today they appear in payments, ticketing, URL sharing, business card exchange, and handing over Wi-Fi connection details.

QR Code Data Structure

Although QR codes appear to be random black-and-white dots, they have a precisely defined structure.

Finder Patterns
Large squares placed at three corners. They allow scanners to instantly detect the QR code's position and orientation, enabling reading from any angle.
Version Information
Indicates the QR code size. Ranges from Version 1 (21x21 cells) to Version 40 (177x177 cells). Higher versions store more data.
Error Correction Code
Uses Reed-Solomon codes to enable reading even when parts of the QR code are dirty or damaged. Four levels exist: L (about 7%), M (about 15%), Q (about 25%), and H (about 30%). Design QR codes with logos in the center exploit this error correction capability.
Data Region
The area where actual data is stored. Supports four encoding modes: numeric, alphanumeric, binary, and Kanji. The optimal mode is automatically selected based on the data type.

QR Phishing (Quishing) Threats

Attacks that abuse QR codes are called QR phishing (Quishing), and in the United States the FBI issued an alert in January 2022 and the FTC in December 2023. Attackers embed malicious URLs in QR codes to redirect users to phishing sites or malware distribution sites.

With Quishing, the content of a QR code cannot be checked by eye. While you can hover over email links to check URLs, QR codes reveal their destination only after scanning.

Examples of Attacks

  • Fake QR codes in parking lots or restaurants: Attackers place fake stickers over legitimate payment QR codes, redirecting funds to their accounts
  • QR codes in emails: Using pretexts such as an undeliverable package or suspicious activity on an account, these urge a scan and lead to a spoofed site that looks real (examples in the FTC's alert)

Practical Guide to Safe QR Code Usage

  • Verify the URL after scanning: Check the URL displayed by your browser after scanning a QR code; the FBI's alert warns that a malicious domain may look like the intended one with a typo or a misplaced letter. If it is a shortened URL, expand it before accessing. Never enter personal information on non-HTTPS sites.
  • Be cautious with public QR codes: Visually check whether stickers have been placed over the original code or if printed materials have been tampered with. When in doubt, skip the QR code and access the official site directly.
  • Use your OS default camera app: The FBI's alert advises against downloading a QR code scanner app, saying it increases the risk of installing malware, and notes that most phones have a built-in scanner in the camera app. In the iPhone User Guide, the Camera shows a link at the bottom of the screen that you tap to open it, so the link is visible before opening.
  • Enable two-factor authentication: If only a password was entered on a phishing site, an account with two-factor authentication is not signed in to with the password alone.
  • Corporate countermeasures: Include Quishing examples in employee security training. Some email security products can analyze URLs within QR codes.

Common Misconceptions

QR codes themselves contain viruses
QR codes are data carriers, and the danger lies in what is embedded, such as a URL. The FBI's alert states that QR codes are not malicious in nature, while listing schemes that steal information at the destination site or install malware. One defense is to check the URL after scanning.
QR codes are read-only and cannot be tampered with
While the data within a QR code is fixed, physical sticker replacement or redirect changes via URL shortening services enable effective tampering. For QR codes in public places, the FBI's alert advises checking that no sticker has been placed over the original code.
Share

Related Terms

Related Articles