r/sysadmin
•
u/HJForsythe
•
Jul 19 '24
•
1
1
7
6
1
General Discussion Fix the Crowdstrike boot loop/BSOD automatically
UPDATE 7/21/2024
Microsoft releases tool very late to help.
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.
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.
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/
53
u/[deleted] Jul 19 '24
would love to somehow quantify how much money you just saved people all combined with this one post
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.
61
u/dostevsky Jul 19 '24
16
u/Doublestack00 Jack of All Trades Jul 19 '24
Would this work on systems with Bitlocker enabled?
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
14
u/Baen4455 Jul 19 '24
Did you deploy your fix to machines via PXE?
12
u/ThatDopamine Jul 19 '24
My team also arrived at this solution. This was a fun nut to crack.
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.
16
u/LonelyWizardDead Jul 19 '24
your not full disk encypting the machines?
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.
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.
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?
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
284
u/BBBLLUURREEDDD Jul 19 '24 edited Jul 19 '24 •
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:~
You will then be back at Windows Recovery. Click “Continue to Windows”
Then your machine should reboot and be fixed.
2
u/Puzzled_Permanently Jul 19 '24
Well done!! And thank you for sharing to help others.
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?
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/[deleted] Jul 20 '24
Multiple restarts may be required, sometimes up to 50 times Updated update file is loaded automatically after restart
2
u/Satoshiman256 Jul 20 '24
Very cool. Hopefully they appreciate you saved the day
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
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.
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.
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.
5
u/hotfistdotcom Security Admin Jul 19 '24
Dev? Test? No, just prod. Push it out. On a friday.
5
u/rogue_archimedes Jul 19 '24
workaround for bitlocker encrypted drives with safe mode unavailable:
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/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.
1
u/topgun966 Jul 19 '24
Won't work on bitlocker
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/Satoshiman256 Jul 20 '24
How did you do this on so many systems so quick if they're not booted?
1
u/Zack_123 Jul 20 '24
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.
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/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.
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/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/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/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/dat510geek Jul 21 '24
Microsoft should hire you to their engineering team my friend. You saved my msp hours
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/ReasonableGuitar5094 Jul 21 '24
Bro there's no crowstrike files in my drivers ....I'm fcked ....my project is in there pls hlp
3
u/Aperture_Kubi Jack of All Trades Jul 19 '24
. . . 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.
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.
4
u/Kemaro Jul 19 '24
stopped reading here
2
u/MrShoehorn Jul 19 '24
To confirm no one has a solution for doing this for systems that have bitlocker?
2
u/malleysc Sr. Sysadmin Jul 19 '24
You get my upvote but our endpoints have Bitlocker on =(
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
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 •
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
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?