Detection rules › Sigma

BitLocker server feature activation (PowerShell)

Status
experimental
Severity
high
Log source
product windows, category ['ps_module', 'ps_classic_script', 'ps_script']
Author
mdecrevoisier
Source
github.com/mdecrevoisier/SIGMA-detection-rules

Detects scenarios where an attacker enables BitLocker for ransomware purposes.

MITRE ATT&CK coverage

TacticTechniques
ImpactT1486 Data Encrypted for Impact

Event coverage

Rule body yaml

title: BitLocker server feature activation (PowerShell)
description: Detects scenarios where an attacker enables BitLocker for ransomware purposes.
references:
- https://thedfirreport.com/2021/11/15/exchange-exploit-leads-to-domain-wide-ransomware/
- https://docs.microsoft.com/en-us/windows/security/information-protection/bitlocker/bitlocker-how-to-deploy-on-windows-server
- https://www.bleepingcomputer.com/news/microsoft/microsoft-iranian-hackers-encrypt-windows-systems-using-bitlocker/
- https://securelist.com/ransomware-abuses-bitlocker/112643/
tags:
- attack.impact
- attack.t1486
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  category:
    - ps_module
    - ps_classic_script
    - ps_script
detection: # command: powershell  -c "Import-Module ServerManager; Add-WindowsFeature BitLocker -Restart"

  selection_powershell_activation_modern:
    EventID: 4103
    Payload|contains|all:
      - WindowsFeature # Install-WindowsFeature / Add-WindowsFeature
      - BitLocker

  selection_powershell_activation_block:
    EventID: 4104
    ScriptBlockText|contains|all:
      - WindowsFeature # Install-WindowsFeature / Add-WindowsFeature
      - BitLocker

  selection_powershell_configuration_modern:
    EventID: 4103
    Payload|contains: Enablee-BitLocker

  selection_powershell_configuration_block:
    EventID: 4104
    ScriptBlockText|contains|contains: Enablee-BitLocker

  condition: 1 of selection_powershell_activation_* OR selection_powershell_configuration_*
falsepositives:
- Initial BitLocker installation
level: high

Stages and Predicates

Stage 0: condition

1 of selection_powershell_activation_* OR selection_powershell_configuration_*

Stage 1: selection_powershell_activation_modern

selection_powershell_activation_modern:
  EventID: 4103
  Payload|contains|all:
    - WindowsFeature
    - BitLocker

Stage 2: selection_powershell_activation_block

selection_powershell_activation_block:
  EventID: 4104
  ScriptBlockText|contains|all:
    - WindowsFeature
    - BitLocker

Stage 3: selection_powershell_configuration_modern

selection_powershell_configuration_modern:
  EventID: 4103
  Payload|contains: Enablee-BitLocker

Stage 4: selection_powershell_configuration_block

selection_powershell_configuration_block:
  EventID: 4104
  ScriptBlockText|contains|contains: Enablee-BitLocker

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
Payloadmatch
  • BitLocker
  • Enablee-BitLocker
  • WindowsFeature
ScriptBlockTextmatch
  • BitLocker
  • Enablee-BitLocker
  • WindowsFeature