Sample captures, Remote access and file shares

SMB2 connection to the ADMIN$ share

SMB2 negotiate, session setup and a tree connect to \\198.51.100.20\ADMIN$.

Packets
18
Duration
0.204 s
Size
1.9 KB
Protocols
TCP, SMB
License
CC0

What it shows

A Windows client negotiates SMB 2.1, sets up a session and connects to the administrative share ADMIN$, the first step of remote service installs such as PsExec.

SMB2 sends the share path in UTF-16, so a raw content match needs a zero byte after each character: A|00|D|00|M|00|I|00|N|00|$|00|. Suricata also has smb.share.

Rules for this capture

Suricata 8 and 7

Try these rules
alert smb any any -> any any (msg:"Connection to the ADMIN$ share"; smb.share; content:"ADMIN$"; sid:1000001; rev:1;)
alert tcp any any -> any 445 (msg:"ADMIN$ in UTF-16"; flow:established,to_server; content:"A|00|D|00|M|00|I|00|N|00|$|00|"; sid:1000002; rev:1;)
alert tcp any any -> any 445 (msg:"ADMIN$ in UTF-16"; flow:established,to_server; content:"A|00|D|00|M|00|I|00|N|00|$|00|"; sid:1000002; rev:1;)

Packets

No.TimeSourceDestinationProtocolInfo
10.000192.0.2.30:49870198.51.100.20:445TCPSYN
20.012198.51.100.20:445192.0.2.30:49870TCPSYN ACK
30.024192.0.2.30:49870198.51.100.20:445TCPACK
40.036192.0.2.30:49870198.51.100.20:445TCPPSH ACK, SMB2 NEGOTIATE request
50.048198.51.100.20:445192.0.2.30:49870TCPACK
60.060198.51.100.20:445192.0.2.30:49870TCPPSH ACK, SMB2 NEGOTIATE response
70.072192.0.2.30:49870198.51.100.20:445TCPACK
80.084192.0.2.30:49870198.51.100.20:445TCPPSH ACK, SMB2 SESSION_SETUP request
90.096198.51.100.20:445192.0.2.30:49870TCPACK
100.108198.51.100.20:445192.0.2.30:49870TCPPSH ACK, SMB2 SESSION_SETUP response
110.120192.0.2.30:49870198.51.100.20:445TCPACK
120.132192.0.2.30:49870198.51.100.20:445TCPPSH ACK, SMB2 TREE_CONNECT request
130.144198.51.100.20:445192.0.2.30:49870TCPACK
140.156198.51.100.20:445192.0.2.30:49870TCPPSH ACK, SMB2 TREE_CONNECT response
150.168192.0.2.30:49870198.51.100.20:445TCPACK
160.180192.0.2.30:49870198.51.100.20:445TCPFIN ACK
170.192198.51.100.20:445192.0.2.30:49870TCPFIN ACK
180.204192.0.2.30:49870198.51.100.20:445TCPACK

More Remote access and file shares samples