The results help the attacker decide what to do next, such as which data to take.
How it works
After getting onto a system, an attacker often does not know what it holds. Listing files and folders, or searching specific locations, gives a quick picture of the data and software present.
The attacker can use the ordinary file listing and search tools that come with the operating system. Custom tools and native system calls can do the same job. Network devices have their own commands for browsing storage.
What the attacker learns can shape later steps, including whether to go on and fully compromise the target.
A real example
- MITRE ATT&CK lists 4H RAT as able to obtain file and directory listings.
- MITRE ATT&CK lists AcidRain as identifying specific files and directories on Linux that relate to storage devices.
- MITRE ATT&CK lists ADVSTORESHELL as able to list files and directories.
- MITRE ATT&CK lists admin@338 as running directory listing commands after exploiting a machine with LOWBALL malware.
- MITRE ATT&CK lists Amadey as searching for folders associated with antivirus software.
Seen in incidents
How to detect
-
Enumeration from odd places
Watch for file listing and search commands run by unusual processes, scripts or users, especially when they walk through many folders.
-
Access to restricted areas
Look for broad browsing of sensitive or restricted directories that does not match a person's normal work.
-
Special platforms
On virtualization hosts and network devices, watch for storage and configuration listing commands from unauthorized users or unfamiliar addresses.
-
Data sources MITRE lists
Command Execution, File Access, File Creation, Process Creation
How to defend
-
Accept the limits of prevention
MITRE notes that this technique cannot be easily prevented with controls, because it abuses normal system features.
-
Build a baseline
Know what normal administrator activity looks like, so that command and process monitoring can flag activity that does not fit.
Frequently Asked Questions
What is File and Directory Discovery?
T1083 is when an attacker lists files and folders on a system or network share to learn what is there. The results help decide what to do next, such as which data to take.
How do attackers perform it?
They use the ordinary file listing and search tools that come with the operating system. Custom tools and native system calls can do the same job, and network devices have their own commands.
How can I detect file and directory discovery?
Watch for file listing and search commands run by unusual processes, scripts or users, and for broad browsing of sensitive directories that does not match a person's normal work.
Can file and directory discovery be prevented?
MITRE notes it cannot be easily prevented with controls because it abuses normal system features. Build a baseline of normal administrator activity so monitoring can flag what does not fit.
