Detection rules › Sigma

IIS Application Pool credential dumping

Status
experimental
Severity
high
Log source
product windows, category process_creation
Author
mdecrevoisier (adapted from Tim Rauch and Grzegorz Tworek feedback)
Source
github.com/mdecrevoisier/SIGMA-detection-rules

Detects scenarios where an attacker

MITRE ATT&CK coverage

TacticTechniques
Credential AccessT1003 OS Credential Dumping

Event coverage

ProviderEventTitle
SysmonEvent ID 1Process creation

Rule body yaml

title: IIS Application Pool credential dumping 
description: Detects scenarios where an attacker 
references:
- https://www.netspi.com/blog/technical/network-penetration-testing/decrypting-iis-passwords-to-break-out-of-the-dmz-part-1/
- https://www.netspi.com/blog/technical/network-penetration-testing/decrypting-iis-passwords-to-break-out-of-the-dmz-part-2/
- https://www.elastic.co/guide/en/security/current/microsoft-iis-service-account-password-dumped.html
- https://tdm.socprime.com/tdm/info/3n7KrfogcqRG/#sigma
- https://twitter.com/0gtweet/status/1588815661085917186
tags:
- attack.credential_access
- attack.t1003
author: mdecrevoisier (adapted from Tim Rauch and Grzegorz Tworek feedback)
status: experimental
logsource:
  category: process_creation
  product: windows
detection:
  selection_name:
    - Image|endswith: '\appcmd.exe'
    - OriginalFilename: 'appcmd.exe'
  selection_arg:
    CommandLine|contains|all:
      - 'list'
      - 'apppool' # can also be 'apppools'
    #CommandLine|contains: # use in case of too many false positives
      #- '/@'
      #- text
      #- password
      #- config
  condition: selection_name and selection_arg
falsepositives:
- Unknown
level: high

Stages and Predicates

Stage 0: condition

selection_name and selection_arg

Stage 1: selection_name

selection_name:
  - Image|endswith: '\appcmd.exe'
  - OriginalFilename: 'appcmd.exe'

Stage 2: selection_arg

selection_arg:
  CommandLine|contains|all:
    - 'list'
    - 'apppool'

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
  • apppool
  • list corpus 3 (sigma 2, splunk 1)
Imageends_with
  • \appcmd.exe corpus 6 (sigma 6)
OriginalFilenameeq
  • appcmd.exe corpus 7 (sigma 5, elastic 2)