Impact · Windows
bcdedit.exe
Boot Configuration Data editor
Edits boot configuration. Turning off recovery and ignoring boot failures stops Windows from offering repair after damage, a recovery-inhibition step used by ransomware.
Legitimate use
Admins use it to manage boot entries, safe boot and recovery options.
Switches
Sets a boot option, for example recoveryenabled or bootstatuspolicy.
MediumRemoves a boot option.
MediumLists boot entries.
LowExports the boot configuration store.
LowImports a boot configuration store.
MediumCommand lines to worry about
- High
Windows recovery disabled
Setting recoveryenabled to no stops the recovery environment loading after a failure. A common ransomware step to block repair.
Detection regex
bcdedit(\.exe)?\s+.*\/set\b.*recoveryenabled\s+no - High
Boot failure recovery suppressed
ignoreallfailures stops Windows offering automatic repair after boot failures. Paired with recovery being disabled before encryption.
Detection regex
bcdedit(\.exe)?\s+.*\/set\b.*bootstatuspolicy\s+ignoreallfailures
Where it is recorded
- Security4688Process creation with the full command line, when command-line auditing is enabled.
- Sysmon1Process creation with command line, hashes and parent process.
Community detections
4 SigmaHQ rules for bcdedit.exe. The explainer checks every pasted command line against all of them.
- HighBoot Configuration Tampering Via Bcdedit.EXE
Detects the use of the bcdedit command to tamper with the boot configuration data. This technique is often times used by malware or attackers as a destructive way before launching ransomware.
T1490by E.M. Anhaus (originally from Atomic Blue Detections, Endgame), oscd.community
- HighSuspicious Spool Service Child Process
Detects suspicious print spool service (spoolsv.exe) child processes.
T1203T1068by Justin C. (@endisphotic), @dreadphones (detection), Thomas Patzke (Sigma rule)
- HighSystem File Execution Location Anomaly
Detects the execution of a Windows system binary that is usually located in the system folder from an uncommon location.
T1036by Florian Roth (Nextron Systems), Patrick Bareiss, Anton Kutepov, oscd.community, Nasreddine Bencherchali (Nextron Systems)
- MediumPotential Ransomware or Unauthorized MBR Tampering Via Bcdedit.EXE
Detects potential malicious and unauthorized usage of bcdedit.exe
T1070T1542.003by @neu5ron
Rules from SigmaHQ (rules/windows/process_creation), Detection Rule License (DRL) 1.1. Each rule links to its source and credits its authors.