Server Software Component: IIS Components T1505.004

Tactic: Persistence

Adversaries may install malicious components that run on Internet Information Services (IIS) web servers to establish persistence. IIS provides several mechanisms to extend the functionality of the web servers. For example, Internet Server Application Programming Interface (ISAPI) extensions and filters can be installed to examine and/or modify incoming and outgoing IIS web requests. Extensions and filters are deployed as DLL files that export three functions: Get{Extension/Filter}Version, Http{Extension/Filter}Proc, and (optionally) Terminate{Extension/Filter}. IIS modules may also be installed to extend IIS web servers.

Events covered

8 catalog events are tagged with this technique by at least one rule.

Authoring guide

Patterns shared across the 22 rules above: which fields they filter on, what specific values they look for, and what they exclude. The catalog normalizes field names across vendors so Sigma's Image, Elastic's process.name, and Splunk's process_name collapse into one row. Each rule contributes at most once per row.

Fields filtered most (21 distinct)

The fields most rules look at when detecting this technique. The How column shows the operators authors use (eq, wildcard, regex_match, match) and how often each appears. Sample values are concrete examples to start from, not an exhaustive list.

FieldRulesHowSample values
EventID7eq 74104, 4688, 2282, 29
CommandLine6contains 4, in 3 /i, system.enterpriseservices.internal.publish, *-i *, */i *, *dontlog:true*
ScriptBlockText5contains 3, in 2.dll, *dontlog*, *enable-webglobalmodule*, *false*, *get-webconfigurationproperty*
Configuration4contains 2, ends_with 1, eq 1/system.webServer/httpLogging/@dontLog, /system.webserver/modules/add, /system.webserver/modules/remove, @logTargetW3C
Details3eq 2, contains 1AnonymousAuthenticationModule, CustomErrorModule, DefaultDocumentModule, etw, true
Image3ends_with 3\appcmd.exe, \gacutil.exe, \powershell.exe
process_name3eq 3appcmd.exe, gacutil.exe
Creator_Process_Name2regex_match 2(?i)(w3wp|httpd|nginx|php-cgi|tomcat|UMWorkerProcess)\.exe, (?i)w3wp
EventData2contains 2.dll, -image, gacinstall, new-webglobalmodule, system.reflection.assembly
New_Process_Name2regex_match 2(?i)(cmd|powershell|pwsh|csc|sh|bash|bitsadmin)\.exe, (?i)cmd\.exe|powershell(\_ISE)?\.exe|pwsh\.exe|csc\.exe
Payload2contains 2.dll, -image, gacinstall, new-webglobalmodule, system.reflection.assembly
Type2eq 2
c_process_name2lt 225
sourcetype2eq 2IIS:Configuration:Operational, Pwsh:InstalledIISModules
Channel1eq 1, in 1

Top indicator values (80 distinct)

Specific (field, operator, value) combinations the rules check for, ranked by how many rules under this technique use each one. The Corpus reach column counts how many rules across the entire catalog (any technique) check the same combination. High numbers point to widely-used indicators that are likely noisy on their own; combine them with another condition for useful signal. Blank means the combination is specific to rules under this technique. Click a value to expand the rules under this technique that use it.

FieldKindValueRules (here)Corpus reach
EventIDeq
4104
3268
EventIDeq
4688
2313
EventDatacontains
.dll
23
Payloadcontains
.dll
23
ScriptBlockTextcontains
.dll
23
c_process_namelt
25
22
process_nameeq
appcmd.exe
24
CommandLinecontains
/i
12
CommandLinecontains
system.enterpriseservices.internal.publish
1
CommandLinecontains
.dll
116
CommandLinecontains
appcmd.exe add module
1
CommandLinecontains
gacutil
1
CommandLinecontains
image
1
CommandLinecontains
module
12
CommandLinein
*-i *
12
CommandLinein
*/i *
1
CommandLinein
*dontlog:true*
1
CommandLinein
*httplogging*
1
CommandLinein
*install *
1
CommandLinein
*module *
1
Configurationcontains
/system.webserver/modules/add
1
Configurationcontains
/system.webserver/modules/remove
1
Configurationends_with
@logTargetW3C
1
Configurationeq
/system.webServer/httpLogging/@dontLog
1
Creator_Process_Nameregex_match
(?i)(w3wp|httpd|nginx|php-cgi|tomcat|UMWorkerProcess)\.exe
1
Creator_Process_Nameregex_match
(?i)w3wp
1
CurrentDirectorycontains
:\\windows\\system32\\inetsrv\\
1
Detailscontains
etw
1
Detailseq
AnonymousAuthenticationModule
1
Detailseq
CustomErrorModule
1

Exclusions (16 distinct)

Field/operator/value combinations excluded by rules under this technique (top-level not() clauses), sorted by how many rules exclude each. These are the false-positive paths the community has learned to filter out. A new rule that ignores the high-count entries here will likely fire on the same noisy paths. Click a value to expand the rules under this technique that exclude it.

FieldKindValueRules excluding
parent_process_namein
iissetup.exe
2
parent_process_namein
msiexec.exe
2
Detailscontains
etw
1
Detailseq
AnonymousAuthenticationModule
1
Detailseq
CustomErrorModule
1
Detailseq
DefaultDocumentModule
1
Detailseq
DirectoryListingModule
1
Detailseq
FileCacheModule
1
Detailseq
HttpCacheModule
1
Detailseq
HttpLoggingModule
1
Detailseq
ProtocolSupportModule
1
Detailseq
RequestFilteringModule
1
Detailseq
StaticCompressionModule
1
Detailseq
StaticFileModule
1
Detailseq
TokenCacheModule
1

Rules under this technique

Every rule in the catalog tagged with this technique, grouped by vendor. Click a rule title for its full predicates, exclusions, and indicators.

Platform (all)
Domain (all)

Sigma 10 rules

Splunk 12 rules