Windows: Detects Access to ADMIN$ Network Share (Event 5140)

Alerts on Windows Security event 5140 entries where an access request targets the ADMIN$ share.

FreeReviewedSigma · Low · v2
Product
windows
Service
security
Author
Florian Roth (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2017-03-04
Updated
2026-07-31
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