Files And Subdirectories Listing Using Dir

Detects usage of the "dir" command that's part of windows batch/cmd to collect information about directories

Sigma rule (View on GitHub)

 1title: Files And Subdirectories Listing Using Dir
 2id: 7c9340a9-e2ee-4e43-94c5-c54ebbea1006
 3status: experimental
 4description: Detects usage of the "dir" command that's part of windows batch/cmd to collect information about directories
 5references:
 6    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1217/T1217.md
 7author: frack113
 8date: 2021/12/13
 9modified: 2023/03/07
10tags:
11    - attack.discovery
12    - attack.t1217
13logsource:
14    category: process_creation
15    product: windows
16detection:
17    selection:
18        CommandLine|contains|all:
19            - 'dir '
20            - ' /s'
21            - ' /b'
22    condition: selection
23falsepositives:
24    - Unknown
25level: low

Related rules

to-top