Feed on
Posts
Comments

The backdoor in xz utils was found by a person who noticed half a second. That says something about what kinds of people a security team needs.

Many organisations recruit for the same profile. Social, quick, good at presenting and selling ideas. Those people are important. Someone has to explain to management why the budget matters, and someone has to build relationships with the business.

But security also needs people who notice the tiny detail that doesn´t fit. People who read logs for hours and enjoy it. People who can´t let go of a question until it is answered. People who prefer a precise answer to a quick one, and who will tell you, directly, that something is wrong.

These people are not always the loudest in the room, and they are not always comfortable in a traditional interview or an open office. Many of them think in ways that differ from the majority. That is exactly why they see what others miss.

So for management: Look at how you recruit and how you work. Do your interviews reward only those who present themselves well? Can someone do their best work if they need quiet, clear instructions or a different way of communicating? Do you value the person who asks the uncomfortable question?

A team where everyone thinks alike will miss the same things. A team with every kind of mind sees more.

Attackers are creative. Your defenders need to be too, in every way.

At the end of March, a developer noticed that his SSH logins took about half a second longer than they should. Most of us would have shrugged. He didn´t. He investigated, and found a backdoor deliberately planted in xz utils, a compression library used in almost every Linux distribution. It had been inserted by a contributor who had spent more than two years building trust in the project.

If it hadn´t been found, it would have given whoever held the right key access to a huge number of servers. It was found because one person thought 500 milliseconds was strange.

That is the essence of detection. Every serious attack leaves traces that are just a little bit wrong. A logon at an odd hour. A process that uses more CPU than it should. A service account that suddenly talks to a new server. A DNS query to a domain nobody has seen before. Each of them is easy to ignore.

Technically, there are a few things that help. Know what normal looks like, so the strange stands out. User and entity behaviour analytics can do part of this for you. Keep the data long enough to compare. Make it easy for anyone, not only the SOC, to report something odd, and take the reports seriously. And give your analysts time to follow up on things that are not yet alerts.

The tools will find the obvious. People find the strange.

Never ignore the half second.

My previous post was about securing OT and medical technology. For management, the underlying issue is legacy, and how to think about it.

Legacy isn´t a failure. It is often a sign that something has worked for a long time. A control system that has run a plant for twenty years has paid for itself many times over. The problem is that its risk has grown while nobody looked.

So how should management think about it?

Make it visible. Every legacy system should have an owner, a known risk and a decision: replace, isolate or accept. Accepting is fine, as long as someone signs it.

Price the risk, not just the replacement. Replacing a system is expensive and easy to postpone. But what does it cost if it stops for a week? Or if it is the way an attacker gets into the rest of the company?

Budget for protection while you wait. If replacement is five years away, you need segmentation, monitoring and controlled access now. Those are much cheaper than the replacement.

Include security in procurement. The systems you buy today are tomorrow´s legacy. Demand a support period, patching and security features from the start.

And give OT and IT a common table. Too often they are separate worlds, and the attackers use the gap.

Legacy is a debt. You can pay the interest, or you can pay it off. Ignoring it isn´t an option.

Operational technology, the systems that run factories, power grids and water plants, and medical technology in hospitals, is one of the hardest areas in security. Not because it is exotic, but because it is old and heavily regulated.

A control system or a medical device is often certified as a whole. Changing the operating system, installing a patch or adding an antivirus can void the certification. So systems run Windows versions that went out of support years ago, and they will keep doing so for many years more.

How should you handle it architecturally? Here is my approach.

Inventory first. You can´t protect what you don´t know. Use passive monitoring that listens to the network and identifies devices and protocols without disturbing them. Defender for IoT and similar tools do this well.

Zones and conduits. Divide the environment into zones by function and risk, in line with IEC 62443, and control every connection between them. The Purdue model is still a good starting point.

A real boundary between IT and OT. A DMZ in between, with no direct connections. Data that needs to go out goes through brokers or, for the most critical systems, a data diode.

Separate identities. OT should not depend on the corporate Active Directory. If the IT domain is encrypted, the plant must still run.

Controlled remote access. Vendors need access, but through a controlled path: a jump host reached from a PAW, with approval, time limits and logging. Never a remote access tool installed directly on a control system.

Monitor what you can´t patch. Unusual commands, new devices or connections to the internet should raise alarms.

And plan for the day it goes down: manual operation and backups of configurations and programs.

You can´t make old technology new. You can put a strong fence around it.

In the US a large healthcare payment company was hit by ransomware this month, and the effects on pharmacies and hospitals are enormous. The company had been acquired by a larger group a couple of years ago and, according to what has been reported, the integration into the group´s IT and security was not complete.

I see this pattern all the time. A company buys another, the business is integrated quickly, but the IT stays separate for years. Two Active Directory forests, two cloud tenants, two sets of security tools, two SOCs or none. And somewhere in the acquired company there is an old remote access portal with only a password in front of it.

Why is it so hard technically? Identities must be merged or connected without giving everyone access to everything. Trusts between forests often open more than intended. Security tools have different coverage, and the acquired company´s environment is often older and less documented. And for a while, the security team has to watch two environments with the people of one.

What helps? Start with the identity. Bring the acquired company´s users and admins under the same Conditional Access and the same protection of privileged accounts from day one, even if the systems stay separate. Avoid broad forest trusts. Use cross tenant synchronisation for collaboration.

And bring the security monitoring together. Microsoft just made multitenant management in Microsoft Defender XDR generally available. It gives the SOC one view of incidents and lets them hunt across all tenants, without logging in and out of each one. That is exactly what you need while the integration is in progress.

Day one of the acquisition is day one of the attacker´s opportunity.

Following my post on security in acquisitions, a word to management.

When you buy a company, you buy its customers, its products and its people. You also buy its security debt, whether you know about it or not. Unpatched systems, old remote access, admin accounts nobody has looked at for years.

The problem is that security integration rarely gets priority. The business case for the acquisition is about revenue and synergies. Security is a cost, and the IT integration is planned for year two or three. Until then, the acquired company runs as before, but now with your name and your customers attached to it. For an attacker, it is the softest way into the group.

So what should management do? Include a security assessment in the due diligence, before the deal is signed. It may affect the price. Set a short deadline, measured in weeks, for the most critical controls: a second factor on all remote access, protected admin accounts and monitoring by the group´s SOC. Budget for the integration as part of the acquisition cost, not as an IT project later. And give the security team the people to do it, because they can´t do it on top of everything else.

An acquisition that isn´t integrated is a door left open. And the door has your name on it.

After the ransomware attack on a large IT provider in Sweden last week, many managers are asking the same question: What should we have demanded from our provider?

Here is my list.

Separation. Your environment should be separated from other customers, technically and administratively. Ask how many of the provider´s admins can reach your systems, and whether an attacker who gets into one customer can reach the next.

Protected administration. The provider´s admin accounts and admin devices are Tier 0 for you. Demand a second factor, dedicated admin workstations and just in time access.

Backups you control. Demand copies of your data that are stored separately, can´t be deleted by the provider´s admins and are regularly tested for restore.

Transparency. The right to see the logs of what the provider does in your environment, and the right to audit. Notification within hours when they have an incident, even before they know if you are affected.

Continuity. A documented and tested plan for how your critical services are restored, in what order and how fast. And a plan for how you can leave the provider if you need to.

Price it in. All of this costs money, and the cheapest bid usually doesn´t include it. Put the requirements in the procurement, not in a later negotiation.

The new rules in the NIS2 directive will soon make many of these requirements mandatory anyway. Start now.

Choose your provider like you choose your bank. You are trusting them with your business.

Last weekend a large IT service provider was hit by ransomware in one of its Swedish datacenters. The effects were felt all over the country. Municipalities, government agencies, hospitals, retailers and a cinema chain. Shops closed, a payroll and HR system used by many universities and government agencies went down, and people couldn´t report their sick leave.

Most of the affected organisations did nothing wrong themselves. Their systems were simply running in the same place as everyone else´s.

This is the supply chain risk in its purest form. And there are technical things you can do about it.

First, know where your systems actually run. Not just ‘at the provider’, but which datacenter, which platform and which other systems share it.

Second, keep your own copy. Backups that the provider can´t reach, ideally in another location and with immutability. If the provider´s environment is encrypted, your data shouldn´t be.

Third, separate the identities. Your provider´s admins should use accounts that only work in your environment, with a second factor and from devices they control. A single admin account that reaches all customers is a single point of failure for all of them.

Fourth, monitor the connections. Log what the provider does in your environment and send it to your own SOC.

Fifth, practise the day the provider is gone. Which systems must work, and how do you run them without the provider?

You can outsource the operation. You can´t outsource the consequences.

New Year´s Eve again, and a year since I turned 50 on a call with a municipality that couldn´t afford help. That day set the tone for my whole year of writing: resources, and how the lack of them shapes our security.

Three events stood out for me in 2023. In the spring, a supply chain attack in which a widely used business phone application was itself compromised, and its users got malware through a legitimate update. In early summer, the mass exploitation of a file transfer product, where one criminal group stole data from hundreds of organisations in a single campaign. And in the autumn, a gateway vulnerability that let attackers take over sessions, used by ransomware groups against companies all over the world.

But the story that stays with me most is still Ukraine. In the first days of the war, Ukraine moved critical government data out of the country and into the cloud, in datacenters across Europe. Microsoft´s report on defending Ukraine described how a government datacenter in Kyiv was later hit by Russian missiles. The data was already safe. It is the clearest example I know of resilience planned in time, and of the difference cooperation can make.

So my greetings this year go to everyone who stands up against oppression, in Ukraine and elsewhere. And to everyone who fights hackers every day, often with too few people and too little time.

Happy new year, and greetings from all my dachshunds!

A final business post for 2023, and a topic I come back to every year: the cost of not patching.

This year was full of examples. A file transfer product exploited on a massive scale in early summer, with hundreds of organisations losing data, many of them without even knowing they used the product through a supplier. A remote access gateway vulnerability in the autumn that let attackers take over sessions and was used in serious ransomware attacks. In most cases, organisations that patched quickly were fine. Those who waited were not.

Why don´t organisations patch faster? Lack of resources, again. Not enough people to test and deploy patches, not enough maintenance windows, not enough knowledge of what is installed where. And fear that a patch will break something critical.

That fear is real. But compare the costs. A patch that breaks something usually means a few hours of trouble and a rollback. An exploited vulnerability can mean weeks of downtime, data loss, notifications to customers and regulators, and a damaged reputation.

So for management: ask how long it takes from a critical patch being released until it is installed on your internet facing systems. Ask what stops it from being faster. Then remove those obstacles, with money, people or automation.

Not patching isn´t free. It´s just a bill that hasn´t arrived yet. Well, well. Time for the traditional seasonal pizza with my now grownup kids.

« Newer Posts - Older Posts »