Skip to content

Windows Event ID 5145: A network share object was checked for desired access (detailed file share)

Written when access is checked for an individual file/folder within a network share. It captures, in detail, which files were accessed via a share, and is usable to detect data exfiltration.

Overview

The subcategory is Audit Detailed File Share. Whereas share access 5140 shows “entered the share,” 5145 records the access check for each object within the share (per file name). It includes the requested rights, target file, and source IP.

How it is triggered

  • Each time access to a file/folder within a share is requested and checked.
  • There are success (S) and failure (F) variants. Failures are logged only when access is denied at the file share level; denials at the file system (NTFS) level are not logged.

Security review points

  • Detecting data exfiltration: you can track, per file name, which account accessed which file in a share from which IP. Reading many files in a short time is a sign of data collection/exfiltration.
  • Note unexpected access to sensitive shares/files, and bursts of denials (F) (probing permissions). Correlate with share access 5140 and network logon 4624.

Notes for log review

  • It appears in huge volume on file servers. Aggregate by target file, source, and count, and narrow to access to sensitive data or bulk reads.
  • Because the audit load is high, it is practical to enable it only on important shares.

MITRE ATT&CK mapping

TechniqueTacticWhat this event shows
T1039 Data from Network Shared DriveCollectionWhich files in a share were read, and by whom. Mass reads in a short time indicate data collection
T1021.002 SMB/Windows Admin SharesLateral MovementAccess to named pipes under IPC$ (such as svcctl) reveals the remote execution path

Mapping as of ATT&CK v19.2. ATT&CK detection strategy DET0410 (T1039) also lists this event ID as a log source. To search by technique, see the ATT&CK reverse lookup.

Detection rules

SigmaHQ has 20 and Microsoft Sentinel has 4 public detection rules that use this event ID as a condition. General-purpose rules come first, ordered by severity; rules beyond the first 10 are collapsed.

RuleTypeSeverity
DCOM InternetExplorer.Application Iertutil DLL Hijack - SecuritySigmaHigh
First Time Seen Remote Named PipeSigmaHigh
Impacket PsExec ExecutionSigmaHigh
Persistence and Execution at Scale via GPO Scheduled TaskSigmaHigh
Possible Impacket SecretDump Remote ActivitySigmaHigh
Possible PetitPotam Coerce Authentication AttemptSigmaHigh
Protected Storage Service AccessSigmaHigh
SMB Create Remote File Admin ShareSigmaHigh
Suspicious PsExec ExecutionSigmaHigh
T1047 Wmiprvse Wbemcomn DLL HijackSigmaHigh
Other rules (14)

Rules are collected from SigmaHQ r2026-07-01 and from Azure-Sentinel as of 2026-10-09, limited to those whose conditions include this event ID. Sentinel rules are limited to those that query the SecurityEvent or WindowsEvent table. “Threat-specific” rules target a particular threat group or malware, and “needs setup” rules require values for your environment. Severity is the value each rule’s author assigned.

Key fields

FieldMeaning
Share Name / Relative Target NameThe share and the file/folder within it
Source AddressThe accessing IP
Access MaskThe requested access rights
Subject\Account NameThe accessing account

References