Detection rules › Sigma
Remote shell execution via SMB admin share
Detects scenarios where an attacker execute a remote shell via the admin share.
Known false positives
- Administrator activity
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Lateral Movement |
Telemetry coverage
Rule body
title: Remote shell execution via SMB admin share
description: Detects scenarios where an attacker execute a remote shell via the admin share.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0008-Lateral%20Movement/T1021.002%20-SMB%20Windows%20Admin%20Shares
- https://www.offensive-security.com/metasploit-unleashed/psexec-pass-hash/
tags:
- attack.lateral_movement
- attack.t1021.002
author: mdecrevoisier
status: experimental
logsource:
product: windows
service: security
detection:
selection:
EventID: 5145
ShareName: '\\*\ADMIN$'
RelativeTargetName|endswith:
- \cmd.exe
- \powershell.exe
- \pwsh.exe # PowerShell v6
condition: selection
falsepositives:
- Administrator activity
level: high
Stages and Predicates
Stage 0: condition
selectionStage 1: selection
selection:
EventID: 5145
ShareName: '\\*\ADMIN$'
RelativeTargetName|endswith:
- \cmd.exe
- \powershell.exe
- \pwsh.exe
Indicators
These rows show field, operator, and value matches.
| Field | Kind | Values | Search |
|---|---|---|---|
RelativeTargetName | ends_with |
| field:"RelativeTargetName" kind:ends_with |
ShareName | wildcard |
| field:"ShareName" kind:wildcard value:"\\*\ADMIN$" |