Detection rules › Sigma
Lateral movement by mounting a network share - net use (command)
Detects scenarios where an attacker attempts to move laterally by mounting a network share using compromised user credentials.
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Lateral Movement | T1021.002 Remote Services: SMB/Windows Admin Shares |
Event coverage
| Provider | Event | Title |
|---|---|---|
| Security-Auditing | Event ID 4688 | A new process has been created. |
Rule body yaml
title: Lateral movement by mounting a network share - net use (command)
description: Detects scenarios where an attacker attempts to move laterally by mounting a network share using compromised user credentials.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0008-Lateral%20Movement/T1021.002%20-SMB%20Windows%20Admin%20Shares
- https://imphash.medium.com/detecting-lateral-movement-101-tracking-movement-smb-windows-admin-shares-through-windows-log-6005e3ba6980
- https://stealthbits.com/blog/how-to-detect-pass-the-hash-attacks/
- https://attack.mitre.org/software/S0039/
tags:
- attack.lateral_movement
- attack.t1021.002
author: mdecrevoisier
status: experimental
logsource:
product: windows
service: security
detection: # Full command example: 'net use m: \\<dst-server>\c$ /USER:<compromised_user> <credentials>'
selection_command:
EventID: 4688
NewProcessName|endswith:
- \net1.exe
- \net.exe
CommandLine|contains|all:
- net
- use
- '/user:'
#selection_swtich_cred:
#EventID: 4648
#TargetInfo|startswith: cifs
condition: selection_command # optional[and selection_swtich_cred]. Correlate both events with SubjectUserName and SubjectLogonId
falsepositives:
- Administrator activity
level: medium
Stages and Predicates
Stage 0: condition
selection_command # optional[and selection_swtich_cred]. Correlate both events with SubjectUserName and SubjectLogonIdStage 1: selection_command
selection_command:
EventID: 4688
NewProcessName|endswith:
- \net1.exe
- \net.exe
CommandLine|contains|all:
- net
- use
- '/user:'
Indicators
Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.
| Field | Kind | Values |
|---|---|---|
CommandLine | match |
|
NewProcessName | ends_with |
|