Detectionmediumtest
Suspicious IIS URL GlobalRules Rewrite Via AppCmd
Detects usage of "appcmd" to create new global URL rewrite rules. This behaviour has been observed being used by threat actors to add new rules so they can access their webshells.
Convert In Phoenix Studio
Open this Sigma rule in the converter with the YAML preloaded and ready for backend selection.
Launch
Nasreddine Bencherchali (Nextron Systems)Created Sun Jan 227c8af9b2-dcae-41a2-a9db-b28c288b5f08windows
Log Source
WindowsProcess Creation
ProductWindows← raw: windows
CategoryProcess Creation← raw: process_creation
Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.
Detection Logic
Detection Logic2 selectors
detection:
selection_img:
- Image|endswith: '\appcmd.exe'
- OriginalFileName: 'appcmd.exe'
selection_cli:
CommandLine|contains|all:
- 'set'
- 'config'
- 'section:system.webServer/rewrite/globalRules'
- 'commit:'
condition: all of selection_*False Positives
Legitimate usage of appcmd to add new URL rewrite rules
MITRE ATT&CK
Tactics
Rule Metadata
Rule ID
7c8af9b2-dcae-41a2-a9db-b28c288b5f08
Status
test
Level
medium
Type
Detection
Created
Sun Jan 22
Path
rules/windows/process_creation/proc_creation_win_iis_appcmd_susp_rewrite_rule.yml
Raw Tags
attack.defense-evasion