Detectionlowtest
File And SubFolder Enumeration Via Dir Command
Detects usage of the "dir" command part of Windows CMD with the "/S" command line flag in order to enumerate files in a specified directory and all subdirectories.
Convert In Phoenix Studio
Open this Sigma rule in the converter with the YAML preloaded and ready for backend selection.
Launch
Log Source
WindowsProcess Creation
ProductWindows← raw: windows
CategoryProcess Creation← raw: process_creation
Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.
Detection Logic
Detection Logic2 selectors
detection:
selection_cmd:
- Image|endswith: '\cmd.exe'
- OriginalFileName: Cmd.Exe
selection_cli:
CommandLine|contains|windash: 'dir*-s'
condition: all of selection_*False Positives
Likely
References
Testing & Validation
Simulations
atomic-red-teamT1217
View on ARTList Internet Explorer Bookmarks using the command prompt
GUID: 727dbcdb-e495-4ab1-a6c4-80c7f77aef85
MITRE ATT&CK
Tactics
Techniques
Rule Metadata
Rule ID
7c9340a9-e2ee-4e43-94c5-c54ebbea1006
Status
test
Level
low
Type
Detection
Created
Mon Dec 13
Modified
Sun Apr 14
Author
Path
rules/windows/process_creation/proc_creation_win_cmd_dir_execution.yml
Raw Tags
attack.discoveryattack.t1217