1200KM / sigma-rule
File And SubFolder Enumeration Via Dir Command — Sigma Rule
Sigma rule 7c9340a9-e2ee-4e43-94c5-c54ebbea1006. File And SubFolder Enumeration Via Dir Command — Sigma Rule. 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.
Rule metadata and linked tags
Author: frack113. Source status: test; severity: low. Source dates: 2021-12-13 / 2026-05-18.
{
"category": "process_creation",
"product": "windows"
}Pinned original Sigma rule · Detection Rule License 1.1
Source SHA-256: e792c662640131dd811070535000c40fdf14503b001314f6b34ee6e2705e72c0
Detection logic
Original source YAML. Source-tag agreement is not proof of complete semantic coverage. This rule has not been compiled for a SIEM backend or validated against live telemetry here.
title: File And SubFolder Enumeration Via Dir Command
id: 7c9340a9-e2ee-4e43-94c5-c54ebbea1006
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
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_cmd_dir_execution/info.yml
simulation:
- type: atomic-red-team
name: List Internet Explorer Bookmarks using the command prompt
technique: T1217
atomic_guid: 727dbcdb-e495-4ab1-a6c4-80c7f77aef85
False positives
- Likely
Source references
Connected ecosystem references
Exact source-tagged techniques
Telemetry review
Read the original logsource above, then inspect the linked detection workspaces for technique-level sensor context. No per-rule telemetry equivalence is inferred.
Pinned research references. No browser attack runner, live simulation result or validated detector is asserted. Source mappings and validation limits are preserved. ATT&CK / Atomic provenance · Detection provenance.