Detection rules › Sigma

Potential CVE-2023-36874 Exploitation - Fake Wermgr.Exe Creation

Status
test
Severity
high
Log source
product windows, category file_event
Author
Nasreddine Bencherchali (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects the creation of a file named "wermgr.exe" being created in an uncommon directory. This could be a sign of potential exploitation of CVE-2023-36874.

MITRE ATT&CK coverage

TacticTechniques
ExecutionNo specific technique

Event coverage

ProviderEventTitle
SysmonEvent ID 11FileCreate

Rule body yaml

title: Potential CVE-2023-36874 Exploitation - Fake Wermgr.Exe Creation
id: ad0960eb-0015-4d16-be13-b3d9f18f1342
status: test
description: Detects the creation of a file named "wermgr.exe" being created in an uncommon directory. This could be a sign of potential exploitation of CVE-2023-36874.
references:
    - https://github.com/Wh04m1001/CVE-2023-36874
    - https://www.crowdstrike.com/blog/falcon-complete-zero-day-exploit-cve-2023-36874/
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-08-23
modified: 2025-01-13
tags:
    - attack.execution
    - cve.2023-36874
    - detection.emerging-threats
logsource:
    category: file_event
    product: windows
detection:
    selection:
        TargetFilename|endswith: '\wermgr.exe'
    filter_main_locations:
        TargetFilename|contains:
            - ':\$WINDOWS.~BT\NewOS\'
            - ':\$WinREAgent\' # From "wuauclt.exe"
            - ':\Windows\servicing\LCU\'
            - ':\Windows\System32\'
            - ':\Windows\SysWOW64\'
            - ':\Windows\WinSxS\'
            - ':\WUDownloadCache\' # Windows Update Download Cache
            - ':\Windows\SoftwareDistribution\Download\'
    condition: selection and not 1 of filter_main_*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_main_*

Stage 1: selection

selection:
    TargetFilename|endswith: '\wermgr.exe'

Stage 2: not filter_main_locations

filter_main_locations:
    TargetFilename|contains:
        - ':\$WINDOWS.~BT\NewOS\'
        - ':\$WinREAgent\'
        - ':\Windows\servicing\LCU\'
        - ':\Windows\System32\'
        - ':\Windows\SysWOW64\'
        - ':\Windows\WinSxS\'
        - ':\WUDownloadCache\'
        - ':\Windows\SoftwareDistribution\Download\'

Exclusions

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

FieldKindExcluded values
TargetFilenamematch:\$WINDOWS.~BT\NewOS\
TargetFilenamematch:\$WinREAgent\
TargetFilenamematch:\WUDownloadCache\
TargetFilenamematch:\Windows\SoftwareDistribution\Download\
TargetFilenamematch:\Windows\SysWOW64\
TargetFilenamematch:\Windows\System32\
TargetFilenamematch:\Windows\WinSxS\
TargetFilenamematch:\Windows\servicing\LCU\

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
TargetFilenameends_with
  • \wermgr.exe corpus 2 (sigma 2)