Oct 19th, 2019 by Jesper Kråkhede
When I review an Azure environment one of the first things I check is who has the Owner role. Too often the list is long and includes consultants that left the project a long time ago.
Owner in Azure is Tier 0 for your cloud. It can do anything, including giving itself and others even more rights. Treat it like you treat your Domain Admins.
Some simple things to start with. Use management groups so rights and policies are set in one place and not per subscription. Give people the least role they need, Contributor or Reader is enough for most. Use Privileged Identity Management so the admin roles are activated when needed and expire by themselves. Keep two emergency accounts that are excluded from everything else, with long passwords stored in a safe, and monitor them so you know the second they are used. And turn on Azure Security Center and actually read the recommendations.
Last but not least: The admins should manage Azure from a PAW, not from the same laptop they read mail on. Your cloud is only as secure as the device that manages it.
The cloud doesn´t change the rules, it just makes the mistakes faster.
Tags: Azure, Cloud security, Privileged access
Posted in Security Architecture, Technology | No Comments »
Oct 19th, 2019 by Jesper Kråkhede
After Texas I got the same question from a few managers: Could this happen to us? The honest answer is: Read your outsourcing contract and you´ll know.
Most contracts I see measure uptime, response times and price per server. Very few say anything about how the provider protects the access they have to your environment. Even fewer say what happens if the provider is the way in. Who pays for the incident response? Who pays when your business is down for two weeks? And is the provider obliged to tell you about an intrusion at another customer that might affect you?
Earlier this year I wrote about a customer that had to involve legal just to investigate their own Active Directory. That is the other side of the same coin. If the contract doesn´t give you the right to see and to act, you won´t be able to.
So, for management: Put the security requirements in the contract, not only in an appendix that nobody reads. Demand the right to audit and to get the logs. Demand that the provider reports incidents to you within hours, not weeks. And make sure the price for all of this is part of the deal from the start.
A cheap contract is only cheap until the day the ransom note arrives.
Tags: Business, Contracts, Service Providers
Posted in Business | No Comments »
Sep 19th, 2019 by Jesper Kråkhede
On the 16th of August 22 local governments in Texas were hit by ransomware on the same day. The common thread was not a clever zero-day. They shared the same IT service provider and the attackers came in through the provider´s remote management tool.
Think about what such a tool is. Something that can logon to all your servers, run scripts and install software, managed from outside your network by people you have never met. If you were designing an attack you couldn´t ask for a better starting point.
What to do technically? Find out which remote tools your providers actually use. You will be surprised how many there are. Require that the management server is hardened and patched, and not something sitting on internet with just a password in front of it. Require a second factor for every logon. Make sure the provider´s accounts are personal, not shared, and that they only have access to the systems they actually manage. Log every session and send those logs to your own SOC, not only the provider´s.
And test it. Ask the provider to show you what happens when one of their technicians´ accounts is stolen. If the answer is that the attacker gets access to all their customers at once, you have a problem.
The front door is only as strong as the weakest key holder.
Tags: Ransomware, Remote access, Service Providers
Posted in Security Architecture, Technology | No Comments »
Sep 2nd, 2019 by Jesper Kråkhede
In January next year Windows 7 and Windows Server 2008 reach end of support. That is six months from now. If you are in management and think this is something for the IT department, keep reading.
An old server is rarely a technical problem. It is a business decision that nobody made. Someone decided that the application was good enough, that the migration could wait until next budget year and that the risk was acceptable. Only, nobody ever wrote down that risk and nobody signed it.
When the next WannaCry comes, and it will, those are the servers that go first. And when the business stops it doesn´t matter that the IT department warned you in a mail three years ago.
So what should management do? First, ask for a list of every system that will be out of support in 2020 and who owns the business process behind it. Second, decide for each one: migrate, isolate or accept. If you accept, sign it, with a name and a date. Third, put the money in the budget now and not in a crisis after the incident when everything costs three times as much.
Legacy isn´t free. You are just paying later, with interest.
Tags: Business, Legacy, Risk management
Posted in Business | No Comments »
Aug 15th, 2019 by Jesper Kråkhede
Two months have passed since Microsoft released the patch for BlueKeep, the RDP vulnerability in Windows 7, Server 2008 and 2008 R2. It was so serious that Microsoft even released patches for Windows XP and Server 2003, and that doesn´t happen every day.
So I have spent some time asking customers a simple question: Are you patched? The answers range from ‘Yes, of course’ to ‘We think so’ and my favourite: ‘Which servers?’
The last one is the real problem. Every company I meet has a bunch of old servers that nobody really owns. The application was bought by someone who left years ago, the vendor is gone and nobody dares to restart it. Those are exactly the ones running RDP, often with the port open to places it shouldn´t be.
There is no public exploit for BlueKeep yet, but several security researchers have shown that they can make it work. It´s a matter of time.
So, do the boring work now. Find every machine with RDP open, patch it, turn on Network Level Authentication and close 3389 towards internet. If you have to reach servers remotely use a gateway, not a hole in the firewall. And while you´re at it, write down who owns that server in the corner.
Wormable means nobody will ask for permission before it spreads.
Tags: BlueKeep, Patching, RDP
Posted in Security Architecture | No Comments »
Aug 13th, 2019 by Jesper Kråkhede
After an incident there is a moment when everyone just wants things to go back to normal. Servers are restored, passwords are reset, the incident response team goes home and management breathes out. This is exactly the moment when you are the most vulnerable.
Look at it from the hacker´s perspective. You found a company that paid. They had weak admin practices, they didn´t notice you for weeks and when you asked for money they actually paid. In any other business that is called a loyal customer. Any sales person will tell you that it is a lot cheaper to keep an existing customer than to find a new one. Hackers are no different, they just have better margins.
So why wouldn´t they come back? They know your environment, they probably know a few of your passwords and there is a good chance that they left a back door or two.
Restoring to the state before the incident means restoring to the state that got you hacked. This is why the tier model and PAW must be on the list after an incident, not as a nice to have. Separate your Tier 0 accounts from everything else, make sure your domain admins only logon to domain controllers and dedicated admin workstations and never ever let an admin account read mail or browse the internet.
It is not the cheapest project you will do this year. But it is a lot cheaper than being a returning customer.
Tags: Credential Theft, Incident response, PAW, Tier model
Posted in Computer Forensics, Technology | No Comments »
Jul 28th, 2019 by Jesper Kråkhede
Here is a little exercise for you. Imagine that tomorrow morning nobody can come into the office. Not for a day, but for weeks. It doesn´t really matter why. A fire, a flooded basement, a strike in the public transport or something else entirely. Everybody has to work from home.
How does your security look then? For many companies the honest answer is: Not good. The security model is built on the assumption that the users are inside the building, on the corporate network, behind the firewall. The VPN is sized for a few hundred travelling sales people, not for the whole company. And the moment everyone is on their home network, sharing it with the kids´ gaming consoles and a smart fridge, most of your protection is gone.
This is where Zero Trust shows its value. If access is based on a strong identity and a healthy, managed device instead of where the user sits, it doesn´t matter much if the user is in the office, at home or at a café. The same checks apply. Applications published through the identity platform instead of the VPN, devices managed from the cloud and data that is protected wherever it is stored.
And if you never need it? Then you have still made life a lot harder for the attackers. Not a bad deal.
Build it before you need it. When the office is closed it´s too late.
Tags: Identity, Remote work, Zero Trust
Posted in Business, Security Architecture | No Comments »
Jul 19th, 2019 by Jesper Kråkhede
When I ask customers what they log the answer is usually something with the firewall. Gigabytes per day of network flows that cost a fortune to store and that nobody reads.
In a Zero Trust world the interesting stuff happens elsewhere. Start with the identity logs: sign-ins, failed sign-ins, MFA changes, risky sign-ins, changes to privileged groups and consents to applications. Then the security logs from your endpoints and servers: logons, process creation, use of admin tools and the alerts from your EDR. Add the audit logs from your cloud services and from where your most sensitive data lives. That is where you see an attacker, because sooner or later he has to use an identity to do anything at all.
Network logs still have their place but mostly they confirm what you already know. And a lot of the traffic is encrypted anyway.
Then there is the money. Logging is not free and the SIEM bill has a tendency to grow faster than the security budget. So think before you send everything to the most expensive storage. Keep the high value logs hot and searchable, put the bulky ones in cheaper storage where you can reach them during an investigation and throw away what nobody will ever look at. Decide how long to keep the logs based on how long it takes you to find an intruder, not on what the vendor suggests.
Log smart, not everything.
Tags: Logging, SOC, Zero Trust
Posted in Security Architecture, Technology | No Comments »
Jul 2nd, 2019 by Jesper Kråkhede
Computer forensics used to be quite straight forward. Find the computer, take an image of the disk, follow the traces and figure out what the person did.
With Zero Trust the computer is no longer the centre of the investigation. The identity is. Every access is verified and logged, so we have a lot more traces of what an identity did, where it logged on from, from which device and to which data. That is the good news.
The bad news is that the question has changed. It is no longer enough to show that the account of Mr X downloaded the customer register. Any defence lawyer worth his salary will ask: ‘How do you know it was Mr X?’ And to be frank, with token theft, phishing kits that bypass MFA and hijacked sessions, that is a very fair question.
So the focus shifts. Instead of only reconstructing what was done we must prove who actually did it. Did the logon come from a device we know he uses? Did the location make sense, or was he in Stockholm and Singapore within the same hour? Was the session token suddenly used from a new IP address? Was a new phone registered for MFA the day before?
Finding the traces of an identity takeover is the new disk image. If you can´t exclude that the identity was compromised you can´t really say that the person did it.
Logged on is not the same as guilty.
Tags: Computer Forensics, Identity, Zero Trust
Posted in Computer Forensics | No Comments »
Jun 17th, 2019 by Jesper Kråkhede
I get the question surprisingly often: ‘If we go for Zero Trust, can we get rid of the firewalls?’ Short answer: No.
Zero Trust is not a new religion that makes everything before it obsolete. It is an extension of the security we have always done. Defense in depth, least privilege, separation of duties, logging. None of that is new and none of it goes away. What Zero Trust does is to remove the one assumption that has been hurting us for years: that anything inside the network can be trusted.
The firewall is still there. It just isn´t the only one making the decision anymore. The identity, the device and the context gets a say as well. Your patching, backups and incident response are still needed, probably more than ever.
The danger of treating it as a competitor is that it becomes a political fight. The network group defends their turf, the identity team builds their own thing and the money is spent twice without the two talking to each other. I have seen that movie before and it doesn´t end well.
Start with what you have, add verification on top and let the old and the new strengthen each other. That´s Zero Trust.
Tags: Defense in depth, Security Architecture, Zero Trust
Posted in Security Architecture | No Comments »