Opening a network share, which makes the contents available to the requestor (ex: Windows EID 5140 or 5145)
Data Collection Measures:
auditpol /set /subcategory:"File Share" /success:enable /failure:enableSet-ExecutionPolicy RemoteSignedComputer Configuration → Windows Settings → Security Settings → Local Policies → User Rights Assignment Set "Access this computer from the network" to restrict unauthorized accounts.open, read, write, connect syscalls) Detects access to NFS, CIFS, and SMB network shares.lsof | grep nfs or lsof | grep smb) Identifies active network share connections.mount | grep nfs or mount | grep cifs) Lists currently mounted network shares.auditctl -a always,exit -F arch=b64 -S open -F path=/mnt/share -k network_share_accessnetstat -an | grep :445| Name | Channel |
|---|---|
| m365:unified | FileUploaded, FileAccessed |
| Network Share | None |
| NSM:Flow | smb_files.log |
| WinEventLog:Microsoft-Windows-SMBClient/Security | EventID=31001 |
| WinEventLog:Microsoft-Windows-SMBServer | Access to SYSVOL share from non-admin user or unusual endpoints |
| WinEventLog:Security | EventCode=5140 |
| WinEventLog:Security | EventCode=5145 |