Sigma rule: Invoke-Obfuscation Via Use MSHTA

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-b1796152ff5a, updated 2022-03-08T00:00:00.000Z.

Rule

Title
Invoke-Obfuscation Via Use MSHTA
Status
test
Level
high
Author
Nikita Nazarov, oscd.community
Date
2020-10-08
Modified
2022-03-08
File
rules/windows/process_creation/proc_creation_win_hktl_invoke_obfuscation_via_use_mhsta.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects Obfuscated Powershell via use MSHTA in Scripts

Log source

product
windows
category
process_creation

Detection

selection:
    CommandLine|contains|all:
        - 'set'
        - '&&'
        - 'mshta'
        - 'vbscript:createobject'
        - '.run'
        - '(window.close)'
condition: selection

False positives (as the rule lists them)

  • Unknown

Tags

  • attack.stealth
  • attack.t1027
  • attack.execution
  • attack.t1059.001

MITRE ATT&CK ids this rule names

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_hktl_invoke_obfuscation_via_use_mhsta.yml

Sources and licences

  • SigmaHQ

    "Invoke-Obfuscation Via Use MSHTA" by Nikita Nazarov, oscd.community (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_hktl_invoke_obfuscation_via_use_mhsta.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Invoke-Obfuscation Via Use MSHTA",
entity page, dataset version ref-b1796152ff5a, updated 2022-03-08T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/ac20ae82-8758-4f38-958e-b44a3140ca88 (accessed 2026-11-03).
Underlying source: SigmaHQ rule ac20ae82-8758-4f38-958e-b44a3140ca88, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.