Detectionhightest
Invoke-Obfuscation Via Use MSHTA - PowerShell
Detects Obfuscated Powershell via use MSHTA in Scripts
Convert In Phoenix Studio
Open this Sigma rule in the converter with the YAML preloaded and ready for backend selection.
Launch
Nikita Nazarov, oscd.communityCreated Thu Oct 08Updated Tue Nov 29e55a5195-4724-480e-a77e-3ebe64bd3759windows
Log Source
WindowsPowerShell Script
ProductWindows← raw: windows
CategoryPowerShell Script← raw: ps_script
Definition
Requirements: Script Block Logging must be enabled
Detection Logic
Detection Logic1 selector
detection:
selection_4104:
ScriptBlockText|contains|all:
- 'set'
- '&&'
- 'mshta'
- 'vbscript:createobject'
- '.run'
- '(window.close)'
condition: selection_4104False Positives
Unknown
False positive likelihood has not been assessed. Additional context may be needed during triage.
References
MITRE ATT&CK
Techniques
Sub-techniques
Rule Metadata
Rule ID
e55a5195-4724-480e-a77e-3ebe64bd3759
Status
test
Level
high
Type
Detection
Created
Thu Oct 08
Modified
Tue Nov 29
Author
Path
rules/windows/powershell/powershell_script/posh_ps_invoke_obfuscation_via_use_mhsta.yml
Raw Tags
attack.defense-evasionattack.t1027attack.executionattack.t1059.001