Design a Security Patch Management System

Medium45 min
1 / 30
System design answer

Design a Security Patch Management System

Medium45 min30 sections
understanding•11 min read

Problem Statement: Fleet-Wide Security Patching as a Distributed Operations Platform

Frames patch management as a fleet-scale security operations challenge, not a simple update script.

Problem statement

Design a security patch management platform that discovers available OS and application patches from multiple vendors, organizes them into wave-based rollout schedules, pushes them to a heterogeneous fleet of servers, containers, and edge devices, verifies success or detects breakage, automatically reverts failed patches, and produces compliance reports per host, per business unit, and per regulatory framework.

This is not a cron job that runs apt-get upgrade. A serious patch management system must coordinate thousands to millions of hosts across Linux distributions, Windows Server, macOS, container images, and embedded appliances. It must respect maintenance windows, preserve service availability during patching, detect when a patch breaks a workload, roll back within seconds, and prove to an auditor that every host reached a compliant state within the policy deadline.

Why the problem is distinctive

A deployment pipeline pushes new application code. A patch management system pushes fixes to the operating system and shared libraries underneath every workload. The blast radius of a bad kernel patch is not one service; it is every service on every host in the wave. A bad libc update can segfault every process fleet-wide. Therefore the system must treat each patch as a potentially fleet-destabilizing event and gate it through progressive exposure: canary, pilot, ring, broad, and full rollout, with automatic halt and revert at any stage.

The problem requires patch detection and aggregation from multiple vendors, wave or ring scheduling, automatic revert on breakage, and compliance reporting. These four requirements drive the entire architecture: a vendor ingestion pipeline, a scheduling engine with dependency resolution, an agent execution framework with snapshot and rollback, and a compliance aggregation and reporting layer.

The four architectural planes

  1. Discovery plane: vendor feed ingestion, CVE correlation, severity scoring, applicability matching, and patch catalog management.
  2. Orchestration plane: wave scheduling, dependency resolution, maintenance window enforcement, blast-radius controls, and rollout state machines.
  3. Execution plane: agent-based patch application, pre/post health checks, snapshot creation, revert execution, and result reporting.
  4. Governance plane: compliance scoring, audit trails, regulatory mapping, exception management, and executive dashboards.

A strong interview answer keeps these planes separate. The discovery plane can ingest a new CVE feed without affecting active rollouts. The orchestration plane can reschedule a wave without touching the agent protocol. The execution plane can revert a patch without consulting the compliance engine. And the governance plane can generate a PCI-DSS report without blocking any rollout.

Public operating baseline versus design assumptions

AWS Systems Manager Patch Manager documents support for Windows Server, Amazon Linux, Ubuntu, CentOS, Red Hat Enterprise Linux, SUSE, and macOS, with patch baselines defining approval rules, compliance levels, and maintenance windows. Microsoft MECM (formerly SCCM) documents phased deployments with automatic deployment rules and ring-based rollout. Red Hat Satellite documents content views, lifecycle environments, and errata management for RHEL fleets. These are published capabilities of real products and inform our design without constraining it.

For capacity planning, this answer assumes a fleet of 200,000 hosts across four OS families, 1,500 new CVEs ingested per month, 800 applicable patches per month, and a 72-hour critical patch SLA. Unless a number is tied to a published source, it is a stated design assumption.

Key Highlights

  • •Patch management targets the OS and shared libraries beneath every workload, making blast radius fleet-wide rather than service-scoped.
  • •The four planes are discovery, orchestration, execution, and governance; each can evolve independently.
  • •A bad kernel or libc patch can destabilize every host in a wave, so progressive exposure is mandatory.
  • •Public tools like AWS SSM Patch Manager, Microsoft MECM, and Red Hat Satellite validate the design space.
  • •All uncited scale numbers are explicit design assumptions for back-of-envelope sizing.
Lead With Blast Radius
State in the first two minutes that a bad kernel patch affects every workload on every host in the wave, unlike an application deploy that affects one service. This instantly distinguishes patch management from CI/CD.
Do Not Describe a Cron Job
A design that runs apt-get upgrade on a schedule without wave gating, health checks, revert, or compliance reporting will fail a serious interview.

Section Rescue Kit

Buzzwords to use:

Progressive ExposurePatch Baseline

Safe statements:

  • "I will separate patch discovery from rollout orchestration so a new CVE feed does not destabilize active deployments."
  • "Before selecting services, let me define which decisions are made centrally in the orchestration plane and which are made locally by the host agent."
Design a Security Patch Management System - System Design | WinJob | WinJob