{"id":"e32f92d1-523e-49c3-9374-bdb13b46a3ba","title":"Suspicious Mshta.EXE Execution Patterns","description":"Detects suspicious mshta process execution patterns","author":"Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)","status":"test","level":"high","date":"2021-07-17","modified":"2023-02-21","tags":["attack.execution","attack.t1106"],"technique_ids":["T1106"],"logsource":{"category":"process_creation","product":"windows"},"falsepositives":["Unknown"],"references":["https://en.wikipedia.org/wiki/HTML_Application","https://www.echotrail.io/insights/search/mshta.exe","https://app.any.run/tasks/34221348-072d-4b70-93f3-aa71f6ebecad/"],"source_path":"rules/windows/process_creation/proc_creation_win_mshta_susp_pattern.yml","source_sha256":"cbae50ef58ad72a5f1c675f5cf64cab9453b81337a424282287cdf077b611ba7","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_mshta_susp_pattern.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Suspicious Mshta.EXE Execution Patterns\nid: e32f92d1-523e-49c3-9374-bdb13b46a3ba\nstatus: test\ndescription: Detects suspicious mshta process execution patterns\nreferences:\n    - https://en.wikipedia.org/wiki/HTML_Application\n    - https://www.echotrail.io/insights/search/mshta.exe\n    - https://app.any.run/tasks/34221348-072d-4b70-93f3-aa71f6ebecad/\nauthor: Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)\ndate: 2021-07-17\nmodified: 2023-02-21\ntags:\n    - attack.execution\n    - attack.t1106\nlogsource:\n    category: process_creation\n    product: windows\ndetection:\n    selection_img:\n        - Image|endswith: '\\mshta.exe'\n        - OriginalFileName: 'MSHTA.EXE'\n    selection_susp:\n        # Suspicious parents\n        ParentImage|endswith:\n            - '\\cmd.exe'\n            - '\\cscript.exe'\n            - '\\powershell.exe'\n            - '\\pwsh.exe'\n            - '\\regsvr32.exe'\n            - '\\rundll32.exe'\n            - '\\wscript.exe'\n        # Suspicious folders\n        CommandLine|contains:\n            - '\\AppData\\Local\\'\n            - 'C:\\ProgramData\\'\n            - 'C:\\Users\\Public\\'\n            - 'C:\\Windows\\Temp\\'\n    filter_img:\n        # Filter legit Locations\n        - Image|startswith:\n              - 'C:\\Windows\\System32\\'\n              - 'C:\\Windows\\SysWOW64\\'\n        # Suspicious extensions\n        - CommandLine|contains:\n              - '.htm'\n              - '.hta'\n        # Filter simple execution\n        - CommandLine|endswith:\n              - 'mshta.exe'\n              - 'mshta'\n    condition: all of selection_* or (selection_img and not filter_img)\nfalsepositives:\n    - Unknown\nlevel: high\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1106","id":"T1106","name":"Native API","page":"techniques/enterprise/T1106/"}],"data_path":"data/detection-rules/e32f92d1-523e-49c3-9374-bdb13b46a3ba.json","kind":"sigma"}
