Lesson 2 of 3 Azure Security Concepts

Understanding the Defence-in-Depth Model

This lesson explains the purpose of defence in depth, each of its security layers and the controls that apply at each layer.

Learning outcomes

After completing this lesson, you will be able to:

  • Describe the purpose of the defence-in-depth model.
  • Identify the layers of defence in depth in order.
  • Match a security control to its layer.

The purpose of defence in depth

The objective of defence in depth is to protect information and prevent it from being stolen by those who are not authorized to access it. A defence-in-depth strategy uses a series of mechanisms to slow the advance of an attack that aims at acquiring unauthorized access to data. If one layer is breached, a subsequent layer is already in place to prevent further exposure, and each layer gives defenders another chance to detect the attack. This approach removes reliance on any single layer of protection.

The layers

Defence in depth is often visualized as a set of concentric layers with data at the centre. Each layer provides protection so that if one is breached, the next layer prevents further exposure. The following table describes the layers from the outside in.

LayerPurposeExample controls
Physical securityLimit access to datacentres and hardwareBuilding access controls, security staff (Microsoft's responsibility)
Identity and accessControl access to infrastructure and change controlSSO, MFA, Conditional Access, auditing sign-ins
PerimeterProtect against large-scale network attacksAzure DDoS Protection, perimeter firewalls such as Azure Firewall
NetworkLimit communication between resourcesSegmentation, network security groups, deny-by-default rules
ComputeSecure access to virtual machinesPatching, endpoint protection, closing management ports, Azure Bastion
ApplicationKeep applications free of vulnerabilitiesSecure development, storing secrets in Azure Key Vault
DataProtect the data itselfEncryption at rest and in transit, access controls on databases and storage

The following diagram shows the layers around the data with example controls.

Defence in depth as concentric layers with data at the centre. From the outside in: physical security of datacentres, identity and access with MFA and Conditional Access, the perimeter with DDoS Protection and firewalls, the network with segmentation and network security groups, compute with patching and Azure Bastion, the application with secure development and Key Vault, and the data itself with encryption and access controls. If one layer is breached, the next still protects.
Each layer slows an attacker who gets through the one before.
Put in order

Layers from the outside in

Exam skills 2.4.7

Order the defence-in-depth layers from the outermost to the innermost.

Log in to try this activity Interactive activities are free with an account.

Layers and responsibilities

Different layers are protected by different parties. Microsoft secures the physical layer for every Azure service, while customers secure the layers above it to the extent the service type requires: with IaaS, the customer secures the compute layer by patching VMs; with PaaS, Microsoft does much of that. Every layer has a role for the customer in configuration, such as choosing who can access data and which network traffic is allowed.

Defence in depth and Zero Trust complement each other. Defence in depth describes where to place controls, in layers around the data; Zero Trust describes how to decide on access, by verifying every request and never assuming trust.

Match the pairs

Controls in layers

Exam skills 2.4.7

Match each control with the defence-in-depth layer it protects.

Log in to try this activity Interactive activities are free with an account.
Worked example

Placing controls in layers

A security review recommends three controls for a web application: protection against distributed denial-of-service attacks on its public IP address, rules that allow the database subnet to receive traffic only from the web subnet, and encryption of the customer data in the database. Which defence-in-depth layer does each control belong to?

DDoS protection guards against large-scale network attacks at the edge of the environment, so it belongs to the perimeter layer. Rules that limit traffic between subnets belong to the network layer. Encrypting customer data belongs to the data layer, the innermost layer. Together they illustrate defence in depth: an attacker who bypasses the perimeter still faces network restrictions and encrypted data.

Check yourself

Which defence-in-depth layer is at the centre of the model?

Show answer

Data. Every other layer exists to protect it.

Exam Tips

Remember for the exam

  • Defence in depth uses layered protections so that a breach of one layer is stopped by the next.
  • Layers from outside in: physical, identity and access, perimeter, network, compute, application, data.
  • DDoS protection is a perimeter control; NSGs and segmentation are network controls; encryption is a data control.