Detection rules › Sigma

Potential Ransomware or Unauthorized MBR Tampering Via Bcdedit.EXE

Status
test
Severity
medium
Log source
product windows, category process_creation
Author
@neu5ron
Source
github.com/SigmaHQ/sigma

Detects potential malicious and unauthorized usage of bcdedit.exe

MITRE ATT&CK coverage

Event coverage

ProviderEventTitle
SysmonEvent ID 1Process creation

Rule body yaml

title: Potential Ransomware or Unauthorized MBR Tampering Via Bcdedit.EXE
id: c9fbe8e9-119d-40a6-9b59-dd58a5d84429
status: test
description: Detects potential malicious and unauthorized usage of bcdedit.exe
references:
    - https://learn.microsoft.com/en-us/windows-hardware/drivers/devtest/bcdedit--set
    - https://twitter.com/malwrhunterteam/status/1372536434125512712/photo/2
author: '@neu5ron'
date: 2019-02-07
modified: 2023-02-15
tags:
    - attack.stealth
    - attack.t1070
    - attack.persistence
    - attack.t1542.003
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith: '\bcdedit.exe'
        - OriginalFileName: 'bcdedit.exe'
    selection_cli:
        CommandLine|contains:
            - 'delete'
            - 'deletevalue'
            - 'import'
            - 'safeboot'
            - 'network'
    condition: all of selection_*
level: medium

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

selection_img:
    - Image|endswith: '\bcdedit.exe'
    - OriginalFileName: 'bcdedit.exe'

Stage 2: selection_cli

selection_cli:
    CommandLine|contains:
        - 'delete'
        - 'deletevalue'
        - 'import'
        - 'safeboot'
        - 'network'

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
CommandLinematch
  • delete corpus 23 (sigma 16, splunk 6, kusto 1)
  • deletevalue
  • import corpus 4 (sigma 4)
  • network corpus 3 (sigma 2, splunk 1)
  • safeboot corpus 3 (splunk 2, sigma 1)
Imageends_with
  • \bcdedit.exe corpus 5 (sigma 5)
OriginalFileNameeq
  • bcdedit.exe corpus 4 (sigma 2, elastic 2)