Design a Device Posture Check

Hard45 min
1 / 30
System design answer

Design a Device Posture Check

Hard45 min30 sections
understanding•10 min read

Problem Statement: Continuous Device Trust for Zero Trust Access

Frames device posture checking as a continuous, adversarial trust-evaluation platform rather than a one-time login check.

Problem statement

Design a device posture check platform that answers one question on every access attempt: is this device healthy enough to touch this resource, right now? The system collects endpoint signals — OS version and patch level, disk encryption state, firewall status, antivirus or EDR presence and currency, secure boot, jailbreak or root detection, device certificate presence — evaluates them against versioned policy, and projects the result into access decisions through the identity provider, short-lived attestation tokens, and network enforcement points. When compliance fails, access is partially or fully blocked. Because posture drifts, the platform must update device trust in near real time and re-check long-running sessions.

This is not a username-and-password problem. Credentials prove who is asking. Posture proves what they are asking from. A stolen password used from an unpatched, unencrypted laptop is precisely the scenario this system exists to block, and a classic perimeter design — VPN plus static ACL — has no answer for it. The problem requires an agent or ephemeral scan, policy enforcement such as OS version at least X and disk encryption on, dynamic ACL adjustment when posture changes, and integration with identity or SSO so user and device checks are unified.

Why the problem is distinctive

Trust is continuous, not one-shot. A device can be compliant at 09:00 and compromised at 09:10. Access must degrade in response, which means session lifecycle and token lifetime become part of the design, not afterthoughts. Microsoft's Continuous Access Evaluation and Google's BeyondCorp philosophy both push in this direction: verify continuously, revoke quickly.

The collector runs in hostile territory. On BYOD and contractor devices especially, the software gathering posture signals runs on the very machine we are trying to judge. Signals can be spoofed, the agent can be tampered with, and clock skew can fake freshness. The design must treat agent output as claims to be validated, not facts to be trusted.

False positives are operationally catastrophic. One bad policy rule can lock out 100,000 employees at 9:00 AM on a Monday. Rollout safety — shadow mode, canary cohorts, instant rollback — is therefore a first-class architectural requirement, not an ops nicety.

Public operating baseline versus design assumptions

Public evidence shows this category operates at enormous scale. Google's published BeyondCorp papers describe replacing VPN with per-request access decisions driven by user identity plus a device trust level derived from a centralized device inventory service, deployed across Google's global workforce; Google also open-sourced Santa, a macOS binary authorization system used across their fleet. Microsoft publicly reports that Defender processes on the order of 78 trillion security signals per day across more than a billion endpoints, and pairs Intune device compliance policies — BitLocker, Secure Boot, OS version, Defender health — with Entra ID conditional access to gate application access. Cloudflare publicly documents WARP client device posture checks covering OS version, disk encryption via FileVault or BitLocker, firewall state, domain join, and serial-number inventory matching, used for their own workforce and customers. These are cited company figures, not requirements for our fictional system.

For capacity planning this answer explicitly assumes a mature enterprise estate: 1,000,000 registered devices (250,000 corporate-managed, 750,000 BYOD and contractor), 400,000 active devices per day, a 10-minute heartbeat cadence, 15-minute attestation token lifetime, and a 5x login-wave peak. Unless a number is tied to a citation, it is a stated design assumption, target, or budget.

The four architectural planes

  1. Collection plane: device agents, MDM and EDR integrations, and browser-based ephemeral scans gather raw signals on a schedule and on change.
  2. Evaluation plane: normalization, rule evaluation against versioned policy, trust-tier assignment, and anomaly screening of the signals themselves.
  3. Decision and enforcement plane: policy decision points integrated with the IdP and SSO, attestation token issuance, and policy enforcement points — ZTNA proxies, VPN gateways, application gateways, network ACLs — that act on the verdict.
  4. Lifecycle and governance plane: policy authoring with two-person approval, exceptions, remediation workflows, audit evidence, dashboards, and incident response for mass lockout.

A strong interview answer keeps these planes separate. It allows evaluation to degrade without silently weakening enforcement, and it lets policy evolve without giving any single component the power to grant access on stale evidence.

Key Highlights

  • •Credentials prove identity; posture proves the device asking — both are required for zero trust.
  • •Posture is continuous: a device compliant at 09:00 can be noncompliant by 09:10 and access must follow.
  • •Agent output is a claim to be validated, never a fact to be trusted, especially on BYOD.
  • •One bad policy rule can lock out an entire workforce; rollout safety is an architecture requirement.
  • •Four planes: collection, evaluation, decision/enforcement, lifecycle/governance.
Lead With Continuous Verification
State in the first two minutes that posture is evaluated continuously, not only at login, and that enforcement points act on signed short-lived verdicts. This instantly separates a zero-trust design from a perimeter design.
Do Not Design a One-Time Check
A design where posture is checked once at VPN connect and never again fails the core requirement. Long-running sessions must be re-evaluated and access must degrade when posture drops.

Section Rescue Kit

Buzzwords to use:

Zero Trust PostureContinuous Verification

Safe statements:

  • "Let me separate who is asking from what they are asking from before choosing any technology."
  • "I will treat posture as a continuously refreshed verdict, not a one-time gate at login."
Design a Device Posture Check - System Design | WinJob | WinJob