BCDEDIT
RECOVERY
BOOT POLICY
SAFE MODE
DetectionBlue TeamSOCOctober 12, 2026•9 min read

Detecting Boot and Recovery Configuration Tampering

Deleting shadow copies stops a rollback. Tampering with the boot configuration stops the repair. Both are small commands, and both are rarely run by anyone else.

Scroll

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

SignalWhereATT&CK
bcdedit /set {default} recoveryenabled NoProcess creationT1490
bcdedit /set {default} bootstatuspolicy ignoreallfailuresProcess creationT1490
reagentc /disable (Windows Recovery Environment off)Process creationT1490
bcdedit /set safeboot minimal or networkProcess creationT1562.009
Direct edits to the BCD store from a script host or unknown binaryFile and registry telemetry, EDRT1490

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:

Vetted sources

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 EngineeringManaged Detection & ResponseThreat HuntingIncident ResponsePurple Teaming
  • 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.
Written by: Mjolnir Threat Research (MTAC)  |  Published: October 12, 2026  |  Last reviewed: October 12, 2026