Files And Subdirectories Listing Using Dir

Detects usage of the "dir" command that is 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: test
 4description: Detects usage of the "dir" command that is 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: 2024/02/17
10tags:
11    - attack.discovery
12    - attack.t1217
13logsource:
14    category: process_creation
15    product: windows
16detection:
17    selection_dir:
18        CommandLine|contains: 'dir '
19    selection_cli_1:
20        CommandLine|contains:
21            - ' /s'
22            - ' -s'
23    selection_cli_2:
24        CommandLine|contains:
25            - ' /b'
26            - ' -b'
27    condition: all of selection_*
28falsepositives:
29    - Unknown
30level: low

References

Related rules

to-top