Sample captures, Remote access and file shares
RDP connection request for administrator
An RDP connection request with the cookie mstshash=administrator.
- Packets
- 10
- Duration
- 0.108 s
- Size
- 794 bytes
- Protocols
- TCP, RDP
- License
- CC0
What it shows
The first exchange of a Remote Desktop connection: the client's X.224 connection request carries Cookie: mstshash=administrator and asks for TLS or CredSSP, and the server picks CredSSP.
The cookie holds the user name the client typed, which makes it useful for spotting password spraying against RDP.
Rules for this capture
Suricata 8 and 7
Try these rulesalert rdp any any -> any any (msg:"RDP login as administrator"; flow:established,to_server; content:"Cookie: mstshash=administrator"; nocase; sid:1000001; rev:1;)
Snort 3
Try these rulesalert tcp any any -> any 3389 (msg:"RDP login as administrator"; flow:established,to_server; content:"Cookie: mstshash=administrator", nocase; sid:1000001; rev:1;)
Packets
| No. | Time | Source | Destination | Protocol | Info |
|---|---|---|---|---|---|
| 1 | 0.000 | 203.0.113.50:50733 | 198.51.100.20:3389 | TCP | SYN |
| 2 | 0.012 | 198.51.100.20:3389 | 203.0.113.50:50733 | TCP | SYN ACK |
| 3 | 0.024 | 203.0.113.50:50733 | 198.51.100.20:3389 | TCP | ACK |
| 4 | 0.036 | 203.0.113.50:50733 | 198.51.100.20:3389 | TCP | PSH ACK, RDP connection request |
| 5 | 0.048 | 198.51.100.20:3389 | 203.0.113.50:50733 | TCP | ACK |
| 6 | 0.060 | 198.51.100.20:3389 | 203.0.113.50:50733 | TCP | PSH ACK, RDP connection confirm |
| 7 | 0.072 | 203.0.113.50:50733 | 198.51.100.20:3389 | TCP | ACK |
| 8 | 0.084 | 203.0.113.50:50733 | 198.51.100.20:3389 | TCP | FIN ACK |
| 9 | 0.096 | 198.51.100.20:3389 | 203.0.113.50:50733 | TCP | FIN ACK |
| 10 | 0.108 | 203.0.113.50:50733 | 198.51.100.20:3389 | 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.
- SMB2 connection to the ADMIN$ share: SMB2 negotiate, session setup and a tree connect to \\198.51.100.20\ADMIN$.