Detailed File Share Auditing is a Windows advanced audit policy setting that records each access check against files and folders on a network share, producing event 5145. It shows the account, source address and file requested, helping detect SMB enumeration and mass file access. It generates high volume, so scope it to sensitive shares and filter noise.
What Detailed File Share Auditing Measures
Detailed File Share Auditing records each access check against files and folders on a Windows network share, so defenders can see who asked for what, from where, and when. It is more granular than basic share logging, and that granularity is what makes event 5145 useful for tracing suspicious enumeration, access spikes, and targeted browsing of sensitive shares.
The setting is most valuable when the file share itself is a security boundary, not just a storage convenience. In practice, that means shares that hold privileged scripts, staging locations, engineering files, exports, or other data that should not be broadly browsed without leaving a trail. Because the event stream can become extremely noisy, the control works best when paired with tight scoping and a clear reason for monitoring.
Why Event 5145 Is Useful for Detection
Event 5145 provides the context that basic file-open telemetry often misses: the source address, account name, requested path, and access intent at the share boundary. That makes it useful for spotting reconnaissance before a user ever opens a file, especially when an attacker or compromised account is mapping out what exists on a server share.
It also helps separate ordinary user behavior from bulk collection patterns. Repeated access checks across many paths, unusual source hosts, or requests against shares that are rarely touched can indicate share discovery, scripted copying, or attempts to locate sensitive material for later use. For a broader view of the attack pattern this telemetry supports, see T1135 Network Share Discovery Defensive Guide.
For defenders focused on SMB-based collection and staging, detailed share auditing is one of the primary signals that file movement is underway. It is especially helpful when correlated with file-server permission design and share hardening, as described in Windows File Server and NTFS Permissions Guide.
How to Use Detailed Auditing Without Drowning in Noise
Detailed file share auditing should be treated as a targeted monitoring control, not a blanket always-on setting for every share. The more shares you instrument, the faster event volume rises, so the practical approach is to enable it where detection value is highest: administrative shares, sensitive department shares, repositories with regulated content, and paths that tend to attract lateral movement or bulk access.
The audit data becomes far more actionable when it is paired with a baseline of normal access patterns. If one service account usually reads a small set of paths and suddenly touches dozens of folders, that difference matters more than any single event. This is also where share permission hygiene and access-based enumeration matter, because weak permissions can create both real exposure and a flood of low-value audit noise. For that operational combination, Unstructured Data and File Share Security Guide is a useful companion reference.
Detection quality improves further when the control is used alongside remediation-oriented file access analysis, so suspicious bursts can be distinguished from legitimate backup, indexing, or application activity. A useful technical model for that kind of pattern analysis is captured in D3-FAPA File Access Pattern Analysis.
What It Means for Share Security and Incident Review
Detailed auditing is strongest when a share is already protected by least privilege, because the logs then reflect abnormal interest rather than routine overexposure. When permissions are too broad, event 5145 can tell you who looked, but it also reveals a deeper problem: too many principals can reach sensitive data in the first place. In incident review, that distinction matters because it helps separate misconfiguration from malicious use.
After a suspicious access pattern, review the surrounding SMB activity, the destination files, and whether the same account touched other sensitive shares. If the pattern suggests enumeration or staged collection, cross-check against other network-share techniques and response playbooks. For attacker behaviour and defensive response mapped to share access, MITRE ATT&CK T1039 Data from Network Shared Drive and MITRE ATT&CK T1080 Taint Shared Content are directly relevant.
Risk and Threat Considerations
Detailed file share auditing is valuable because the same SMB traffic used for normal collaboration is also used for reconnaissance, bulk collection, and file staging. The main risk is not the audit setting itself, but the visibility gap that remains when organisations do not enable it on the shares that matter most.
Failure mechanism: Attackers or compromised accounts can browse shares, test access, and collect files while leaving only high-level share logs, which makes the early phase of abuse harder to distinguish from routine access.
Impact: Sensitive files can be discovered, copied, tainted, or exfiltrated before defenders realise that the share is being probed, and post-incident review becomes harder without per-request evidence.
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 surface, CIS Controls v8 and NIST SP 800-53 Rev 5 set the technical controls, and ISO/IEC 27001:2022 defines the regulatory obligations.
| Framework | Control / Reference | Relevance |
|---|---|---|
| CIS Controls v8 | CIS-8 — Audit Log Management | Detailed file share auditing depends on collecting and reviewing share access logs. |
| Recommendation — Enable and review detailed file share auditing where sensitive share access must be detected and investigated. | ||
| NIST SP 800-53 Rev 5 | AU-12 — Audit Record Generation | Event 5145 is generated by audit policy and records share access checks. |
| AU-6 — Audit Record Review, Analysis, and Reporting | The setting is useful only when the resulting access records are reviewed for suspicious patterns. | |
| Recommendation — Generate detailed audit records for sensitive file share activity and scope them to high-value shares. Review share audit events for enumeration, abnormal access bursts, and source anomalies. | ||
| ISO/IEC 27001:2022 | A.8.15 — Logging | Detailed file share auditing is a logging control for file access visibility. |
| Recommendation — Log sensitive file share access at a level that supports detection and investigation. | ||
| MITRE ATT&CK | T1135 — Network Share Discovery | The audit setting helps detect SMB share enumeration and related reconnaissance. |
| Recommendation — Map repeated share-access checks to T1135 and investigate discovery activity on sensitive shares. | ||
Practitioner Guidance
Why practitioners should care: Treat event 5145 as a precision control for the few shares where access patterns matter most. It is most useful when you already know which shares are business-critical, which accounts should be active there, and what normal volume looks like.
What to watch for: Look for repeated access checks from unusual hosts, account names that do not normally use the share, and access bursts that align with discovery or collection behaviour. When those patterns appear, review permission scope, adjacent SMB events, and whether the share contains data that should be isolated or more tightly governed.
Practitioner takeaway: The control is strongest when it supports a narrowly defined detection objective, not when it is applied indiscriminately across the environment.
Related resources from NHI Mgmt Group
- Guide: Impacket Detection Guide
- What breaks when file share auditing does not capture both access and permission changes?
- How should security teams improve Windows file share auditing to catch suspicious access faster?
- What are the signs that Windows file share auditing is missing suspicious activity?
- Windows File Share Auditing
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 November 26, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org