Detection rules › Sigma

Use Short Name Path in Image

Status
test
Severity
medium
Log source
product windows, category process_creation
Author
frack113, Nasreddine Bencherchali
Source
github.com/SigmaHQ/sigma

Detect use of the Windows 8.3 short name. Which could be used as a method to avoid Image detection

MITRE ATT&CK coverage

Event coverage

ProviderEventTitle
SysmonEvent ID 1Process creation

Rule body yaml

title: Use Short Name Path in Image
id: a96970af-f126-420d-90e1-d37bf25e50e1
related:
    - id: 349d891d-fef0-4fe4-bc53-eee623a15969
      type: similar
status: test
description: Detect use of the Windows 8.3 short name. Which could be used as a method to avoid Image detection
references:
    - https://www.acunetix.com/blog/articles/windows-short-8-3-filenames-web-security-problem/
    - https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-2000-server/cc959352(v=technet.10)
    - https://twitter.com/frack113/status/1555830623633375232
author: frack113, Nasreddine Bencherchali
date: 2022-08-07
modified: 2025-10-20
tags:
    - attack.stealth
    - attack.t1564.004
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        Image|contains:
            - '~1\'
            - '~2\'
    filter_main_system_process:
        ParentImage:
            - 'C:\Windows\System32\Dism.exe'
            - 'C:\Windows\System32\cleanmgr.exe'  # Spawns DismHost.exe with a shortened username (if too long)
    filter_main_installers:
        - Image|contains|all:
              - '\AppData\'
              - '\Temp\'
        - Image|endswith:
              - '~1\unzip.exe'
              - '~1\7zG.exe'
    filter_optional_webex:
        ParentImage|endswith: '\WebEx\WebexHost.exe' # Spawns a shortened version of the CLI and Image processes
    filter_optional_thor:
        ParentImage|endswith: '\thor\thor64.exe'
    filter_optional_installshield:
        - Product: 'InstallShield (R)'
        - Description: 'InstallShield (R) Setup Engine'
        - Company: 'InstallShield Software Corporation'
    condition: selection and not 1 of filter_main_* and not 1 of filter_optional_*
falsepositives:
    - Applications could use this notation occasionally which might generate some false positives. In that case Investigate the parent and child process.
level: medium

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_main_* and not 1 of filter_optional_*

Stage 1: selection

selection:
    Image|contains:
        - '~1\'
        - '~2\'

Stage 2: not filter_main_*

filter_main_system_process:
    ParentImage:
        - 'C:\Windows\System32\Dism.exe'
        - 'C:\Windows\System32\cleanmgr.exe'
filter_main_installers:
    - Image|contains|all:
          - '\AppData\'
          - '\Temp\'
    - Image|endswith:
          - '~1\unzip.exe'
          - '~1\7zG.exe'

Stage 3: not filter_optional_*

filter_optional_webex:
    ParentImage|endswith: '\WebEx\WebexHost.exe'
filter_optional_thor:
    ParentImage|endswith: '\thor\thor64.exe'
filter_optional_installshield:
    - Product: 'InstallShield (R)'
    - Description: 'InstallShield (R) Setup Engine'
    - Company: 'InstallShield Software Corporation'

Exclusions

Top-level NOT(...) conjuncts: predicates this rule actively suppresses.

FieldKindExcluded values
Imagematch\AppData\
Imagematch\Temp\
Imageends_with~1\7zG.exe
Imageends_with~1\unzip.exe
ParentImageeqC:\Windows\System32\Dism.exe
ParentImageeqC:\Windows\System32\cleanmgr.exe
CompanyeqInstallShield Software Corporation
DescriptioneqInstallShield (R) Setup Engine
ParentImageends_with\WebEx\WebexHost.exe
ParentImageends_with\thor\thor64.exe
ProducteqInstallShield (R)

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
Imagematch
  • ~1\
  • ~2\