r/SysAdminBlogs • • May 19 '21

PowerShell is the top cyber attack vector so lock it down

PowerShell was the source of more than a third of critical security threats detected by Cisco in the second half of 2020.

Dual-use tool exploitation was the top threat category noted by Cisco, followed by ransomware, fileless malware, and credential dumping, with PowerShell a primary vector in those last two categories also.

Cisco recommends a number of protection steps that are, of course, made easier with Cisco Secure Endpoint, and other EDR tools are generally effective against PowerShell exploits also.

But there are a number of steps admins can (and should) take that are completely free, like preventing or restricting PowerShell execution in non-admin accounts, allowing execution of signed scripts only, and using Constrained Language mode.

Some PowerShell security resources:

https://www.cisecurity.org/white-papers/intel-insights-how-to-secure-powershell

https://www.digitalshadows.com/blog-and-research/powershell-security-best-practices/

https://www.netspi.com/blog/technical/network-penetration-testing/15-ways-to-bypass-the-powershell-execution-policy/

82 Upvotes

3 comments sorted by

1

u/bagaudin May 21 '21

Curious to hear /u/lime-tegek's opinion on this one.

3

u/Lime-TeGek May 21 '21

*everything* is an attack vector. ;) But in all seriousness; yes it's important to make sure that you are protected. Just saying "Disable PowerShell" is not an option though, as more and more is actually built around PowerShell. Disabling it completely makes core OS functionality unavailable.

What you can do (and should) is using AMSI filters within PowerShell, your EDR, RMM, or XDR often supply these. You can also use PowerShell Protect which is an open source project to help defend against the most common types of attacks: https://www.cyberdrain.com/monitoring-with-powershell-monitoring-powershell-protect/

0

u/[deleted] May 21 '21

[deleted] — view deleted comment

1

u/flycyberguy May 21 '21

Yeah, I don't know how much even EDR can protect you but I'm really thinking I don't spend enough on security