Skip to content
NewCybercrime Report 2026 · Eight Chapters · A Post Is Not An Incident → Explore The ChaptersCybercrime Report 2026 → Explore

File and Directory Discovery

File and Directory Discovery is a technique where an attacker lists files and folders on a system or a network share to learn what is there.

Published
Reading Time
2 min read
Dark glass dark glass filing cabinet drawer open with red glowing folders with red neon lines, cover art for: File and Directory Discovery

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

  1. 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.

  2. Access to restricted areas

    Look for broad browsing of sensitive or restricted directories that does not match a person's normal work.

  3. Special platforms

    On virtualization hosts and network devices, watch for storage and configuration listing commands from unauthorized users or unfamiliar addresses.

  4. Data sources MITRE lists

    Command Execution, File Access, File Creation, Process Creation

How to defend

  1. Accept the limits of prevention

    MITRE notes that this technique cannot be easily prevented with controls, because it abuses normal system features.

  2. 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.

Sources

  1. MITRE ATT&CK T1083: File and Directory DiscoveryMITRE
  2. MITRE ATT&CK Tactic TA0007: DiscoveryMITRE
ShareLinkedInX
Brandefense logo

Stay Ahead of Digital Threats.

Take control of your digital security with an exclusive demo of our AI-driven threat intelligence platform.

Open The Full Demo Form →