Local Storage Discovery is the enumeration of files, folders, drives, and other data stores on a host. Attackers use it to locate credentials, tokens, documents, browser data, and system artefacts before theft or lateral movement. Defenders monitor unusual directory scanning, access to sensitive locations, and tooling that lists storage at scale.
What Local Storage Discovery Actually Does
Local storage discovery is the reconnaissance step where an attacker or defender enumerates a host’s files, folders, drives, and other storage locations to understand what data exists and where it lives. That makes it a practical precursor to credential theft, document theft, or lateral movement, because the most useful artefacts are often buried in ordinary-looking paths.
On endpoints and servers, the value of this activity is not the directory listing itself, but the map it produces. A fast scan of user profiles, application data, browser stores, mounted volumes, and shared locations can reveal where secrets, session material, exports, and sensitive documents are likely to be found.
Why Storage Enumeration Is So Valuable to Attackers
Local discovery helps an intruder reduce uncertainty before theft or privilege expansion. It can expose obvious targets such as text files, archives, browser artefacts, synchronised folders, logs, and application caches, but it also helps identify where custom software keeps its own data stores and configuration files.
This matters because many compromises become easier once an attacker knows which directories deserve deeper inspection. Instead of guessing, they can focus on high-yield locations that often contain reusable access material or business data. The same logic is why broad enumeration is also useful in post-compromise triage: it shows what an intruder could have reached, not just what they actually touched.
For teams that already work with identity-bearing material, the discovery pattern overlaps with lifecycle and inventory thinking described in NHI Lifecycle Management Guide and the broader visibility issues summarised in Ultimate Guide to NHIs, Key Challenges and Risks.
What Defenders Should Look For
Defensive value comes from noticing when enumeration is broader or more automated than normal user activity. Repeated directory walking, unusual access to sensitive folders, command-line tooling that lists storage at scale, and sudden attention to browser or profile data are all common warning signs.
Because discovery is often a precursor to exfiltration, defenders should treat it as an early-stage behaviour rather than a harmless browse. On endpoints, the question is not only whether a process can read a directory, but whether it is moving quickly across many locations, touching unusual paths, or pairing enumeration with compression, staging, or credential-hunting activity.
That visibility problem is one reason inventory and ownership matter in Top 10 NHI Issues, which frames discovery gaps, sprawl, and unmanaged material as recurring enterprise risks.
How This Behaves in Real Incident Paths
Local storage discovery is rarely the final goal. It usually sits early in an intrusion chain, where the attacker is learning the environment before deciding whether to harvest credentials, steal files, stage archives, or pivot into other systems.
Once storage contents are understood, the next steps often become more efficient: locating tokens, cached sessions, configuration files, browser data, or documents that reveal internal hosts and services. That is why local discovery is closely tied to both data theft and lateral movement, even though the technique itself is only enumeration.
From a detection perspective, the behaviour is easiest to interpret alongside broader adversary patterns in MITRE ATT&CK Enterprise Matrix, which helps place discovery activity in the wider attack chain.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
MITRE ATT&CK addresses the attack and risk surface, while CIS Controls v8, NIST SP 800-53 Rev 5 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| MITRE ATT&CK | TA0007 — Discovery | Local storage discovery is an endpoint discovery activity used to map files and drives. |
| Recommendation — Map directory-scanning behaviour to Discovery and alert on broad host enumeration. | ||
| CIS Controls v8 | CIS-8 — Audit Log Management | Discovery activity is often visible only through endpoint and file-access logging. |
| Recommendation — Centralise endpoint and file-access logs to spot unusual storage enumeration. | ||
| NIST SP 800-53 Rev 5 | AU-12 — Audit Record Generation | Host storage discovery is best detected when systems generate records for file and directory access. |
| SI-4 — System Monitoring | Monitoring is required to identify abnormal file-system scanning and related precursor behaviour. | |
| Recommendation — Generate audit records for sensitive path access and directory enumeration. Monitor for high-volume file and directory enumeration on endpoints and servers. | ||
| NIST CSF 2.0 | DE.CM-01 — Networks and network services are monitored to find potential cybersecurity events | Discovery behaviours are identified through continuous monitoring for anomalous activity. |
| Recommendation — Extend monitoring to endpoint storage-scanning patterns as potential cybersecurity events. | ||
Practitioner Guidance
What to watch for: Build detections around volume, breadth, and location sensitivity, not just individual file reads. A process that touches many directories, probes user-profile locations, or repeatedly enumerates mounted storage is often more meaningful than one that opens a single file.
Governance implication: Keep an accurate map of where sensitive data and secret-bearing artefacts are expected to live. The more precisely teams know the normal storage surface, the easier it is to distinguish routine activity from suspicious discovery at scale.
Related resources from NHI Mgmt Group
- What breaks when conversation state is spread across local storage, proxies, and external model calls?
- What breaks when schools allow local file storage on education devices?
- What breaks when JWTs are stored in local storage or session storage?
- What breaks when Electron apps rely on local token storage without strong controls?
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on October 17, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org