Find a course

Module 5: Defending and RespondingLesson 12 of 1212 min

Defense in Depth and the Security Mindset

Combine layered controls, zero trust and security by design into one strategy, respect legal and ethical limits, and see where security careers lead.

Step 1 of 12Learn

Layers, not walls

Medieval castles didn't rely on one wall. They had a moat, an outer wall, an inner wall, guarded gates and a keep. An attacker who crossed one obstacle met the next. Security professionals call this defense in depth: several independent layers of protection, so that one failure doesn't expose everything.

Consider how layers stop a phishing attack:

  1. An email filter blocks most phishing messages before they arrive.
  2. Awareness training helps the user recognize the one that got through.
  3. If the user enters their password anyway, MFA blocks the login.
  4. If malware is downloaded, endpoint protection detects suspicious behavior.
  5. Least privilege means the account can't install software or reach critical servers.
  6. Segmentation limits how far the attacker can move.
  7. Logging and monitoring alert the SOC to unusual activity.
  8. Backups let the organization recover if everything else fails.

No single layer is perfect. Email filters miss messages, people click, and software has bugs. The idea is that the holes in each layer don't line up.

Controls are often grouped by what they do: preventive controls stop incidents (MFA, firewalls), detective controls spot them (logs, IDS, alerts), and corrective controls fix the damage (backups, incident response). They are also grouped by type: technical (software and hardware), administrative (policies, training, procedures) and physical (locks, badges, cameras). A balanced program uses all of them.

Step 2 of 12Practice · Diagram

Defense in depth, outside to inside

An attacker copies the raw database files off a server. Which layer still protects the contents?

Tap the shape that answers the question, then press Check.

Defense in depth, outside to insideLayer diagram: Policies and training, Perimeter firewall and email filter, Network segmentation, Endpoint protection (EDR), Application security, Data encryption and backups.Policies and trainingPerimeter firewall and email filterNetwork segmentationEndpoint protection (EDR)Application securityData encryption and backups
Policies and training

People who recognize phishing and report it.

Perimeter firewall and email filter
Network segmentation
Endpoint protection (EDR)
Application security

Input validation, access checks, patched software.

Data encryption and backups

The last line: stolen files are unreadable and lost files can be restored.

Step 3 of 12Practice · Sort into groups

Classify each control by its main function.

Tap an item, then tap its group (or drag it there).

Step 4 of 12Learn

Zero trust

Traditional networks worked like an office building with a badge reader at the front door: once you were inside the network, you were largely trusted. That model broke down. Employees work from home and coffee shops, applications live in the cloud, and attackers who phish one laptop end up "inside" with that laptop's trust.

Zero trust is a security model built on the phrase "never trust, always verify." No user or device is trusted just because of where it is on the network. Every request to access a resource is checked:

  • Verify explicitly: authenticate the user with strong MFA, and check the device's health (is it managed, encrypted and patched?) and the context (location, time, behavior).
  • Use least-privilege access: grant access to specific applications rather than the whole network, and only for as long as needed.
  • Assume breach: design as if attackers are already inside. Segment heavily, encrypt internal traffic, and monitor everything.

In practice, zero trust isn't a product you buy. It's a direction organizations move in over years, by putting strong identity at the center, replacing broad VPN access with per-application access, and continuously evaluating risk.

Related is security by design: building security into systems from the start rather than adding it at the end. Threat modeling during design, secure defaults, code reviews and automated security tests catch problems when they are cheapest to fix. Fixing a design flaw in production can cost many times more than fixing it on a whiteboard.

Step 5 of 12Practice · Choose one

Which statement best captures the zero trust model?

Step 6 of 12Compare

Castle-and-moat vs zero trust

AspectCastle-and-moatZero trust
Trust inside the networkLargely trustedNever assumed
Access checkOnce, at the perimeterEvery request: identity, device, context
Remote and cloud workAwkward; everything tunnels homeBuilt in
After one account is stolenAttacker roams widelyDamage limited to that account’s narrow access

Step 7 of 12Learn

Ethics, law and careers

Security skills cut both ways. The same knowledge that lets you test a website can be used to break into it, so the field draws a sharp line: authorization.

Accessing a computer system without permission is a crime in most countries. In the US, the Computer Fraud and Abuse Act covers it; the UK has the Computer Misuse Act; many other countries have similar laws. "I was just testing" or "I didn't change anything" isn't a defense. Ethical security work always has explicit, written permission that defines what may be tested, how and when.

Ways to practice legally:

  • Build your own home lab with virtual machines.
  • Use deliberately vulnerable training applications and online practice platforms.
  • Join capture the flag (CTF) competitions.
  • Take part in bug bounty programs, where companies invite researchers to find flaws in defined systems and pay for valid reports.
  • Follow responsible disclosure if you stumble on a vulnerability: report it privately to the organization and give them time to fix it before discussing it publicly.

Career paths are broad. Security analysts in a SOC monitor and investigate alerts. Penetration testers perform authorized attacks to find weaknesses. Security engineers build and run defenses. Incident responders and forensic analysts handle breaches. Governance, risk and compliance specialists manage policies, audits and regulations. Application security engineers work with developers. Many people enter from IT support, networking or software development, and the demand for skilled people has consistently exceeded supply.

Step 8 of 12Practice · What would you do?

What would you do?

While browsing a local business's website, you notice that changing a number in the URL shows other customers' order details. You have no relationship with the company and no permission to test it.

Step 9 of 12Diagram

Responsible disclosure in four steps

Responsible disclosure in four stepsProcess diagram: Notice a flaw → Report privately → Owner fixes it → Disclosure.Notice a flawReportprivatelyOwner fixesitDisclosure

Tap a shape with to see more.

Notice a flaw

Stop there: do not explore further or download data.

Report privately

Use a security contact, a bug bounty program or a national CERT.

Owner fixes it

Typically given a reasonable window, often around 90 days.

Disclosure

Details are shared once users are protected.

Step 10 of 12Note

Step 11 of 12Practice · True or false

Testing a website for vulnerabilities is legal as long as you do not change or steal any data.

Step 12 of 12Practice · Select all that apply

A company wants to apply defense in depth against account takeover. Which combination of controls fits best? Select all that apply.

Select all that apply.