Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Low-hanging hacker fruit (and how to remove it)

Low Hanging Hacker Fruit

This gist focuses on (relatively) free and (relatively) easy things organizations can do to better protect their networks without buying yet another black box with blinking lights.

Got some ideas of your own that should be on this list? Please leave a comment below!

Implementing a stronger AD password policy

Microsoft has a great paper on the topic that gives some nice high level recommendations:

  • Use a unique password per site
  • Enable complexity
  • Use some mechanism to ban people from picking known bad/leaked/breached passwords (more on that below)
  • Turn on 2FA everywhere you can

Install LAPS

The Local Administrator Password Solution from Microsoft will manage and and randomize your workstation local admin passwords. I've got a full step-by-step write-up on LAPS here

Implement Pwned Passwords

Per Microsoft's password guidance, you should use some mechanism to stop people from using weak/leaked/breached passwords in your environment. Troy Hunt’s Pwned Passwords project is a great tool for this. And I've got a write-up on using the PwnedPasswordsDLL to implement Pwned Passwords for free. Alternatively you could use a commercial solution like SafePass.me.

Disable WPAD/LLMNR/Netbios

Whenever I need to show/explain this I load up this how-to which is a great resource.

Enable SMB signing

I think this talk by byt3bl33d3r gives a great explanation and demonstration on how SMB signing can be easily abused to rain shells around the network. I wrote a gist based on his talk here with step-by-step instructions to follow in your own environment.

Patch

I'm still floored when I see organizations patching boxes by hand. There are many good tools out there that don't break the bank. I reviewed some as part of a patching solutions bake-off.

Password manager

Using a password manager will help you generate long/gnarly passwords - unique per site! - and not have to remember them. Personally I use 1Password but am very fond of LastPass and Dashlane as well.

2FA

You should turn on 2-factor authentication on every site/service that supports it. A good list of the sites that support it is here.

Training

Train your users regularly - via computer-based training or in person. And don't shame/blame people into it, or give them a hard time if they click a phish from one of your tests. Make it positive and fun.

Mitigate MS14-025

Around 29 minutes into this Black Hills Information Security podcast episode they talk about some insecure Group Policy Preferences that attackers abuse as an easy win.

Add a warning header to inbound email from external sources

You can do this pretty easily in GSuite or O365.

Install a good third party email filter

If you're hosted with a major provider like O365/GSuite, this should already be in place. But if not there are many good ones out there I've used in the past, like Securence and Barracuda.

Remove local admin rights

Don't have your users run as local admins! If you need a strong case for the value in doing so, read through this Avecto Vulnerabilities Report for some great stats, like:

The ever-popular report makes the compelling case for least privilege, finding that of the 235 Critical vulnerabilities reported in 2017, 80% would be mitigated by removing local admin rights from users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.