Windows IIS Components Get-WebGlobalModule Module Query
Description
The following analytic identifies the execution of the PowerShell cmdlet Get-WebGlobalModule, which lists all IIS Modules installed on a system. It leverages PowerShell input data to detect this activity by capturing the module names and the image paths of the DLLs. This activity is significant for a SOC because it can indicate an attempt to enumerate installed IIS modules, which could be a precursor to exploiting vulnerabilities or misconfigurations. If confirmed malicious, this could allow an attacker to gain insights into the web server's configuration, potentially leading to further exploitation or privilege escalation.
Query · spl
`iis_get_webglobalmodule`
| stats count min(_time) as firstTime max(_time) as lastTime
BY host name image
| rename host as dest
| `security_content_ctime(firstTime)`
| `security_content_ctime(lastTime)`
| `windows_iis_components_get_webglobalmodule_module_query_filter`
Implementation guide
You must ingest the PwSh cmdlet Get-WebGlobalModule in order to utilize this analytic. Follow https://gist.github.com/MHaggis/64396dfd9fc3734e1d1901a8f2f07040
Known false positives
- This analytic is meant to assist with hunting modules across a fleet of IIS servers. Filter and modify as needed.
Analyst notes
Known false positives: This analytic is meant to assist with hunting modules across a fleet of IIS servers. Filter and modify as needed.