A QR code flow is an authentication or registration process where a user scans a code to transfer session or relying party details between devices. In passwordless identity assurance, it often bridges web, desktop, and mobile steps so the user can complete biometric verification on a trusted device.
How QR Code Flows Work
QR code flows are designed to move a user from one device to another without forcing them to re-enter credentials on the second device. The code usually carries a short-lived reference, not the secret itself, so the flow can connect a browser, desktop app, or kiosk to a trusted mobile device for approval or biometric verification.
This pattern is common in passwordless journeys because it separates initiation from strong user verification. The desktop or browser starts the session, while the mobile device completes the higher-trust step, such as a biometric prompt or device-bound confirmation. That split can improve usability, but it also creates a cross-device trust relationship that must be tightly controlled.
Where QR Code Flows Fit in Authentication and Registration
In authentication, a QR code flow is often used to sign in on a device that is awkward for direct credential entry. In registration, it can help bind a new client, browser session, or application instance to an identity provider or authenticator already present on the user’s phone. The same structure appears in passwordless onboarding, shared-device sign-in, and delegated approval experiences.
The security value comes from reducing password exposure and steering the user toward a stronger verifier on the device they already trust. The design challenge is that the QR code is only the handoff mechanism, so the real assurance depends on what the user is asked to approve after the scan, how the devices are matched, and whether the flow is resistant to session transfer abuse or relayed consent.
Core Security Properties
A safe QR code flow should be short-lived, single-use, and bound to the intended session or relying party. The user should be able to recognise what they are approving, and the handoff should not become a generic approval channel that works across unrelated sessions. When those properties are weak, the QR code becomes a convenient bridge for phishing, token theft, or unauthorised session transfer.
Because QR code flows often sit inside broader passwordless programmes, they are closely related to device trust, phishing resistance, and session integrity. The implementation must preserve the difference between proving control of a second device and simply authorising a login prompt. For a broader design view of cross-device authentication patterns, see the Cross-Device Flow Security Guide.
Common Failure Modes and Misunderstandings
One common mistake is treating the QR code itself as proof of identity. In practice, the QR code is only a transport mechanism. The assurance comes from the follow-up step, such as a device-bound authenticator, biometric check, or policy decision on the trusted device. If that step is weak, the flow still inherits the weakness even if the code looks modern.
Another failure mode is not recognising that QR-based handoffs are attractive to attackers because they compress the attack window into a few seconds and often rely on user action under time pressure. That makes them useful in phishing chains, especially when the code is delivered through email, chat, or a fake support interaction. The technique sits close to the same abuse patterns covered in Top 10 Phishing Techniques and in QR Code Phishing (Quishing) Guide, which is why the surrounding channel matters as much as the code itself.
Risk and Threat Considerations
QR code flows create a narrow but valuable attack surface because they are meant to move trust across devices quickly. If the session reference, approval prompt, or relying party binding is exposed, an attacker can try to relay the flow, steal the handoff, or trick the user into approving the wrong session.
Failure mechanism: The attacker exploits the fact that the QR code is visible, transferable, or scannable by any nearby device, then substitutes or races the legitimate approval step before the intended user completes it.
Impact: The result can be unauthorised sign-in, session theft, account takeover, or enrolment of a malicious device or client into a trusted authentication path.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
NIST SP 800-63, NIST SP 800-53 Rev 5, CIS Controls v8 and OWASP ASVS set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST SP 800-63 | Digital Identity Guidelines | Defines phishing-resistant digital identity and cross-device authenticators relevant to QR handoff flows. |
| Recommendation — Use phishing-resistant authenticators and bound transactions for QR-based sign-in and registration flows. | ||
| NIST SP 800-53 Rev 5 | IA-5 — Authenticator Management | QR flows depend on controlling authenticators and their lifecycle during enrollment and sign-in. |
| IA-2 — Identification and Authentication (Organizational Users) | QR sign-in flows still authenticate a user before granting access to the relying party. | |
| Recommendation — Manage QR-linked authenticators as controlled lifecycle items and revoke them when they are no longer trusted. Require strong user authentication before completing a QR-based session transfer. | ||
| CIS Controls v8 | CIS-5 — Account Management | QR flows frequently onboard or validate accounts and sessions that must be provisioned and revoked cleanly. |
| Recommendation — Track QR-enabled accounts and remove access promptly when they are no longer needed. | ||
| OWASP ASVS | V10 — OAuth and OIDC | Many QR-based login experiences are built on OAuth or OpenID Connect handoffs and token issuance. |
| Recommendation — Verify QR-based OAuth and OIDC flows preserve redirect, token, and session integrity. | ||
Practitioner Guidance
Why practitioners should care: QR code flows are only as strong as the session binding, device trust, and user prompt behind them. Treat them as an authentication design pattern, not as a cosmetic login convenience. If the flow is used for passwordless onboarding or shared-device access, make sure the security review covers replay resistance, prompt clarity, and the trustworthiness of the second device.
What to watch for: Review whether the code is short-lived, whether the approval step is bound to the expected relying party, and whether abnormal scans or repeated handoff failures are visible in logs. Where phishing-resistant assurance is a requirement, align the surrounding controls with Phishing-Resistant MFA Guide and with the broader passwordless patterns described in Passkeys for Everyone Guide.
Related resources from NHI Mgmt Group
- What should teams do when a QR code leads to a suspicious login flow?
- Why do QR code authentication tests fail if the flow takes too long to complete?
- What is the difference between a Group eSIM QR code and a standard one-off activation flow?
- How can organisations reduce QR-code phishing in AI-assisted browsing workflows?
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on October 30, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org