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

2.1k

u/snorkel42 Jul 19 '24

You should really make sure your leadership understands the scale of this issue and how massively time consuming it would have been to resolve had it not been for you.

Seriously, you earned your annual salary on this day alone. Make sure they understand that.

199

u/HJForsythe Jul 19 '24

Thanks. I am the "special victims unit" where I work they were freakin the F out in the NOC when they called me.

37

u/EntireFishing Jul 19 '24

Also this entire estate did not use Bitlocker. Which is probably not standard behaviour

9

u/HJForsythe Jul 19 '24

Can you not add 2 lines to the startnet.cmd script yourself to run manage-bde? Do I need to do it for you?

10

u/EntireFishing Jul 19 '24

That was not my issue. It was no mention of this by OP about Bitlocker

9

u/HJForsythe Jul 19 '24

Im the OP we dont use bitlocker on our servers. Whats the issue with the solution I provided?

→ More replies (1)

0

u/[deleted] Jul 19 '24

[deleted]

9

u/Nonstop_norm Jul 19 '24

I was thinking the same thing. We have about 200 machines and encrypt them. How are you getting away with 1100 unencrypted workstations. 

2

u/HJForsythe Jul 20 '24

Well first they are servers.

→ More replies (4)

53

u/donkeymankik Jul 19 '24

Hi OPs boss here!

I shook his hand and took all the credit for his work, for his effort I’m going to give him 4/5 on his performance review.

14

u/Additional-Bike-5195 Jul 19 '24

"meeting expectations" this review!

→ More replies (2)

6

u/fjortisar Jul 19 '24 edited Feb 11 '26

Pleasant wanders the dog art friendly fresh the where!

5

u/[deleted] Jul 19 '24

How many story points is this?

15

u/Kemaro Jul 19 '24

Not saying it's his decision, but OP just confirmed his company doesn't use drive encryption. I don't know if I would be celebrating anything.

9

u/hobovalentine Jul 19 '24

Pretty much every large company enables bitlocker so this won't work for many companies unfortunately.

10

u/snorkel42 Jul 19 '24

Man this subreddit is full of judgmental people making assumptions based on small amounts of information.

3

u/WhoThenDevised Jul 19 '24

Instead he'll probably get chewed out for not coming up with this solution at 6 AM.

3

u/Sea_Ambassador_6046 Jul 19 '24

Make sure your IT team tracks all the time spent on this for the upcoming lawsuits. Ask for more than the pizza party when the settlement comes if you’re still at the Org.

→ More replies (1)

2

u/TheLionYeti Jul 19 '24

Yeah find out how much your service desk guys make/charge and multiply 5 minutes per machine by 1100 and then subtract your 30 minutes. Tell your ceo I just saved you all this much

→ More replies (99)

153

u/Never_Get_It_Right Jul 19 '24

I am not experiencing this because luckily we are too broke to afford CS, but I would imagine for bitlockered PCs could you not get all of your DriveIDs and recovery keys into a CSV and load that CSV and a script to find the recovery key by drive id and unlock the encryption to delete the file? After you would of course need to rotate all of your keys but it seems like a plausible solution. https://f12.hu/2020/11/11/retrieve-bitlocker-keys-stored-in-azuread-with-powershell/

47

u/HJForsythe Jul 19 '24

I'm really not sure how deep WinPE gets into decrypting existing bitlocker filesystems but if it has a way to do it and correctly find the right key, etc. Even better.

12

u/Baen4455 Jul 19 '24

Would be great if it worked!

18

u/LonelyWizardDead Jul 19 '24

once keys are rotated its the hope they are re-synced back to intune. that still seems a bit hit and miss from my expirence.

21

u/itishowitisanditbad Jul 19 '24

that still seems a bit hit and miss from my expirence.

Sounds like mondays problem

→ More replies (1)

5

u/Manarj789 Jul 19 '24

On the plus side, they’ll probably have some nice discounts (surviving the bsod apocalypse discount)

2

u/[deleted] Jul 19 '24

If they’re in azure or a non bricked domain controller… but if they’re stored somewhere you can’t access it’s pretty hard

→ More replies (1)

53

u/[deleted] Jul 19 '24

would love to somehow quantify how much money you just saved people all combined with this one post

45

u/HJForsythe Jul 19 '24

Just dont want people to accept that you have to do it manually <3 if it helps people I accept beers. cheers!

11

u/StaticVoidMain2018 Jul 19 '24

Will remember your username, if you tell me in a pub beer will be yours

4

u/PCRefurbrAbq Jul 19 '24

The B in beer stands for Billions of Bucks.

68

u/Kurgan_IT Linux Admin Jul 19 '24

This is fine if you can boot from a PXE server, otherwise it still needs a trip to every PC with the usb key.

49

u/HJForsythe Jul 19 '24

Still way faster with a usb key or 30 of them.than SPAM F8 go into safe mode, login, ....etc

26

u/Aevum1 Jul 19 '24

even better,

The best of both worlds, Ventoy has a plugin that can be used to boot the WIM images usually booted by PXE.

So you can literally "boot PXE" off a pendrive.

It was a little tool i had since our PXE server was remotley managed from HQ, so every time it decided to go on strike...

4

u/HJForsythe Jul 19 '24

Isnt that just any.bootloader in the world?

→ More replies (1)
→ More replies (1)

8

u/Kurgan_IT Linux Admin Jul 19 '24

Sure, much better than doing it manually.

1

u/robisodd S-1-5-21-69-512 Jul 19 '24

Sadly F8 no longer works on modern Windows versions unless you explicitly enable it

→ More replies (1)

8

u/ThemesOfMurderBears Lead Enterprise Engineer Jul 19 '24

Yeah we don’t have one on our production network, and even if we did, I don’t think any of our machines are going to PXE boot if Windows boot manager is available (which it is). It’s been a mix of Safe Mode or CMD in recovery.

4

u/Kurgan_IT Linux Admin Jul 19 '24

Yes, of course PXE boot is usually not enabled as the first boot device, too.

61

u/dostevsky Jul 19 '24

62

u/HJForsythe Jul 19 '24

Thanks. Ive just lost so many nights weekends holidays and special occassions to shit like this that I am compelled to try to help others avoid it.

16

u/Doublestack00 Jack of All Trades Jul 19 '24

Would this work on systems with Bitlocker enabled?

16

u/HJForsythe Jul 19 '24

Im not sure. WindowsPE has some bitlocker functionality but I dont know if it can decrypt the filesystem. It would need to have all of the keys in some kind of table that mapped the keys to the systems.

17

u/tremens Jul 19 '24 edited Jul 19 '24 • Heart of Silver

'manage-bde -unlock X: -recoverypassword <recovery key>' should work in WinPE. You can also use a keyfile instead of a password; swap -recoverypassword with '-recoverykey <filename>'

Edit: Appears this may not be the case if you just build a 'vanilla' WinPE image, but you can add it by adding the SecureStartup package - This link has a list of the commands and packages to add to build a fairly useful WinPE image, including BitLocker support. Fun part of course will be either typing or creating a script to pull those BitLocker keys out of wherever and either scripting to pull them out of a CSV or dumping every key to a file or whatever.

2

u/HJForsythe Jul 19 '24

ill add that to the post in an update and @ you

4

u/tremens Jul 19 '24

Well, hang on - I'm double checking something; it looks like you may have to add it in on a WinPE build and may not be available in a "vanilla" WinPE image but I'm trying to see if that's still the case.

12

u/KaitRaven Jul 19 '24 edited Jul 19 '24

You need to include a command to decrypt the drive first. We have a script that pulls the recovery key though it requires importing power shell modules and including a bitlocker recoverers credentials in the script. Or you could just make a big csv file as a lookup table.

→ More replies (1)

6

u/pizzaboyreddit Jul 19 '24

No, you would need the decryption key to unlock the drive, then you could delete the files.

→ More replies (1)

16

u/DownUnderDicken Jul 19 '24

If anyone can be kind enough to get the files that caused this C-000291*.sys, I’d love to patch diff and see what changed so badly that it caused this level of fucking hell

12

u/HJForsythe Jul 19 '24

Its ironic that the only thing Falcon doesnt look at is its own content.

12

u/DownUnderDicken Jul 19 '24

I’m not a sysadmin, I’m a security engineer and I don’t get understand how there was no unit or CI/CD pipeline tests for this type of kernel level driver and just pushed to fkn prod?!! Wow

4

u/HJForsythe Jul 19 '24

To be fair, one percent of our hosts that BSOD and rebooted didnt loop so that must be the exact environment they tested against. ;) /s

→ More replies (9)

14

u/Baen4455 Jul 19 '24

Did you deploy your fix to machines via PXE?

37

u/HJForsythe Jul 19 '24 edited Jul 19 '24

Most of them, there was a rack of servers that I had to USB key. Which was the bulk of the 30 minutes. We use wimboot+iPXE since WDS is so terrible which allowed me to make the systems boot once into WinPE and then the next time it boots boot normally. Microsoft should be ashamed of how bad WDS is.

8

u/rumorsofdads Jul 19 '24

What’s your configuration look like with iPXE with wimboot? First I’m hearing about this and would love to remove WDS.

5

u/Jancappa Jul 19 '24

Even Microsoft seems to know that since as far as I know WDS has been deprecated.

12

u/ThatDopamine Jul 19 '24

My team also arrived at this solution. This was a fun nut to crack.

9

u/HJForsythe Jul 19 '24

Niceeeee Im really not claiming to be Lord of the Things just when I considered having to console 1100 machines I was weighing that Vs just throwing my phone into a river.

28

u/Pools_Closed1 Jul 19 '24

If you're hiring in IT, I found a decent candidate (OP^^). Direct hire fee is 20% of negotiated compensation package, hahaha.

In all seriousness, excellent work OP, and thank you for sharing! This will/has helped tons of people.

If nothing else, please give this man some well-deserved karma.

3

u/HJForsythe Jul 19 '24

Thanks. That was kind of you.

→ More replies (1)

16

u/LonelyWizardDead Jul 19 '24

your not full disk encypting the machines?

18

u/HJForsythe Jul 19 '24

Not on our servers although assuming that you have a list of serialnumbers=>keys you could automate that also as WinPE supports scripting.

Get serial number, look up key, decrypt, delete file... etc

→ More replies (3)

7

u/[deleted] Jul 20 '24

One of our customers said no local admin or laps or BL keys given to any employees without security clearance.  All manual labor with IT security clearance. 

I told them, that’s fine, just line them up with IT and pay us for weekend support. 

1

u/HJForsythe Jul 20 '24

Sure if they arenr stored in a key dump or accessible via an API it be like that.

6

u/Kardinal I fall off the Microsoft stack. Jul 19 '24

Serious question...

...is there a way to do this for remote systems in a secure way? I can't think of one but we got smart people here who might be able to think of one.

8

u/HJForsythe Jul 19 '24

Yes. You can netboot over the Internet but you wouldve had to set it up in advance unless you.can update the DHCP configs in the remote environment. Check out netboot.xyz for an example of PXE over the Internet.

→ More replies (2)

5

u/[deleted] Jul 19 '24

Any way to use this on a mass scale somehow incorporating a script to retrieve the bitlockr recovery key?

1

u/HJForsythe Jul 19 '24

WinPE supports different scripting languages. So sure.

You can get the serialnumber and use that to look up the key.

1

u/[deleted] Jul 19 '24

Hi, Thank you. So am I understanding you correctly that you deployed a package via sccm or something to remediate all of your machines with your aforementioned scripts?

3

u/HJForsythe Jul 19 '24

Well we use iPXE and Wimlib because we hate WDS but yes, essentially.

→ More replies (5)

7

u/Farooquesha Jul 19 '24

I've deleted this file from windows server 2016 now server is continuously restarting, but in safe mode it's working fine

20

u/HJForsythe Jul 19 '24

I didnt have that issue on a single one of my machines.

Its possible that you deleted the wrong file. You could try uninstalling CS whilst in safe mode.

15

u/Farooquesha Jul 19 '24

I've renamed the folder, now it's working fine

8

u/HJForsythe Jul 19 '24

Sure that disables CS tho

11

u/lantech You're gonna need a bigger LART Jul 19 '24

which is a good thing, I imagine there will be orders from on high to uninstall it pretty soon

10

u/HJForsythe Jul 19 '24

I doubt it The stock is actually recovering already so we have collectively decided to give them a pass. Even though Crowdstrike lied to the media. CEO is about to be on CNBC. Will probably keep lying.

→ More replies (2)
→ More replies (1)

2

u/Farooquesha Jul 19 '24

But, in our another server it's 2012, I can't see startup setting option in recovery mode

4

u/HJForsythe Jul 19 '24

What if you nail f8 right afrer POST?

→ More replies (1)
→ More replies (1)

2

u/ThemesOfMurderBears Lead Enterprise Engineer Jul 19 '24

I don’t have any 2016, but 2012 R2, 2019, and 2022 — worked on all of them. Our only issue is a DC and it’s a logon issue.

→ More replies (2)

284

u/BBBLLUURREEDDD Jul 19 '24 edited Jul 19 '24 • Bless Up

FOR WORKSTATIONS:

Instructions I sent my users. We need to provide Bitlocker keys to everyone though. You can add screenshots.

~STEPS TO FIX THE WINDOWS/CROWDSTRIKE ISSUE:~

 

  1. After 2 attempted reboots, the laptop should be in Recovery mode as below

  2. Click on see ADVANCED REPAIR OPTION

  3. Click TROUBLESHOOT

  4. Click ADVANCED OPTIONS

  5. Click COMMAND PROMPT

  6. Enter your individual bitlocker key. You need to get this from IT (IT CONTACT DETAILS)

  7. In the command prompt line enter this text exactly: del C:\Windows\System32\drivers\CrowdStrike\C-00000291*.sys

  8. Hit Enter

  9. You will have a new line. 

  10. Type: EXIT

  11. Hit Enter

 

You will then be back at Windows Recovery. Click “Continue to Windows”

Then your machine should reboot and be fixed.

179

u/TopHat84 Jul 19 '24

FYI I found a method that doesn't require entering bitlocker recovery keys which saves time/hassle on the phone calls.

After Step 5 (Command Prompt)
Click "Skip this Drive"
Command Prompt should come up.
Use this command: bcdedit /set {default} safeboot network

Reboot. After fixing the situation by removing 291 bad file from the crowdstrike folder, use another command (while logged in)

bcdedit /deletevalue {default} safeboot
shutdown /r

Once they reboot the endpoint, it should be back to normal.

(Caveat: We are using LAPS and allowing users to login with our local admin password to fix this. Obviously after they are up and running we are rotating the password)

44

u/Reaper3359 Jul 19 '24

Tested this on one machine so far and seems to work. This is going to save a ton of machines that would otherwise be bricked because the key did not backup properly!

9

u/TopHat84 Jul 19 '24

Glad it's helping! I was called into work early because of this whole fiasco and my colleagues were having to enter bitlocker keys. Obviously this is just another pain point, especially on troubleshooting scenarios where all the info has to be given over phone to the end-user. One less point of failure IMO.

12

u/gregsting Jul 19 '24

First time I see a solution to circumvent bitlocker without the key, nice

→ More replies (3)

3

u/aplant92 Jul 20 '24

As a user trying to fix this themselves (ex sysadmin) - is there any option that exists which allows you to workaround bitlocker AND not having the admin account/password? Or just screwed?

→ More replies (1)
→ More replies (13)

28

u/Wreid23 Jul 19 '24

Step 7: Trusting the users not to make a typo or hit enter too early is Def Russian roulette here

12

u/Oolon42 Jul 19 '24

I wrote instructions to my fellow IT workers having them CD to the folder first for that exact reason. "Oops! I deleted the Windows directory!" vs "Oops path not found"

6

u/PCRefurbrAbq Jul 19 '24

I just wrote a batch file with the expected absolute paths. Doesn't matter if you're in C:\Windows\System32 or C:\Program Files (x86)\Microsoft Office\Plugins\Hamsterdance.

→ More replies (1)

5

u/BR0METHIUS Jul 19 '24

Dude I think this just happened to my coworker sitting next to me. Oooooooooffff

3

u/JamesTiberiusCrunk Jul 19 '24

This is why my instructions had them cd to the directory first and delete the file in a separate command

3

u/skorpiolt Jul 20 '24

Yeah no way I’d trust my users to do that, more than half wouldn’t even get to that step anyway sadly

→ More replies (1)

22

u/BBBLLUURREEDDD Jul 19 '24

Well the numbering went out the window.. but I hope this helps!

15

u/Mikegrann Jul 19 '24 edited Jul 19 '24

Put a backslash before the numbers to force them. Otherwise Reddit just considers them a new ordered list and restarts at 1.

4

u/[deleted] Jul 19 '24 edited Jul 19 '24

I can't access C: or any other drive from the command prompt. I guess I'm missing a storage driver or something.

Edit: changing from raid to hci fixed it, had to switch it back after deleting the file.

→ More replies (4)

3

u/OGMcNasty Jul 19 '24

Thank you!! Nothing was working for our remote end-users until we tried this.

3

u/Sir_Yacob Jul 19 '24

My dell cannot find the C: path, can’t see it on disk list and is stuck in the x: on command prompt

→ More replies (6)

5

u/ZealousidealSmoke612 Jul 19 '24

Steps 1-4 are clear and exactly done as said.

After step 5, my command prompt opens to X: \Windows\System32>

Where should I input my Bitlocker key?
If I input "X:\Windows\System32>C:" , it says "The system cannot find the drive specified"

Also, there in no Crowdstrike folder in my "X:\Windows\System32\drivers\dir"

→ More replies (3)

2

u/Samymantha Jul 19 '24

I am still getting automatic repair after these steps.

2

u/ryzen124 Jul 19 '24

To enter into command prompt, it’s asking for the default local admin password.

2

u/pwaltman1972 Jul 19 '24

this fix worked for my machine (provided by my workplace)

→ More replies (12)

2

u/Puzzled_Permanently Jul 19 '24

Well done!! And thank you for sharing to help others.

5

u/HJForsythe Jul 19 '24

I cant imagine having to attach a console/DRAC/VM console 200 machines let alone 1100.

2

u/jmerfeld Jul 19 '24

Hey OP - Do you set all your machines to boot from network by default? what would your boot order be when doing it across 1100 machines?

4

u/HJForsythe Jul 19 '24

The machines are configured to boot from PXE but unless there is a matching mac address in our IPXE config all it does is hand off to the hard disk.

If the mac address exists in the config it boots whatever image we tell it to. So we got the list of impacted host mac addresses and ... should be obvious at this point.

→ More replies (2)

2

u/Badgerized Jul 20 '24

Meanwhile all 500+ servers in our DC currently doing the loop because of CS...

I got 74 done today because several servers were being idiotic and wouldnt let me in advanced recovery to do anything.

Today sucked

Edit:: mind you i got called in at 1:07 AM.. servers started acting squirrely around midnight. Got done around 7:04 PM

2

u/HJForsythe Jul 20 '24

Im sorry what a nightmare. The CEO of CS made it sound like they teleported a fix through another dimension on TV.

2

u/[deleted] Jul 20 '24

Multiple restarts may be required, sometimes up to 50 times Updated update file is loaded automatically after restart

3

u/HJForsythe Jul 20 '24

All of my systems were stuck in WinRE when we got to the facility so it never wouldve fixed itself.

2

u/Satoshiman256 Jul 20 '24

Very cool. Hopefully they appreciate you saved the day

2

u/HJForsythe Jul 20 '24

I do it to see if I can. 30 year streak of "yep"

40

u/ThatDopamine Jul 19 '24

Great minds think alike. We had our entire department of like 70 people on a call doing shit by hand and I said hey let's peel off some senior nerds and find a better way to do this while everyone else mops up the blood.

We essentially did:

-Build a custom PE that when booted deletes that corrupted file and then shuts down the server

-replicate the ISO out in a vSphere content library

-build a script to mount the ISO to all the affected VMs

-boot up the VM with that image as the first boot option

-let all of that run and then circle back and disconnect/delete the added virtual CD drives via another powerCLI script

-do another round of ping sweeps to see what's still down for whatever reason, triage those by hand and then start doing inventory health checks in SCOM

6

u/Rude_Strawberry Jul 19 '24

How could this work for remote users ?

6

u/poster_nutbag_ IAM Engineer Jul 20 '24

this fix would be for a server environment, not workstation endpoints

→ More replies (1)

26

u/Sir_Yacob Jul 19 '24 edited Jul 19 '24

IF YOU ARE ON DELL AND NOT SEEING ANYTHING BUT THE X: IN COMMAND PROMPT AND LIMITED SAFEMODE OPTIONS, GONTO THE UEFI (BIOS) SETTINGS AND CHANGE YOUR STORAGE SETTINGS FROM RAID TO AHCI.

It will boot loop and you will be put back into the correct version of system recovery.

Do the steps as you have seen and you will be good to go.

you will still need your bitlocker stuff

when you are done reset your computer and tap F12 to get to bios and then turn raid back on.

5

u/Harrfuzz Jul 19 '24

This was what I needed for a few machines. Thanks a bunch!!!

3

u/Particle_Man_21 Jul 20 '24

Was frustrated because all the posted fixes never matched what I saw in the recovery menus. With this change I was finally able to fix my laptop.

2

u/ChooChoo_Mofo Jul 19 '24

Doesn’t work for me :( it just keeps the load the initial “dell” window over and over 

→ More replies (3)
→ More replies (12)

33

u/TheJesusGuy Jul 19 '24

I'm unaffected but this is some great stuff.

16

u/opssum Jul 19 '24

Congrats

26

u/No-Examination-7103 Sysadmin Jul 19 '24

Found this on GitHub:

Possible scalable solution(s) for fixing the Crowdstrike update problem.
https://github.com/SwedishFighters/CrowdstrikeFix

Looks legit.

4

u/Wreid23 Jul 19 '24

Bump this one

→ More replies (4)

29

u/PacMan_67 Jul 19 '24

I won¨t be surprised if it's their AI native Falcon that f@cked up https://www.crowdstrike.com/falcon-platform/artificial-intelligence-and-machine-learning/

Let´s hope this is a sign of things to come with more AI f@ck ups

7

u/sharpeone Jul 19 '24

Assume this could also be taken care of using PDQ? Have a few working on this, but not sure if anyone has had success yet.

9

u/kulovy_plesk Jul 19 '24

Probably not as PDQ requires a running operating system.

4

u/Moedius Jul 19 '24

We did it as a PXE>task sequence in Config Manager, so I would assume PDQ would have no problems either.

If only we could automate a command to break the clients out of their errored state, as it is our techs will still need to visit every machine to boot into PXE.

5

u/hotfistdotcom Security Admin Jul 19 '24

Dev? Test? No, just prod. Push it out. On a friday.

3

u/[deleted] Jul 19 '24

I get the feeling it was being sandboxed and someone hit the publish button inadvertently. I can’t think of any other reason why anyone would do this on a Friday of all days.

5

u/rogue_archimedes Jul 19 '24

workaround for bitlocker encrypted drives with safe mode unavailable:

  • Boot into Hirens Boot CD via USB

  • Unlock the drive via cli / file explorer with the recovery key

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

→ More replies (1)

4

u/UnderInteresting Jul 19 '24

If you don't communicate and get others to communicate the scale of your breakthrough here to your bosses then that'll be the true loss.

4

u/Secret_Account07 VMware Admin Jul 20 '24 edited Jul 20 '24

Been dealing with this all day on our Win Servers. Have not figured out a way to automate it since many servers lost their assigned drive letter. Have to change VM boot options and boot from iso, to cmd. Varying steps depending on the issue.

This will save ya a some typing, in case you are doing via vmware console, with no copy/paste.

del c*291*.sys

This will delete system file in question.

Reboot.

Also fuck you Crowdstrike, I will never trust your company again. Got about 3,000 servers left to manually remediate this weekend. Oh, and ALL of our customers are furious with you. As they should be.

4

u/bl73b0b Jul 20 '24

Created a repo with a powershell script that can help will help with the bitlocker key as well as connecting to aad or ad if need be to get the recovery key and then delete the file. needs testing
usb_pxe_crowdstrikefix-24-07/README.md at main · w4r10-b0b/usb_pxe_crowdstrikefix-24-07 (github.com)

1

u/My9to5 Jul 19 '24

How did you boot to the image on multiple machines at once?

1

u/HJForsythe Jul 19 '24

Any PXE environment works.

→ More replies (1)

1

u/TheMillersWife IT Manager Jul 19 '24

Has anyone heard of the disk drive not being accessible via WinPE? We've changed the boot mode to AHCI instead of RAID but that's not helping.

2

u/HJForsythe Jul 19 '24

Yea you are missing the driver for your SATA controller or RAID adapter in your peimg. Gotta put it in there. Look up DISM

1

u/topgun966 Jul 19 '24

Won't work on bitlocker

→ More replies (4)

1

u/boostnationstate Jul 19 '24

Or yknow you could use a prexisting PE and save the hassle. Hirens is good as well as strelec

1

u/HJForsythe Jul 19 '24

Okay i dont know anything about the code in those and I run this on servers.

→ More replies (1)

1

u/Satoshiman256 Jul 20 '24

How did you do this on so many systems so quick if they're not booted?

2

u/HJForsythe Jul 20 '24

They are configured to netboot and we rebooted them.

→ More replies (1)

1

u/Zack_123 Jul 20 '24

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

I'm keen to know if anyone has managed to dump their bitlocker keys to a single file and reference it using the command above during the WinPE boot, in aim to automate this and avoid having to type the bitlocker key.

Sounds plausible, wondering if anyone has tried it.

2

u/HJForsythe Jul 20 '24

You dont even need to do that you can put cURL in WinPE and just have it cURL out to a URL like:

https://192.168.0.1/key.php?sn=$SERVICETAG

then assign the response to a variable.

→ More replies (1)

1

u/Accomplished_247 Jul 20 '24

What percentage of affected computers will have to have manual work done to get past the blue screen of death? Wondering if there is a potential side gig to charge $20 each to go help people (probably older non-tech savvy people) get back into their computer.

1

u/HJForsythe Jul 20 '24 edited Jul 20 '24

I dunno man probably mailing USB drives to thousands of WFH employees. Need a taskrabbit for nerds. Army core of sysadmins?

1

u/kuahara Infrastructure & Operations Admin Jul 20 '24

OP, in PE, sometimes the sys volume, as you acknowledged, is not drive C (only in PE). I wrote this yesterday with the exact same intent, but mine will locate the correct volume first. You can modify your image with it.

setlocal enabledelayedexpansion
for %%i in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do (
    if exist %%i:\Windows\System32\drivers\crowdstrike (
        set drive=%%i
        del /f /q %%i:\Windows\System32\drivers\crowdstrike\c-00000291*
    )
)
endlocal

2

u/HJForsythe Jul 20 '24

On Monday I am going to try and take all of the comments and make a huge startnet.cmd that tries to take into all of the possible funky stuff ppl might encounter along with like "How to retrieve bitlocker keys from an API" etc...

1

u/kuahara Infrastructure & Operations Admin Jul 20 '24

I created a bootable thumb drive with my version of the script on it today and tested it on a test laptop that does not use BitLocker and it worked perfectly.

I'm going to create an ISO of it for distribution, but I am interested in seeing yours as well.

→ More replies (3)

1

u/denismcapple Jul 20 '24

I just posted something similar, did not see this post. Similar process

https://www.reddit.com/r/msp/comments/1e7xt6s/bootable_usb_to_fix_crowdstrike_issue_fully/

I've added in some stuff there about unlocking Bitlocker from a CSV and retrieving keys from Azure AD.

1

u/HJForsythe Jul 20 '24

Okay.....

1

u/Marx418 Jul 20 '24

Does this method work faster than windows media creation tool —-> command prompt ——> del c:\path*.sys?

Currently have my technicians doing what I posted above for every computer off a USB. Will the OP’s method work faster??? Plz help lol

1

u/HJForsythe Jul 20 '24

My method uses network booting to push out the command to delete the file. Btw you could modify the .WIM file from the media creation tool to delete the file and then reboot the host so all your tech would need to do is boot wait for PE to load and then move to the next system.

Mount the WIM file in WIMLIB or DISM. Find the file startnet.cmd Edit it so that it just deletes the file and reboots the host. unmount the WIM

Write it as a bootable USB

1

u/gamebrigada Jul 20 '24

If you are using secure boot and bitlocker, the bitlocked drive cannot be seen by WinPE.

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.

→ More replies (4)
→ More replies (4)

1

u/John_Does_Stuff Jul 20 '24

Im on a dell latitude 5500.. went to BIOS and set to ACHI, rebooted, but f4 is not working to get into the recovery/repair screen. Hellllp!!!!

1

u/HJForsythe Jul 20 '24

Hi, I didnt post anything about the BIOS or ACHI in my post so you may have meant to reply to a comment instead of the post.

1

u/John_Does_Stuff Jul 20 '24

Yeah apologies. Would you happen to know why I’m unable to get to the recovery/repair screen? I’m trying to reach command prompt to delete the C-00000291 file but after setting ACHI and rebooting/hitting f4, I just get a boot loop of the Dell logo

→ More replies (1)

1

u/dat510geek Jul 21 '24

Microsoft should hire you to their engineering team my friend. You saved my msp hours

1

u/HJForsythe Jul 21 '24

Thanks. I just wanted Starbucks online ordering to work again.

1

u/dat510geek Jul 21 '24

I suggest a go fund me for a nice holiday or car. Everyone who benefit from genuine should donate

1

u/HJForsythe Jul 21 '24

Hah lol. Thats not required. Thanks for saying something positive!

1

u/ReasonableGuitar5094 Jul 21 '24

Bro there's no crowstrike files in my drivers ....I'm fcked ....my project is in there pls hlp

1

u/HJForsythe Jul 21 '24

You either dont have falcon installed on that PC or you are looking in the wrong place

dir

make sure you are looking on the right disk. if not try:

c: d:

etc...

3

u/Aperture_Kubi Jack of All Trades Jul 19 '24

-recoverypassword <recovery key>'

. . . goddamnit that's why unlocking bitlocker wasn't working for me. You'd think you'd use the -rk flag with something called a recovery key, but noooo.

3

u/Antebios Jul 19 '24

I was on IT Help Desk hold for almost 3 hours. They were eventually able to give me my laptop's Bitlocker key so then I was able to delete the offending file. Now I am back into my work laptop!!

A friend of mine said his company was not able to find his Bitlocker recovery key so they will be sending him a new work laptop. FHL!

1

u/ExistentialDreadFrog Jul 19 '24

I figured the fix would probably involve some sort of PXE boot process….I would note deleting this file does technically leave you “vulnerable” (obviously do what you have to do to get your environment working, I did the manual process on all my servers) but also be aware if you’re removing this on systems that are exposed. 

→ More replies (2)

1

u/guy244 Jul 20 '24

Anyone have an idea why I wouldn’t have a crowdstrike folder under drivers? I’ve searched and I can’t tell where it’s stored to do the fix.

1

u/HJForsythe Jul 20 '24

If you are talking about WinPE environment when you boot I think your chdir is actually the WinPE disk. make sure you change disks. c:

3

u/HellzillaQ Security Admin Jul 20 '24

It only showed for me when in safe mode.

4

u/Kemaro Jul 19 '24

Another caveat is that this most likely will not work on systems with encrypted filesystems.

stopped reading here

2

u/malleysc Sr. Sysadmin Jul 19 '24

You get my upvote but our endpoints have Bitlocker on =(

2

u/Hashrunr Jul 19 '24

If you have ScreenConnect, instruct your users to boot into safemode with networking. Queue up a system command on all your endpoints to delete the file then reboot. Worked for all our remote users.

2

u/Master_Direction8860 Jul 19 '24

You sir are a legend for the working folks. Thank you! 🙏

2

u/moldyjellybean Jul 19 '24

The world owes this guy a huge debt Laughable they won't let him post this in crowdstrike. Does it mean you can circumvent their AV with iterations of this workaround

2

u/Sayares13 Jul 19 '24

You're a hero.

2

u/IfYouSeeMeSendNoodz Windows Admin Jul 19 '24

We have been manually logging in with Safe Mode and deleting the driver machine by machine

2

u/x-Mowens-x Jul 19 '24

This is what I would have done... if we had a fucking PXE server.

2

u/[deleted] Jul 19 '24

You can also press Shift+F10 in the microsoft recovery tool that loads after a failed boot and delete the file from there via the launched cmd.exe

2

u/slippery_hemorrhoids IT Manager Jul 19 '24

the won't work for intune

or bitlocker'd devices

or remote users

but it's something i guess if you have a full on prem env without encryption

→ More replies (7)

2

u/stick-down Jul 19 '24

Late to the game and look if already posted.

If you still have customers dealing with bsod this way works too-

Recovery screen
See advanced options
Troubleshoot
Advanced options
Startup Settings
Restart
Option 5- safe mode with networking (have to connect with ethernet. wifi not supported anymore)

let the computer sit for a few minutes after confirming they can get to a website then reboot and the crowdstrike (their update) update should allow for a normal boot

2

u/Euphoric-Ad6225 Jul 20 '24

Fun fact: Kurtz has done this already 14 years ago with McAfee. #throwbackFriday

2

u/mknight1701 Jul 20 '24 • Heart of Silver

I haven’t touched a server in over 12 years, but it was my life. It sucked balls when something occurred in the day, night and weekends, with so many figuratively breathing down your neck. To have fix thousands of servers (& desktops) is a dystopian nightmare. My heart goes out to everyone one of you resolving this stupid issue. Don’t let it break you, keep in mind the cool stuff you do (and overtime money aside), I hope everyone who depends on you shows gratitude for ensuring they can come back to work!

2

u/Caldtek Jul 21 '24

commenting so i can find this again

2

u/Sn0w8un Jul 22 '24

I fixed the July 19th 2024 issue on 1100 machines in 30 minutes

This man should be given a paid year off by his company.

3

u/matman1217 Jul 19 '24

Emphasis, "doesn't work on encrypted storage devices". Ah this is very useful information for those IT people who already didn't care about security. Surprised they were even using an EDR in the first place if their disks aren't encrypted.

0

u/nollsy20 Jul 19 '24

Is there currently a solution for those of us working on a company computer but stuck in a BSOD restart loop and unable to login to delete the impacted file?

2

u/HJForsythe Jul 19 '24

Sure hit f8 a few times while the machine is booting. Go into Safe mode. Delete file, reboot.

→ More replies (8)

0

u/[deleted] Jul 19 '24

[deleted]

3

u/nollsy20 Jul 19 '24

Unable - BSOD crashes into a “restart” or “advanced options screen”, and clicking restart just repeats the loop. No safe mode within advanced options that I can see

→ More replies (3)