Detection rules › Sigma

Clfs.SYS Loaded By Process Located In a Potential Suspicious Location

Status
experimental
Severity
medium
Log source
product windows, category image_load
Author
X__Junior
Source
github.com/SigmaHQ/sigma

Detects Clfs.sys being loaded by a process running from a potentially suspicious location. Clfs.sys is loaded as part of many CVEs exploits that targets Common Log File.

MITRE ATT&CK coverage

Event coverage

ProviderEventTitle
SysmonEvent ID 7Image loaded

Rule body yaml

title: Clfs.SYS Loaded By Process Located In a Potential Suspicious Location
id: fb4e2211-6d08-426b-8e6f-0d4a161e3b1d
status: experimental
description: Detects Clfs.sys being loaded by a process running from a potentially suspicious location. Clfs.sys is loaded as part of many CVEs exploits that targets Common Log File.
references:
    - https://ssd-disclosure.com/ssd-advisory-common-log-file-system-clfs-driver-pe/
    - https://x.com/Threatlabz/status/1879956781360976155
author: X__Junior
date: 2025-01-20
tags:
    - attack.execution
    - attack.t1059
logsource:
    category: image_load
    product: windows
detection:
    selection_dll:
        ImageLoaded|endswith: '\clfs.sys'
    selection_folders_1:
        Image|contains:
            - ':\Perflogs\'
            - ':\Users\Public\'
            - '\Temporary Internet'
            - '\Windows\Temp\'
    selection_folders_2:
        - Image|contains|all:
              - ':\Users\'
              - '\Favorites\'
        - Image|contains|all:
              - ':\Users\'
              - '\Favourites\'
        - Image|contains|all:
              - ':\Users\'
              - '\Contacts\'
        - Image|contains|all:
              - ':\Users\'
              - '\Pictures\'
    condition: selection_dll and 1 of selection_folders_*
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

selection_dll and 1 of selection_folders_*

Stage 1: selection_dll

selection_dll:
    ImageLoaded|endswith: '\clfs.sys'

Stage 2: selection_folders_1

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

Stage 3: selection_folders_2

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

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
Imagematch
  • :\Perflogs\ corpus 10 (sigma 10)
  • :\Users\ corpus 3 (sigma 3)
  • :\Users\Public\ corpus 15 (sigma 15)
  • \Contacts\ corpus 5 (sigma 5)
  • \Favorites\ corpus 6 (sigma 6)
  • \Favourites\ corpus 5 (sigma 5)
  • \Pictures\ corpus 5 (sigma 5)
  • \Temporary Internet corpus 2 (sigma 2)
  • \Windows\Temp\ corpus 8 (sigma 8)
ImageLoadedends_with
  • \clfs.sys