Detection rules › Sigma
SharpHound enumeration via SMB named pipes
Detects scenarios where an attacker enumerate different host via named pipes with SharpHound for discovery purposes.
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Discovery | T1135 Network Share Discovery |
Event coverage
| Provider | Event | Title |
|---|---|---|
| Security-Auditing | Event ID 5145 | A network share object was checked to see whether client can be granted desired access. |
Rule body yaml
title: SharpHound enumeration via SMB named pipes
description: Detects scenarios where an attacker enumerate different host via named pipes with SharpHound for discovery purposes.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0007-Discovery/T1135.xxx-Network%20Share%20Discovery
- https://docs.google.com/presentation/d/1OdufXKGYPgoV1d5jDrMYSe-SYKZ7lcA4w2MFn8AkUWE/edit
- https://www.youtube.com/watch?v=_GJDkbUTSLY
- https://community.rsa.com/t5/rsa-netwitness-platform-blog/keeping-an-eye-on-your-hounds/ba-p/519889
- https://bloodhound.readthedocs.io/en/latest/data-collection/sharphound.html
tags:
- attack.discovery
- attack.t1135
author: mdecrevoisier
status: experimental
logsource:
product: windows
service: security
detection:
selection:
EventID: 5145
ShareName: '\\*\IPC$'
RelativeTargetName:
- lsarpc
- samr
- srvsvc # May also be triggered by other tools like DonPapi, CrackMapExec
filter:
IpAddress: '%administration_hosts%' # List of IPs of your administration hosts to reduce false positive
condition: selection and not filter | count(Computer) by IpAddress > 30
timeframe: 15m
falsepositives:
- Administrator activity, backup solutions, Windows Server Manager
level: medium
Stages and Predicates
Stage 0: condition
selection and not filter | count(Computer) by IpAddress > 30Stage 1: selection
selection:
EventID: 5145
ShareName: '\\*\IPC$'
RelativeTargetName:
- lsarpc
- samr
- srvsvc
Stage 2: not filter
filter:
IpAddress: '%administration_hosts%'
Exclusions
Top-level NOT(...) conjuncts: predicates this rule actively suppresses.
| Field | Kind | Excluded values |
|---|---|---|
IpAddress | eq | %administration_hosts% |
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 |
|---|---|---|
RelativeTargetName | eq |
|
ShareName | wildcard |
|