Detectionhightest

Invoke-Obfuscation Via Use MSHTA

Detects Obfuscated Powershell via use MSHTA in Scripts

Open in Detection LabConvert ruleBuild Package
Nikita Nazarov, oscd.communityCreated 2020-10-08Updated 2022-03-08ac20ae82-8758-4f38-958e-b44a3140ca88windows
Log Source
WindowsProcess Creation
ProductWindows← raw: windows
CategoryProcess Creation← raw: process_creation

Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.

Detection Logic
Detection Logic1 selector
detection:
    selection:
        CommandLine|contains|all:
            - 'set'
            - '&&'
            - 'mshta'
            - 'vbscript:createobject'
            - '.run'
            - '(window.close)'
    condition: selection
False Positives
Unknown

False positive likelihood has not been assessed. Additional context may be needed during triage.

Rule Metadata
Rule ID
ac20ae82-8758-4f38-958e-b44a3140ca88
Status
test
Level
high
Type
Detection
Created
2020-10-08
Modified
2022-03-08
Path
rules/windows/process_creation/proc_creation_win_hktl_invoke_obfuscation_via_use_mhsta.yml
Raw Tags
attack.stealthattack.t1027attack.executionattack.t1059.001
View on GitHub