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