Menu: runbooks, process, how-to, NIS2, wireless

Process guide P1

Status
Published
Last reviewed
Written

Change and patch routine

A monthly routine that gets updates in safely, patches actively exploited flaws first, and always has a way back.

Why it matters

Two bad nights come from patching. One is the server that was never patched and gets exploited through a flaw that attackers were already using. The other is the update that breaks every laptop at once because it went to everyone on the same morning. This routine handles both: exploited flaws go first, everything else goes out in rings, and every change has a written way back.

The routine at a glance

When What Time budget
Weekly Check new entries in the CISA Known Exploited Vulnerabilities (KEV) catalog against your asset list 15 minutes
Monthly, Patch Tuesday week Read the release notes and known issues, approve the pilot ring 30 minutes
Monthly, a few days later Check the pilot ring, then release to everyone 20 minutes
Monthly, maintenance window Servers, one at a time, with a snapshot or backup first 1 to 2 hours
Monthly Report which machines are behind and chase them 15 minutes
Quarterly Firmware for firewalls, switches, hypervisor hosts and storage; review the asset list for unsupported software 2 hours

These time budgets are suggestions for a site with one admin and a few dozen devices. Scale them to your estate.

The minimum version for a solo admin

If you only have one hour a month, do these three things and nothing else:

  1. Check the KEV catalog for anything you run, and patch it first.
  2. Let workstations update automatically, with a small pilot group a few days ahead of everyone else.
  3. Write one line per server change in the change log below.

The NCSC advises enabling automatic updates where you can (NCSC 10 Steps: vulnerability management).

For a team of 2 to 5

  • One person owns the monthly cycle; a second person reviews the change log before the server window.
  • Agree the rings in writing: a pilot ring of IT staff and one willing person per department, then everyone.
  • Swap the owner every quarter so the routine does not live in one head. See P6.

Step 1: exploited flaws first

CISA publishes a catalog of vulnerabilities that are known to be exploited, with a CSV and a JSON feed (CISA KEV catalog). Each entry names the vendor, the product, the date it was added, a due date and whether it is known to be used in ransomware campaigns. Once a week, list what was added in the last seven days:

$kev = Invoke-RestMethod -Uri 'https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json'
$kev.vulnerabilities | Where-Object { [datetime]$_.dateAdded -ge (Get-Date).AddDays(-7) } |
  Sort-Object dateAdded | Select-Object dateAdded, cveID, vendorProject, product, knownRansomwareCampaignUse

Source: CISA KEV catalog, JSON feed with its field schema, and Invoke-RestMethod, Microsoft Learn

Compare the vendor and product columns with your asset list (P4). Anything you run goes to the top of this month’s work, ahead of the normal rings. Anything internet facing, such as a firewall, VPN gateway or remote access server, goes first of all. The NCSC notes that a flaw can be more serious on an externally facing system than on an internal one (NCSC 10 Steps).

The catalog is not a complete list of everything exploited. CISA invites nominations for missing entries on the catalog page. Keep reading your vendors’ own security advisories as well.

Step 2: what EU law says, and your own deadline

The EU NIS2 Directive, Directive (EU) 2022/2555, requires Member States to ensure that essential and important entities take “appropriate and proportionate technical, operational and organisational measures” to manage the risks to their network and information systems (Article 21(1)). Article 21(2) lists the measures they must include at least. Two of them matter for this routine: “security in network and information systems acquisition, development and maintenance, including vulnerability handling and disclosure” (point (e)), and “business continuity, such as backup management and disaster recovery, and crisis management” (point (c)) (Directive (EU) 2022/2555, EUR-Lex).

NIS2 does not set a fixed number of days for installing patches. This guide does not assume your organisation is in scope of NIS2; that depends on the Directive and on your national law. Member States had to adopt their national measures by 17 October 2024 (Article 41), and Article 5 allows national rules that ensure a higher level of cybersecurity, so the detail varies from country to country. Check your own national law or ask whoever handles compliance.

Whatever applies to you, set your own target in writing: one for items in the KEV catalog and internet facing systems, and a longer one for everything else. Record every exception, with who accepted the risk.

Step 3: the monthly Windows cycle

Microsoft publishes the monthly security update on the second Tuesday of each month, often called Patch Tuesday. An optional non-security preview usually follows in the fourth week (Windows monthly updates explained).

  1. Patch Tuesday week. Read Windows release health for known issues and safeguard holds before you approve anything (Windows release health).
  2. Pilot ring. In Intune update rings, the pilot ring gets quality updates with no deferral. The broad ring defers them by a few days. Intune allows a quality update deferral of 0 to 30 days (Update ring settings).
  3. Check the pilot. Ask the pilot group whether anything broke: printing, line-of-business apps, VPN, docking stations. Write the answer in the change log.
  4. Broad ring. Let the deferral run out, or shorten it if nothing broke and a KEV item is involved.
  5. Servers. In the maintenance window, one server at a time. Take a backup or a snapshot first, patch, reboot, check the service works, then move to the next. Do not snapshot and roll back domain controllers; see R6 for why.

To see what is installed on one Windows machine:

Get-HotFix -ComputerName SRV01 | Sort-Object InstalledOn -Descending | Select-Object -First 5

Source: Get-HotFix, Microsoft Learn

Get-HotFix reads the Win32_QuickFixEngineering class, so it shows Windows updates, not every application update.

Step 4: Linux servers

On Debian and Ubuntu, refresh the package lists with apt update and then list what can be upgraded:

apt list --upgradeable

Source: apt(8) manual, Debian

The apt manual warns that its command line output can change between versions, so use apt-get in scripts and apt by hand. Other distributions have their own tools; follow the distribution’s documentation.

Step 5: firmware and appliances, quarterly

Firewalls, switches, storage, hypervisor hosts, out-of-band controllers and printers do not patch themselves. Check each vendor’s advisory page once a quarter, and straight away when the vendor appears in the KEV catalog. Write the current firmware version in the asset list. This step has no single command because every vendor does it differently.

When a patch breaks things

  1. Stop the spread first. In Intune, pause the ring. A pause stops feature or quality updates for up to 35 days (Manage update rings). The same page describes the uninstall option.
  2. Write the time, the update, the symptom and the pause in the change log.
  3. Check Windows release health for a known issue and workaround before you uninstall anything.
  4. If the update fixed a flaw in the KEV catalog, do not leave it paused for long. Decide with the business owner and write down who accepted the risk.

A dedicated runbook for a bad patch rollout is a candidate for a later release.

Checklist

  • KEV catalog checked this week against the asset list
  • Internet facing systems patched first
  • Release health read before approving the pilot
  • Pilot ring checked and the answer written down
  • Broad ring released
  • Servers patched one at a time, backup or snapshot first (not for domain controllers)
  • Machines behind on updates listed and chased
  • Firmware checked this quarter
  • Every change has a line in the change log with its way back

Change log template

Copy this into a shared document or a spreadsheet. One line per change.

Example included. The row marked Example is made up to show the format. Delete it and add your own rows.

Date System Change Why Way back Who Checked after
Example: 2026-11-10 SRV01 November cumulative update Monthly cycle Uninstall the update, or restore last night’s backup AB File share opens, print works

The “Way back” column is the one that matters. If you cannot fill it in, take a backup first or do not make the change tonight.

Automation notes

  • Workstation patching is already automated if you use Intune update rings or Windows Update for Business; your job is the rings, the pilot and the pause.
  • The KEV check above is easy to schedule weekly and email to yourself. Matching it against your asset list automatically only works if your asset list has clean vendor and product names, so do that by eye until it does.
  • Reporting which machines are behind is available in the Intune reports for managed devices. For servers, a scheduled Get-HotFix run per server into a CSV is enough.
  • Do not automate server reboots across a cluster or across domain controllers until you have watched the manual process work many times.

Signs it is working

  • Nothing in the KEV catalog that you run stays unpatched past its due date.
  • The pilot group reports problems before everyone else meets them.
  • Every server change in the last quarter has a line with a way back.

Signs it is not

  • You find out about a broken update from users the morning after it went to everyone.
  • The change log has gaps, or the “Way back” column says “none”.
  • The same machines are behind every month.

Related runbooks: R4 Hypervisor host down, R6 Domain controller down and R1 Ransomware. CISA lists internet facing vulnerabilities and misconfigurations among the common ways ransomware actors get in (CISA #StopRansomware Guide).

Sources

Was this useful?

Esc
↑ ↓ moveEnter openEsc close