A faulty CrowdStrike update causes the biggest IT outage in history
On the morning of Friday, July 19, millions of people around the world ran into the dreaded Windows blue screen. It wasn't a Microsoft problem or a cyberattack: the source was an update to Falcon, the security software from CrowdStrike, one of the largest cybersecurity companies in the world. According to Microsoft, the error affected about 8.5 million Windows devices, less than 1% of the total. But because CrowdStrike is widely used by large companies that run critical services, the impact was enormous.
About 8.5 million Windows devices showed the blue screen. Illustration: The Joy Robot.
A world brought to a standstill
The consequences were felt on every continent:
- Airlines: thousands of flights canceled or delayed. Delta, United and American Airlines temporarily grounded their flights in the US, and many airports had to check in passengers by hand.
- Banks and payments: disruptions to banking services and payment terminals in several countries.
- Health care: hospitals that had to reschedule surgeries and go back to paper.
- Media and emergencies: TV channels off the air and problems with some emergency services.
- Retail: supermarkets and stores with frozen cash registers.
What went wrong?
To detect attacks, the Falcon sensor runs as a kernel driver in Windows, that is, with the system's highest level of privileges. CrowdStrike updates it constantly with configuration files, called “Channel Files”, that tell it which suspicious behaviors to look for. At 04:09 UTC on July 19, the company pushed an update to Channel File 291, designed to detect a type of inter-process communication (“named pipes”) used by attack tools. That file triggered a logic error in the sensor. Because the error happened in the kernel, Windows couldn't isolate it and crashed. And since the driver loads at boot, machines got stuck in a reboot loop. CrowdStrike fixed the file at 05:27 UTC, just 78 minutes later. But the machines that had already downloaded the faulty version couldn't boot to receive the fix.
How a configuration file caused the blue screen on millions of devices. Diagram: The Joy Robot.
The fix: one machine at a time
The official fix requires physical access to each affected computer. You have to boot Windows into Safe Mode or the Windows Recovery Environment, go to the CrowdStrike driver folder and delete the faulty file. From the recovery environment's command prompt, it would look like this:
|
| Terminal |
$ cd C:\Windows\System32\drivers\CrowdStrike
$ del C-00000291*.sys |
|
|
Then you just reboot the machine. The problem is that many corporate computers have their disks encrypted with BitLocker, so getting into Safe Mode requires each machine's recovery key. At some companies, those keys were stored on servers that had also gone down. To make the process easier, Microsoft released a recovery tool that runs from a USB drive. Computers running macOS and Linux were not affected.
Our take
This incident leaves several lessons for those of us who work with systems. The first: any software that runs in the kernel has the power to bring down the whole system, so its updates should be tested very carefully and rolled out gradually, first to a small group of machines and then to the rest. Pushing a change to millions of computers at the same time, without that staging, is a recipe for disaster. The second is about concentration: when a large part of the world's critical infrastructure depends on a few vendors, a single error can have global effects. And the third, more practical: having your BitLocker recovery keys at hand, and a plan to restore machines without depending on the network, can make the difference between a few hours and several days of downtime.
|
|
|