Detection rules › Sigma

Potential Defense Evasion Via Rename Of Highly Relevant Binaries

Status
test
Severity
high
Log source
category process_creation, product windows
Author
Matthew Green - @mgreen27, Florian Roth (Nextron Systems), frack113
Source
github.com/SigmaHQ/sigma

Detects the execution of a renamed binary often used by attackers or malware leveraging new Sysmon OriginalFileName datapoint.

Known false positives

  • Custom applications use renamed binaries adding slight change to binary name. Typically this is easy to spot and add to whitelist
  • PsExec installed via Windows Store doesn't contain original filename field (False negative)

MITRE ATT&CK coverage

Telemetry coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule body

title: Potential Defense Evasion Via Rename Of Highly Relevant Binaries
id: 0ba1da6d-b6ce-4366-828c-18826c9de23e
related:
    - id: 36480ae1-a1cb-4eaa-a0d6-29801d7e9142
      type: similar
    - id: 2569ed8c-1147-498a-9b8c-2ad3656b10ed # Renamed Rundll32 Specific
      type: derived
    - id: a7a7e0e5-1d57-49df-9c58-9fe5bc0346a2 # Renamed PsExec
      type: obsolete
    - id: d178a2d7-129a-4ba4-8ee6-d6e1fecd5d20 # Renamed PowerShell
      type: obsolete
    - id: d4d2574f-ac17-4d9e-b986-aeeae0dc8fe2 # Renamed Rundll32
      type: obsolete
status: test
description: Detects the execution of a renamed binary often used by attackers or malware leveraging new Sysmon OriginalFileName datapoint.
references:
    - https://mgreen27.github.io/posts/2019/05/12/BinaryRename.html
    - https://mgreen27.github.io/posts/2019/05/29/BinaryRename2.html
    - https://www.trendmicro.com/vinfo/hk-en/security/news/cybercrime-and-digital-threats/megacortex-ransomware-spotted-attacking-enterprise-networks
    - https://twitter.com/christophetd/status/1164506034720952320
    - https://threatresearch.ext.hp.com/svcready-a-new-loader-reveals-itself/
    - https://www.huntress.com/blog/malicious-browser-extention-crashfix-kongtuke
author: Matthew Green - @mgreen27, Florian Roth (Nextron Systems), frack113
date: 2019-06-15
modified: 2026-06-29
tags:
    - attack.stealth
    - attack.t1036.003
    - car.2013-05-009
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        - Description: 'Execute processes remotely'
        - Product: 'Sysinternals PsExec'
        - Description|startswith:
              - 'Windows PowerShell'
              - 'pwsh'
        - OriginalFileName:
              - 'certutil.exe'
              - 'cmstp.exe'
              - 'cscript.exe'
              - 'IE4UINIT.EXE'
              - 'finger.exe'
              - 'mshta.exe'
              - 'msiexec.exe'
              - 'msxsl.exe'
              - 'powershell_ise.exe'
              - 'powershell.exe'
              - 'psexec.c'        # old versions of psexec (2016 seen)
              - 'psexec.exe'
              - 'psexesvc.exe'
              - 'pwsh.dll'
              - 'reg.exe'
              - 'regsvr32.exe'
              - 'rundll32.exe'
              - 'WerMgr'
              - 'wmic.exe'
              - 'wscript.exe'
    filter:
        Image|endswith:
            - '\certutil.exe'
            - '\cmstp.exe'
            - '\cscript.exe'
            - '\ie4uinit.exe'
            - '\finger.exe'
            - '\mshta.exe'
            - '\msiexec.exe'
            - '\msxsl.exe'
            - '\powershell_ise.exe'
            - '\powershell.exe'
            - '\psexec.exe'
            - '\psexec64.exe'
            - '\psexec64a.exe'
            - '\PSEXESVC.exe'
            - '\pwsh.exe'
            - '\reg.exe'
            - '\regsvr32.exe'
            - '\rundll32.exe'
            - '\wermgr.exe'
            - '\wmic.exe'
            - '\wscript.exe'
    condition: selection and not filter
falsepositives:
    - Custom applications use renamed binaries adding slight change to binary name. Typically this is easy to spot and add to whitelist
    - PsExec installed via Windows Store doesn't contain original filename field (False negative)
level: high
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_renamed_binary_highly_relevant/info.yml

Stages and Predicates

Stage 0: condition

selection and not filter

Stage 1: selection

selection:
    - Description: 'Execute processes remotely'
    - Product: 'Sysinternals PsExec'
    - Description|startswith:
          - 'Windows PowerShell'
          - 'pwsh'
    - OriginalFileName:
          - 'certutil.exe'
          - 'cmstp.exe'
          - 'cscript.exe'
          - 'IE4UINIT.EXE'
          - 'finger.exe'
          - 'mshta.exe'
          - 'msiexec.exe'
          - 'msxsl.exe'
          - 'powershell_ise.exe'
          - 'powershell.exe'
          - 'psexec.c'
          - 'psexec.exe'
          - 'psexesvc.exe'
          - 'pwsh.dll'
          - 'reg.exe'
          - 'regsvr32.exe'
          - 'rundll32.exe'
          - 'WerMgr'
          - 'wmic.exe'
          - 'wscript.exe'

Stage 2: not filter

filter:
    Image|endswith:
        - '\certutil.exe'
        - '\cmstp.exe'
        - '\cscript.exe'
        - '\ie4uinit.exe'
        - '\finger.exe'
        - '\mshta.exe'
        - '\msiexec.exe'
        - '\msxsl.exe'
        - '\powershell_ise.exe'
        - '\powershell.exe'
        - '\psexec.exe'
        - '\psexec64.exe'
        - '\psexec64a.exe'
        - '\PSEXESVC.exe'
        - '\pwsh.exe'
        - '\reg.exe'
        - '\regsvr32.exe'
        - '\rundll32.exe'
        - '\wermgr.exe'
        - '\wmic.exe'
        - '\wscript.exe'

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
Imageends_with\PSEXESVC.exeexcludes:Image field:"Image" value:"\PSEXESVC.exe"
Imageends_with\certutil.exeexcludes:Image field:"Image" value:"\certutil.exe"
Imageends_with\cmstp.exeexcludes:Image field:"Image" value:"\cmstp.exe"
Imageends_with\cscript.exeexcludes:Image field:"Image" value:"\cscript.exe"
Imageends_with\finger.exeexcludes:Image field:"Image" value:"\finger.exe"
Imageends_with\ie4uinit.exeexcludes:Image field:"Image" value:"\ie4uinit.exe"
Imageends_with\mshta.exeexcludes:Image field:"Image" value:"\mshta.exe"
Imageends_with\msiexec.exeexcludes:Image field:"Image" value:"\msiexec.exe"
Imageends_with\msxsl.exeexcludes:Image field:"Image" value:"\msxsl.exe"
Imageends_with\powershell.exeexcludes:Image field:"Image" value:"\powershell.exe"
Imageends_with\powershell_ise.exeexcludes:Image field:"Image" value:"\powershell_ise.exe"
Imageends_with\psexec.exeexcludes:Image field:"Image" value:"\psexec.exe"
Imageends_with\psexec64.exeexcludes:Image field:"Image" value:"\psexec64.exe"
Imageends_with\psexec64a.exeexcludes:Image field:"Image" value:"\psexec64a.exe"
Imageends_with\pwsh.exeexcludes:Image field:"Image" value:"\pwsh.exe"
Imageends_with\reg.exeexcludes:Image field:"Image" value:"\reg.exe"
Imageends_with\regsvr32.exeexcludes:Image field:"Image" value:"\regsvr32.exe"
Imageends_with\rundll32.exeexcludes:Image field:"Image" value:"\rundll32.exe"
Imageends_with\wermgr.exeexcludes:Image field:"Image" value:"\wermgr.exe"
Imageends_with\wmic.exeexcludes:Image field:"Image" value:"\wmic.exe"
Imageends_with\wscript.exeexcludes:Image field:"Image" value:"\wscript.exe"

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Descriptioneq
  • Execute processes remotely
field:"Description" kind:eq value:"Execute processes remotely"
Descriptionstarts_with
  • Windows PowerShell
  • pwsh
field:"Description" kind:starts_with
OriginalFileNameeq
  • IE4UINIT.EXE corpus 3 (sigma 2, elastic 1)
  • WerMgr
  • certutil.exe corpus 30 (sigma 14, elastic 10, splunk 6)
  • cmstp.exe corpus 11 (elastic 6, sigma 5)
  • cscript.exe corpus 32 (sigma 17, elastic 15)
  • finger.exe corpus 2 (sigma 2)
  • mshta.exe corpus 40 (elastic 21, sigma 13, splunk 6)
  • msiexec.exe corpus 20 (elastic 11, sigma 5, splunk 4)
  • msxsl.exe corpus 11 (elastic 8, sigma 3)
  • powershell.exe corpus 138 (sigma 84, splunk 30, elastic 24)
  • powershell_ise.exe corpus 51 (splunk 30, sigma 18, elastic 3)
  • psexec.c corpus 7 (elastic 3, sigma 2, splunk 2)
  • psexec.exe
  • psexesvc.exe corpus 4 (sigma 3, elastic 1)
  • pwsh.dll corpus 112 (sigma 79, splunk 30, elastic 3)
  • reg.exe corpus 43 (sigma 32, splunk 8, elastic 3)
  • regsvr32.exe corpus 37 (sigma 17, elastic 15, splunk 5)
  • rundll32.exe corpus 78 (sigma 35, elastic 22, splunk 21)
  • wmic.exe corpus 80 (sigma 38, elastic 24, splunk 18)
  • wscript.exe corpus 38 (elastic 21, sigma 17)
field:"OriginalFileName" kind:eq
Producteq
  • Sysinternals PsExec
field:"Product" kind:eq value:"Sysinternals PsExec"