Detection rules › Sigma
Network login performed to multiple targets
Detects scenarios where an attacker would attempt to enumerate hosts resources and execute a payload with a compromised account. Vulnerability scanners, enumeration software or tool like SharepHound/CrackMapexec may generate such behavior.
Known false positives
- VAS scanners, administrator jump host, backup solutions, monitoring solutions
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Initial Access | |
| Discovery |
Telemetry coverage
| Provider | Record / event type |
|---|---|
| Security-Auditing | Event ID 4624: An account was successfully logged on. |
Rule body
title: Network login performed to multiple targets
description: Detects scenarios where an attacker would attempt to enumerate hosts resources and execute a payload with a compromised account. Vulnerability scanners, enumeration software or tool like SharepHound/CrackMapexec may generate such behavior.
references:
- https://medium.com/@Shorty420/enumerating-ad-98e0821c4c78
- https://book.hacktricks.xyz/pentesting/pentesting-smb
- https://0xdf.gitlab.io/2018/12/02/pwk-notes-smb-enumeration-checklist-update1.html
tags:
- attack.discovery
- attack.t1046 # network service scanning
- attack.initial_access
- attack.t1078 # valid accounts
author: mdecrevoisier
status: experimental
logsource:
product: windows
service: security
detection:
selection:
EventID: 4624
TargetUserSid|startswith: S-1-5-21-
LogonType: 3
filter:
IpAddress:
- '%vulnerability_scanners%'
- '%admin_jump_hosts%'
- '127.0.0.1'
- '::1'
condition: selection and not filter | count(Computer) by IpAddress > 20 # Count of many computer are reporting connection attemps from a single source IP
timeframe: 15m
falsepositives:
- VAS scanners, administrator jump host, backup solutions, monitoring solutions
level: high
Stages and Predicates
Stage 0: condition
selection and not filter | count(Computer) by IpAddress > 20 # Count of many computer are reporting connection attemps from a single source IPStage 1: selection
selection:
EventID: 4624
TargetUserSid|startswith: S-1-5-21-
LogonType: 3
Stage 2: not filter
filter:
IpAddress:
- '%vulnerability_scanners%'
- '%admin_jump_hosts%'
- '127.0.0.1'
- '::1'
Exclusions
The rule actively suppresses these predicates.
| Field | Kind | Excluded values | Search |
|---|---|---|---|
IpAddress | eq | %admin_jump_hosts% | excludes:IpAddress field:"IpAddress" value:"%admin_jump_hosts%" |
IpAddress | eq | %vulnerability_scanners% | excludes:IpAddress field:"IpAddress" value:"%vulnerability_scanners%" |
IpAddress | eq | 127.0.0.1 | excludes:IpAddress field:"IpAddress" value:"127.0.0.1" |
IpAddress | eq | ::1 | excludes:IpAddress field:"IpAddress" value:"::1" |
Indicators
These rows show field, operator, and value matches.
| Field | Kind | Values | Search |
|---|---|---|---|
LogonType | eq |
| field:"LogonType" kind:eq value:"3" |
TargetUserSid | starts_with |
| field:"TargetUserSid" kind:starts_with value:"S-1-5-21-" |