Suspicious Execution of InstallUtil with Suppressed Logging
Adversaries leverage the native .NET InstallUtil.exe utility with specific flags to execute arbitrary code while bypassing standard logging and console output mechanisms.
InstallUtil.exe is a command-line tool included with the .NET Framework designed for installing and uninstalling server resources by executing installer components in specified assemblies. Threat actors utilize this utility as a living-off-the-land (LotL) binary to execute arbitrary code. By specifically invoking InstallUtil with the '/logfile=' parameter set to a blank value and '/LogToConsole=false', attackers suppress execution logs and console feedback, making the activity more difficult to track through standard administrative monitoring. This technique has been observed in various campaigns, including persistent threats leveraging sophisticated modular malware components.
Attack Chain
- The attacker gains initial access through a separate exploit or phishing payload.
- The attacker drops a malicious .NET assembly file onto the target file system.
- The attacker locates the .NET Framework installation directory.
- The attacker initiates the execution of 'InstallUtil.exe' via 'cmd.exe' or 'powershell.exe'.
- The attacker passes the '/logfile=' and '/LogToConsole=false' flags to ensure the utility executes the assembly silently.
- InstallUtil loads the malicious assembly into memory and executes the installer component code.
- The final objective (e.g., C2 beaconing, payload persistence, or data exfiltration) is achieved via the context of the running InstallUtil process.
Impact
Successful exploitation allows for the execution of arbitrary, unsigned, or malicious code within the context of a trusted system binary. This technique provides a stealthy mechanism to bypass traditional monitoring, potentially leading to persistent unauthorized access or full system compromise depending on the privileges of the executing user.
Recommendation
Deploy the provided Sigma rule to detect the specific combination of command-line arguments indicative of logging suppression. Ensure Sysmon Process Creation events (Event ID 1) are enabled and ingested into the SIEM. Prioritize the investigation of any process spawning from 'InstallUtil.exe' that interacts with suspicious network endpoints or unsigned DLLs.
Immediate actions
Deploy the provided Sigma rule to SIEM.
Threat Hunt
Search for historical process creation events involving InstallUtil.exe with empty /logfile arguments.
Data: Process creation telemetry
Detection coverage 1
Suspicious Execution of InstallUtil Without Log
mediumDetects the use of InstallUtil.exe with flags intended to suppress logging and console output, a technique often used for stealthy code execution.
Detection queries are available on the platform. Get full rules →