Detection rules › Sigma
Suspicious IIS Module Registration
Detects a suspicious IIS module registration as described in Microsoft threat report on IIS backdoors
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Persistence | T1505.004 Server Software Component: IIS Components |
Event coverage
| Provider | Event | Title |
|---|---|---|
| Sysmon | Event ID 1 | Process creation |
| Security-Auditing | Event ID 4688 | A new process has been created. |
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.
| Field | Kind | Values |
|---|---|---|
CommandLine | match |
|
Image | ends_with |
|
ParentImage | ends_with |
|