Use NTFS Short Name in Command Line

 Original Source: [Sigma source]
Title: Use NTFS Short Name in Command Line
Status: test
Description:Detect use of the Windows 8.3 short name. Which could be used as a method to avoid command-line 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/jonasLyk/status/1555914501802921984
Author: frack113, Nasreddine Bencherchali (Nextron Systems)
Date: 2022-08-05
modified:2022-09-21
Tags:
  • -'attack.stealth'
  • -'attack.t1564.004'
Logsource:
  • category: process_creation
  • product: windows
Detection:
  selection:
    CommandLine|contains:
      -'~1.exe'
      -'~1.bat'
      -'~1.msi'
      -'~1.vbe'
      -'~1.vbs'
      -'~1.dll'
      -'~1.ps1'
      -'~1.js'
      -'~1.hta'
      -'~2.exe'
      -'~2.bat'
      -'~2.msi'
      -'~2.vbe'
      -'~2.vbs'
      -'~2.dll'
      -'~2.ps1'
      -'~2.js'
      -'~2.hta'

  filter:
    - ParentImage|endswith:
      - '\WebEx\WebexHost.exe'
      - '\thor\thor64.exe'
CommandLine|contains:'C:\xampp\vcredist\VCREDI~1.EXE'   condition:selection and not filter
Falsepositives:
  -Applications could use this notation occasionally which might generate some false positives. In that case Investigate the parent and child process.
Level: medium