heroui logo

File And SubFolder Enumeration Via Dir Command

Sigma Rules

View Source
Summary
This detection rule identifies the use of the 'dir' command coupled with the '/S' option executed via Windows Command Prompt (cmd.exe). The '/S' flag is specifically utilized to list all files and directories recursively in a specified directory path. This behavior could indicate an enumeration tactic, commonly used by attackers to gather information about the directory structure and file names, potentially to locate sensitive data or prepare for further malicious activity. The rule checks the process creation events to capture instances where cmd.exe is being invoked with the specified command line parameters indicative of these enumeration actions. False positive alerts may occur in legitimate uses of this command by administrators or benign scripts.
Categories
  • Windows
Data Sources
  • Process
ATT&CK Techniques
  • T1217
Created: 2021-12-13