Detection rules › Sigma

HackTool - SysmonEnte Execution

Status
test
Severity
high
Log source
product windows, category process_access
Author
Florian Roth (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects the use of SysmonEnte, a tool to attack the integrity of Sysmon

MITRE ATT&CK coverage

Event coverage

ProviderEventTitle
SysmonEvent ID 10ProcessAccess

Rule body yaml

title: HackTool - SysmonEnte Execution
id: d29ada0f-af45-4f27-8f32-f7b77c3dbc4e
status: test
description: Detects the use of SysmonEnte, a tool to attack the integrity of Sysmon
references:
    - https://codewhitesec.blogspot.com/2022/09/attacks-on-sysmon-revisited-sysmonente.html
    - https://github.com/codewhitesec/SysmonEnte/
    - https://github.com/codewhitesec/SysmonEnte/blob/fe267690fcc799fbda15398243615a30451d9099/screens/1.png
author: Florian Roth (Nextron Systems)
date: 2022-09-07
modified: 2023-11-28
tags:
    - attack.defense-impairment
    - attack.t1685.001
logsource:
    category: process_access
    product: windows
detection:
    selection_sysmon:
        TargetImage|contains:
            - ':\Windows\Sysmon.exe'
            - ':\Windows\Sysmon64.exe'
        GrantedAccess: '0x1400'
    selection_calltrace:
        CallTrace: 'Ente'
    filter_main_generic:
        SourceImage|contains:
            - ':\Program Files (x86)\'
            - ':\Program Files\'
            - ':\Windows\System32\'
            - ':\Windows\SysWOW64\'
    filter_main_msdefender:
        SourceImage|contains: ':\ProgramData\Microsoft\Windows Defender\Platform\'
        SourceImage|endswith: '\MsMpEng.exe'
    condition: ( selection_sysmon and not 1 of filter_main_* ) or selection_calltrace
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

( selection_sysmon and not 1 of filter_main_* ) or selection_calltrace

Stage 1: selection_sysmon

selection_sysmon:
    TargetImage|contains:
        - ':\Windows\Sysmon.exe'
        - ':\Windows\Sysmon64.exe'
    GrantedAccess: '0x1400'

Stage 2: not filter_main_*

filter_main_generic:
    SourceImage|contains:
        - ':\Program Files (x86)\'
        - ':\Program Files\'
        - ':\Windows\System32\'
        - ':\Windows\SysWOW64\'
filter_main_msdefender:
    SourceImage|contains: ':\ProgramData\Microsoft\Windows Defender\Platform\'
    SourceImage|endswith: '\MsMpEng.exe'

Stage 3: selection_calltrace

selection_calltrace:
    CallTrace: 'Ente'

Exclusions

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

FieldKindExcluded values
SourceImageends_with\MsMpEng.exe
SourceImagematch:\ProgramData\Microsoft\Windows Defender\Platform\
SourceImagematch:\Program Files (x86)\
SourceImagematch:\Program Files\
SourceImagematch:\Windows\SysWOW64\
SourceImagematch:\Windows\System32\

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
CallTraceeq
  • Ente
GrantedAccesseq
  • 0x1400
TargetImagematch
  • :\Windows\Sysmon.exe
  • :\Windows\Sysmon64.exe