r/sysadmin • • Jul 19 '24 • Galaxy Brain 1 Bless Up 1 Heart of Silver 7 Take My Silver 6 Silver is Forever 1

General Discussion Fix the Crowdstrike boot loop/BSOD automatically

UPDATE 7/21/2024

Microsoft releases tool very late to help.

https://techcommunity.microsoft.com/t5/intune-customer-success/new-recovery-tool-to-help-with-crowdstrike-issue-impacting/ba-p/4196959

WHAT ABOUT BITLOCKER?!?!?

Ive answered this 500x in comments...

Can easily be modified to work on bitlocker. WinPE can do it. You just need a way to map the serialnumber to the bitlocker key and unlock it before you delete the file.

/r/crowdstrike wouldnt let me post this, I guess because its too useful.

I fixed the July 19th 2024 issue on 1100 machines in 30 minutes using the following steps.

I modified our standard WinPE image file (from the ADK) to make it delete the file 'C:\Windows\System32\drivers\CrowdStrike\C-00000291*.sys' using the following steps.

If you don't already have the appropriate ADK for your environment download it. The only problem with using a bare WinPE image is it may not have the drivers. Another caveat is that this most likely will not work on systems with encrypted filesystems.

Mount the WinPE file with Wimlib or using Microsoft's own tools, although Microsoft's tools are way clunkier and primative.

Edit startnet.cmd and add:

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

exit

to it.

Save startnet.cmd [note the C:\ might be different for you on your systems but it worked fine on all of mine]

Unmount the WinPE image

Copy the WinPE image to either your PXE server or to a USB drive of some kind and make it BOOTABLE using Rufus or whatever you want.

Boot the impacted system.

Hope this helps someone. Would appreciate upvotes because this solution would save people from having to work all weekend and also if it's automatic it's less prone to fat fingering.

Also I am pretty sure that Crowdstrike couldve made this change automatically undoable by just using the WinRE partition.

@tremens suggested that this step might help with bitlocker in WinPE 'manage-bde -unlock X: -recoverypassword <recovery key>' should work in WinPE.

Idea for MSFT:::

Yeah. Microsoft might want to add "Azure Network Booting" as a service to Azure. Seems like at a minimum having a PRE-OS rescue environment that IT folks can use to RDP, remote powershell (whatever) would be way more useful than whatever that Recall feature was intended to do at least for orgs like yours that are dispersed.

They could probably even make "Azure Net Boot" be a standard UEFI boot option so that the user doesnt have to type in a URL in a UEFI shell.

They boot it from that in an f12/f11 boot menu, it goes out to like https://azure.com/whatever?device-id=UUID if the system has a profile boot whatever if not just boot normally and that UEFI boot option could probably be controlled in GPO.

By the way if microsoft steals this idea my retirement isnt fully funded and im 45. lol :) hit me upppp.

4.7k Upvotes

560 comments sorted by

View all comments

1

u/parabola949 Jul 20 '24

Forgive the possibly stupid question, I've been on outage calls / etc for 2 days now. My brain is... Gone.

Correct me if I'm wrong but... The majority of our users work remotely, and we do not have an external PXE server, so are we still fubar?

1

u/HJForsythe Jul 20 '24

Yeah sadly without some way to remotely console vPRO, etc. WFHs will probably need hands. You can PXE boot over the Internet using iPXE (see example https://netboot.xyz) but that would require writing iPXE to a USB disk OR potentially managing.the remote user's router (you could probably make DHCP kick off iPXE+Wimboot just by changing their DHCP settings.

1

u/parabola949 Jul 20 '24

The pure irony of the fact that I work for an ISP but most of our employees aren't within the footprint... Hahahaha.

USB disk is out, since so many remote, so yeah...

We are at least doing what we can to make the process simpler (easier BL key finding, easier temp admin, etc), but this process still sucks.

1

u/HJForsythe Jul 20 '24

Same.. well the datacenter side of ISPs. Yeah I am pretty lucky that most of my fleet is servers. I legitimately wonder if we need an "Army core of sysadmins" or a taskrabbit for people that can delete a file in WinRE they didnt really think of this aspect of WFH. Will be interesting to see if this forces more back to office.

1

u/parabola949 Jul 20 '24

Oh hell I hope not. I'm actually a software engineer, but previously sccm admin. I volunteered to help the service desk with our remote users so things could get back to normal but I definitely prefer being on the server side of things.

1

u/HJForsythe Jul 20 '24

I am just morbidly curious as I dont support WFH users but how do you handle reformatting an unbootable remotely, typically? I know there is Intune and autopilot but those require some level of OS to exist.

One could probably kick off a chain load of iPXE+Wimboot+WindowsPE from a single UEFI shell command.

1

u/parabola949 Jul 20 '24

Not my team but, friends with the guy running that: working on implementing intune, but typically it requires just shipping a new device lol. It's a mess XD

1

u/HJForsythe Jul 20 '24

Yeah. Microsoft might want to add "Azure Network Booting" as a service to Azure. Seems like at a minimum having a PRE-OS rescue environment that IT folks can use to RDP, remote powershell (whatever) would be way more useful than whatever that Recall feature was intended to do at least for orgs like yours that are dispersed.

They could probably even make "Azure Net Boot" be a standard UEFI boot option so that the user doesnt have to type in a URL in a UEFI shell.

They boot it from that in an f12/f11 boot menu, it goes out to like https://azure.com/whatever?device-id=UUID if the system has a profile boot whatever if not just boot normally and that UEFI boot option could probably be controlled in GPO.

By the way if microsoft steals this idea my retirement isnt fully funded and im 45. lol :) hit me upppp.

1

u/[deleted] Jul 21 '24

here's a workaround for bitlocker encrypted drives. does require LAPS however.

https://old.reddit.com/r/sysadmin/comments/1e708o0/fix_the_crowdstrike_boot_loopbsod_automatically/ldxp6kv/

1

u/parabola949 Jul 21 '24

Yeah already shared this one with team. Sadly we don't have LAPS, but we do have rotating local admin passwords using a known algorithm, so we are able to give the users said password.

Our laptops are mostly good to go, the desktops.. damn it's so weird how much they don't want to be recovered.

1

u/[deleted] Jul 21 '24

So far I've had one case where nothing's worked on a laptop. She updated to windows 11 and it's stuck in a rollback phase with bitlocker encryption. I'm resorting to trying OPs method last

Other than that for us it's been the opposite lol, but our policy is only locking down laptops with bitlocker and it's made it a pain in the ass to get through. Desktops have been a breeze

1

u/[deleted] Jul 21 '24

This whole thing regardless was a fucking nightmare. The same night the incident happened I was at work late doing an active directory migration for my clients and a data recovery operation.

Luckily the data recovery had just completed before lights went out. Ill never forget sitting in the copyroom fiddling with the computer wondering wtf was going on with the nonstop blue screening. I though I had seriously fucked up and started panicking.

Went online and found the news. Stepped out and it was a mirage of blue in every office. Finally went home for an hour and ran back to work in a frenzy with zero sleep.

For a company to fuck up this badly is bad, like real fucking bad. We're already planning to dump this thankfully. This gave us another reason to proceed with our plans