Many ransomware operations change the boot configuration so the victim cannot use automatic repair or recovery. The usual changes are short bcdedit commands that turn off recovery and ignore boot failures, or reagentc commands that disable the Windows Recovery Environment. Some operators also reboot into safe mode to avoid security tooling. These are administrator commands with few legitimate callers, so they make high-value detections.
Signals at a Glance
| Signal | Where | ATT&CK |
|---|---|---|
| bcdedit /set {default} recoveryenabled No | Process creation | T1490 |
| bcdedit /set {default} bootstatuspolicy ignoreallfailures | Process creation | T1490 |
| reagentc /disable (Windows Recovery Environment off) | Process creation | T1490 |
| bcdedit /set safeboot minimal or network | Process creation | T1562.009 |
| Direct edits to the BCD store from a script host or unknown binary | File and registry telemetry, EDR | T1490 |
Command Coverage
These commands are short and consistent, so a command-line rule has good precision. The rule below combines recovery disable, boot status policy and safe-mode forcing. Legitimate technicians use bcdedit during imaging and troubleshooting, so scope it by parent and account:
title: Boot Configuration Or Recovery Environment Tampering
logsource:
product: windows
category: process_creation
detection:
recovery_off:
Image|endswith: '\bcdedit.exe'
CommandLine|contains|all:
- 'recoveryenabled'
- 'no'
boot_policy:
Image|endswith: '\bcdedit.exe'
CommandLine|contains|all:
- 'bootstatuspolicy'
- 'ignoreallfailures'
safe_mode:
Image|endswith: '\bcdedit.exe'
CommandLine|contains|all:
- 'safeboot'
- '/set'
winre_off:
Image|endswith: '\reagentc.exe'
CommandLine|contains: '/disable'
condition: 1 of them
level: high
# tune/validate: allow your imaging servers and deployment accounts by name.
Sequence and Context
A single bcdedit call can be a technician. The same call within minutes of shadow copy deletion and service stops is a ransomware chain. Score the sequence on a single host:
- Alert on two or more of: shadow copy deletion, boot configuration change, backup catalog deletion and security-service stops on one host within 30 minutes.
- Check parent process and logon type. These commands launched by PsExec, a remote service or a script host under a domain admin are the strong cases.
- Safe-mode boot changes deserve their own alert, since they precede a reboot that the security stack may not survive. If you see one, check for a scheduled reboot before it happens.
- Inventory legitimate callers once (imaging, patching, VDI tooling), and allowlist by signed image and account rather than loosening the command match.
SigmaHQ includes bcdedit, bootstatuspolicy and reagentc rules, and Elastic and Splunk ESCU carry equivalents. Use the CISA #StopRansomware advisories to see which families touch the boot configuration in your threat model. Baseline your environment first, because imaging and VDI workflows legitimately call these tools.
Build Detections That Fire
Mjolnir Security helps blue teams turn threat intelligence into high-fidelity detections across endpoint, network, identity and cloud telemetry.
- Detection Engineering We build and tune detections mapped to ATT&CK from your own telemetry.
- Threat Hunting as a Service Hypothesis-driven hunts for the behaviours on this page.
- 24/7 Incident Response Containment when a detection fires. Call +1 833 403 5875.
Stay ahead of emerging threats. Get notified when we publish new intelligence reports and advisories.
Subscribe to Alerts