Remote command execution over SMB.
What gives it awayRelativeTargetName svcctl, usually preceded by a write to ADMIN$ and followed by a service installation on the target.
ATT&CK T1569.002Nothing matches that yet. Tell us what you were looking for and it goes on the list.
Windows Security Log · Event 5145
Someone reached a specific file or pipe over a network share, and Windows recorded exactly which one and what access they asked for. It is enormously noisy — and it is also the clearest view you can get of remote execution tooling and share enumeration.
Also written as Event ID 5145A network share object was checkeddetailed file share auditing5145 share access
Enterprise auditing that is off by default. A home PC will not produce it.
Requires the Detailed File Share subcategory, which is separate from File Share and off by default for good reason — a file server generates enormous volume. Enable it selectively. The value is the RelativeTargetName field: named pipes such as svcctl, atsvc, and winreg are how remote service control, scheduled tasks, and registry access actually work over SMB, and they are what remote execution tooling leaves behind.
Sanitised. Addresses come from the RFC 5737 documentation ranges.
A network share object was checked to see whether client can be granted desired access.
Subject:
Security ID: CORP\jbrooks
Account Name: jbrooks
Account Domain: CORP
Logon ID: 0x3E9A11
Network Information:
Object Type: File
Source Address: 192.0.2.44
Source Port: 49712
Share Information:
Share Name: \\*\IPC$
Share Path:
Relative Target Name: svcctl
Access Request Information:
Access Mask: 0x12019f
Accesses: ReadData (or ListDirectory)
WriteData (or AddFile) Everything else in the log line is context.
svcctlRemote service control. How remote execution tools create and start their service. atsvcRemote scheduled task manipulation. winregRemote registry access. samrQueries the account database — used to enumerate users and groups remotely. lsarpcLocal security authority queries, used for enumeration. srvsvcShare enumeration. Legitimate for browsing, and the first thing many tools do. An ordinary document pathNormal file access, and nearly all of the volume. Most of the time it is one of these.
What gives it awayRelativeTargetName svcctl, usually preceded by a write to ADMIN$ and followed by a service installation on the target.
ATT&CK T1569.002What gives it awayRelativeTargetName atsvc, which is how a task is registered on a remote machine.
ATT&CK T1053.005What gives it awayRelativeTargetName winreg from a source that does not administer that host.
ATT&CK T1012What gives it awayRelativeTargetName samr or lsarpc, often from one source against many hosts in a short window.
ATT&CK T1087.002What gives it awayRelativeTargetName srvsvc across a large number of destinations.
ATT&CK T1135SecurityEvent | where EventID == 5145 and RelativeTargetName in~ ('svcctl','atsvc','winreg','samr') | project TimeGenerated, Computer, SubjectUserName, IpAddress, RelativeTargetName | order by TimeGenerated desc SecurityEvent | where EventID == 5145 and RelativeTargetName =~ 'srvsvc' | summarize hosts = dcount(Computer) by SubjectUserName, IpAddress, bin(TimeGenerated, 30m) | where hosts > 20 SecurityEvent | where EventID == 5145 and ShareName has_any ('ADMIN$','C$') and AccessList has 'WriteData' | project TimeGenerated, Computer, SubjectUserName, IpAddress, RelativeTargetName index=wineventlog EventCode=5145 Relative_Target_Name IN ("svcctl","atsvc","winreg") | stats count by Account_Name src_ip dest Relative_Target_Name It needs the Detailed File Share audit subcategory, which is separate from File Share and disabled by default. Enable it with `auditpol /set /subcategory:"Detailed File Share" /success:enable`. Be deliberate about where — on a busy file server it generates an enormous volume.
Named pipes. svcctl is the remote service control interface — creating and starting a service on another machine goes through it, which is exactly how remote execution tools work. atsvc is the remote scheduled task interface. Both have legitimate administrative uses, so what matters is which machines are talking and in which direction.
5140 records a connection to a share. 5145 records access to a specific object inside it. 5140 tells you someone reached ADMIN$; 5145 tells you they touched svcctl, which is a much more specific and more actionable statement.
Do not collect it wholesale. Filter to ShareName IPC$ and to the handful of named pipes that carry remote execution and enumeration — svcctl, atsvc, winreg, samr, srvsvc. That reduces the volume by orders of magnitude and keeps almost all of the signal.
Last reviewed 28 August 2026