Detection rules › Sigma

Load Of RstrtMgr.DLL By A Suspicious Process

Status
test
Severity
high
Log source
category image_load, product windows
Author
Luc Génaux
Source
github.com/SigmaHQ/sigma

Detects the load of RstrtMgr DLL (Restart Manager) by a suspicious process. This library has been used during ransomware campaigns to kill processes that would prevent file encryption by locking them (e.g. Conti ransomware, Cactus ransomware). It has also recently been seen used by the BiBi wiper for Windows. It could also be used for anti-analysis purposes by shut downing specific processes.

Known false positives

  • Processes related to software installation

MITRE ATT&CK coverage

TacticTechniques
Defense Impairment
Impact

Telemetry coverage

ProviderRecord / event type
SysmonEvent ID 7: Image loaded

Rule body

title: Load Of RstrtMgr.DLL By A Suspicious Process
id: b48492dc-c5ef-4572-8dff-32bc241c15c8
related:
    - id: 3669afd2-9891-4534-a626-e5cf03810a61
      type: derived
status: test
description: |
    Detects the load of RstrtMgr DLL (Restart Manager) by a suspicious process.
    This library has been used during ransomware campaigns to kill processes that would prevent file encryption by locking them (e.g. Conti ransomware, Cactus ransomware). It has also recently been seen used by the BiBi wiper for Windows.
    It could also be used for anti-analysis purposes by shut downing specific processes.
references:
    - https://www.crowdstrike.com/blog/windows-restart-manager-part-1/
    - https://www.crowdstrike.com/blog/windows-restart-manager-part-2/
    - https://web.archive.org/web/20231221193106/https://www.swascan.com/cactus-ransomware-malware-analysis/
    - https://taiwan.postsen.com/business/88601/Hamas-hackers-use-data-destruction-software-BiBi-which-consumes-a-lot-of-processor-resources-to-wipe-Windows-computer-data--iThome.html
author: Luc Génaux
date: 2023-11-28
tags:
    - attack.impact
    - attack.defense-impairment
    - attack.t1486
    - attack.t1685
logsource:
    category: image_load
    product: windows
detection:
    selection_img:
        - ImageLoaded|endswith: '\RstrtMgr.dll'
        - OriginalFileName: 'RstrtMgr.dll'
    selection_folders_1:
        Image|contains:
            # Note: increase coverage by adding more suspicious paths
            - ':\Perflogs\'
            - ':\Users\Public\'
            - '\Temporary Internet'
    selection_folders_2:
        - Image|contains|all:
              - ':\Users\'
              - '\Favorites\'
        - Image|contains|all:
              - ':\Users\'
              - '\Favourites\'
        - Image|contains|all:
              - ':\Users\'
              - '\Contacts\'
    condition: selection_img and 1 of selection_folders_*
falsepositives:
    - Processes related to software installation
level: high

Stages and Predicates

Stage 0: condition

selection_img and 1 of selection_folders_*

Stage 1: selection_img

selection_img:
    - ImageLoaded|endswith: '\RstrtMgr.dll'
    - OriginalFileName: 'RstrtMgr.dll'

Stage 2: selection_folders_1

selection_folders_1:
    Image|contains:
        - ':\Perflogs\'
        - ':\Users\Public\'
        - '\Temporary Internet'

Stage 3: selection_folders_2

selection_folders_2:
    - Image|contains|all:
          - ':\Users\'
          - '\Favorites\'
    - Image|contains|all:
          - ':\Users\'
          - '\Favourites\'
    - Image|contains|all:
          - ':\Users\'
          - '\Contacts\'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imagematch
  • :\Perflogs\ corpus 9 (sigma 9)
  • :\Users\ corpus 3 (sigma 3)
  • :\Users\Public\ corpus 13 (sigma 13)
  • \Contacts\ corpus 4 (sigma 4)
  • \Favorites\ corpus 5 (sigma 5)
  • \Favourites\ corpus 4 (sigma 4)
  • \Temporary Internet corpus 2 (sigma 2)
field:"Image" kind:match
ImageLoadedends_with
  • \RstrtMgr.dll corpus 2 (sigma 2)
field:"ImageLoaded" kind:ends_with value:"\RstrtMgr.dll"
OriginalFileNameeq
  • RstrtMgr.dll corpus 2 (sigma 2)
field:"OriginalFileName" kind:eq value:"RstrtMgr.dll"