Feed on
Posts
Comments

In my last post I described AdminSDHolder, an object in Active Directory that attackers can change to keep their access. One change, in one place, and very few organisations monitor it.

At the same time, the same organisations often pay a lot to monitor things that rarely matter. Every firewall flow, every successful logon to every file share, every antivirus update. Gigabytes per day, stored and paid for, with very little value during an incident.

This is a resource problem. Monitoring costs money in licences and storage, but even more in people. Every alert needs someone to look at it. If the SOC drowns in noise, it has no time for the few signals that really matter. And when budgets are tight, the instinct is to cut the number of analysts, not the amount of noise.

So for management: ask your security team for the list of what is monitored and why. Then ask a different question: what are the ten changes in our environment that would mean we are seriously compromised? Changes to privileged groups, to AdminSDHolder, to Group Policy, to the federation settings, new admin accounts in the cloud. Are those monitored, and does someone act on them within minutes?

If not, move the money. It is usually cheaper to monitor less, but better.

The cost of monitoring isn´t the logs. It is the attention.

Let´s talk about one of the more obscure objects in Active Directory: AdminSDHolder.

AdminSDHolder is a container in the System part of the domain. Its permissions work as a template. Every hour or so a process on the domain controller holding the PDC emulator role, called SDProp, goes through all members of the protected groups, like Domain Admins, Enterprise Admins, Administrators and the operator groups. It overwrites their permissions with the ones on AdminSDHolder. The idea is good: if someone changes the permissions on an admin account, they are automatically reset.

Now think like an attacker. If you have Domain Admin for a short while and want to keep your access, add a permission for an account you control to AdminSDHolder. Within an hour SDProp copies it to every protected account. The defenders can clean up the admin accounts as much as they like, and an hour later your permission is back. Many teams don´t even know the object exists, let alone check it.

So, during an incident, always check the permissions on AdminSDHolder against a known good baseline. Monitor changes to it with directory service auditing. Defender for Identity and similar tools can alert on it. And check the adminCount attribute on accounts, which tells you which accounts have been touched by SDProp, even if they are no longer in a protected group.

It is one object. It takes five minutes to check, if you know it is there.

In my previous post I listed Microsoft´s recommendations for the built-in groups in Active Directory. None of it is secret and none of it is new. So why do I almost never find an environment that follows it?

The honest answer is convenience and old habits. Being Domain Admin is convenient. Everything works, no permission is ever missing, nobody has to file a ticket. And once a habit is set, it stays. The admin who got Domain Admin in 2008 to install a printer driver still has it.

But underneath the convenience there is something else: lack of resources. Cleaning up privileged groups takes time. Someone has to find out what each account is used for, test what breaks when the rights are removed and build a better way of delegating. In a small IT team where two people run everything from the network to the phones, that work never makes it to the top of the list. There is always something more urgent.

For management, the question isn´t whether your admins know the recommendations. Most do. The question is whether they have the time and the mandate to implement them.

Give them a few weeks to clean up, and back them when someone complains about losing a right they never needed.

Old habits are free. Until the day they aren´t.

Last month I turned 50. I spent half of the day on a call with a small municipality that had been hit and couldn´t afford an incident responder. It wasn´t the birthday I had planned, but it was a good one. And it reminded me of something I see over and over: the built-in groups in Active Directory.

Microsoft´s guidance on securing Active Directory has been clear for years. Enterprise Admins and Schema Admins should be empty, and only get members temporarily when you actually need them. Domain Admins should be used for building the domain and for disaster recovery, not for daily work. The built-in Administrator account should be protected and seldom used. Account Operators, Server Operators, Print Operators and Backup Operators should preferably be empty, because their rights reach much further than their names suggest. A Backup Operator can read every file on a domain controller, including the database with all the password hashes.

Add your privileged accounts to Protected Users, and check what is in Pre-Windows 2000 Compatible Access while you are at it.

At the municipality, like at so many others, these groups had grown over twenty years. Old service accounts, consultants who left long ago, and a few people who were added ‘just for a moment’. Not out of carelessness. There was simply nobody with time to look.

Empty groups can´t be abused.

It is New Year´s Eve again, and as always the security architect, or should I say Technical Specialist now, is writing a blog post.

2022 hasn´t been an easy year. There has been war in Europe, energy prices that made us all look at the thermostat, inflation, and of course a steady flow of attacks. Phishing campaigns that stole one-time codes, ransomware that hit hospitals and municipalities, and vulnerabilities that had to be patched yesterday.

But here is what I want to say this year. Even when bad things happen, there are a lot of us who help.

I have seen security people work through nights and weekends to get a hospital back online. Incident responders who cancelled their vacations without complaining. Colleagues at competing companies sharing indicators and advice because the attacker was the same. Researchers who publish what they find so everyone can protect themselves. And admins in small municipalities who learned more about Active Directory in a week than most of us do in a year, because they had to.

So a big thank you to everyone who works every day to keep things running. To everyone in healthcare, who has carried an enormous load for three years now. And to everyone in security, often invisible until something goes wrong.

You make a difference, even when nobody sees it.

Happy new year, and greetings from all my dachshunds!

A question that comes up every budget season: How much more do we spend on security today than ten years ago? Let´s look at the market as a whole.

The first comparable figure I can find from Gartner is for 2011, when worldwide spending on security was estimated at 55 billion US dollars. For 2022 Gartner estimates about 169 billion dollars. The definitions are not exactly the same, but close enough for the big picture.

Let´s make it fair. Adjusted for inflation, 55 billion dollars in 2011 is about 72 billion in 2022 dollars. Converted to euro at the average 2022 exchange rate, that is roughly 68 billion euro in 2011, compared with roughly 161 billion euro in 2022.

So in today´s money, the world spends about 2.4 times as much on security as eleven years ago. Not counting inflation, it is about three times as much.

Is that strange? Not really, if you remember my post on faster cars needing better brakes. We have moved to the cloud, we work from anywhere, and attackers have turned ransomware into an industry.

The question for management is not if we spend more, but if we spend it right. More than doubled spending hasn´t reduced the number of incidents. Much of the money goes into tools that are never fully used.

Before you add to the budget, make sure you get full value from what you already pay for.

Every Swede knows the old Christmas song ‘Nu är det jul igen’, where Christmas lasts all the way to Easter. Then someone corrects it: no, Easter comes before that. I have a security version.

Nu är det jul igen, och nu är det hack igen,
och hackandet varar väl till påska.
Det var inte sant, och det var inte sant,
för hackandet varar hela året.

For the non-Swedes: Now it is Christmas again and now it is hacking again, and the hacking lasts until Easter. That wasn´t true, because the hacking lasts all year.

And that is the sad truth. There is no season for attacks. Christmas, Easter, midsummer, vacation weeks, Friday evenings, the night before a big product launch. Attackers just pick the moment when we are least prepared, and they are always somewhere in the world working while we are asleep.

So my Christmas advice is the same as every year. Patch what is exposed before you leave. Check that the backups ran and one copy is out of reach. Make sure someone can see the alerts and has the right to act. And with the Defender stack, turn on the automatic responses so the machine can isolate an infected device even if the on-call person is busy with the Christmas ham.

Then dance around the tree. Just keep your phone in your pocket.

Something I see in almost every organisation I work with: security rules and decisions that made sense once and nobody has questioned since.

Passwords that must be changed every 60 days, which only makes people choose weaker passwords with a number at the end. A firewall rule opened for a project that ended in 2015. An exception for an old system that was supposed to be replaced ‘next year’ for the last eight years. A policy that requires all admin work to be done on-premises, written before half the environment moved to the cloud.

Each of these was a decision someone made for good reasons. The problem is that the world changed and the decisions didn´t. And every one of them costs something today. In security, because old rules leave gaps that modern attackers exploit. In money, because old exceptions and old systems are expensive to maintain and protect. And in productivity, because outdated rules make life harder for everyone without making anyone safer.

So for management: Put an expiry date on security decisions. Every policy, exception and accepted risk should be reviewed at least every few years. Ask what has changed since the decision was made, and if it still makes sense.

You don´t pay for old mistakes once. You keep paying until you fix them.

If you have attended one of my workshops, you have probably seen me put up a very busy slide with a lot of boxes and icons, and then say ‘don´t panic’. That is the Microsoft Cybersecurity Reference Architectures, the MCRA.

At a high level, the MCRA is a set of diagrams that show how security capabilities fit together. It describes Microsoft´s security capabilities, but just as much how they integrate with what you already have, including third party tools and on-premises systems. It covers identity, devices, applications, data, infrastructure, security operations and more, and connects them to Zero Trust principles.

What can it help with? A few things I use it for.

As a map. When a customer wants to know where something fits, or what they might be missing, the MCRA gives a structured overview to start from.

As a gap analysis. Take the architecture, mark what you have and what you use. The empty boxes are where to look next.

As a common language. Architects, engineers and management can look at the same picture and talk about the same thing.

And as a learning tool. Each section links to more detailed guidance.

It is not a blueprint to copy. Every organisation is different. But it saves a lot of time compared to starting from a blank whiteboard.

A good map doesn´t walk the road for you. It just keeps you from getting lost.

Back in 2018 I wrote about MITRE Att@ck, as I spelled it then, and how it lets you reuse a very thorough analysis of how attackers actually work. Four years later it has become the common language of the whole industry, so a short summary is in order.

MITRE ATT&CK is a knowledge base of attacker behaviour based on real world observations. It is organised as tactics, the attacker´s goals like initial access, credential access or lateral movement, and techniques, the ways to achieve those goals. Each technique has examples of groups that use it, ideas on how to detect it and how to mitigate it.

How do you use it technically? First, map your detections. Take the alerts and rules in your SOC and mark which techniques they cover. The gaps are your blind spots. Second, use it for threat hunting. Pick a technique used by groups targeting your industry and go look for it in your logs. Third, use it when you test. Red team exercises and attack simulations can be planned and reported per technique, so you know exactly what was detected and what wasn´t. Fourth, use it in incident response. Mapping what the attacker did makes it easier to understand the attack and to share the findings.

Most modern security tools, including the Defender stack, already tag their alerts with ATT&CK techniques. Use that.

Know the playbook your opponent uses.

« Newer Posts - Older Posts »