Skip to main content

Every Other Security Layer Is Designed to Fail Eventually. This One Is Designed Assuming It Already Has

Edge filtering, private subnets, and encryption all work by keeping an attacker out. Zero trust and least privilege work on a different assumption entirely: that one of those perimeters has already been breached. Why that's the layer that decides how bad a breach actually gets, and what "verify every request" means mechanically.

Updated 6 min readMarkdown

TL;DR: A WAF, a private subnet, and TLS all share the same underlying assumption, that they're successfully keeping something out. Zero trust and least privilege, the identity layer, work on the opposite assumption: that one of those perimeters has already been breached, a credential stolen, a session hijacked, and the job now is to limit what that breach can actually reach. That difference in assumption is why identity is the layer that decides whether a single compromised account is an incident or a catastrophe. A Lahore EdTech platform's security review came back with zero critical findings specifically because this layer held even where others were under real attack.

Every layer in a secure web architecture, the edge, the load balancer, the data tier, shares one design assumption: it's trying to prevent something from getting through. A WAF tries to prevent malicious requests from reaching the app. A private subnet tries to prevent direct access to the database. TLS tries to prevent interception in transit. All reasonable, all necessary, and all built on the same bet: that the perimeter holds. Zero trust is the one layer that doesn't make that bet. It assumes the perimeter has already failed, somewhere, for someone, and asks a different question entirely: given that, how much damage can actually happen?

The assumption that changes everything downstream

NIST SP 800-207 defines zero trust plainly: verify every request, rather than trusting anything because it's already inside the network. That single sentence is doing more work than it looks like. A traditional perimeter model treats "inside the network" as a trust boundary, once you're in, through a VPN, a stolen credential, a compromised service, you're largely trusted by everything else inside. Zero trust removes that boundary entirely. Every request gets verified regardless of where it originated, including requests from one internal service to another.

Model What "inside the network" means What a stolen credential gets an attacker
Perimeter-trust Mostly trusted, once past the edge Broad access, limited mainly by what that account could legitimately reach
Zero trust Nothing is trusted by default Only what that specific identity has been explicitly, minimally granted

Least privilege is what makes "verify every request" actually matter

Verifying every request is only half the mechanism. The other half is what happens after verification succeeds, and that's where least privilege does the real work. A verified, legitimate-looking request from a compromised account is still dangerous if that account happens to have broad access. Least privilege is the discipline of granting each user and each service only the access it specifically needs, nothing more, so that a successful identity check still leaves an attacker boxed into a narrow blast radius rather than the whole system.

This is the part of the identity layer that's easy to under-invest in, because it doesn't fail loudly. Over-permissioning doesn't cause an outage or a visible bug, it just sits there as unused risk until the one day a credential gets compromised, at which point it's the difference between a contained incident and a full breach.

Why this layer gets tested differently than the others

The edge layer, the load balancer, the data tier, all get validated the same way: does the attack get stopped? Identity and zero trust get validated by a different question: when something does get through, how far does it actually reach? That's a harder thing to test for, because it requires assuming a successful breach has already happened somewhere else in the stack and then checking whether the blast radius stayed small, rather than simply checking whether the front door held.

Case study: zero critical findings, including on the layers that were under real attack

A Lahore EdTech platform ran online exams for schools, with traffic spiking more than twentyfold on exam days, and held sensitive student data with no edge protection and services running with far more access than they needed. The co-build addressed the full architecture, edge, app tier, data tier, and identity, together.

Layer What was exposed before What identity specifically contributed
Edge No WAF, no DDoS protection Not identity's job, but attacks that did land elsewhere still met least-privilege boundaries
Application Broad, unscoped service permissions Scoped to least privilege, per service
Data Exposed subnets, over-permissive roles Zero-trust verification on every access, not just network-location trust
Identity (this layer) No MFA, no systematic least-privilege review Zero-trust verification + least privilege applied across every identity, human and service

The security review that followed came back with zero critical findings. That result matters more for the identity layer specifically than it might first appear: a security review tests the whole stack, including the layers that absorbed real attack traffic during the engagement. Zero critical findings means that even where other layers were tested under genuine pressure, nothing that got through turned into a finding worth flagging, which is exactly the outcome the identity layer exists to guarantee when everything in front of it is doing its job imperfectly, as every layer eventually does.

FAQ

Doesn't a strong WAF and private subnets make zero trust redundant? No, they solve a different problem. A WAF and private subnets are about preventing access from reaching something in the first place. Zero trust and least privilege are about limiting what already-authenticated access can do, which matters precisely in the cases where the earlier layers didn't fully hold, a phished credential, a compromised internal service, a misconfigured role.

Is zero trust mainly about external users, or does it apply inside our own infrastructure too? Specifically the latter is the part most teams under-build. External-facing authentication is usually taken seriously by default. Service-to-service calls inside the same network, historically trusted by default, are exactly where zero trust changes the model: every internal request gets verified too, not just the ones crossing the public perimeter.

What's the fastest way to tell if our least-privilege setup is actually tight, not just assumed to be? Audit what each role and service account can actually reach versus what it actually uses. The gap between "can access" and "does access" is almost always larger than teams expect, and it's exactly the blast radius an attacker would inherit if that specific identity were ever compromised.


Originally published on the Sherdil Cloud blog, the full piece (with the complete five-layer breakdown and four-stage build) is here. For the reliability layer this engagement also touched, see resilient cloud infrastructure; for the application-tier decision that pairs with this one, containerization done right.

About the author: Muhammad Usman is Head of DevOps at Sherdil Cloud, AWS DevOps Engineer Professional, Certified Kubernetes Administrator (CKA), and Alibaba Cloud Certified, building cloud and DevOps infrastructure for enterprises across Pakistan, the UAE, and the United States since 2014.

No comments yet. Be the first to comment.

More from this blog