Granular network share access check. Includes the specific file/directory accessed within the share. Higher volume than 5140.
Mass file access within shares — ransomware accessing thousands of files in rapid succession. Specific sensitive file access (passwords.txt, .env, web.config). DLP monitoring of share file access.
Very high volume — alert only on specific ObjectName patterns (credential files, config files). Alert: >1000 different files accessed by single user within 1 min (ransomware pattern).
ShareNameRelativeTargetNameIpAddressSubjectUserNameAccessMask | Tactic | Technique |
|---|---|
| Collection | Data from Network Shared Drive (T1039) |
Starting points — adapt the log source, projected fields and thresholds for your environment.
SecurityEvent
| where EventID == 5145 // A network share object was checked to see whether client can be granted desired access
| project TimeGenerated, Computer, ShareName, RelativeTargetName, IpAddress, SubjectUserName, AccessMask
| sort by TimeGenerated desc
index=* sourcetype="WinEventLog:Security" EventCode=5145
| stats count earliest(_time) as first_seen latest(_time) as last_seen by ComputerName
| sort - count `# A network share object was checked to see whether client can be granted desired access — add EventData fields: ShareName, RelativeTargetName, IpAddress, SubjectUserName`
A network share object was checked to see whether client can be granted desired access. Granular network share access check. Includes the specific file/directory accessed within the share. Higher volume than 5140.
Event 5145 is written to the Security channel by Microsoft-Windows-Security-Auditing. Advanced Audit Policy — enable the 'Object Access' subcategory (Success and/or Failure).
Event 5145 is associated with: Data from Network Shared Drive (T1039).
Very high volume — alert only on specific ObjectName patterns (credential files, config files). Alert: >1000 different files accessed by single user within 1 min (ransomware pattern).