Microsoft IIS Service Account Credential Access via AppCmd
Attackers may use the native AppCmd utility to extract sensitive IIS application pool identity credentials from server configuration files.
Triage facts
Revision 1- Applicability
- Internet Information Services (IIS)
- Evidence
- Unknown
- Severity
- High
- Action
- Elevated
- Sources
- 2 public sources
- Freshness
- Revision 1Nov 10, 02:51 UTC
- Detection
- 1 rule
- Source quality
- B2Likely
Adversaries can leverage the Internet Information Services (IIS) administrative tool, AppCmd.exe, to query application pool configurations. By specifically requesting the output of configuration sections in XML or text format, attackers can reveal sensitive credentials stored in plain text or decryptable formats, facilitating lateral movement or privilege escalation from within a DMZ environment.
Impact
Successful execution allows an attacker to obtain the service account credentials used by IIS application pools, potentially leading to unauthorized access to linked databases, file shares, or further compromise of the host and internal network.
Recommendation
- Deploy the provided Sigma rule to monitor for suspicious command-line patterns involving AppCmd.
- Audit existing IIS application pool configurations to ensure they do not store sensitive information that is easily accessible.
- Restrict the use of administrative utilities like AppCmd.exe to authorized system administrators only.
- Implement process monitoring to identify and block unauthorized or anomalous execution of AppCmd.exe.
Immediate actions
Deploy the provided Sigma rule to SIEM
Threat Hunt
Identify historical usage of appcmd.exe with /config or /xml flags
Data: Process creation logs (Event ID 1)
Detection coverage 1
Detect Microsoft IIS AppCmd Credential Access
highDetects usage of AppCmd.exe to list application pool configuration data that may contain service account passwords.
Detection queries are available on the platform. Get full rules →