Detection rules › Sigma

Potentially Suspicious Cabinet File Expansion

Status
test
Severity
medium
Log source
product windows, category process_creation
Author
Bhabesh Raj, X__Junior (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects the expansion or decompression of cabinet files from potentially suspicious or uncommon locations, e.g. seen in Iranian MeteorExpress related attacks

MITRE ATT&CK coverage

Event coverage

Rule body yaml

title: Potentially Suspicious Cabinet File Expansion
id: 9f107a84-532c-41af-b005-8d12a607639f
status: test
description: Detects the expansion or decompression of cabinet files from potentially suspicious or uncommon locations, e.g. seen in Iranian MeteorExpress related attacks
references:
    - https://labs.sentinelone.com/meteorexpress-mysterious-wiper-paralyzes-iranian-trains-with-epic-troll
    - https://blog.malwarebytes.com/threat-intelligence/2021/08/new-variant-of-konni-malware-used-in-campaign-targetting-russia/
author: Bhabesh Raj, X__Junior (Nextron Systems)
date: 2021-07-30
modified: 2024-11-13
tags:
    - attack.stealth
    - attack.t1218
logsource:
    category: process_creation
    product: windows
detection:
    selection_cmd:
        Image|endswith: '\expand.exe'
        CommandLine|contains|windash: '-F:'
    selection_folders_1:
        CommandLine|contains:
            - ':\Perflogs\'
            - ':\ProgramData'
            - ':\Users\Public\'
            - ':\Windows\Temp\'
            - '\Admin$\'
            - '\AppData\Local\Temp\'
            - '\AppData\Roaming\'
            - '\C$\'
            - '\Temporary Internet'
    selection_folders_2:
        - CommandLine|contains|all:
              - ':\Users\'
              - '\Favorites\'
        - CommandLine|contains|all:
              - ':\Users\'
              - '\Favourites\'
        - CommandLine|contains|all:
              - ':\Users\'
              - '\Contacts\'
    filter_optional_dell:
        # Launched by Dell ServiceShell.exe
        ParentImage: 'C:\Program Files (x86)\Dell\UpdateService\ServiceShell.exe'
        CommandLine|contains: 'C:\ProgramData\Dell\UpdateService\Temp\'
    condition: selection_cmd and 1 of selection_folders_* and not 1 of filter_optional_*
falsepositives:
    - System administrator Usage
level: medium

Stages and Predicates

Stage 0: condition

selection_cmd and 1 of selection_folders_* and not 1 of filter_optional_*

Stage 1: selection_cmd

selection_cmd:
    Image|endswith: '\expand.exe'
    CommandLine|contains|windash: '-F:'

Stage 2: selection_folders_1

selection_folders_1:
    CommandLine|contains:
        - ':\Perflogs\'
        - ':\ProgramData'
        - ':\Users\Public\'
        - ':\Windows\Temp\'
        - '\Admin$\'
        - '\AppData\Local\Temp\'
        - '\AppData\Roaming\'
        - '\C$\'
        - '\Temporary Internet'

Stage 3: selection_folders_2

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

Stage 4: not filter_optional_dell

filter_optional_dell:
    ParentImage: 'C:\Program Files (x86)\Dell\UpdateService\ServiceShell.exe'
    CommandLine|contains: 'C:\ProgramData\Dell\UpdateService\Temp\'

Exclusions

Top-level NOT(...) conjuncts: predicates this rule actively suppresses.

FieldKindExcluded values
CommandLinematchC:\ProgramData\Dell\UpdateService\Temp\
ParentImageeqC:\Program Files (x86)\Dell\UpdateService\ServiceShell.exe

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
  • -F: transforms: windash corpus 2 (sigma 1, splunk 1)
  • :\Perflogs\ corpus 11 (sigma 11)
  • :\ProgramData corpus 2 (sigma 2)
  • :\Users\ corpus 6 (sigma 6)
  • :\Users\Public\ corpus 18 (sigma 18)
  • :\Windows\Temp\ corpus 16 (sigma 16)
  • \Admin$\
  • \AppData\Local\Temp\ corpus 26 (sigma 26)
  • \AppData\Roaming\ corpus 16 (sigma 16)
  • \C$\
  • \Contacts\ corpus 6 (sigma 6)
  • \Favorites\ corpus 6 (sigma 6)
  • \Favourites\ corpus 6 (sigma 6)
  • \Temporary Internet corpus 7 (sigma 7)
Imageends_with
  • \expand.exe corpus 3 (sigma 3)