Security Principles

The foundational ideas behind every secure system: CIA, defence in depth, least privilege and zero trust.

Tools and threats change constantly, but the principles of secure design have stayed remarkably stable. Teams that understand them make better decisions in situations no policy anticipated, which is most of the time in a fast-moving cloud environment.

These principles are not just for security specialists. Every architect, engineer and product owner makes decisions that affect them.

The CIA triad

Every security control protects at least one of three properties. Naming which one helps you choose the right control and explain the trade-offs.

Confidentiality
Only authorised people and systems can see the data.
Integrity
Data and systems are accurate and haven't been tampered with.
Availability
Systems and data are there when legitimate users need them.

Defence in depth and least privilege

No single control is perfect, so layer them: identity, network, application, data and monitoring. If one fails, others still stand between an attacker and what matters.

Least privilege means every person, service and AI agent has only the access it needs, for only as long as it needs it. It limits the damage from mistakes and compromised accounts, and it is one of the most effective controls you can apply.

Zero trust

Zero trust replaces "trusted inside, untrusted outside" with "never trust, always verify". Every request is authenticated, authorised and evaluated in context (who, what device, what resource, how sensitive) regardless of where it comes from.

In practice, zero trust is a direction rather than a product: strong identity, device posture, fine-grained authorisation and good logging, introduced step by step.

Assume breach
Design as if an attacker is already inside: limit movement, detect quickly, recover fast.
Secure by default
The default configuration is the secure one; insecure options require deliberate choice.

Principles in the AI era

AI assistants and agents need the same principles. Give them their own identities with scoped, short-lived permissions, keep a full audit trail of what they do, and never let an agent approve its own changes. Treat prompts and retrieved documents as untrusted input that could carry instructions.

Data classification becomes even more important: decide what each AI tool may read, and enforce it technically.

Applying principles in everyday decisions

Principles are most useful in the small decisions teams make every day: whether a service needs write access to a database, whether a debug endpoint should exist in production, whether a new integration needs a shared key or its own identity.

A simple habit helps. In design and code reviews, ask which principle a choice supports or weakens. Over time the principles become part of how the team thinks, rather than a page in a policy document.

How to put it into practice

  1. Use the CIA triad in design reviews to name what each control protects.
  2. Map your layers of defence for a critical service and look for single points of failure.
  3. Review privileged access quarterly and remove what isn't used.
  4. Introduce just-in-time access for production administration.
  5. Make secure settings the defaults in templates and golden paths.
  6. Give every automated system and AI agent its own scoped identity.

Common mistakes

  • Relying on the network perimeter as the main control.
  • Granting broad permissions "temporarily" and never removing them.
  • Treating zero trust as a product to buy rather than a set of changes to make.
  • Leaving AI agents running with a human administrator's credentials.

How to measure progress

  • Number of standing privileged accounts, trending down.
  • Share of access that is just-in-time or time-limited.
  • Share of services meeting secure-by-default baselines.
  • Time to revoke access when someone leaves or a key leaks.

Go further