Both principles appear in every security policy document ever written. Nobody argues against either. That is exactly why they get quoted so often and applied so loosely. Let me put them against each other, because in a real budget meeting they do compete, and I think one deserves priority.
What each one actually says
Defence in depth is the idea that no single control should be all that stands between an attacker and your asset. You stack layers: a firewall, email filtering, endpoint protection, network segmentation, encryption, logging, backups. If one layer fails, which it eventually will, another gets a chance to stop or at least detect the attacker. The picture people use is a castle with a moat, walls, a gatehouse and an inner keep.
Least privilege says every user, program and service should hold only the access it needs for its job, and only for as long as it needs it. An accounts clerk does not need database administrator rights. A web application that reads product data should connect with a database login that can read product data, not drop tables. A deployment pipeline should not hold keys to every environment.
The case for defence in depth
Its strength is humility. It assumes any control can be misconfigured, bypassed or simply be unavailable one Sunday night. It also matches how attacks unfold in stages, so each stage can meet a different kind of resistance. And it is easy to explain to management, because it translates into things you can buy and show on a diagram.
The weakness is that layers are often counted, not tested. A company can own twelve security products and still have an attack path that passes through none of them, because the products overlap in the same place and leave gaps elsewhere. Three tools that all inspect email are one layer in practice. Worse, each layer adds cost, alert noise and complexity, and complexity is itself a source of misconfiguration. I have seen the phrase “we have defence in depth” used to end a conversation, when it should have started one.
The case for least privilege
Here is the argument that persuades me. Think about what usually happens after an attacker gets in, whether through a phished employee, a stolen token or a vulnerable application. They can do exactly what the compromised identity can do. If that identity is a regular user with narrow access, the damage is narrow. If it is a service account with broad rights across many systems, the attacker inherits all of them. Least privilege caps the blast radius of every kind of failure, including the ones you did not anticipate, which is precisely what layered products struggle with.
It also has a nice property: it often costs less than it saves. Removing an unused administrator group, narrowing a cloud role, or deleting a shared account is mostly effort and discipline, not licence fees. And it makes detection easier. When most accounts have narrow normal behaviour, odd behaviour stands out.
The weakness is that it is dull, continuous work, and it fights human convenience. Permissions creep as people change teams and nobody removes the old access. Developers ask for broad rights because debugging with narrow ones is slow. Managers approve requests without reading them. Over months the ideal slowly rots. Least privilege is not a project you finish. It is a habit with reviews, expiry dates and a leaver process that actually works.
A small comparison in practice
Consider two imaginary firms, each with a phished finance employee. Firm A has many layers: a mail gateway, endpoint protection, a SIEM. But the finance user is also a local administrator on the laptop and has read access to the whole file server. The phish gets through, the malware is new enough to evade the endpoint tool, and the attacker reads everything the employee could reach.
Firm B has fewer tools but tight access. The same employee is a standard user and can reach only the finance share. The same malware lands. The attacker sees one share and cannot install persistence easily or move to servers using that account. Firm B’s incident report is shorter. Firm B did not do better because it had a smarter product. It did better because the identity that failed was not worth much.
Of course, if Firm B’s attacker had met a layer such as monitoring that caught the unusual behaviour, even better. The two ideas support each other. The question was about priorities.
My side, with caveats
If I could fund only one, I would start with least privilege, particularly for administrative accounts, service accounts and cloud roles, because it limits the damage from failures I cannot predict. I would then add layers where the data is most valuable, choosing them so that they fail independently of each other.
The caveats are real. Some risks are not about privilege at all, such as a public-facing application with a remote code execution flaw, where the attacker immediately gets whatever the application process can do. There, layers such as a WAF, patching speed and network restrictions matter a great deal, and least privilege only helps by shrinking what that process can touch. And in a regulated sector, auditors may ask for specific controls that read as layers. Both facts are reasonable.
A practical way to test your own setup is to pick one account, say a typical developer’s, and ask: if this were stolen right now, what is the worst thing it could do, and which control would notice? If the honest answer is “almost everything, and probably none”, you have found where to spend next quarter’s effort.
Leave a Reply