- Security TWENTY
- Women in Security
Now please “Pass the Hash”, writes Calum MacLeod, VP of EMEA at Lieberman Software Corporation.
There was a time many moons ago when in an age of innocence “Pass The Hash” had a whole other meaning. For some of us old enough to remember, or that still have our wits about us, “Pass The Hash” was something you did at the back of the school on a Friday night. But times move on, and suddenly it seems that “Pass The Hash” is in vogue again.
But like so many other things, the meaning has changed. I recently heard Craig Groeschel talking about how words have changed. Ridiculous now means “really good”, sick means “cool”, bad means “good”. And by the way if you’re wondering how someone who played “Pass the Hash” knows about Craig Groeschel, well that’s a cool – as in nice not cold – story. Anyway I digress.
Suddenly it seems that “Pass The Hash” is back in vogue. You’d think it had only just been discovered, and that this is suddenly the latest exploit that is about to be unleashed on the corporate landscape. Yes, within a week or two you’ll be having the inside sales departments calling to ask if you have “PTH” problems. In fact come April, we can expect to see every vendor in the security space having “PTH” solutions on their stands at tradeshows. This of course will be followed by the PTH User Groups sponsored by vendors desperately trying to save you from PTH attacks. APTs will have become a distant memory as that was all solved in 2013. 2014 – The year of PTH!
What Is It?
Unfortunately it is not as interesting as the original, and it certainly is not going to give you a mellow feeling.
Now if like me you haven’t graduated much beyond understanding the “original hash”, it has loads to do with maths – which is probably why I should ask my wife to write this, since she has the math’s degree.
A “pass the hash” (PTH) attack can happen when just the password hash is sufficient to authenticate a user to a system. This is more of an issue on older windows systems such as XP and 2003. Because of the way in which administrative accounts were set up and stored on a system, it means that very often the local administrator account is vulnerable. And because it is used for many administrative tasks such backups, patching, installing software, etc., it becomes a security risk. If one of the machines is compromised, and the local hashes can be dumped out of the Security Account Manager (SAM) database which is present on servers running Windows Server 2003. The SAM stores user accounts for users on the local computer, so if an attacker has now gained administrative access to that machine, other machines on the networks become easy targets.
Newer versions of Windows are less vulnerable because of the way in which a machine acts when added to a domain, but it still carries risk. If you’d like a more intelligent description, you should have a look at “Still Passing the Hash 15 Years Later” at http://passing-the-hash.blogspot.nl/2012/12/wth-is-pth.html. At this point I should confess that imitation is the best form of flattery. and you will see that much of my “research” came from the site! My thanks to the authors!
Where Does It Leave Us?
Contrary to the claims of certain security vendors, PTH is neither new, nor solved by simply changing administrative passwords.
That is unless by administrative passwords you mean, administrators, service accounts, scheduled tasks, and all the other accounts in a system that are likely to be using the Administrative password. Simply changing your administrator user password is not going to protect you. It may give you that nice feeling that the original PTH gave, but you can be sure that one of these days you are going to wake up with a terrible headache, and discover that changing your admin accounts didn’t offer any real satisfaction.
Ultimately you need to have a complete inventory of everything from your registry onwards. And it’s no good having last week’s inventory!
Vigilance was key in the original PTH scenario. Someone had to be constantly on the lookout for “hackers”, be they teachers, parents or the dreaded “I am the law”. And the same applies with the 21st century PTH. Organizations need to have continuous monitoring in place for the complete Windows environment, and be dynamically discovering every location throughout the environment that an account is referenced by a Windows service, task, COM/DCOM object, or AT account.
Discovering where the accounts are used is half the battle. And snapshots in time are not going to do it. It didn’t work in the old PTH days, and it doesn’t work now. You can’t manage what you don’t know, and unless you are checking continuously you will get caught. I know from past experience!! And of course should you decide to change the passwords regularly, don’t end up starting some process to change passwords by creating yet another password on that system so that you can logon on to change the passwords. Ah yes, you’re saying to yourself this doesn’t make any sense. And you’d be right, it doesn’t.. But that’s another story.
Is There A Moral?
I suppose you could say that PTH has never been good for anyone, and both variants can be life changing, and not necessarily for the better. Pass The Hash in IT terms has been around for close to fifteen years, and exploits were available several years ago. It’s not a new vulnerability, but it is something that you should be aware of. Taking proper precautions such as ensuring that passwords are changed regularly will help. It is also important to ensure that services and scheduled tasks are not using the same passwords across your infrastructure. For example segment your environment in such a way that a breach can be contained, and always be vigilant.