Detectionhightest
First Time Seen Remote Named Pipe - Zeek
This detection excludes known namped pipes accessible remotely and notify on newly observed ones, may help to detect lateral movement and remote exec using named pipes
Samir Bousseaden, Tim SheltonCreated 2020-04-02Updated 2022-12-27021310d9-30a6-480a-84b7-eaa69aeb92bbnetwork
Log Source
Zeek (Bro)smb_files
ProductZeek (Bro)← raw: zeek
Servicesmb_files← raw: smb_files
Detection Logic
Detection Logic2 selectors
detection:
selection:
path: '\\\\\*\\IPC$' # Looking for the string \\*\IPC$
filter_keywords:
- 'samr'
- 'lsarpc'
- 'winreg'
- 'netlogon'
- 'srvsvc'
- 'protected_storage'
- 'wkssvc'
- 'browser'
- 'netdfs'
- 'svcctl'
- 'spoolss'
- 'ntsvcs'
- 'LSM_API_service'
- 'HydraLsPipe'
- 'TermSrv_API_service'
- 'MsFteWds'
condition: selection and not 1 of filter_*False Positives
Update the excluded named pipe to filter out any newly observed legit named pipe
References
MITRE ATT&CK
Tactics
Sub-techniques
Rule Metadata
Rule ID
021310d9-30a6-480a-84b7-eaa69aeb92bb
Status
test
Level
high
Type
Detection
Created
2020-04-02
Modified
2022-12-27
Author
Path
rules/network/zeek/zeek_smb_converted_win_lm_namedpipe.yml
Raw Tags
attack.lateral-movementattack.t1021.002