Windows: Detects Access to ADMIN$ Network Share (Event 5140)
Alerts on Windows Security event 5140 entries where an access request targets the ADMIN$ share.
- Product
- windows
- Service
- security
- Author
- Florian Roth (Nextron Systems) (SigmaHQ), DRL 1.1
- Published
- 2017-03-04
- Updated
- 2026-07-31
ATT&CK techniques
Lateral MovementRecon
Resource Dev
Initial Access
Execution
Persistence
Priv Esc
Defense Evasion
Cred Access
Discovery
Lateral Movement
Collection
C2
Exfiltration
Impact
What it detects
This rule flags Windows Security events where a client attempts to access the ADMIN$ hidden administrative network share. Access to ADMIN$ is a common step in Windows lateral movement because it can expose administrative file system paths used for remote control and deployment. Detection relies on audit event 5140 with ShareName set to Admin$ and applies an exclusion for subjects ending with a dollar sign.
Reporting behind it
Changelog
v2- v2Candidate ingested via manual entry.2026-07-31
- v1No changelog recorded for this version.2026-07-30
Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.
title: "Windows: Detects Access to ADMIN$ Network Share (Event 5140)"
id: ac95e4a0-3c5a-4d17-87cd-6411b632b264
status: test
description: This rule flags Windows Security events where a client attempts to access the ADMIN$ hidden administrative network share. Access to ADMIN$ is a common step in Windows lateral movement because it can expose administrative file system paths used for remote control and deployment. Detection relies on audit event 5140 with ShareName set to Admin$ and applies an exclusion for subjects ending with a dollar sign.
references:
- https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-5140
- https://github.com/SigmaHQ/sigma/blob/master/rules/windows/builtin/security/win_security_admin_share_access.yml
author: Florian Roth (Nextron Systems), Huntrule Team
date: 2017-03-04
modified: 2024-01-16
tags:
- attack.lateral-movement
- attack.t1021.002
logsource:
product: windows
service: security
definition: 'Requirements: The advanced audit policy setting "Object Access > Audit File Share" must be configured for Success/Failure'
detection:
selection:
EventID: 5140
ShareName: Admin$
filter_main_computer_account:
SubjectUserName|endswith: $
condition: selection and not 1 of filter_*
falsepositives:
- Legitimate administrative activity
level: low
license: DRL-1.1
related:
- id: 098d7118-55bc-4912-a836-dc6483a8d150
type: derived