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 rules
alert rdp any any -> any any (msg:"RDP login as administrator"; flow:established,to_server; content:"Cookie: mstshash=administrator"; nocase; sid:1000001; rev:1;)
alert 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.TimeSourceDestinationProtocolInfo
10.000203.0.113.50:50733198.51.100.20:3389TCPSYN
20.012198.51.100.20:3389203.0.113.50:50733TCPSYN ACK
30.024203.0.113.50:50733198.51.100.20:3389TCPACK
40.036203.0.113.50:50733198.51.100.20:3389TCPPSH ACK, RDP connection request
50.048198.51.100.20:3389203.0.113.50:50733TCPACK
60.060198.51.100.20:3389203.0.113.50:50733TCPPSH ACK, RDP connection confirm
70.072203.0.113.50:50733198.51.100.20:3389TCPACK
80.084203.0.113.50:50733198.51.100.20:3389TCPFIN ACK
90.096198.51.100.20:3389203.0.113.50:50733TCPFIN ACK
100.108203.0.113.50:50733198.51.100.20:3389TCPACK

More Remote access and file shares samples