Execution · Windows · LOLBAS
installutil.exe
InstallUtil
.NET installer tool shipped with the framework. It can run installer code in a .NET assembly, which is used to run managed payloads under a trusted, signed binary.
Legitimate use
Developers use it to install and uninstall .NET services and components.
Switches
Uninstall mode. Abuse often uses the uninstall path to run custom code.
MediumSets or disables the install log (logfile= with an empty value turns it off).
LowControls console logging.
InfoCommand lines to worry about
- High
InstallUtil running an assembly from a user path
InstallUtil runs installer or uninstaller code in a .NET assembly from a writable folder, often with logging off. Check the assembly's origin.
Detection regex
installutil(\.exe)?\s+.*\/logfile=\s.*\/logtoconsole=false.*\/u\b|installutil(\.exe)?\s+.*\/u\b.*\\(temp|appdata|programdata|public)\\
Where it is recorded
- Security4688Process creation with the full command line, when command-line auditing is enabled.
- Sysmon1Process creation with command line, hashes and parent process.
Community detections
8 SigmaHQ rules for installutil.exe. The explainer checks every pasted command line against all of them.
- HighHTML Help HH.EXE Suspicious Child Process
Detects a suspicious child process of a Microsoft HTML Help (HH.exe)
T1047T1059.001T1059.003T1059.005by Maxim Pavlunin, Nasreddine Bencherchali (Nextron Systems)
- HighPotential PowerShell Execution Via DLL
Detects potential PowerShell execution from a DLL instead of the usual PowerShell process as seen used in PowerShdll. This detection assumes that PowerShell commands are passed via the CommandLine.
T1218.011by Markus Neis, Nasreddine Bencherchali (Nextron Systems)
- HighSuspicious Microsoft Office Child Process
Detects a suspicious process spawning from one of the Microsoft Office suite products (Word, Excel, PowerPoint, Publisher, Visio, etc.)
T1047T1204.002T1218.010by Florian Roth (Nextron Systems), Markus Neis, FPT.EagleEye Team, Vadim Khrykov, Cyb3rEng, Michael Haag, Christopher Peacock @securepeacock, @scythe_io
- HighSuspicious Microsoft OneNote Child Process
Detects suspicious child processes of the Microsoft OneNote application. This may indicate an attempt to execute malicious embedded objects from a .one file.
T1566T1566.001by Tim Rauch (Nextron Systems), Nasreddine Bencherchali (Nextron Systems), Elastic (idea)
- MediumFile Download Via InstallUtil.EXE
Detects use of .NET InstallUtil.exe in order to download arbitrary files. The files will be written to "%LOCALAPPDATA%\Microsoft\Windows\INetCache\IE\"
T1218by Nasreddine Bencherchali (Nextron Systems)
- MediumLOLBIN Execution From Abnormal Drive
Detects LOLBINs executing from an abnormal or uncommon drive such as a mounted ISO.
by Christopher Peacock '@securepeacock', SCYTHE '@scythe_io', Angelo Violetti - SEC Consult '@angelo_violetti', Aaron Herman
- MediumPotential Defense Evasion Via Binary Rename
Detects the execution of a renamed binary often used by attackers or malware leveraging new Sysmon OriginalFileName datapoint.
T1036.003by Matthew Green @mgreen27, Ecco, James Pemberton @4A616D6573, oscd.community, Andreas Hunkeler (@Karneades)
- MediumSuspicious Execution of InstallUtil Without Log
Uses the .NET InstallUtil.exe application in order to execute image without log
by frack113
Rules from SigmaHQ (rules/windows/process_creation), Detection Rule License (DRL) 1.1. Each rule links to its source and credits its authors.