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 rulesalert 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;)
Snort 3
Try these rulesalert 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. | Time | Source | Destination | Protocol | Info |
|---|---|---|---|---|---|
| 1 | 0.000 | 192.0.2.30:49870 | 198.51.100.20:445 | TCP | SYN |
| 2 | 0.012 | 198.51.100.20:445 | 192.0.2.30:49870 | TCP | SYN ACK |
| 3 | 0.024 | 192.0.2.30:49870 | 198.51.100.20:445 | TCP | ACK |
| 4 | 0.036 | 192.0.2.30:49870 | 198.51.100.20:445 | TCP | PSH ACK, SMB2 NEGOTIATE request |
| 5 | 0.048 | 198.51.100.20:445 | 192.0.2.30:49870 | TCP | ACK |
| 6 | 0.060 | 198.51.100.20:445 | 192.0.2.30:49870 | TCP | PSH ACK, SMB2 NEGOTIATE response |
| 7 | 0.072 | 192.0.2.30:49870 | 198.51.100.20:445 | TCP | ACK |
| 8 | 0.084 | 192.0.2.30:49870 | 198.51.100.20:445 | TCP | PSH ACK, SMB2 SESSION_SETUP request |
| 9 | 0.096 | 198.51.100.20:445 | 192.0.2.30:49870 | TCP | ACK |
| 10 | 0.108 | 198.51.100.20:445 | 192.0.2.30:49870 | TCP | PSH ACK, SMB2 SESSION_SETUP response |
| 11 | 0.120 | 192.0.2.30:49870 | 198.51.100.20:445 | TCP | ACK |
| 12 | 0.132 | 192.0.2.30:49870 | 198.51.100.20:445 | TCP | PSH ACK, SMB2 TREE_CONNECT request |
| 13 | 0.144 | 198.51.100.20:445 | 192.0.2.30:49870 | TCP | ACK |
| 14 | 0.156 | 198.51.100.20:445 | 192.0.2.30:49870 | TCP | PSH ACK, SMB2 TREE_CONNECT response |
| 15 | 0.168 | 192.0.2.30:49870 | 198.51.100.20:445 | TCP | ACK |
| 16 | 0.180 | 192.0.2.30:49870 | 198.51.100.20:445 | TCP | FIN ACK |
| 17 | 0.192 | 198.51.100.20:445 | 192.0.2.30:49870 | TCP | FIN ACK |
| 18 | 0.204 | 192.0.2.30:49870 | 198.51.100.20:445 | TCP | ACK |
More Remote access and file shares samples
- SSH handshake from a Go client: Version banners and key exchange offers between a Go SSH client and OpenSSH 9.6.
- RDP connection request for administrator: An RDP connection request with the cookie mstshash=administrator.