Skip to content
WETNav

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.

Worst caseHigh

Switches

/set

Sets a boot option, for example recoveryenabled or bootstatuspolicy.

Medium
/deletevalue

Removes a boot option.

Medium
/enum

Lists boot entries.

Low
/export

Exports the boot configuration store.

Low
/import

Imports a boot configuration store.

Medium

Command 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 regexbcdedit(\.exe)?\s+.*\/set\b.*recoveryenabled\s+no

    T1490

  • High

    Boot failure recovery suppressed

    ignoreallfailures stops Windows offering automatic repair after boot failures. Paired with recovery being disabled before encryption.

    Detection regexbcdedit(\.exe)?\s+.*\/set\b.*bootstatuspolicy\s+ignoreallfailures

    T1490

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.

  • High
    Boot 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

  • High
    Suspicious Spool Service Child Process

    Detects suspicious print spool service (spoolsv.exe) child processes.

    T1203T1068by Justin C. (@endisphotic), @dreadphones (detection), Thomas Patzke (Sigma rule)

  • High
    System 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)

  • Medium
    Potential 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.