Use Short Name Path in Image
Detect use of the Windows 8.3 short name. Which could be used as a method to avoid Image detection
Sigma rule (View on GitHub)
1title: Use Short Name Path in Image
2id: a96970af-f126-420d-90e1-d37bf25e50e1
3related:
4 - id: 349d891d-fef0-4fe4-bc53-eee623a15969
5 type: similar
6status: test
7description: Detect use of the Windows 8.3 short name. Which could be used as a method to avoid Image detection
8references:
9 - https://www.acunetix.com/blog/articles/windows-short-8-3-filenames-web-security-problem/
10 - https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-2000-server/cc959352(v=technet.10)
11 - https://twitter.com/frack113/status/1555830623633375232
12author: frack113, Nasreddine Bencherchali
13date: 2022-08-07
14modified: 2023-03-21
15tags:
16 - attack.defense-evasion
17 - attack.t1564.004
18logsource:
19 category: process_creation
20 product: windows
21detection:
22 selection:
23 Image|contains:
24 - '~1\'
25 - '~2\'
26 filter1:
27 - ParentImage:
28 - C:\Windows\System32\Dism.exe
29 - C:\Windows\System32\cleanmgr.exe # Spawns DismHost.exe with a shortened username (if too long)
30 - ParentImage|endswith:
31 - '\WebEx\WebexHost.exe' # Spawns a shortened version of the CLI and Image processes
32 - '\thor\thor64.exe'
33 - Product: 'InstallShield (R)'
34 - Description: 'InstallShield (R) Setup Engine'
35 - Company: 'InstallShield Software Corporation'
36 filter_installers:
37 - Image|contains|all:
38 - '\AppData\'
39 - '\Temp\'
40 - Image|endswith:
41 - '~1\unzip.exe'
42 - '~1\7zG.exe'
43 condition: selection and not 1 of filter*
44falsepositives:
45 - Applications could use this notation occasionally which might generate some false positives. In that case Investigate the parent and child process.
46level: medium
References
Related rules
- Execute From Alternate Data Streams
- Exports Registry Key To an Alternate Data Stream
- Hidden Executable In NTFS Alternate Data Stream
- NTFS Alternate Data Stream
- Potential Rundll32 Execution With DLL Stored In ADS