archive / 2024

Post-mortem: CrowdStrike Friday at the warehouse

On 19 July 2024 a faulty CrowdStrike update put millions of Windows machines into a blue screen loop. A timeline of that Friday at a logistics client, what worked, what didn't, and what I'd change.

Jef used to have a sheet of A4 above his desk at the agency that said “NO DEPLOYS ON FRIDAY”. This Friday, someone else deployed on a Friday, and a sizeable chunk of the world’s Windows machines fell over.

For the record: on Friday 19 July 2024, at 04:09 UTC, CrowdStrike pushed a content update (a so-called channel file) to its Falcon sensor on Windows. The update triggered a crash in the sensor, which runs as a kernel driver, so affected machines went straight into a blue screen. And because the driver loads at boot, they kept doing that on every restart. The update was pulled about 80 minutes later, but any machine that had picked it up in the meantime was stuck. Microsoft later estimated around 8.5 million Windows devices were affected. Airlines, hospitals, banks, broadcasters. macOS and Linux machines weren’t affected.

I spent that day at my logistics client. This is my write-up, in the blameless post-mortem format I’ve been inflicting on teams for years.

Context#

The client’s backend platform runs on Linux: Go services on Kubernetes, PostgreSQL, the works. None of that was affected. But the warehouse doesn’t run on Kubernetes. It runs on people, scanners and about forty Windows workstations: label printing at the docks, the transport planners’ desks, a few kiosk PCs in the shipping area. All of them with Falcon installed, as required by their security policy.

Timeline (CEST)#

TimeWhat happened
06:15Early shift starts. First reports of “blue screens” at the docks.
06:40Roughly half of the workstations stuck in a reboot loop. Label printing stops. Trucks start queuing.
07:10The internal IT lead calls me. I’m not the Windows person, but I’m the one who answers the phone.
07:30Online reports confirm it’s global and related to CrowdStrike. Relief that it’s not “us”, panic that it’s everyone.
07:45The vendor’s workaround circulates: boot into Safe Mode or the recovery environment and delete the faulty channel file.
08:00First problem: BitLocker. Every affected machine asks for its recovery key before you can touch the disk.
08:30Second problem: the BitLocker recovery keys are stored in a management console that runs on… a Windows server that is itself in a boot loop.
09:15That server is a VM. We detach its disk, attach it to a healthy VM, delete the file, reattach. It boots. Keys available.
09:30 – 13:00Three of us walk from workstation to workstation with a printed list of recovery keys and a USB keyboard.
11:00Docks running again in reduced capacity. Planners on paper and on two laptops that happened to be at home overnight.
13:20Last workstation fixed.
14:00Coffee. A lot of coffee.

The fix itself, once you got to a command prompt in the recovery environment, was this:

cd C:\Windows\System32\drivers\CrowdStrike
del C-00000291*.sys

Two lines. Typed forty times, each time after reading out a 48-digit recovery key. My new party trick is reading numbers in groups of six without losing my place.

What went well#

  • The backend was boring and kept working. Orders kept coming in, the APIs answered, the database didn’t care. When we got the workstations back, nothing had to be reconciled.
  • People improvised. The planners went to paper within half an hour without anyone telling them to. One of them had a printed fallback procedure from “the last time the network was down”. Nobody else knew it existed.
  • The VM trick. Being able to mount a broken VM’s disk somewhere else saved us at least an hour.

What went badly#

  • Recovery keys behind the thing that’s broken. A classic. Your break-glass procedure can’t depend on the infrastructure that’s on fire. This is the same lesson as “don’t store your backup encryption key only in the backup”, and we all keep learning it again.
  • No inventory. It took us a while to figure out which machines were affected, because the asset list was a spreadsheet last updated in 2022.
  • Single points of failure that nobody saw as such. Every workstation in the warehouse depended on a single vendor’s kernel driver auto-updating itself. Not as a conscious choice, but because that’s how the product works and nobody questioned it.

What I’d change (and proposed)#

  1. Store recovery keys somewhere that survives a fleet-wide outage. A printed copy in a safe, or a password manager that isn’t hosted on the same infrastructure.
  2. A minimum viable warehouse. Two or three machines on a different OS or in a different update ring that can print labels when the rest is down. Diversity is boring and costs a bit of money. So does a queue of trucks.
  3. Ask vendors about staged rollouts. For our own software, nobody would accept pushing a change to every production machine at once. For security tooling running in the kernel, we apparently did. That’s worth a conversation with every vendor that has that kind of access.
  4. Practise the paper procedure. It worked because one planner remembered it. That’s luck, not a process.

A thought about Fridays#

I don’t want to pile on. Somewhere there’s an engineer who had a much worse Friday than I did, and the people who spent the weekend fixing hospitals and airports deserve more than snark. But this is the most dramatic illustration I’ve ever seen of why the “boring” principles exist: canary releases, staged rollouts, being able to roll back, not trusting a single update channel with the whole fleet.

Jef’s A4 sheet wasn’t about Fridays, really. It was about blast radius. I’ve sent him a photo of the trucks queuing at the docks. He replied with one word: “Friday.” I think he’s been waiting fourteen years to send that.

    Tip: / opens search, ↑↓ to select, ↵ to open.