Avatar of yohayon
yohayon
 asked on

Rogue RDP Connections

Since I noticed my ethernet connection performance as being saturated on my Windows 2012 R2 server,  I ran the netstat command & noticed alot of ip addresses having established connections to 3389. When looking further, I see that these ip addresses are from many different countries like korea, china, russia, turkey... What can I do to prevent these rogue connections? Are they authenticating to my server? Could there be an app on the server thats allowing this?
See only one example below:
  C:\Windows\system32>netstat -na | find "3389"
  TCP    0.0.0.0:3389           0.0.0.0:0              LISTENING
  TCP    192.168.220.20:3389    81.25.47.69:57070      ESTABLISHED
  TCP    192.168.220.20:3389    81.25.47.69:57184      ESTABLISHED
Windows Server 2012Network SecuritySecurityNetwork ArchitectureWindows Networking

Avatar of undefined
Last Comment
Natty Greg

8/22/2022 - Mon
Luis Mena

Check your server event security logs and see if someone got authenticated. Is this server hosted locally or cloud? like azure. Check your firewall
ASKER CERTIFIED SOLUTION
masnrock

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Dirk-Jan Smits

You could use
C:\> netstat -nao | find "3389"

to find the owning process id (ie: which process listens on port 3389)
 TCP    192.168.178.10:3389    192.168.178.69:53236   ESTABLISHED     1396

and then try
C:\> tasklist  | findstr 1396

to find the name of PID 1396. In my case this is 'svchost.exe' which is normal for 'real' RDP connections.
In your case it might be a different process.

Regards,
Dirk-Jan
Rajul Raj

Use wireshark for  analyzing the network. and if you want to find out how they are connecting ., try to do a Vulnerability assessment on your server. And first thing first, If you dont want your RDP service for the server , you can disable it.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
SOLUTION
Natty Greg

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.