This website uses cookies to ensure you get the best experience.
Got it!
Register
|
Login
Menu
Home
Sigma Rules
Splunk Rules
Explore Rules
Analytic Stories
MITRE ATT&CK
Overview
Matrix
Techniques
Groups
Software
Campaigns
Search
About
File And SubFolder Enumeration Via Dir Command
Original Source:
[Sigma source]
Title:
File And SubFolder Enumeration Via Dir Command
Status:
test
Description:
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.
References:
-https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1217/T1217.md
Author:
frack113
Date:
2021-12-13
modified:
2026-05-18
Tags:
-'attack.discovery'
-'attack.t1217'
Logsource:
category: process_creation
product: windows
Detection:
selection_cmd:
Image|endswith
:
'\cmd.exe'
OriginalFileName
:
'Cmd.Exe'
selection_cli:
CommandLine|contains|windash
:
'-s'
CommandLine|contains
:
'dir '
filter_main_rmdir:
CommandLine|contains
:
'rmdir'
condition
:
all of selection_* and not 1 of filter_main_*
Falsepositives:
-Likely
Level:
low