Securing RDP

Status
Not open for further replies.

Oelph

Ars Tribunus Militum
2,661
All of our servers (400+ physical and VMs) have RDP enabled for administrative access. What does the hive mind recommend to secure RDP against brute force attacks of local administrator accounts and the latest ransomware variants which try to exploit RDP?

We need to increase security whilst minimising the impact on our server admins and third party remote support companies.
 

wseaton

Ars Scholae Palatinae
653
Never, ever, EVER allow port 3389 to externally connect to an RDP enabled server. That is, unless you want to give foreign botnets something to do. Good way to make a list of global IP's that aren't your friend though.

Note most of the really good bruce force attackers won't hit a box more than twice before it scrolls to a different source IP, so brute force software (3 strikes and you get logged) is next to useless.

Keep the local admin password long but not absurdly complex so it's not annoying to use but darn near impossible to rainbow or brute force. Internal brute force attacks are actually the dangerous ones because they can work a lot more attempts per second than through a WAN and are rarely scrutinized. Lots of PS scripts out there that will block these kinds of repetitive attacks via Windows Firewall. Just remember you want to block RDP, not the account. Do that once, brick your own box and you'll kick yourself hard enough to remember the next time.
 
[url=http:/civis/viewtopic.php?p=32474489#p32474489:2s77jdix said:
Oelph[/url]":2s77jdix]I'm not talking about external, but brute force attacks on the internal network coming from infected clients. New malware variants are exploiting weaknesses in the RDP authentication protocol to brute force access to servers and then encrypt them. I'm looking at network level authentication and changing the default listening port as a start.

NLE is a good start, but instead of changing ports, I'd recommend limiting which source IPs can connect through the firewall.

Also, enabling account lockout policies on the server will dramatically slow down a bruteforce attempt.
 

Arbelac

Ars Tribunus Angusticlavius
7,719
I'm not talking about external, but brute force attacks on the internal network coming from infected clients. New malware variants are exploiting weaknesses in the RDP authentication protocol to brute force access to servers and then encrypt them. I'm looking at network level authentication and changing the default listening port as a start.

Deny RDP and SSH directly to servers from the client networks; make all admin connections transit a bastion host.

You could also do a RDS Gateway server. Normally that's done for Terminal Servers, but you can use it for Admin sessions as well.
 

Dilbert

Ars Legatus Legionis
34,009
[url=http:/civis/viewtopic.php?p=32476637#p32476637:1nxb13bz said:
CPX[/url]":1nxb13bz]How sophisticated is your management network? The simplest answer I can think of is blocking RDP on the "user" network completely and using a management backend for things like RDP, IPMI, AMT, etc.
This. User machines and servers aren't on the same segment? Right? Right? ;)

Clever network topology is the answer here.
 

CPX

Ars Legatus Legionis
28,143
Subscriptor++
[url=http:/civis/viewtopic.php?p=32475435#p32475435:c37mm9fk said:
Arbelac[/url]":c37mm9fk]
Deny RDP and SSH directly to servers from the client networks; make all admin connections transit a bastion host.

Alternatively, have admins sit on management LAN consoles. When you need to check emails or similar on the regular user network, open a VM workstation parked on the user network.

[url=http:/civis/viewtopic.php?p=32476925#p32476925:c37mm9fk said:
Dilbert[/url]":c37mm9fk]
[url=http:/civis/viewtopic.php?p=32476637#p32476637:c37mm9fk said:
CPX[/url]":c37mm9fk]How sophisticated is your management network? The simplest answer I can think of is blocking RDP on the "user" network completely and using a management backend for things like RDP, IPMI, AMT, etc.
This. User machines and servers aren't on the same segment? Right? Right? ;)

Clever network topology is the answer here.

The good thing these days is that it really doesn't matter if user machines and servers are on the same network segment if you are restricting the admin side of it to a private LAN. I mean, I get that it's better in principle to shuffle servers to a separate subnet and VLAN...but it's not necessary provided the user-facing surface is secured.
 

ferzerp

Ars Tribunus Angusticlavius
6,023
Why exactly are you focusing on RDP?

The mitigation suggestions are all focusing on it as well.

What you're actually telling us you're worried about is internal, online brute force attacks, yes?


I won't call these a solved problem, but you're certainly inflating the concern. Network brute force attacks are slow. Exceedingly slow. So slow that only well known passwords (e.g. password) ever fall to them. Old-style RDP logons are even slower (in a windows 2003 style RDP logon, we're talking seconds per attempt). I am firmly against lock out policies as implemented in most organizations (they become nothing more than a self DOS medium at the laughably low threshold they're set), but a lockout policy of 15 or so attempts will pretty much shield you from any sort of online brute force attempts.

You cannot stop your clients from having an authentication path to your servers. That's a laughable idea. You wouldn't be able to offer any authenticated services.



edit: is there some RDP flaw after 2012 that I am not aware of?
 
D

Deleted member 43669

Guest
[url=http:/civis/viewtopic.php?p=32474489#p32474489:2lzosljw said:
Oelph[/url]":2lzosljw]I'm not talking about external, but brute force attacks on the internal network coming from infected clients. New malware variants are exploiting weaknesses in the RDP authentication protocol to brute force access to servers and then encrypt them. I'm looking at network level authentication and changing the default listening port as a start.

Source?
 

kperrier

Ars Legatus Legionis
21,511
[url=http:/civis/viewtopic.php?p=32474489#p32474489:30262dxc said:
Oelph[/url]":30262dxc]I'm not talking about external, but brute force attacks on the internal network coming from infected clients. New malware variants are exploiting weaknesses in the RDP authentication protocol to brute force access to servers and then encrypt them. I'm looking at network level authentication and changing the default listening port as a start.
Changing the port RDP listens on will do nothing. The malware will do a port scan to find the ports (because people think changing the ports is security) then probe them.
 

Oelph

Ars Tribunus Militum
2,661
[url=http:/civis/viewtopic.php?p=32482843#p32482843:xopzidbu said:
kperrier[/url]":xopzidbu]
[url=http:/civis/viewtopic.php?p=32474489#p32474489:xopzidbu said:
Oelph[/url]":xopzidbu]I'm not talking about external, but brute force attacks on the internal network coming from infected clients. New malware variants are exploiting weaknesses in the RDP authentication protocol to brute force access to servers and then encrypt them. I'm looking at network level authentication and changing the default listening port as a start.
Changing the port RDP listens on will do nothing. The malware will do a port scan to find the ports (because people think changing the ports is security) then probe them.

A lot of malware is poorly written, often quickly and to keep things small, tend not to do this. But following defence-in-depth, changing the port is one small piece of the puzzle.

Some great tips here which I'll follow up on with our technical teams.
 

hawkbox

Ars Legatus Legionis
13,914
Subscriptor
[url=http:/civis/viewtopic.php?p=32492845#p32492845:317h7xdm said:
Oelph[/url]":317h7xdm]
[url=http:/civis/viewtopic.php?p=32482843#p32482843:317h7xdm said:
kperrier[/url]":317h7xdm]
[url=http:/civis/viewtopic.php?p=32474489#p32474489:317h7xdm said:
Oelph[/url]":317h7xdm]I'm not talking about external, but brute force attacks on the internal network coming from infected clients. New malware variants are exploiting weaknesses in the RDP authentication protocol to brute force access to servers and then encrypt them. I'm looking at network level authentication and changing the default listening port as a start.
Changing the port RDP listens on will do nothing. The malware will do a port scan to find the ports (because people think changing the ports is security) then probe them.

A lot of malware is poorly written, often quickly and to keep things small, tend not to do this. But following defence-in-depth, changing the port is one small piece of the puzzle.

Some great tips here which I'll follow up on with our technical teams.

Do you turn off your SSID and use MAC filtering too? :rolleyes:
 

Oelph

Ars Tribunus Militum
2,661
[url=http:/civis/viewtopic.php?p=32494749#p32494749:2uqn9bgb said:
hawkbox[/url]":2uqn9bgb]
[url=http:/civis/viewtopic.php?p=32492845#p32492845:2uqn9bgb said:
Oelph[/url]":2uqn9bgb]
[url=http:/civis/viewtopic.php?p=32482843#p32482843:2uqn9bgb said:
kperrier[/url]":2uqn9bgb]
[url=http:/civis/viewtopic.php?p=32474489#p32474489:2uqn9bgb said:
Oelph[/url]":2uqn9bgb]I'm not talking about external, but brute force attacks on the internal network coming from infected clients. New malware variants are exploiting weaknesses in the RDP authentication protocol to brute force access to servers and then encrypt them. I'm looking at network level authentication and changing the default listening port as a start.
Changing the port RDP listens on will do nothing. The malware will do a port scan to find the ports (because people think changing the ports is security) then probe them.

A lot of malware is poorly written, often quickly and to keep things small, tend not to do this. But following defence-in-depth, changing the port is one small piece of the puzzle.

Some great tips here which I'll follow up on with our technical teams.

Do you turn off your SSID and use MAC filtering too? :rolleyes:

:rolleyes:
 
Don't leave RDP sessions "disconnected" on the device you are connecting to (it leaves the credentials in memory which is susceptible to being stolen). Log off when done if possible or configure timeouts to log folks off after certain amount of time (this isn't always acceptable if running things remotely that run long, batch, etc.).

Either that or use the mstsc.exe /restrictedadmin switch (available from Win7 and forward IIRC) to make RDP more secure (erm, restricted).

I like the jump box idea too, then you can funnel all your RDP traffic through it and restrict allowed sources on all end points to that jump box (or two, for FT of course...). Any direct RDP attempts outside that jump box have a higher chance of being illegitimate if they persist and you can take action quicker with more confidence of it not being a false-positive (did I include enough double negatives there?!?).

I've been pushing doing that where I work but not gained much traction yet (not that I push hard, but still...That to me is an EASY win) :eek:/

Also, you could give admins a lowly user account with their email attached to it, and a separate "priveleged" account for privileged use. When they RDP to something to do something privileged, use the priv'd up account or runas option! Otherwise if they get infected with anything via browsing or email (with their non-priv account) it's much less damage. Restrict internet access from the clients that get RDP'd too, if possible (i.e. all our servers have no internet access (blocked at perimeter) unless there is a specific need, which is statically white-listed as possible).

You can copy/paste usernames and passwords into RDP dialogue box, so make the usernames and password a tad less than obscenely difficult :devious:
(it just sucks when you have to type them out when using a console that doesn't permit copy/paste, ha).
 
[url=http:/civis/viewtopic.php?p=32492845#p32492845:3s3ptux1 said:
Oelph[/url]":3s3ptux1]
[url=http:/civis/viewtopic.php?p=32482843#p32482843:3s3ptux1 said:
kperrier[/url]":3s3ptux1]
[url=http:/civis/viewtopic.php?p=32474489#p32474489:3s3ptux1 said:
Oelph[/url]":3s3ptux1]I'm not talking about external, but brute force attacks on the internal network coming from infected clients. New malware variants are exploiting weaknesses in the RDP authentication protocol to brute force access to servers and then encrypt them. I'm looking at network level authentication and changing the default listening port as a start.
Changing the port RDP listens on will do nothing. The malware will do a port scan to find the ports (because people think changing the ports is security) then probe them.

A lot of malware is poorly written, often quickly and to keep things small, tend not to do this. But following defence-in-depth, changing the port is one small piece of the puzzle.

Some great tips here which I'll follow up on with our technical teams.

Do you turn off your SSID and use MAC filtering too? :rolleyes:

I don't get the whole hate-on for doing this. It's simple, and it does prevent some abuse (I mean, it has to, right? Surely it stops casual abuse). Yes, it's easy to overcome if you really want to, but so are many other measures. This one isn't aimed at thwarting that level of attack, but it all adds up to layers of defense (DiD).
 

kperrier

Ars Legatus Legionis
21,511
[url=http:/civis/viewtopic.php?p=32507707#p32507707:qwzfna1w said:
breakingnews[/url]":qwzfna1w]
[url=http:/civis/viewtopic.php?p=32492845#p32492845:qwzfna1w said:
Oelph[/url]":qwzfna1w]
[url=http:/civis/viewtopic.php?p=32482843#p32482843:qwzfna1w said:
kperrier[/url]":qwzfna1w]
[url=http:/civis/viewtopic.php?p=32474489#p32474489:qwzfna1w said:
Oelph[/url]":qwzfna1w]I'm not talking about external, but brute force attacks on the internal network coming from infected clients. New malware variants are exploiting weaknesses in the RDP authentication protocol to brute force access to servers and then encrypt them. I'm looking at network level authentication and changing the default listening port as a start.
Changing the port RDP listens on will do nothing. The malware will do a port scan to find the ports (because people think changing the ports is security) then probe them.

A lot of malware is poorly written, often quickly and to keep things small, tend not to do this. But following defence-in-depth, changing the port is one small piece of the puzzle.

Some great tips here which I'll follow up on with our technical teams.

Do you turn off your SSID and use MAC filtering too? :rolleyes:

I don't get the whole hate-on for doing this. It's simple, and it does prevent some abuse (I mean, it has to, right? Surely it stops casual abuse). Yes, it's easy to overcome if you really want to, but so are many other measures. This one isn't aimed at thwarting that level of attack, but it all adds up to layers of defense (DiD).
Its like requiring password changes every 30 days with the following requirements:

  • passwords have to be at least 12 characters
  • at least 2 of uppercase, lowercase, numbers and symbols must be used
  • can't reuse a password for 2 years
  • minimum password age is 29 days

Yeah it may look more secure but it just makes things harder for little real benefit.
 

Frennzy

Ars Legatus Legionis
85,841
I don't get the whole hate-on for doing this. It's simple, and it does prevent some abuse (I mean, it has to, right? Surely it stops casual abuse). Yes, it's easy to overcome if you really want to, but so are many other measures. This one isn't aimed at thwarting that level of attack, but it all adds up to layers of defense (DiD).

No, it doesn't. Disabling SSID broadcast and doing MAC filtering simply add useless administrative overhead at best...and break shit at worst. Chaning port numbers is the same old "security through obscurity" meaningless feel-good effort as well.

Put up an RDP box on a public IP, and change the port to whatever you want. You give me the IP, and I'll tell you the port it's running on in under a minute. You know what changing the port DOES do?

It pisses off your users.
 
[url=http:/civis/viewtopic.php?p=32507707#p32507707:p70ygydb said:
breakingnews[/url]":p70ygydb]
[url=http:/civis/viewtopic.php?p=32492845#p32492845:p70ygydb said:
Oelph[/url]":p70ygydb]
[url=http:/civis/viewtopic.php?p=32482843#p32482843:p70ygydb said:
kperrier[/url]":p70ygydb]
[url=http:/civis/viewtopic.php?p=32474489#p32474489:p70ygydb said:
Oelph[/url]":p70ygydb]I'm not talking about external, but brute force attacks on the internal network coming from infected clients. New malware variants are exploiting weaknesses in the RDP authentication protocol to brute force access to servers and then encrypt them. I'm looking at network level authentication and changing the default listening port as a start.
Changing the port RDP listens on will do nothing. The malware will do a port scan to find the ports (because people think changing the ports is security) then probe them.

A lot of malware is poorly written, often quickly and to keep things small, tend not to do this. But following defence-in-depth, changing the port is one small piece of the puzzle.

Some great tips here which I'll follow up on with our technical teams.

Do you turn off your SSID and use MAC filtering too? :rolleyes:

I don't get the whole hate-on for doing this. It's simple, and it does prevent some abuse (I mean, it has to, right? Surely it stops casual abuse). Yes, it's easy to overcome if you really want to, but so are many other measures. This one isn't aimed at thwarting that level of attack, but it all adds up to layers of defense (DiD).
Its like requiring password changes every 30 days with the following requirements:

  • passwords have to be at least 12 characters
  • at least 2 of uppercase, lowercase, numbers and symbols must be used
  • can't reuse a password for 2 years
  • minimum password age is 29 days

Yeah it may look more secure but it just makes things harder for little real benefit.

See that's the part I have a problem with - it's *not* hard and it's very little overhead for my use case (and yes, the rewards are few and little, sure). For me though, it makes sense. Enterprise setup? That's a different story, totally agree. It was dumb of me to talk about it further since this forum is server room and we're talking about a corporate environment and all! :p
 
I don't get the whole hate-on for doing this. It's simple, and it does prevent some abuse (I mean, it has to, right? Surely it stops casual abuse). Yes, it's easy to overcome if you really want to, but so are many other measures. This one isn't aimed at thwarting that level of attack, but it all adds up to layers of defense (DiD).

No, it doesn't. Disabling SSID broadcast and doing MAC filtering simply add useless administrative overhead at best...and break shit at worst. Chaning port numbers is the same old "security through obscurity" meaningless feel-good effort as well.

Put up an RDP box on a public IP, and change the port to whatever you want. You give me the IP, and I'll tell you the port it's running on in under a minute. You know what changing the port DOES do?

It pisses off your users.

Oh but now you're changing the game! Put it on a public IP and it's a whole different beast. A person driving an attack vs. automated/semi-autonomous exploit are defended against differently. I digressed though, I wasn't meaning on an enterprise setting with regard to MAC/SSID. Changing the port is beneficial in some cases without pissing your users off, it just depends on your environment, your use case and your users. For you that is different than for me. Bah humbug? :p
 

Frennzy

Ars Legatus Legionis
85,841
Even in the home, with any modern gear, disabling SSID broadcast and enabling MAC filtering only makes your life harder.* It doesn't prevent anything...it's like putting a screen door over the tophatch of a submarine, assuming you bothered to enable any type of actual security at all. If a bad actor is trying to get into your network, it's *very* trivial to bypass both of those.

* in that every time you need to add/change a legitimate device, you have to manually intervene on the router to add the new MAC (or spoof the old MAC on the device), and then you have to hope the device itself can cope with non-broadcast SSID. Not all do.

For RDP, I'm not going to change ports and then try to inform thousands of users that they need to manually change settings in their client. What would be the point? Once they save a session setting, if they are compromised, the attacker is simply going to use their session settings as-is.
 

CPX

Ars Legatus Legionis
28,143
Subscriptor++
[url=http:/civis/viewtopic.php?p=32509723#p32509723:23metvlh said:
Frennzy[/url]":23metvlh]
For RDP, I'm not going to change ports and then try to inform thousands of users that they need to manually change settings in their client. What would be the point? Once they save a session setting, if they are compromised, the attacker is simply going to use their session settings as-is.

Devil's advocate here... Did the OP ever specify that their organization uses RDP for non-admin business?

...

That said, changing registered ports is useless for confidentiality and possibly detrimental to availability. So yeah, bad idea. :)
 
[url=http:/civis/viewtopic.php?p=32509723#p32509723:2zd8avxi said:
Frennzy[/url]":2zd8avxi]Even in the home, with any modern gear, disabling SSID broadcast and enabling MAC filtering only makes your life harder.* It doesn't prevent anything...it's like putting a screen door over the tophatch of a submarine, assuming you bothered to enable any type of actual security at all. If a bad actor is trying to get into your network, it's *very* trivial to bypass both of those.

* in that every time you need to add/change a legitimate device, you have to manually intervene on the router to add the new MAC (or spoof the old MAC on the device), and then you have to hope the device itself can cope with non-broadcast SSID. Not all do.

For RDP, I'm not going to change ports and then try to inform thousands of users that they need to manually change settings in their client. What would be the point? Once they save a session setting, if they are compromised, the attacker is simply going to use their session settings as-is.

You made my point - at least you only get water in the submarine, not fishguts (they get screened out) :p

Yea, the RDP port thing doesn't make sense in that scenario, agreed. I'm sure the client end can be fixed through a GPO easily enough though! However, my point is that it's not always black and white for everyone. In my environment we only have admins doing RDP, and if we changed the port then monitored for use of the standard port we'd detect illegitimate activity pretty quite (we don't, but it's one example where it could help indirectly - there are certainly better ways to do this, but on a budget and given the right scenario, it could work).
 

nicknomo

Ars Tribunus Militum
1,737
Yea, the RDP port thing doesn't make sense in that scenario, agreed. I'm sure the client end can be fixed through a GPO easily enough though! However, my point is that it's not always black and white for everyone. In my environment we only have admins doing RDP, and if we changed the port then monitored for use of the standard port we'd detect illegitimate activity pretty quite (we don't, but it's one example where it could help indirectly - there are certainly better ways to do this, but on a budget and given the right scenario, it could work).

I can see both sides to this, but anyone who says that changing the default port is pointless, is just plain wrong. Automated bots attempt thousands of connections per day (sometimes per hour) on my SSH ports... very little to no activity on non-standard ports. The statistics are actually quite amazing in regards to how much illegitimate traffic there is. The upside is that most of the attempted attacks are extremely "dumb". They are just trying to exploit the latest publicized bug, and aren't a determined hacker. With all due respect to Frennzy or hawkbox though, its almost *never* the determined hacker who is trying to break in. Its almost always the stupid bot that is just scanning a specific port across as many ips as it can... and despite the "dumb" nature of our robotic attackers, every now and then they come equipped with a zero day attack.

So yes, absolutely change your default ports if you wish to... provided it does not become a massive usability problem.
 

nicknomo

Ars Tribunus Militum
1,737
In my network, everything routes through a TS gateway, and the firewall outright blocks connections via RDP unless it is through the gateway (which has authorization policies) or if its a white listed IP of an admin workstation. The TS gateway authorization policies are pretty granular...

The down side is that if your computers are highly geographically distributed, but you do not have many TS gateway servers, it can create a less than desirable connection in terms of network quality (poor latency/bandwidth).
 

ferzerp

Ars Tribunus Angusticlavius
6,023
The OP is oddly not concerned with external bots but internal infected clients brute-forcing RDP access. We all assume that RDP is only needed for admin functionality, thus the trivially easy suggestion of simply turning on Windows Firewall at the servers in question and whitelisting IPs that can access the servers by RDP.


This was part of my point. Other than that issue patched in the year 2012, RDP is pretty much the worst vector to try to exploit for a brute force attack by itself. There are so many authentication paths that focusing on that one is just bizarre.
 

Oelph

Ars Tribunus Militum
2,661
Thanks for the continued discussion, it's all good.

[url=http:/civis/viewtopic.php?p=32513359#p32513359:23ejjwwv said:
CPX[/url]":23ejjwwv]The OP is oddly not concerned with external bots but internal infected clients brute-forcing RDP access. We all assume that RDP is only needed for admin functionality, thus the trivially easy suggestion of simply turning on Windows Firewall at the servers in question and whitelisting IPs that can access the servers by RDP.

We're a network within a larger national network, with very little exposed to the public internet. Our main threat sources are either internal staff or malware delivered via email or compromised websites. RDP is a massive admin tool. Our other Remote Desktop services are Citrix, fronted by NetScalers.
 

CPX

Ars Legatus Legionis
28,143
Subscriptor++
[url=http:/civis/viewtopic.php?p=32514165#p32514165:3v1us8zi said:
Oelph[/url]":3v1us8zi]Thanks for the continued discussion, it's all good.

[url=http:/civis/viewtopic.php?p=32513359#p32513359:3v1us8zi said:
CPX[/url]":3v1us8zi]The OP is oddly not concerned with external bots but internal infected clients brute-forcing RDP access. We all assume that RDP is only needed for admin functionality, thus the trivially easy suggestion of simply turning on Windows Firewall at the servers in question and whitelisting IPs that can access the servers by RDP.

We're a network within a larger national network, with very little exposed to the public internet. Our main threat sources are either internal staff or malware delivered via email or compromised websites. RDP is a massive admin tool. Our other Remote Desktop services are Citrix, fronted by NetScalers.

If you're that concerned with internal security as opposed to external, then host-based solutions will provide far more effectiveness than any custom network configuration that could also cause conflicts with other software. Since you're giving us a large network, I'm guessing that you have plenty of machines in need of management that don't feature a more secure OOB option on a management network. While that's the ideal solution, white-listing RDP stations would cut down on the majority of your problems...especially if you can keep those on a management network.
 
[url=http:/civis/viewtopic.php?p=32508189#p32508189:1hflqar9 said:
Frennzy[/url]":1hflqar9]
I don't get the whole hate-on for doing this. It's simple, and it does prevent some abuse (I mean, it has to, right? Surely it stops casual abuse). Yes, it's easy to overcome if you really want to, but so are many other measures. This one isn't aimed at thwarting that level of attack, but it all adds up to layers of defense (DiD).

No, it doesn't. Disabling SSID broadcast and doing MAC filtering simply add useless administrative overhead at best...and break shit at worst. Chaning port numbers is the same old "security through obscurity" meaningless feel-good effort as well.

Put up an RDP box on a public IP, and change the port to whatever you want. You give me the IP, and I'll tell you the port it's running on in under a minute. You know what changing the port DOES do?

It pisses off your users.

I am one of my users. The port can go in the config of the client, so it's no cost there. The logs of failed attempts are much shorter, so if nothing else, there's more chance of seeing the wood for the trees when I look at them.

To use your analogy, I can see the guy in the JIM suit with the thermic lance attacking the top hatch, rather than him being invisible in a huge crowd of frogmen.
 

sjconsultant

Wise, Aged Ars Veteran
150
Rename or disable the local administrator account since that can never be locked out. Use alternate named local/domain admin accounts instead with sane password and lockout policies.

Not sure if this would work in your topology, but you could deploy internal firewalls to segment the servers from the people who access them and enable IPS signature(s) to alert and temporarily block offending IPs when RDP brute forcing is detected. Keep in mind not all RDP brute forcing is in rapid succession. I've had to deploy custom signatures in our Palo to detect & block a much slower brute force (1 or 2 times per minute) that was occurring from specific IPs. A decent firewall should also be capable of detecting & blocking the most common RDP exploits.

Another detection method to consider is monitoring the security event logs for failed RDP access when there are a number of failed attempts over a specified time period.

Yet another item to consider is 2 factor authentication with hardware or software based tokens.
 

CPX

Ars Legatus Legionis
28,143
Subscriptor++
Internal firewalls not needed in this case. Use a Windows Firewall GPO to deploy an RDP white list to the servers. I'm still working on the understanding that only admins are using RDP and they're not worried about infected management stations. The GPO option is the single fastest and easiest solution to securing RDP with no individual hardware or software required.
 

idlejam

Smack-Fu Master, in training
64
Subscriptor++
As noted by many others in the thread, there are a number of different methods to tackle the issue. Some suggestions that in some ways directly and indirectly could be helpful...

- Use Microsoft LAPS for local administrator accounts
- Restrict access to the server to only those systems/subnets that need it, and/or use a gateway or jump server (already mentioned above)
- Use a network monitoring or intrusion detection system for continuous monitoring and establishing a baseline, so you know when abnormal activity is occuring

The monitoring/detection system may be the most difficult to implement if you don't already have something in place, but also provides some of the largest benefits, not only for RDP, but for a whole host of other security reasons. Once you establish a baseline of traffic for what you can classify as expected or normal activity (RDP traffic or otherwise), you can start alerting on traffic paterns that are abnormal. In my environment, my security team knows what RDP sessions fall under the "normal activity" pattern, and alert when they see anything outside that. We can say with a high level of confidence that we know what is happening on our network, not with 100% certainty, but with good data in a lot of areas.

Tools like Bro or the Security Onion distro can provide some low-entry-cost tools to start down an intrusion prevention/continuous monitoring path, excepting for the time investment required.
 

sjconsultant

Wise, Aged Ars Veteran
150
[url=http:/civis/viewtopic.php?p=32525173#p32525173:179l37n6 said:
CPX[/url]":179l37n6]Internal firewalls not needed in this case. Use a Windows Firewall GPO to deploy an RDP white list to the servers. I'm still working on the understanding that only admins are using RDP and they're not worried about infected management stations. The GPO option is the single fastest and easiest solution to securing RDP with no individual hardware or software required.

Windows Firewall can't detect RDP brute force nor can Windows Firewall detect RDP exploits. Assume things if you like, but I'm not assuming anything.
 

CPX

Ars Legatus Legionis
28,143
Subscriptor++
[url=http:/civis/viewtopic.php?p=32525221#p32525221:9d4osa17 said:
sjconsultant[/url]":9d4osa17]
[url=http:/civis/viewtopic.php?p=32525173#p32525173:9d4osa17 said:
CPX[/url]":9d4osa17]Internal firewalls not needed in this case. Use a Windows Firewall GPO to deploy an RDP white list to the servers. I'm still working on the understanding that only admins are using RDP and they're not worried about infected management stations. The GPO option is the single fastest and easiest solution to securing RDP with no individual hardware or software required.

Windows Firewall can't detect RDP brute force nor can Windows Firewall detect RDP exploits. Assume things if you like, but I'm not assuming anything.

The OP's situation doesn't need to detect RDP brute force attacks or exploits, he needs to prevent them from infected user workstations to servers. Denying traffic on the RDP port to all but admin workstations solves the problem completely. If the OP is worried about admin stations, that's a different story... But already addressed as well.

As for detecting exploits, also not needed if you're blocking the vast majority of questionable hosts.

I don't make assumptions, I provided solutions based on the factors and constraints stated.
 

sjconsultant

Wise, Aged Ars Veteran
150
[url=http:/civis/viewtopic.php?p=32525549#p32525549:38uksdug said:
CPX[/url]":38uksdug]
The OP's situation doesn't need to detect RDP brute force attacks or exploits, he needs to prevent them from infected user workstations to servers. Denying traffic on the RDP port to all but admin workstations solves the problem completely. If the OP is worried about admin stations, that's a different story... But already addressed as well.

As for detecting exploits, also not needed if you're blocking the vast majority of questionable hosts.

I don't make assumptions, I provided solutions based on the factors and constraints stated.

[url=http:/civis/viewtopic.php?p=32471415#p32471415:38uksdug said:
Oelph[/url]":38uksdug]All of our servers (400+ physical and VMs) have RDP enabled for administrative access. What does the hive mind recommend to secure RDP against brute force attacks of local administrator accounts and the latest ransomware variants which try to exploit RDP?

We need to increase security whilst minimising the impact on our server admins and third party remote support companies.

Cleary the OP did state the need to secure against brute force attacks.
 
Status
Not open for further replies.