Detection rules › Sigma

Suspicious IIS Module Registration

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

Detects a suspicious IIS module registration as described in Microsoft threat report on IIS backdoors

MITRE ATT&CK coverage

Event coverage

Rule body yaml

title: Suspicious IIS Module Registration
id: 043c4b8b-3a54-4780-9682-081cb6b8185c
status: test
description: Detects a suspicious IIS module registration as described in Microsoft threat report on IIS backdoors
references:
    - https://www.microsoft.com/security/blog/2022/07/26/malicious-iis-extensions-quietly-open-persistent-backdoors-into-servers/
author: Florian Roth (Nextron Systems), Microsoft (idea)
date: 2022-08-04
modified: 2023-01-23
tags:
    - attack.persistence
    - attack.t1505.004
logsource:
    category: process_creation
    product: windows
detection:
    selection_parent:
        ParentImage|endswith: '\w3wp.exe'
    selection_cli_1:
        CommandLine|contains: 'appcmd.exe add module'
    selection_cli_2:
        CommandLine|contains: ' system.enterpriseservices.internal.publish'
        Image|endswith: '\powershell.exe'
    selection_cli_3:
        CommandLine|contains|all:
            - 'gacutil'
            - ' /I'
    condition: selection_parent and 1 of selection_cli_*
falsepositives:
    - Administrative activity
level: high

Stages and Predicates

Stage 0: condition

selection_parent and 1 of selection_cli_*

Stage 1: selection_parent

selection_parent:
    ParentImage|endswith: '\w3wp.exe'

Stage 2: selection_cli_1

selection_cli_1:
    CommandLine|contains: 'appcmd.exe add module'

Stage 3: selection_cli_2

selection_cli_2:
    CommandLine|contains: ' system.enterpriseservices.internal.publish'
    Image|endswith: '\powershell.exe'

Stage 4: selection_cli_3

selection_cli_3:
    CommandLine|contains|all:
        - 'gacutil'
        - ' /I'

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
  • /I corpus 2 (sigma 2)
  • system.enterpriseservices.internal.publish
  • appcmd.exe add module
  • gacutil
Imageends_with
  • \powershell.exe corpus 182 (sigma 182)
ParentImageends_with
  • \w3wp.exe corpus 12 (sigma 12)