Zero Trust

Difficulty: Advanced

Question

What is Zero Trust Architecture, and how is it different from the traditional perimeter (castle-and-moat) security model?

Answer

Zero Trust is a security model built on "never trust, always verify": no user, device or service is trusted just because it is inside the corporate network. Every request to a resource is authenticated, authorized and evaluated against policy (identity, device health, context) at the moment it is made, and access is granted per resource with least privilege. The reference definition is NIST SP 800-207, and Google's BeyondCorp is the best-known large-scale implementation.

Why the perimeter model stopped working

The old model put a firewall and VPN around the office network and trusted everything inside it. That breaks down because:

  • Employees work remotely and from personal or mobile devices.
  • Applications live in multiple clouds and SaaS products, not one data centre.
  • Once an attacker gets in (phished laptop, stolen VPN credentials), they can move laterally to anything on the flat internal network.

Zero Trust assumes breach. The network location of a request tells you almost nothing about whether it should be allowed.

Core building blocks

  • Strong identity for users and workloads: SSO with MFA (ideally phishing-resistant, such as passkeys or FIDO2 keys) for people, and workload identities (mTLS certificates, SPIFFE IDs, cloud IAM roles) for services.
  • Device posture: is the laptop managed, encrypted, patched, running EDR?
  • Policy engine: a Policy Decision Point (PDP) evaluates each request using identity, device, resource sensitivity, location and behaviour signals.
  • Enforcement point: a Policy Enforcement Point (PEP), such as an identity-aware proxy, API gateway or service mesh sidecar, sits in front of each resource and allows or blocks based on the PDP's decision.
  • Microsegmentation: services can only talk to the specific services they need, enforced by network policies or a mesh.
  • Continuous monitoring: sessions are re-evaluated; a device that falls out of compliance loses access mid-session.

Perimeter vs Zero Trust

AspectPerimeter modelZero Trust
Trust basisNetwork location (inside = trusted)Identity, device and context per request
Remote accessVPN onto the whole networkPer-application access via identity-aware proxy
Lateral movementEasy once insideBlocked by microsegmentation and per-service authz
Service to servicePlain HTTP on internal networkmTLS with workload identity
VerificationOnce, at login or VPN connectContinuously, on every request

Real-world implementations

  • Workforce access: Google IAP, Cloudflare Access, Zscaler Private Access or Tailscale replace the VPN. An engineer opening the internal admin panel is checked for SSO session, MFA and device compliance before the request reaches the app.
  • Service mesh: Istio or Linkerd give each pod a certificate and enforce mTLS plus authorization policies such as "only the checkout service may call the payments service on POST /charges".
  • Cloud: short-lived IAM credentials and per-resource policies instead of shared keys.

Common misconceptions

  • Zero Trust is not a product you buy. It is an architecture and a migration, usually done application by application.
  • It does not mean "trust nobody, block everything". It means trust is earned per request and is never implicit.
  • Removing the VPN without adding device posture and strong MFA just moves the weak point.
  • Internal APIs still need authentication and authorization. "It is only reachable inside the VPC" is exactly the assumption Zero Trust rejects.
A Zero Trust access decision. Every request passes through an enforcement point that asks the policy engine before reaching the resource.
  1. User or service: Presents identity token or mTLS certificate.
  2. Enforcement point (PEP): Identity-aware proxy, gateway or mesh sidecar.
  3. Policy engine (PDP): Checks identity, MFA, device posture and context.
  4. Allow or deny: Decision is per request and per resource.
  5. Protected resource: Only reachable through the enforcement point.

Code examples

Istio: enforce mTLS and allow only checkout to call payments

apiVersion: security.istio.io/v1
kind: PeerAuthentication
metadata:
  name: default
  namespace: payments
spec:
  mtls:
    mode: STRICT          # plaintext traffic is rejected
---
apiVersion: security.istio.io/v1
kind: AuthorizationPolicy
metadata:
  name: payments-allow-checkout
  namespace: payments
spec:
  selector:
    matchLabels:
      app: payments
  action: ALLOW
  rules:
    - from:
        - source:
            principals: ["cluster.local/ns/checkout/sa/checkout"]
      to:
        - operation:
            methods: ["POST"]
            paths: ["/charges"]

Service identity comes from the mTLS certificate, not the source IP. Any other workload calling payments is denied even though it is inside the same cluster.

Key points

  • Core idea: never trust based on network location; verify every request.
  • NIST SP 800-207 defines the model; Google BeyondCorp is the classic implementation.
  • Key parts: strong identity, device posture, policy engine (PDP), enforcement point (PEP), microsegmentation.
  • Assume breach and design to limit lateral movement.
  • It is an architecture adopted incrementally, not a single product.

Common follow-up questions

  • How would you migrate a company from VPN-based access to Zero Trust?
  • How do services authenticate each other in a Zero Trust network?
  • What is the difference between a Policy Decision Point and a Policy Enforcement Point?
  • How does device posture checking work in practice?

Interview tips

  • Contrast it with the castle-and-moat model and explain why lateral movement is the core problem.
  • Name concrete components (identity-aware proxy, mTLS, service mesh, MDM) rather than staying abstract.
  • Say clearly that it is a journey, not a product, which signals real-world understanding.

Concepts covered

Zero Trust, NIST SP 800-207, BeyondCorp, Policy Decision Point, Microsegmentation, mTLS

More Web Security (OWASP, JWT, XSS, CSRF) questions