Feed on
Posts
Comments

A short question for management: If an attacker logged on to one of your servers with a stolen admin account last night, would you know?

In the incidents I work on, the answer is almost always no. Not because the company didn´t have tools, but because nobody had the full picture. The firewall logs were in one place, the server logs in another, the cloud logs nowhere at all. And the people who could have connected the dots were looking at their own small part.

Knowing what happens in your environment is the foundation of all security. Without it you don´t know if your protection works, you don´t know when you are under attack and, when the worst happens, you can´t tell how the attacker got in or what he took. That last part matters a lot when you have to report to regulators, customers and the press.

So what should management ask for? Logs from the important places: identity, endpoints, servers, cloud services and the most sensitive data. Kept long enough to investigate an attack that started months ago. Brought together where someone actually looks at them. And people with the time and skills to do it, in house or as a service.

It doesn´t have to be the most expensive solution. It has to be the one that gives you the picture.

What you can´t see, you can´t defend.

This one is a bit longer than usual, because it is a topic close to my heart after this spring.

There are two kinds of SOC. The first one watches. It collects logs, looks at alerts, and when something looks bad it writes a ticket or sends a mail to the customer: ‘We have detected suspicious activity on server X. Please investigate.’ Then it waits.

The second one acts. When it sees ransomware behaviour on a server, it isolates the server. When an account logs on from somewhere impossible, it disables the account and kills the sessions. Then it calls the customer and explains what it did.

The difference sounds small. In an incident it is everything. Modern ransomware groups can go from first access to encrypting the whole environment in a few days, sometimes less. In several of the incidents I have worked on this year, the SOC actually saw the attack. The alerts were there. But the mail was sent on a Friday evening, read on Monday morning, and by then it was too late.

Why don´t more SOCs act? Mostly because they are not allowed to. The contract doesn´t give them the mandate, the customer is afraid that they will shut down something important, or the SOC doesn´t have access to the tools that can isolate a machine or disable an account.

Those are fair worries, but they can be solved. Agree in advance which actions the SOC may take without asking: isolating a workstation, disabling a normal user account, blocking a known bad file. Agree which actions need a call first, like isolating a critical server or disabling an admin account. Write it down, test it and review it after every incident.

Make sure the SOC has the technical means. A modern EDR can isolate a machine with one click. The identity platform can revoke sessions and force a password reset. Automation can do the obvious things in seconds, so the analysts can spend their time on the hard ones.

And measure the right thing. Not how many alerts the SOC handled, but how long it took from detection to the threat being contained.

A SOC that only reports is a very expensive smoke detector without a sprinkler.

Give it the right to act.

There are two reasons companies get a SOC. Because they must, or because they want to.

The first kind is bought to satisfy a regulator, an auditor or a customer. The requirement says ‘continuous security monitoring’, so a service is purchased, preferably the cheapest one that ticks the box. It collects some logs, sends a monthly report and nobody really reads it.

The second kind is part of the security work. It is connected to the rest of the security organisation, it knows the environment, it has the mandate to act, as I wrote in my previous post, and what it finds is used to improve the protection. When the SOC sees the same type of attack three times, someone fixes the hole.

The cost of the two is not as different as you might think. The big difference is in how you use it.

So for management: Look at your SOC and ask a few questions. When did it last stop an attack, not just report one? What did we change in our environment because of something the SOC found? Does the SOC know which of our systems are the most critical? Can it act without waiting for us?

If you can´t answer those, you probably have the first kind.

A SOC is not a cost of compliance. It is your eyes and hands when something goes wrong.

I had been looking forward to this vacation for months. Bags packed, plans made. Then the phone rang.

A service provider in northern Europe had been hit by ransomware, and not in a small way. More than 50 Active Directory forests, belonging to the provider and its customers, were lost. Encrypted or destroyed, all at once.

So the vacation was cancelled and I spent the following weeks helping to rebuild. I won´t go into details about the customer, but I can share some of what I learned.

The attackers had come in through the provider´s own environment and from there they had access to every customer, because the provider´s admin accounts and management tools reached everywhere. One identity, one set of tools, fifty victims.

Rebuilding one Active Directory after ransomware is a big job. Rebuilding fifty in parallel means you need a very clear order: which customers and which services come first, which domain controllers can be trusted, which backups are clean. And you need to make sure the attacker isn´t still there when you bring it back.

The technical lesson is the one I have repeated for years. A service provider´s admin environment is Tier 0 for every customer it serves. It needs to be protected like that, separated per customer and monitored closely.

I´ll take my vacation later. The attackers don´t check calendars.

In my previous post I wrote about a service provider that lost more than 50 Active Directory forests in one attack. This one is for management, and especially for those who outsource IT operations.

When you outsource your IT you don´t outsource your risk. You change it. Your security now depends on how the provider protects its own admins, its tools and its other customers. If an attacker gets into the provider, he may get into all of its customers at once, including you.

What does that cost? For the customers in my case it meant weeks without systems, rebuilding from scratch and a lot of questions from their own customers and regulators. The provider´s contracts did not cover anywhere near the real cost.

So here are a few things to ask your provider. Are your admin accounts and tools separated per customer, or can one stolen account reach everyone? Do you protect your admins with a second factor and dedicated admin workstations? How fast will you tell us if you have an incident? Can we see the logs of what your staff do in our environment? And what happens to us if you go down?

If the answers are vague, the risk is real.

Outsourcing can be a good decision. But you need to pay for the security, either up front in the contract or later in the incident.

Someone else´s hands still hold your keys.

06.00 to 21.00

Spring is well under way in Sweden. The birds are back, the evenings are getting longer and I see very little of it.

Ransomware is everywhere right now. This month alone a major fuel pipeline in the US and the Irish health service have been hit, and those are only the ones that made the headlines. Most of the incidents never reach the news.

My days at the moment start at six in the morning with a call to a customer in one time zone and end at nine in the evening with a call to another. In between there are investigations, bridge calls, coordination with the customer´s teams and a constant stream of new findings.

What strikes me is how similar the incidents are. The attackers come in through a remote access service without a second factor, or a server that wasn´t patched. They get domain admin within days, sometimes hours, because admin credentials are lying around on servers and workstations. They find the backups and destroy them. Then they encrypt everything at once, usually on a Friday night.

None of this is new to readers of this blog. Tier model, PAW, credential hygiene, immutable backups. It is the same list as always.

If you have started on that list, keep going. If you haven´t, start this week. I´d rather meet you at a conference than on a bridge call at 21.00.

A short one this time.

Over the weekend the world passed one billion vaccine doses given against covid. It is impressive, even if the doses are very unevenly spread and most countries still have a long way to go.

It made me think. Wouldn´t it be nice if we could vaccinate our computers the same way? One shot, maybe a booster after a few months, and they would be protected against the known threats.

Then I realised we can. It´s called patching. The difference is that computers don´t complain about sore arms, and still we struggle to get them all done.

Book your computers´ shots too.

With all the ransomware this spring, many managers have asked me about cyber insurance. Is it worth it?

My honest answer is: Read the policy before you decide, because the problem is often that it demands a lot and covers little.

To get insured you have to fill in a long questionnaire about your security. Do you have a second factor on remote access? Do you have offline backups? Is everything patched? Do you have an incident response plan? That is good in itself, it forces you to look at your security. But if the answers turn out to be wrong after an incident, the insurer may refuse to pay.

Then look at what is actually covered. Many policies have limits that are low compared to the real cost of a large incident. Some exclude certain types of attacks, for example those attributed to a nation state. And the premiums are going up fast as the insurers lose money on ransomware.

So for management: Cyber insurance can be a useful part of your risk management, especially to get access to incident response help quickly. But it doesn´t replace security, and it will not cover the full cost of a bad incident.

The best way to lower your premium is the same as the best way to avoid needing it.

Insurance pays for the damage. Security prevents it.

Following up on my short post, let´s talk about the money side of patching.

Patching costs. It needs people, tools, test environments and maintenance windows when systems are down. For some legacy systems it means paying for extended support or rebuilding applications. I understand why it is tempting to postpone.

But look at the other side. Since I started working in incident response I have seen very few incidents where the attacker used something truly unknown. Almost always it was a known vulnerability with a patch available, sometimes for years. Just a few weeks ago the world scrambled to patch Exchange servers after a set of vulnerabilities was exploited on a massive scale. The ones who patched in the first days were in a much better position than those who waited for the next maintenance window.

Here is a simple way for management to look at it. Ask your IT department what it costs per year to keep everything patched within 30 days. Then ask what one week of complete downtime would cost the business. In every company I have asked, the second number is many times bigger than the first.

And patching is one of the few security investments where the effect is easy to measure: the share of systems patched on time.

Patching is not an IT cost. It is the cheapest insurance you can buy.

I have spent some time lately looking at how Azure can help with the technical part of compliance, and I´m impressed by where this is heading.

Most of the technical controls in standards like ISO 27001 and NIST are about configuration. Is the disk encrypted? Is the firewall on? Are the right security settings applied? Is logging enabled? Traditionally you check this once a year with a script or a manual review, write a report, and by the time the report is done half of it is out of date.

With Azure Policy, and its guest configuration capability for what happens inside the machines, you can define those controls once and have them evaluated continuously on every machine. Not only Azure VMs but also servers on-premises and in other clouds through Azure Arc. You get a dashboard that shows which machines comply with which control right now, and in many cases you can let the policy fix the configuration automatically.

There are built-in initiatives mapped to well-known standards, so you don´t have to start from scratch. You will still need to adapt them, but it saves a lot of time.

It doesn´t solve compliance. The processes and the people are still yours. But it turns the technical part from a yearly exercise into something you can see every day.

Compliance should be a state you monitor, not an event you prepare for.

« Newer Posts - Older Posts »