T1083 File and Directory Discovery
Adversaries may enumerate files and directories or may search in specific locations of a host or network share for certain information within a file system. MITRE ATT&CK
8 programs on CmdID 19 Sigma rules T1083 on attack.mitre.org
Programs for it
Sigma rules tagged with it
Command lines CmdID reads as it
Copy all files and directories in a directory and add them onto an archive (copy-out), in verbose mode on the page for cpio
find path/to/directory | cpio [-ov|--create --verbose] >archive.cpioIdentifyFind files matching multiple path/name patterns on the page for find
find path/to/directory -path '*/path/*/*.ext' -or -name '*pattern*'IdentifyFind directories matching a given name, in case-insensitive mode on the page for find
find path/to/directory -type d -iname '*lib*'IdentifyStart fzf on all files in the specified directory on the page for fzf
find path/to/directory -type f | fzfIdentifySelect multiple files with <Shift Tab> and write to a file on the page for fzf
find path/to/directory -type f | fzf --multi >path/to/fileIdentifyTest all PPD files under the current directory, printing the names of each file that does not conform on the page for cupstestppd
find . -name \*.ppd \! -execdir cupstestppd -q '{}' \; -printIdentifyRebuild the project if source files change, limiting output to the first few lines on the page for entr
find src/ | entr -s 'make | sed 10q'IdentifyFind filesystems in specific type on the page for findmnt
findmnt --types ext4,virtiofs,btrfs,...IdentifyAnd 34 more examples on CmdID’s program pages.
An example is here when CmdID’s reading of it names T1083: a Sigma rule it trips is tagged with it, or its abuse is documented as it.