AP Cybersecurity · Study guide

Defense-in-Depth

AP® Cybersecurity · Unit 2 · Risk, Adversaries & Physical Security

Defense-in-Depth

Why organizations stack many different kinds of security controls instead of trusting any single one.

1One control is never enough

Every security control can fail. A lock can be picked, a password can be phished, a firewall rule can be misconfigured, an employee can be fooled. If an organization relies on one control, its security is only as strong as that control on its worst day.

2What defense in depth means

A defense-in-depth strategy, also called a layered defense, uses multiple types of security controls to protect sensitive data and systems. Think of a castle: a moat, then walls, then guards at the gate, then a locked keep, then a guarded treasury. An attacker who crosses the moat still faces the walls.

Figure 1. Defense in depth puts different kinds of controls at every layer between an attacker and the data, so no single failure exposes it.

3The layers

Layers can include human, physical, network, device, application, and data. Each layer has its own kinds of threats and its own best controls:

LayerWhat it protects againstExample controls
HumanSocial engineering, mistakesSecurity training, rules for verifying requests, reporting suspicious messages
PhysicalIntruders, theft, tamperingLocks, badge readers, guards, cameras, locked server rooms
NetworkAttacks arriving over the network, attackers moving between systemsFirewalls, network segmentation, intrusion detection
DeviceMalware and attacks on computers and phonesUpdates and patches, anti-malware, device firewalls, screen locks
ApplicationAttacks on the software people useSecure coding, checking user input, multifactor authentication
DataTheft or damage of the information itselfEncryption, access permissions, backups

4Why it works

Different threats need different controls. A firewall does nothing against an employee who holds the door for a stranger; a badge reader does nothing against a phishing email. Defense in depth lets an organization address each type of threat with the control best suited to it.

Resilience. When an adversary bypasses one control, another may still prevent access or limit the damage. The attacker has to beat several different kinds of protection, often requiring different skills, which takes more time and creates more chances to be detected.

Figure 2. Resilience: when one control is bypassed, another may still stop the attack or limit the damage.
The key idea

Assume any single control can fail. Layer different kinds of controls so that the failure of one is caught, blocked, or limited by another.

5Worked examples

Worked Example 1 Identify the layers

A school's protections

A school uses: staff training on phishing, badge readers on server rooms, a firewall, automatic updates on laptops, MFA on the grade system, and encrypted backups of student records. Name the layer of each.

  1. 1
    Phishing training: human.
  2. 2
    Badge readers: physical.
  3. 3
    Firewall: network.
  4. 4
    Automatic updates: device.
  5. 5
    MFA on the grade system: application.
  6. 6
    Encrypted backups: data.
Answer: All six layers are covered, which is defense in depth.
Worked Example 2 Resilience

The phished password

An employee types their password into a fake login page. Using Figure 2, explain what keeps the attack from succeeding.

  1. 1
    The human layer failed: the employee was fooled.
  2. 2
    At the application layer, MFA asks for a code from the employee's phone. The attacker does not have it, so the sign-in stops.
  3. 3
    Even if the attacker got further, the device layer (anti-malware) and data layer (encryption) would still stand between them and readable data.
Answer: One layer was bypassed, but a different kind of control behind it stopped the attack. That is the resilience defense in depth provides.
Worked Example 3 Why stacking helps

Three filters

Suppose three independent layers each stop 90% of a certain kind of attack attempt. Out of 1,000 attempts, how many get through all three?

  1. 1
    After layer 1: 10% of 1,000 = 100 get through.
  2. 2
    After layer 2: 10% of 100 = 10.
  3. 3
    After layer 3: 10% of 10 = 1. Overall 0.1 × 0.1 × 0.1 = 0.001.
  4. 4
    Real layers are not perfectly independent, but the idea holds: each extra layer of a different kind cuts what gets through.
Answer: About 1 in 1,000, compared with 100 in 1,000 for one layer alone.
Worked Example 4 Spot the weak plan

Five firewalls

A company buys five firewalls from five vendors and calls it defense in depth. What is wrong?

  1. 1
    All five protect the same layer (network) against the same kind of threat.
  2. 2
    A phishing email, a stolen laptop, or a malicious insider passes all five without trouble.
  3. 3
    Defense in depth needs different types of controls across layers: training, physical security, device protection, application controls, and data protection.
Answer: Not real defense in depth. Stacking the same control on one layer leaves the other layers bare.
Worked Example 5 Choose a missing layer

The open server room

A business has strong firewalls, MFA, and encryption, but its server room door is propped open for airflow. Which layer is weak, and why does it matter?

  1. 1
    Physical layer: anyone can walk into the server room.
  2. 2
    With physical access, an attacker can plug in a device, steal a server, or unplug equipment, causing downtime.
  3. 3
    Fix: close and lock the door, add a badge reader, and solve airflow with proper cooling.
Answer: The physical layer. Strong digital controls can be bypassed by someone who can touch the hardware.

6Common mistakes

Common Mistake 1 · Stacking the same control

Several firewalls, or several passwords, are not layers. Defense in depth means different types of controls at different layers.

Common Mistake 2 · Forgetting the human and physical layers

Many breaches start with a person being fooled or a door left open. Digital-only plans leave those wide open.

Common Mistake 3 · Assuming layers make you invincible

Layers lower the chance and limit the damage; they do not reduce risk to zero. Residual risk remains.

Explain defense in depth like this

“The organization uses a defense-in-depth strategy: phishing training (human), badge readers (physical), firewalls (network), anti-malware (device), MFA (application), and encryption (data). If an attacker bypasses one control, such as tricking an employee into revealing a password, MFA can still stop the login, and encryption still protects the data.”

Name several layers with their controls, and explain how a later layer protects when an earlier one fails.