Executable File Written in Administrative SMB Share
The following analytic detects executable files (.exe, .dll, etc.) being written to Windows administrative SMB shares (Admin$, IPC$, C$). It leverages Windows Security Event Logs with EventCode 5145 to identify this…
Description
The following analytic detects executable files (.exe, .dll, etc.) being written to Windows administrative SMB shares (Admin$, IPC$, C$). It leverages Windows Security Event Logs with EventCode 5145 to identify this activity. This behavior is significant as it is commonly used by tools like PsExec/PaExec for staging binaries before creating and starting services on remote endpoints, a technique often employed for lateral movement and remote code execution. If confirmed malicious, this activity could allow an attacker to execute arbitrary code remotely, potentially compromising additional systems within the network.
Detection logic
Detection requirements
- Platform
- Windows
The rule states no platform. This is derived from the ATT&CK technique it maps to.
- Log source category
- windows_event_log_security_5145
Known benign triggers
- System Administrators may use tools like PsExec for troubleshooting or administrations tasks. However, this will typically come only from certain users and certain systems that can be added to an allow list.
MITRE ATT&CK mappings
0 exclusive techniques.This is coverage no other published rule has; it is not this rule's total technique count.
References
| Reference | Cited by |
|---|---|
| attack.mitre.org/techniques/T1021/002/ | 4 |
| labs.vipre.com/trickbot-and-its-modules/ | 6 |
| learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-5145#table-of-file-access-codes | 2 |
| thedfirreport.com/2023/05/22/icedid-macro-ends-in-nokoyawa-ransomware/ | 12 |
| whitehat.eu/incident-response-case-study-featuring-ryuk-and-trickbot-part-2/ | 6 |
| www.rapid7.com/blog/post/2013/03/09/psexec-demystified/ | Only this detection cites it |
From the source
- At source
- Open at source
- Upstream identifier
- f63c34fe-a435-11eb-935a-acde48001122
- Tagged by the source as
- Active Directory Lateral MovementBlackSuit RansomwareCompromised Windows HostData DestructionGraceful Wipe Out AttackHermetic WiperIcedIDIndustroyer2Prestige RansomwareTrickbotVanHelsing RansomwareEndpointendpointSplunk CloudSplunk EnterpriseSplunk Enterprise Securityendpoint
Licence
- Published under
- Apache License 2.0Read the licence
- Attribution
- Required
- Obtained under
- Apache-2.0Read the origin licence
Authorship
- Published
- Aug 26, 2026
- Version
- 1