Remote MSI Package Installation via MSIEXEC
Description
Identifies the execution of the built-in Windows Installer, MSIEXEC, to install a remote package. Adversaries may abuse msiexec.exe to launch local or network accessible MSI files.
Query · eql
sequence with maxspan=1m
[registry where process.name : "msiexec.exe" and
registry.value : "InstallSource" and registry.data.strings : "http*" and
not registry.data.strings : "https://statics.teams.cdn.office.net/*"]
[process where event.action == "start" and user.id : ("S-1-5-21*", "S-1-12-*") and
descendant of [process where process.name : "msiexec.exe"] and
not (process.executable : ("?:\\Program Files (x86)\\*.exe", "?:\\Program Files\\*.exe") and process.code_signature.trusted == true) and
not process.executable : ("?:\\Windows\\System32\\MsiExec.exe", "?:\\Windows\\syswow64\\MsiExec.exe", "?:\\WINDOWS\\Installer\\MSI*.tmp",
"C:\\Program Files (x86)\\AMS Services\\TransactNOW\\OALaunch.exe") and
not (process.code_signature.subject_name : ("Ellie Mae, Inc.", "Chatgenie LLC") and process.code_signature.trusted == true)]