17  NFC Security and Alternatives

rfid-nfc-uwb
security
comparisons

17.1 Start With the Story

NFC is easy to overtrust because the user is close to the reader. Close range can help with intent, but it does not automatically prove confidentiality, authorization, freshness, tamper resistance, or relay protection.

Read this chapter by comparing what each alternative proves. NFC, QR, BLE, UWB, and RFID all expose different risks, so the useful review names the threat, the fallback, and the evidence that makes the chosen interaction safe enough.

Key Concepts
  • Proximity is not proof: A tap shows that a reader and target were near each other, but it does not prove identity, consent, freshness, or authorization.
  • Static data: A UID, printed code, or plain NDEF record can identify an object, but it can also be copied unless the application treats it as an untrusted pointer.
  • Dynamic proof: A nonce, counter, signature, challenge-response, or online validation step can prove freshness or possession of a credential.
  • Relay risk: A relay forwards legitimate traffic between a target and reader, so strong cryptography alone may not show that both endpoints are physically co-located.
  • Tamper and privacy risk: Tags, labels, and beacons can be replaced, tracked, scraped, or linked to people unless the design includes controls and evidence.
  • Release evidence: A security comparison is not complete until fallback, logging, negative tests, and field diagnostics are verified.

17.2 In 60 Seconds

NFC is useful when a deliberate tap should select an object or credential, but short range is only one control. QR codes are easy to copy and photograph. BLE provides longer sessions but needs pairing, key handling, and reconnect policy. UWB can support precise ranging when the devices and protocol support it. RFID can scan many assets, but identity and authorization still depend on the tag and backend model. Choose by trust boundary: what can be copied, what proves freshness, what can be relayed, and what evidence the release will capture.

17.3 Learning Objectives

By the end of this chapter, you will be able to:

  • Compare NFC, QR, BLE, UWB, and RFID security boundaries without treating range as the whole security model.
  • Distinguish static tag data, signed or dynamic tag data, and credential-based authentication.
  • Explain relay, tamper, clone, and privacy risks for NFC-centered IoT workflows.
  • Select controls such as signed records, challenge-response, user confirmation, backend validation, and fallback paths.
  • Define release evidence for security-sensitive tap, scan, range, and reader workflows.

17.4 Quick Check: NFC Comparison

17.5 Prerequisites

Before diving into this chapter, you should be familiar with:

17.6 Start With the Boundary

Security comparisons fail when they ask which technology is “secure” in the abstract. Start with the trust boundary instead: what crosses into the application, what can be copied, and what proves the action is fresh and allowed.

Comparison map showing NFC tap, QR scan, BLE session, UWB ranging, and RFID inventory boundaries with the type of evidence each technology can provide.

Security boundaries for NFC compared with QR, BLE, UWB, and RFID

NFC Good for deliberate object selection and credential exchange, but tag data and reader requests still need validation.

QR Good for visible fallback and printed identifiers, but easy to photograph, replace, or replay as a static link.

BLE Good for longer sessions and background connectivity, but pairing, reconnect, identity rotation, and permission UX become central.

UWB Good for ranging when supported, but ranging evidence must still bind to identity and application policy.

RFID Good for inventory and gate reads, but bulk reads increase privacy and misread concerns unless policy handles them.

Comparison Rule

Compare technologies by the weakest boundary in the workflow, not by the strongest feature in the brochure. A dynamic credential can be undermined by a weak fallback. A strong NFC tap can be undermined by trusting an unsigned URL. A precise range estimate can be undermined if it is not bound to the right device identity.

17.7 Static Data, Dynamic Proof, and Credentials

NFC security reviews should separate three very different things that are often described as “the tag.”

Three-stage NFC map from static data to dynamic proof to credential policy, showing that a UID or NDEF record alone is not a credential.

Static tag data is only a pointer; dynamic proof shows freshness or possession, and application policy decides who can act

Static data A UID, plain text, or URI can identify a label or object. It should be treated as a pointer unless the system has additional proof.

Dynamic proof A signed record, challenge-response, nonce, counter, or backend check can show freshness or possession of a secret.

Credential policy The application decides who can act, what state can change, how fallback works, and what evidence is logged.

17.7.1 Tag Data Is Not a Credential

Reader/writer mode often starts with tag data. That data can be useful without being trusted:

  • A maintenance tag can carry an asset ID, while the maintenance app checks whether the user can open or update the record.
  • A product tag can carry a signed proof, while the backend verifies the signature and rejects stale or unexpected counters.
  • A commissioning tag can carry setup data, while the app asks the device to prove it is the intended target before joining a network.
  • A fallback QR code can carry the same object ID, but the application should mark the evidence source so support teams know whether the user tapped or scanned.

17.7.2 Card Emulation Is a Credential Interface

Card emulation changes the trust model. The device or card is not just a data label; it participates in a credential protocol expected by a reader. Review who owns the credential, which reader applications are accepted, how user presence is enforced where needed, and how denied requests are logged.

17.7.3 Handover Moves the Risk

NFC handover moves a setup token to another bearer. The follow-on connection still needs peer binding, session protection, retry policy, and user-visible failure handling. A successful tap is only the start of the proof chain.

17.8 Threats and Controls

The most useful NFC security review maps each threat to a control and to the evidence that proves the control works.

Table mapping five NFC threats (clone, relay, tamper, privacy, malformed payload) to a control and to the evidence that proves each control.

Each NFC threat mapped to a practical control and to the evidence that proves the control works

Clone risk Avoid treating static identifiers as authority. Use signed records, dynamic messages, challenge-response, or backend validation when identity matters.

Relay risk Cryptography may still be relayed. Add timing limits, user confirmation, location consistency, or a second factor when the use case requires it.

Tamper risk Protect labels and tags physically, detect unexpected rewrites, verify signatures, and provide a visible fallback for damaged or replaced tags.

Privacy risk Minimize stable identifiers, rotate public identifiers where practical, limit telemetry retention, and avoid broadcasting personal state.

Malformed payload risk Parse NDEF, URLs, and MIME records with strict allowlists. Reject unexpected schemes, overlong fields, and unknown commands.

Common Mistake: Proximity-Only Approval

Do not approve a high-impact action only because an NFC tap happened. The tap is a useful intent signal, not a complete authorization decision. The application still needs to validate the data, the user, the target, and the requested action.

17.9 Tap Intent Is Not Confidentiality

The most common NFC security belief is that a few-centimetre operating range makes interception irrelevant. That is the wrong boundary. The operating range is short because a passive tag needs a strong field, but eavesdropping can happen from farther away with better antennas, and the NFC RF layer is not the application security layer. NFC’s genuine advantage is deliberate tap intent, not automatic confidentiality or authorization.

Consider a smart tool cabinet with three entry paths: an NFC service tag on each drawer, a QR fallback label for phones without NFC, and a BLE lock controller that releases the latch. The NFC tag should not say “open drawer 4” as a trusted command. A safer design treats the tap as a selector: asset=cabinet-12-drawer-4, input=nfc, and a signed or backend-validated proof if the tag supports one.

Static NFC tag flow showing a public tag leading to an object ID or setup URI, then validation, then policy deciding allowed action or rejection.

Static NFC tag flow from public reference to validation and policy decision

The phone then asks the backend whether this signed-in technician may check out that tool at this time. The backend sends a short-lived release instruction to the BLE controller only after asset state, user role, reservation state, and lock health all match.

The comparison changes when fallback is used. A QR scan can select the same drawer, but it is easier to photograph or replace, so the backend should record input=qr_fallback and may require stronger user confirmation or supervisor approval. UWB can add distance evidence between the phone and cabinet, but it still needs to bind to the same identity and action. RFID can inventory tagged tools after the door closes, but that inventory evidence should reconcile checkout rather than authorize opening by itself.

17.10 Attack Evidence for Tap Workflows

Three attacks are worth naming explicitly because each maps to different release evidence:

Attack What it does Defense evidence
Eavesdropping Passively captures an exchange from farther than tap distance. Application-layer encryption or no plaintext secrets on the tag.
Data corruption or modification Jams, alters, or rewrites bits or tag content. Integrity checks, authenticated messages, readback tests, and rejection logs.
Relay Forwards a legitimate badge or credential exchange over a longer link. Timing bounds, distance bounding, transaction limits, user confirmation, or second factor.

The relay attack is the important one for proximity claims. The attacker does not break the cryptography; they extend the wire by presenting a genuine credential to a genuine reader that are in different places. That is why proximity alone is not authentication for valuable actions.

For the cabinet example, release testing should produce one row per attempted input: valid NFC tag, copied NFC UID, modified NDEF URL, QR fallback, stale signed payload, denied technician, offline backend, BLE lock unavailable, and unexpected RFID inventory result. Each row should name the parser result, proof result, policy decision, user message, and audit event.

Make every weaker path visible. A support dashboard should be able to answer how many openings used NFC, how many used QR fallback, how many were denied for malformed payloads, how many were denied by policy, and how many reached the BLE controller but failed at the lock. Those categories prevent field fixes from becoming invisible security bypasses.

17.11 Compare Interaction Models

Choosing between NFC, BLE, QR, UWB, and RFID is really choosing an interaction model:

Question NFC BLE QR code
Range Centimetres for the tap. Often 10 metres or more. Line of sight to a camera.
Setup No pairing; tap and act. Discovery, pairing, reconnect, and permission state. Point, scan, parse, and validate.
Power Can power a passive tag. Both ends need power. Printed media needs no power.
Intent High because the user taps. Lower because connections can happen at distance. Medium because the user aims a camera.
Weakness No RF encryption guarantee and relay risk. Pairing, identity, and reconnect attack surface. Trivially photographed, copied, or swapped.

A reliable comparison decomposes the proof chain into four checks. First, input integrity: can the byte string, URL, UID, advertisement, or range report be copied or altered? Second, freshness: does the message include a nonce, counter, signature, challenge-response, or online state check that rejects replay? Third, target binding: does the proof refer to the cabinet, drawer, lock, or credential that will actually change state? Fourth, authorization: does application policy decide that this user may perform this action now?

Those checks explain why swapping technologies does not automatically fix a design. NFC without proof fails at input integrity. QR without backend validation fails the same way. BLE with weak reconnect policy may pass input integrity but fail target binding if the phone talks to the wrong lock. UWB can strengthen proximity evidence, but if the range report is not bound to the credential and action, it is only a measurement. RFID inventory can catch a missing tool after the fact, but it is usually too broad and asynchronous to authorize a specific human action.

17.12 Relay and Proximity Check

17.13 Comparing NFC With Alternatives

The right comparison depends on the workflow, not on a generic technology ranking.

NFC vs QR NFC can support dynamic tag proof and hidden data, while QR is visible and easy to duplicate. QR remains valuable as a low-friction fallback if the backend treats it as an untrusted pointer.

NFC vs BLE NFC is strong for deliberate selection. BLE is better for continuing sessions after selection. BLE review must cover pairing, identity rotation, reconnect, and permission prompts.

NFC vs UWB UWB can add distance evidence. That evidence should be bound to device identity and the action being authorized, not used as a standalone approval.

NFC vs RFID NFC is tap-centered and often phone-friendly. RFID can read many items without each user tap. RFID review must handle misreads, bulk privacy, and reader placement.

17.13.1 Selection Questions

Use these questions before choosing a technology:

  1. What is being selected? A person, asset, credential, physical location, device, or service?
  2. What can be copied? Plain tag content, visible code, BLE advertisement, RFID identifier, or handover token?
  3. What proves freshness? Counter, nonce, signature, challenge-response, online lookup, or recent user confirmation?
  4. What can be relayed? NFC and credential protocols can be forwarded unless timing or context checks are part of the design.
  5. What is the fallback? QR, manual code, support flow, retry, or supervised override?
  6. What gets logged? Selected technology, parse result, policy decision, fallback used, and reason for rejection.

17.14 Folded Security Comparison Notes

Security comparisons should compare attack paths, not brand labels. Preserve these boundary rules:

Pattern Main risk Control evidence
Public NFC tag or QR code Copied or replaced pointer. Approved host checks, schema validation, tamper inspection, and backend policy gate.
BLE handoff after tap Pairing, reconnect, identity rotation, or permission confusion. Device identity, session binding, permission prompt review, and disconnect behavior.
UWB-assisted action Distance evidence used as standalone approval. UWB result bound to device identity, user intent, and the action being authorized.
RFID inventory flow Bulk misreads, hidden reads, and privacy exposure. Reader placement, read-zone tests, exception handling, and privacy logging.
NFC credential flow Relay, lost device, stale credential, or weak fallback. Dynamic proof, revocation, retry limits, fallback labeling, and audit trail.

A service tag and an access credential are different designs. A service tag can expose an asset reference that an app validates. An access credential needs issuer, verifier, freshness, revocation, replay handling, and failure telemetry. Do not let the same “tap” language hide that boundary.

17.15 Folded Security Best-Practice Notes

Use these rules when turning comparison results into a release design:

Best practice Reason
Treat public tag content as untrusted input. Static URLs, UIDs, and text records can be copied, replaced, or replayed.
Keep secrets and changing state outside NDEF. The app, secure element, reader, controller, or backend should own authorization and current state.
Fail closed on unexpected records. Unknown hosts, record types, payload lengths, MIME types, or schema versions should not trigger hidden commands.
Read back and mount-test final tags. A tag written correctly on a bench can fail after locking, label overlay, metal mounting, or phone-case changes.
Log tap, proof, policy, fallback, and action separately. Reviewers need to know whether the tap was observed, the payload was accepted, the policy allowed it, and the action ran.

When stronger proof is required, use a credential or authenticated tag pattern with freshness, revocation, relay handling, and audit. Short NFC range is a useful usability boundary, but it is not a complete security control.

17.16 Fallback and Failure Handling

Fallback is part of the security design, not only a usability feature. A fallback path can preserve service when tags fail, but it can also become the easiest way around the stronger control.

Fallback flow showing tap or scan input, parse and proof validation, policy decision, allowed action, denied action, and support escalation.

Fallback flow for secure NFC and comparison workflows

Good fallback design includes:

  • A fallback that is explicitly labeled in telemetry so teams can see when the stronger path is bypassed.
  • The same application-policy gate for NFC, QR, BLE, RFID, and manual entry paths.
  • Clear user messages for unsupported tag, malformed data, proof failed, action denied, and retry needed.
  • A support path for damaged labels or replaced devices that does not silently approve a weaker identity claim.

17.17 Release Evidence

Release evidence should prove that each comparison claim survives field conditions and negative tests.

NFC security release evidence in five categories (threat model, compatibility, negative tests, telemetry, and operations) with a release gate.

Five categories of NFC release evidence that prove a comparison claim survives field conditions and negative tests

Threat model Named assets, attackers, copied-data cases, relay cases, tamper cases, and privacy-sensitive identifiers.

Compatibility Reader and phone matrix, tag technologies, fallback media, mounting conditions, and expected failure modes.

Negative tests Cloned static ID, modified URL, stale counter, malformed NDEF, delayed relay, unknown reader, and denied user.

Telemetry Input technology, proof result, policy decision, fallback path, denial reason, and support correlation ID.

Operations Tag replacement, credential revocation, label inspection, reader updates, key rotation plan, and incident review.

17.18 Check Your Understanding

17.19 Match Threats to Controls

17.20 Order a Security Comparison Review

Common Pitfalls

1. Treating QR as Harmless Backup

QR fallback is useful, but it is also easy to duplicate and place somewhere else. Fix: route QR and NFC through the same validation path and log when fallback was used.

2. Calling a UID a Credential

A UID or serial-like value may help route a lookup, but it is not a credential by itself. Fix: require signed data, dynamic proof, challenge-response, or backend policy for actions that matter.

3. Ignoring Relay Because Crypto Is Strong

Relay attacks forward legitimate messages and may not break cryptography. Fix: add timing, context, user presence, or second-factor controls for high-impact actions.

4. Comparing Technologies Without Fallback

The strongest technology can still fail in the field. Fix: define fallback, denial, retry, and support paths before release, and verify that weaker paths cannot silently bypass policy.

17.21 Design Review Checklist

Before approving an NFC security comparison, confirm:

  1. Boundary: The chapter or design names what crosses from tag, reader, scan, radio, or ranging layer into application policy.
  2. Copy risk: Static data and visible labels are treated as copyable unless additional proof is present.
  3. Freshness: The design names the nonce, counter, signature, challenge-response, or backend state check used to reject stale data.
  4. Relay: The design states whether relay matters and which timing, context, or second-factor controls apply.
  5. Privacy: Stable identifiers, logs, and telemetry are minimized and justified.
  6. Fallback: Weaker paths are visible, policy-gated, and tested.
  7. Evidence: Negative tests and support diagnostics are captured before release.

17.22 Summary

NFC security comparisons are strongest when they separate proximity, proof, and policy:

  • NFC provides a deliberate tap, not automatic authorization.
  • QR is useful as a visible fallback, but it is easy to copy and replace.
  • BLE supports longer sessions, but pairing, identity, permissions, and reconnect behavior become the main review points.
  • UWB can add ranging evidence when supported, but range evidence must bind to identity and policy.
  • RFID fits inventory and gate reads, but bulk reads bring misread and privacy risks.
  • Release evidence should include threat model, negative tests, fallback behavior, telemetry, and operations readiness.

17.23 Key Takeaway

NFC security depends on proximity plus controls: protect tag content, reader trust, backend actions, user consent, replay risk, and device-loss scenarios.

17.24 Concept Relationships

Builds On:

Enables:

Related Concepts:

  • Handover shifts risk to another bearer instead of completing the full session over NFC.
  • Static identifiers need policy checks before they can drive IoT state.
  • Fallback media should be visible in telemetry and tested as part of release.

17.25 See Also

Internal References:

17.26 Try It Yourself

Boundary Review: Pick one tap-to-open or tap-to-configure workflow. Write down what the NFC tag carries, what the application validates, what the user sees on failure, and what telemetry is emitted.

Fallback Test: Create an NFC tag and a QR fallback that both identify the same test asset. Verify that both paths reach the same policy gate and that logs distinguish tap from scan.

Negative Test: Modify one character in an NDEF URI, replay an old signed payload if your lab has one, or scan a copied QR label. Confirm that the application rejects the input and explains the failure safely.

Comparison Exercise: Compare NFC, QR, BLE, UWB, and RFID for an equipment checkout workflow. Choose one primary input and one fallback, then justify the controls and release evidence.

17.27 What’s Next

NFC Apps Simulation Lab Practice tag reading, NDEF parsing, validation, and failure evidence.

NFC Tag Programming Apply tag programming and field-test patterns to real workflows.

NFC Real-World Applications Synthesize modes, tags, security controls, and release evidence.

NFC Communication and IoT Integration Review credential, reader, relay, and audit-log decisions.