Sample captures, Remote access and file shares
SSH handshake from a Go client
Version banners and key exchange offers between a Go SSH client and OpenSSH 9.6.
- Packets
- 14
- Duration
- 0.156 s
- Size
- 1.8 KB
- Protocols
- TCP, SSH
- License
- CC0
What it shows
The start of an SSH session: the server announces SSH-2.0-OpenSSH_9.6p1, the client SSH-2.0-Go (the banner of Go's SSH library, common in scanners and brute-forcers), and both send their key exchange offers. Everything after that is encrypted.
Suricata reads the banners with ssh.proto and ssh.software. In Snort 3, match the banner text at the start of each direction.
Rules for this capture
Suricata 8 and 7
Try these rulesalert ssh any any -> any any (msg:"SSH client built with Go"; ssh.software; content:"Go"; bsize:2; sid:1000001; rev:1;) alert ssh any any -> any any (msg:"OpenSSH 9.6 server"; ssh.software; content:"OpenSSH_9.6"; startswith; sid:1000002; rev:1;)
Snort 3
Try these rulesalert tcp any any -> any 22 (msg:"SSH client built with Go"; flow:established,to_server; content:"SSH-2.0-Go|0d 0a|", depth 12; sid:1000001; rev:1;) alert tcp any 22 -> any any (msg:"OpenSSH 9.6 server"; flow:established,to_client; content:"SSH-2.0-OpenSSH_9.6", depth 19; sid:1000002; rev:1;)
Packets
| No. | Time | Source | Destination | Protocol | Info |
|---|---|---|---|---|---|
| 1 | 0.000 | 203.0.113.50:53344 | 198.51.100.20:22 | TCP | SYN |
| 2 | 0.012 | 198.51.100.20:22 | 203.0.113.50:53344 | TCP | SYN ACK |
| 3 | 0.024 | 203.0.113.50:53344 | 198.51.100.20:22 | TCP | ACK |
| 4 | 0.036 | 198.51.100.20:22 | 203.0.113.50:53344 | TCP | PSH ACK, SSH-2.0-OpenSSH_9.6p1 Ubuntu-3ubuntu13.5 |
| 5 | 0.048 | 203.0.113.50:53344 | 198.51.100.20:22 | TCP | ACK |
| 6 | 0.060 | 203.0.113.50:53344 | 198.51.100.20:22 | TCP | PSH ACK, SSH-2.0-Go |
| 7 | 0.072 | 198.51.100.20:22 | 203.0.113.50:53344 | TCP | ACK |
| 8 | 0.084 | 198.51.100.20:22 | 203.0.113.50:53344 | TCP | PSH ACK, SSH key exchange init |
| 9 | 0.096 | 203.0.113.50:53344 | 198.51.100.20:22 | TCP | ACK |
| 10 | 0.108 | 203.0.113.50:53344 | 198.51.100.20:22 | TCP | PSH ACK, SSH key exchange init |
| 11 | 0.120 | 198.51.100.20:22 | 203.0.113.50:53344 | TCP | ACK |
| 12 | 0.132 | 203.0.113.50:53344 | 198.51.100.20:22 | TCP | FIN ACK |
| 13 | 0.144 | 198.51.100.20:22 | 203.0.113.50:53344 | TCP | FIN ACK |
| 14 | 0.156 | 203.0.113.50:53344 | 198.51.100.20:22 | TCP | ACK |
More Remote access and file shares samples
- RDP connection request for administrator: An RDP connection request with the cookie mstshash=administrator.
- SMB2 connection to the ADMIN$ share: SMB2 negotiate, session setup and a tree connect to \\198.51.100.20\ADMIN$.