InstallUtil registers an assembly from a user-writable or remote path
AN0388 asks for InstallUtil.exe run with arguments naming a non-standard or attacker-supplied assembly, and names `AssemblyPathRegex` — "suspicious assemblies, e.g. in temp folders, user profiles" — as the knob that carries the discrimination. This rule implements that on Sysmon EventID 1: the process is InstallUtil.exe and its command line either points at an assembly in a directory an unprivileged user can write to or on a UNC share, or carries the empty-log plus console-suppressed argument pair that the published application control bypass uses. Both directory list and argument pair are authored, populated into MITRE's knob rather than supplied by it. Note the UNC term is written with four backslashes in the YAML because Sigma reads `\\` as one literal backslash — written with two it would degrade to "contains a backslash", which every Windows path satisfies. Two limits: a renamed copy of InstallUtil.exe defeats the filename match, and an assembly dropped into a legitimate application directory before registration matches neither branch, so this rule sees the sloppy staging and not the careful one. The other three sources in the brief are not used — the file-creation leg (EventID 11) and the module-load leg (EventID 7) only become evidence when joined to the execution inside MITRE's `TimeWindow`, which is a cross-event correlation Sigma cannot express, and PowerShell 4103/4104 sees an InstallUtil invocation only when it happened to be typed into PowerShell. Prerequisite: Sysmon is not present in a default install; where this category is fed by Security 4688 instead, both *Audit Process Creation* and the separate *Include command line in process creation events* policy must be enabled and the field names differ — zero rows from an unconfigured feed reads as quiet when it means blind. UNVERIFIED AS AUTHORED — derived from MITRE ATT&CK DET0138, not hand-written and not tested by its author. Any lab result is on this rule's own page.Full descriptionShow less
The detection
The 4 SIEM queries below are previews produced by Siemphony’s own translator, not pySigma, and none has been executed against a real backend — review before you deploy.
detection.yml
title: InstallUtil registers an assembly from a user-writable or remote pathid: ddf4f1ef-da1d-4a4f-8a18-27e979305607status: experimentaldescription: | AN0388 asks for InstallUtil.exe run with arguments naming a non-standard or attacker-supplied assembly, and names `AssemblyPathRegex` — "suspicious assemblies, e.g. in temp folders, user profiles" — as the knob that carries the discrimination. This rule implements that on Sysmon EventID 1: the process is InstallUtil.exe and its command line either points at an assembly in a directory an unprivileged user can write to or on a UNC share, or carries the empty-log plus console-suppressed argument pair that the published application control bypass uses. Both directory list and argument pair are authored, populated into MITRE's knob rather than supplied by it. Note the UNC term is written with four backslashes in the YAML because Sigma reads `\\` as one literal backslash — written with two it would degrade to "contains a backslash", which every Windows path satisfies. Two limits: a renamed copy of InstallUtil.exe defeats the filename match, and an assembly dropped into a legitimate application directory before registration matches neither branch, so this rule sees the sloppy staging and not the careful one. The other three sources in the brief are not used — the file-creation leg (EventID 11) and the module-load leg (EventID 7) only become evidence when joined to the execution inside MITRE's `TimeWindow`, which is a cross-event correlation Sigma cannot express, and PowerShell 4103/4104 sees an InstallUtil invocation only when it happened to be typed into PowerShell. Prerequisite: Sysmon is not present in a default install; where this category is fed by Security 4688 instead, both *Audit Process Creation* and the separate *Include command line in process creation events* policy must be enabled and the field names differ — zero rows from an unconfigured feed reads as quiet when it means blind. UNVERIFIED AS AUTHORED — derived from MITRE ATT&CK DET0138, not hand-written and not tested by its author. Any lab result is on this rule's own page.references: - https://attack.mitre.org/techniques/T1218/004 - https://attack.mitre.org/detectionstrategies/DET0138author: Siemphony pipeline (machine-derived from MITRE ATT&CK v19.2)date: 2026-08-16tags: - attack.defense-evasion - attack.t1218.004logsource: category: process_creation product: windowsdetection: selection_installutil: Image|endswith: '\InstallUtil.exe' selection_suspect_path: CommandLine|contains: - '\AppData\Local\Temp\' - '\AppData\Roaming\' - '\Windows\Temp\' - '\ProgramData\' - '\Users\Public\' - '\Downloads\' - '\PerfLogs\' - '\\\\' selection_suspect_args: CommandLine|contains|all: - 'logfile=' - 'LogToConsole=false' condition: selection_installutil and 1 of selection_suspect*falsepositives: - "Product installers and MSI custom actions that register a .NET Windows service. These stage the assembly under `%TEMP%` or `%ProgramData%` and call InstallUtil with `/logfile=` and `/LogToConsole=false` to keep the setup UI clean, which satisfies both branches at once and is the largest benign source here." - "Software distribution and configuration management agents that run an install or uninstall step from a cached package directory under `\\ProgramData\\` or from a UNC deployment share, which is exactly the remote-path branch." - "Developer and build-agent workstations, where InstallUtil is run by hand or by a post-build step against an assembly sitting in a project folder under the user profile." - "Line-of-business application updaters that unpack a new service assembly into `\\AppData\\Local\\Temp\\`, unregister the old one and register the new one on every update cycle."level: mediumSentinel · KQL
Run this as a search.
DeviceProcessEvents| where (FolderPath endswith "\\InstallUtil.exe" and ((ProcessCommandLine contains "\\AppData\\Local\\Temp\\" or ProcessCommandLine contains "\\AppData\\Roaming\\" or ProcessCommandLine contains "\\Windows\\Temp\\" or ProcessCommandLine contains "\\ProgramData\\" or ProcessCommandLine contains "\\Users\\Public\\" or ProcessCommandLine contains "\\Downloads\\" or ProcessCommandLine contains "\\PerfLogs\\" or ProcessCommandLine contains "\\\\") or (ProcessCommandLine contains "logfile=" and ProcessCommandLine contains "LogToConsole=false")))
Splunk · SPL
Run this as a search.
index=* (Image="*\\InstallUtil.exe" AND ((CommandLine="*\\AppData\\Local\\Temp\\*" OR CommandLine="*\\AppData\\Roaming\\*" OR CommandLine="*\\Windows\\Temp\\*" OR CommandLine="*\\ProgramData\\*" OR CommandLine="*\\Users\\Public\\*" OR CommandLine="*\\Downloads\\*" OR CommandLine="*\\PerfLogs\\*" OR CommandLine="*\\\\*") OR (CommandLine="*logfile=*" AND CommandLine="*LogToConsole=false*")))Elastic · ES|QL
Run this as a search.
FROM logs-*| WHERE (TO_LOWER(process.executable) LIKE "*\\\\installutil.exe" AND ((TO_LOWER(process.command_line) LIKE "*\\\\appdata\\\\local\\\\temp\\\\*" OR TO_LOWER(process.command_line) LIKE "*\\\\appdata\\\\roaming\\\\*" OR TO_LOWER(process.command_line) LIKE "*\\\\windows\\\\temp\\\\*" OR TO_LOWER(process.command_line) LIKE "*\\\\programdata\\\\*" OR TO_LOWER(process.command_line) LIKE "*\\\\users\\\\public\\\\*" OR TO_LOWER(process.command_line) LIKE "*\\\\downloads\\\\*" OR TO_LOWER(process.command_line) LIKE "*\\\\perflogs\\\\*" OR TO_LOWER(process.command_line) LIKE "*\\\\\\\\*") OR (TO_LOWER(process.command_line) LIKE "*logfile=*" AND TO_LOWER(process.command_line) LIKE "*logtoconsole=false*")))
Wazuh · XML rule
Deploy to your manager — this is a rule, not a search.
<group name="sigma,windows,process_creation,"> <!-- Rule ids must be unique on your manager; 100000+ is the user range. --> <rule id="100000" level="7"> <!-- Set <if_sid> to the decoder/base rule for windows so this only evaluates relevant events. --> <field name="Image" type="pcre2">(?i)\\InstallUtil\.exe$</field> <field name="CommandLine" type="pcre2">(?i)((\\AppData\\Local\\Temp\\|\\AppData\\Roaming\\|\\Windows\\Temp\\|\\ProgramData\\|\\Users\\Public\\|\\Downloads\\|\\PerfLogs\\|\\\\)|(?=.*(?:logfile=))(?=.*(?:LogToConsole=false)).*)</field> <description>InstallUtil registers an assembly from a user-writable or remote path</description> <mitre> <id>T1218.004</id> </mitre> </rule></group>
Verdicts · reactions · comments
Community
Verdicts from engineers who actually deployed it, and the conversation around it.
Nobody has run this in a real environment and said what happened.
Verdicts from engineers who deployed it
0 castNo verdicts reported yet. The first one is worth more than the tenth — say what you ran it against.
Log in to report a verdict.
Log in to join the discussion.
No comments yet. Someone who deploys this will have something to say about it.