Files

4.6 KiB

NfcAuth

Authentication across the Windows service and user-session boundary.

A managed Windows sign-in integration with a credential provider, SYSTEM service, interactive companion and signed local grants. Recovery has to respect both privilege and user-session ownership.

Status: Private preview. Evidence reviewed 2026-10-11.

Read the illustrated case study

My contribution

Implemented the Windows client/service integration, companion supervision, grant handling, administration flow and release verification. This is a private preview with a public architecture case study. The work builds on Windows authentication and service facilities rather than replacing their underlying security model.

The problem

A Windows authentication integration spans components with different authority and lifetimes. The credential provider participates in sign-in, a SYSTEM service handles trusted local policy, and the interactive companion belongs to the signed-in user's session. A crash, upgrade or deliberate maintenance stop needs a different response in each layer.

The server issues signed grants for approved local account mappings. The Windows service validates local authorization and communicates through protected pipes. DPAPI protects local state, and the interactive companion presents status and settings. NFC identifier-based convenience access and cryptographic PIV proof are distinct modes with different assurance.

Engineering decisions

Keep trust boundaries explicit

Server-signed grants carry authorization. Protected local pipes distinguish credential and control paths. Local account mappings and secrets remain local, and grant validation rejects an invalid or expired authorization rather than inventing an offline fallback.

Own the correct companion

The service supervises the active console companion, distinguishes settings/debug helpers from the tray and serializes launches. Unexpected service failure uses SCM recovery. Intentional maintenance and uninstall suppress supervision instead of immediately relaunching the component.

Verify installation before switching

Versioned payloads are staged and hash-checked before stopping the old service and companion. The installer retains the previous payload for recovery and preserves existing identities and mappings through an upgrade.

A failure that shaped the design

The service knew an enrolled token's authorized role, but the status event serializer still emitted User. The repair propagated the actual role and tested changes, reconnects and duplicate suppression over a real disposable pipe. It demonstrated why a correct authority decision does not guarantee that every user-facing status path is correct.

Evidence and scope

  • Sign-in: The owner confirmed a live secure-desktop NFC unlock and later hands-free sign-in on the current PC. Scope: Human-confirmed single-PC acceptance. Identifier convenience access does not establish physical PIV proof.
  • Installed recovery: Preview.13 records a replacement tray PID after 3.25 seconds and service recovery after 10.5 seconds. A deliberate maintenance stop suppressed companion relaunch. Scope: Recorded installed checks on one PC; these recovery checks did not repeat secure-desktop sign-in.
  • Release integrity: The preview.13 build records 142 assertions and verification of 95 installed payload hashes. All five private release assets matched their authenticated download hashes and byte counts. Scope: Cited preview.13 source 27a6db1 and its release record, rather than a claim about later development.

These are reviewed recorded results, unless explicitly described as current public-access verification. Application tests and physical-device checks were not rerun for this portfolio.

Remaining limits

  • Second-PC physical acceptance, physical PIV proof, real offline expiry, failed-upgrade recovery and full uninstall remain separate unverified gates in the reviewed record.
  • The source and release assets remain private. This portfolio publishes a rewritten architecture and acceptance summary without enrollment data, account mappings or operational configuration.

Evidence references

  • README.md — private preview, PIV and identifier-convenience distinction
  • docs/VALIDATION.md — human-confirmed sign-in and preview.13 installed recovery
  • Preview.13 acceptance source: 27a6db1
  • Reviewed checkout HEAD: d91715933ec023f60f52c0bf50603210990731e2; later development is not included in the cited measurements

Revision: 27a6db1 — preview.13 acceptance snapshot

Private source and private preview releases. Public architecture and validation summary only.