Skip to main content
T1083Discoveryeasy difficulty

File and Directory Discovery

File and Directory Discovery is the adversary surveying the filesystem to decide what is worth taking and whether to keep investing in the intrusion. The tooling is native, dir, tree, and PowerShell on Windows; find, ls, and locate on Linux. The defensive signal is intent revealed by targeting: enumeration that hunts for credential and config files such as id_rsa, *.kdbx, *.pfx, *.config, and *.rdp, especially in rapid, scripted succession.

Practice detecting File and Directory Discovery on realistic XDR, SIEM alerts in SOCSimulator Operations.

XDRSIEM

What is File and Directory Discovery?

File and Directory Discovery is documented as technique T1083 in MITRE ATT&CK® v19.1 under the Discovery tactic. Detection requires visibility into XDR, SIEM telemetry.

Detection Strategies

The following detection strategies help SOC analysts identify File and Directory Discovery activity. These methods apply across XDR, SIEM environments and can be implemented as detection rules, correlation queries, or behavioral analytics in your security platform.

  1. 1

    Monitor for file system enumeration commands particularly those searching for file types commonly associated with credentials and sensitive data such as *.kdbx, *.pfx, *.key, id_rsa, *.config, and *.rdp files.

  2. 2

    Alert on processes accessing large numbers of files in quick succession, particularly across multiple directories, as this pattern is consistent with automated file search operations rather than normal user activity.

  3. 3

    Detect searches targeting specific sensitive directories including backup locations, certificate stores, SSH key directories, and application configuration paths that are not normally accessed by standard user processes.

  4. 4

    Monitor for PowerShell Get-ChildItem or Select-String commands searching for specific keywords like password, credential, secret, or token within file contents, which indicates targeted credential harvesting.

  5. 5

    Track access to network shares by monitoring SMB access logs, alerting on accounts accessing shares outside of their normal job function or accessing large numbers of files across multiple share locations rapidly.

Example Alerts

These realistic alert examples show what File and Directory Discovery looks like in your security tools. Use them to tune detection rules and train analysts to recognize true positives versus false positives in live environments.

HighXDR

Recursive Search for Credential Files

PowerShell command executed: Get-ChildItem -Recurse -Include *.kdbx,*.pfx,*.p12,id_rsa,*.pem -Path C:\ and \\FILESERVER\. This targeted search for certificate files, private keys, and password manager databases is consistent with post-compromise credential harvesting. The process has subsequently enumerated and copied 14 matching files to a staging directory.

HighSIEM

Sensitive File Access on Finance Share

User account contractor_temp accessed 847 files on the Finance department network share within 15 minutes, including files in budget, payroll, and acquisition subdirectories. This account normally accesses only the Vendors subdirectory for legitimate business purposes. The access pattern suggests systematic data collection prior to exfiltration rather than legitimate work activity.

MediumXDR

Configuration File Search for Database Credentials

Command executed searching for web application configuration files: find / -name "web.config" -o -name "*.config" -o -name "application.properties" 2>/dev/null then piped through grep for password, connectionstring, and credential keywords. This targeted search for configuration files containing database connection strings and API credentials is post-compromise reconnaissance.

Frequently Asked Questions

How do SOC analysts detect File and Directory Discovery?
Detection centers on XDR, SIEM telemetry for the discovery phase of the attack. Monitor for file system enumeration commands particularly those searching for file types commonly associated with credentials and sensitive data such as *.kdbx, *.pfx, *.key, id_rsa, *.config, and *.rdp files. Alert on processes accessing large numbers of files in quick succession, particularly across multiple directories, as this pattern is consistent with automated file search operations rather than normal user activity.
What does a File and Directory Discovery alert look like?
A representative XDR detection is "Recursive Search for Credential Files" (high severity): PowerShell command executed: Get-ChildItem -Recurse -Include *.kdbx,*.pfx,*.p12,id_rsa,*.pem -Path C:\ and \\FILESERVER\. This targeted search for certificate files, private keys, and password manager databases is consistent with post-compromise credential harvesting. The process has subsequently enumerated and copied 14 matching files to a staging directory.
Which tools detect File and Directory Discovery, and how can I practice?
File and Directory Discovery (T1083) is best surfaced with XDR, SIEM telemetry, which exposes the discovery signals described above. Practice detecting it on those exact consoles in SOCSimulator Operations, free.
Glossary

What is Lateral Movement? SOC Glossary

Lateral movement is the attack phase where adversaries expand access from an initial foothold to additional systems, usi…

Read more
Glossary

What is NDR? SOC Glossary

Network Detection and Response (NDR) is a security platform that passively monitors network traffic, using machine learn…

Read more
Glossary

What is Threat Hunting? SOC Glossary

Threat hunting is the proactive, human-led process of searching through security telemetry to find hidden threats that e…

Read more
Glossary

What is SIEM? SOC Glossary

Security Information and Event Management (SIEM) is a platform that aggregates, normalizes, and correlates log data from…

Read more
Career Path

Threat Hunter Career Guide: Salary & Skills

Threat Hunters do not wait for alerts. You develop hypotheses based on threat intelligence and adversary behavior models…

Read more
Career Path

SOC Analyst (Tier 2) Career Guide: Salary & Skills

Tier 2 SOC Analysts handle the investigations that Tier 1 escalates. You dig into multi-stage attacks, coordinate contai…

Read more
Tool

XDR Training Console: SOCSimulator

The XDR console in SOCSimulator replicates the investigation workflow of platforms like CrowdStrike Falcon, Microsoft De…

Read more
Tool

SIEM Training Console: SOCSimulator

The SIEM console in SOCSimulator replicates the workflow of enterprise platforms like Splunk Enterprise Security, Micros…

Read more
Comparison

SOCSimulator Vs. Letsdefend: Platform Comparison

SOCSimulator wins on operational realism. You get multi-tool shift simulation with SLA pressure, noise injection, and al…

Read more
Glossary

SOC Glossary: Security Operations Terminology

Complete glossary of Security Operations Center terminology for aspiring SOC analysts.

Read more
Feature

Shift Mode: Real-Time SOC Simulation

Practice alert triage under realistic time pressure with SLA timers and noise injection.

Read more
Feature

Operations: Guided Training Operations

Structured CTF-style investigation operations covering real-world attack scenarios.

Read more