FOUNDATIONSCHAPTER 01

Why security engineering exists

Engineers build for error and accident; someone has to build for an adversary who adapts, and own whether the controls on paper are real

35 MINSECURITYUPDATED 2026-11-05
PREDICT

Verizon's 2026 Data Breach Investigations Report looked at more than 22,000 confirmed breaches. Among breaches where the way in was known, which initial access vector was the most common?

Ross Anderson opens Security Engineering with a definition worth learning by heart: security engineering “is about building systems to remain dependable in the face of malice, error, or mischance.” Error and mischance are what reliability, quality and operations already handle. Malice is the part that makes a separate discipline necessary, and a separate role.

This chapter explains why that role exists in companies whose engineers are careful, what a security engineer owns and does not own, the model and principles practitioners share, where they disagree, and what the week looks like at the first rung. It ends with an honest account of the trade. The rest of the track teaches the job; this chapter is about whether you want it.

An adversary changes the problem

Most engineering assumes that failures are indifferent. A disk fails at random. A network partition does not care which request it drops. A user who types a date in the wrong format is not trying to hurt you. You can measure how often these things happen, design for the likely cases, and accept a small residue of unlikely ones.

An adversary breaks every one of those assumptions. They look for the unlikely case, because it is the one you did not defend. They choose the worst moment. They chain three small weaknesses, none dangerous alone, into one large one. When you fix a path, they look for the next. Anderson puts it plainly: systems engineering skills “deal only with error and mischance rather than malice,” and the security engineer needs “some skill at adversarial thinking”, built from studying many attacks that worked in the past.

The asymmetry has a precise form. In his 2001 paper “Why Information Security is Hard”, Anderson models an attacker with a thousand hours a year of testing against a defender with ten million. After a year the defender has found 100,000 bugs and the attacker one, and the chance that the defender found the attacker’s bug is about 10%. His conclusion: “Even a very moderately resourced attacker can break anything that’s at all large and complex.” The defender cannot win by finding bugs one at a time.

The same paper suggests ways one might hope to escape. Two of them, with the paper’s main argument about incentives, describe most of what a good security engineer does:

  • Kill whole classes of bug at once. Parameterised queries end SQL injection for every query that uses them. Memory-safe languages remove most buffer overflows, and compiler defences make the rest harder to exploit. One change to a framework is worth a thousand code reviews.
  • Make the security-critical part small. If only the payments service can touch card data, and only three people can deploy it, you have a few thousand lines to get right instead of a few million. Anderson doubted this would happen at platform scale, because a minimal trusted core makes applications harder to build and vendors compete for developers. Inside one company you have more say.
  • Change the incentives. Anderson’s wider argument is that insecurity “is at least as much due to perverse incentives” as to missing technology. A feature team is measured on what it ships this quarter. The cost of a breach lands later, on customers, with a probability nobody can state. Unless someone’s job is to carry that cost into today’s decisions, the deadline wins every time.

That last point is why the role exists even where every engineer is capable. It is not that engineers cannot write secure code. Most security bugs are ordinary bugs: a missing check, an unescaped string, a token logged by accident. It is that recognising them takes a library of attacks you have studied, that many of the risks belong to no feature team at all, and that nobody’s incentives point at them by default.

Why not leave it to a checklist?

The cheaper answer is a list of controls. The UK’s National Cyber Security Centre runs Cyber Essentials, a government-backed scheme built on five technical controls: firewalls, secure configuration, security update management, user access control and malware protection. The Center for Internet Security publishes its Critical Security Controls. SOC 2 and ISO 27001 give customers a report they recognise. These are good floors and you should use them. They are not the job.

Anderson’s framework says why. To build a dependable system, he writes, “you need four things to come together”:

Part Anderson’s question At Equifax in 2017 What a checklist gives you
Policy What are you supposed to achieve? Protect the personal data of over a hundred million people Rarely anything; it assumes you know
Mechanism What machinery implements the policy? Patch process, scanner, traffic inspection Most of what it gives you
Assurance How much can you rely on each mechanism? Stale mailing list, a scan that missed the server, a certificate ten months expired A yes or no on whether the mechanism exists
Incentive What motivates the defenders, and the attackers? Attackers scanned within two days of the announcement Nothing

A checklist is a list of mechanisms. It cannot tell you what you are protecting, because that depends on your business. It cannot tell you whether your patching works, only whether you have a patching process. The NCSC draws this line itself: Cyber Essentials is a self-assessment with an independent check of the answers, and Cyber Essentials Plus adds independent technical testing to confirm the controls work in practice. That difference, between a control that exists and a control that works, is the security engineer’s territory.

Anderson has a name for the failure mode where mechanisms multiply and assurance does not: borrowing Bruce Schneier’s phrase, security theatre, “measures designed to produce a feeling of security rather than the reality.” He also names the commoner failure: “many systems fail because their designers protect the wrong things, or protect the right things but in the wrong way.” A security engineer is the person paid to notice both.

Principles that have lasted fifty years

In 1975 Jerome Saltzer and Michael Schroeder published “The Protection of Information in Computer Systems” in the Proceedings of the IEEE. Most of it describes hardware that no longer exists. Section I sets out eight design principles that every security engineer still uses, often without knowing where they came from: economy of mechanism, fail-safe defaults, complete mediation, open design, separation of privilege, least privilege, least common mechanism and psychological acceptability. Two more appear as partial fits: the work factor, comparing the cost of defeating a mechanism with the attacker’s resources, and compromise recording, knowing when a breach has happened even if you could not stop it.

Read Equifax against them. The expired certificate was a compromise-recording failure. The unsegmented databases, which let attackers move from the portal to other stores of personal data, broke least privilege. The authors were careful to say that “these principles do not represent absolute rules–they serve best as warnings.” That is the right register. You will break them knowingly and often, and a security engineer’s value is in saying which break is cheap and which is dangerous. The next chapter in this module takes the principles one at a time, with what each looks like in a modern system, and then defence in depth, least privilege and assume breach in turn.

What the evidence says attacks look like

The field has one large public dataset that most practitioners read every year: Verizon’s Data Breach Investigations Report, the DBIR. The 2026 edition, its nineteenth, covers more than 31,000 incidents, of which more than 22,000 were confirmed breaches, from organisations in 145 countries. From its executive summary:

  • Exploitation of vulnerabilities was the most common initial access vector, at 31%. Credential abuse, the previous leader, fell to 13%.
  • Only 26% of critical vulnerabilities, defined as those in CISA’s Known Exploited Vulnerabilities catalogue, were fully remediated in 2025, down from 38%. The median time to full resolution rose to 43 days, from 32.
  • Ransomware was present in 48% of breaches, and breaches with third-party involvement also reached 48%.
  • A human element, such as a mistake or a person being deceived, was present in 62% of breaches.

Read those numbers with care. The DBIR is built from what its contributors see, not a census of every breach, and Verizon spends a section of the report on the uncertainty in its own figures. But the shape has been stable for years, and it tells you something about the job. Most breaches do not need a brilliant attacker. They need a flaw that was announced, a password that was reused, a supplier who was trusted, or a person who was rushed. The work that stops them is unglamorous: knowing every system you run, patching on a clock, hardening login, rotating secrets, and asking vendors hard questions. A reader who imagines security as mainly exotic exploits should notice how little of the data is exotic.

What a security engineer owns, and what they do not

Owns Does not own
The threat picture: what is worth protecting, from whom, and how it could be reached The correctness of every line of code; that is the author’s
Assurance: evidence that the controls on paper work in practice Accepting risk on the business’s behalf; the owner of the system or the executive team does that
Secure defaults and paved roads: libraries, templates and platform settings that make the safe path the easy one Writing every feature’s security; engineers do most of it
Triage of findings, with severity and a deadline engineers believe Fixing every finding personally
Coordinating the response when something goes wrong Blame; an incident is a gap in the system, not a person
Telling leadership, plainly, which risks the company is carrying The compliance paperwork alone; governance, risk and compliance staff own policies and audit evidence

Two rows cause most of the friction you will meet. The first is risk acceptance. A security engineer who believes they own the decision becomes the department of no: the team engineers route around, which is worse than having no team. Your job is to make the risk legible, propose the cheapest adequate fix, and write down who accepted what when the business chooses to carry it. The second is the paperwork. Compliance is a real part of the work and auditors are doing a reasonable job. But a team that measures itself by audits passed slides back into the checklist, and the adjacent GRC role exists precisely so that someone else can own the evidence while you own whether the controls are real.

Where practitioners disagree

You will be asked where you stand, so know the arguments.

Compliance-led or threat-led. One school starts from a framework, SOC 2, ISO 27001, PCI DSS for card data, and builds controls until the audit passes. The other starts from a threat model of the actual system and treats the frameworks as evidence for customers. Most mature teams end up threat-led with compliance as a by-product. Most young teams start the other way, because a customer asked for a report. The Lead-level chapter on compliance and audits shows how to pass the audit without letting it set the priorities.

Central team or builder-owned. One model keeps security as a gate: reviews, approvals, a sign-off before launch. The other pushes ownership into engineering teams through security champions, secure defaults and self-service tools, with the security team building the paved road rather than inspecting every car. The second scales; the first is sometimes the only option for the most dangerous systems.

Prevention or detection. One instinct spends on keeping attackers out. The other, often summarised as assume breach, spends on noticing quickly and limiting what an attacker can reach. Equifax had prevention gaps, but 76 days undetected is a detection failure. Good programmes do both and argue about the ratio.

Breakers or builders. People arrive from offensive work, penetration testing and bug bounties, or from software and infrastructure engineering. Breakers bring the attacker’s library; builders bring empathy for the engineers who must fix things. Teams need both, and individuals who cross over are valuable.

Fear or risk. Some security sells itself through fear: the worst case, the headline breach, the vendor’s statistic. Anderson’s chapter is scathing about this, noting that incentives on decision-makers “favour visible controls over effective ones.” The honest school talks in risk: how likely, how bad, what it costs to reduce, and what the business chooses. At Head level that becomes a method, which security risk and the board teaches.

Is this the job for you?

Here is the trade, for someone deciding.

You will work against someone who is trying to beat you and who learns from your fixes. That is the source of both the interest and the strain. No other engineering discipline has an opponent.

Your successes are invisible. The breach that did not happen leaves no trace. You will need to be satisfied by the fix itself, and to write things down so the evidence of what you prevented exists.

You will deliver bad news to people senior to you, often about their systems, often on deadline day. You have the evidence and rarely the authority, which mirrors the quality engineer’s position. Your influence comes from how clearly you explain a risk and how cheap you make the fix.

You will lose arguments you were right about, because the business chose to carry a risk. Accepting that with good grace, and writing it down, is part of the job.

Incidents do not keep office hours. Most security roles include some on-call duty, and the first hours of a serious incident are stressful in a way few other jobs are.

The field is wide and moves constantly. Cryptography, cloud identity, browsers, mobile platforms, law: something you knew last year is out of date. If you like learning, that is a gift. If you want to master a fixed body of knowledge, it is a burden.

In return you get to understand systems end to end, from the TLS handshake to the org chart, because attackers use every layer. The puzzles are real, the work matters to people who will never know your name, and demand for people who can do it well has been high for years.

Three signs it might suit you: you read a design and immediately wonder how to misuse it; you enjoy finding out how something really works under its documentation; you can say “this is not safe” calmly to a room that does not want to hear it. Three signs it might not: you need clear, finishable work; you want your output to be the thing customers see; you find ambiguity about risk unbearable.

The ladder, in this track’s titles: Security Analyst, Junior Security Engineer or SOC Analyst at Foundations, triaging alerts and findings and running defined processes; Security Engineer, AppSec Engineer or Cloud Security Engineer at Practitioner, owning a domain; Senior Security Engineer, Security Lead or Security Architect setting practice across teams; Head of Security or CISO owning the risk register, the function and the budget. People come in from software engineering, IT and network operations, a SOC analyst seat, or bug bounty work. A home lab, CTF results and a public write-up count for more than most certificates. The map of security roles, later in this module, lays out the specialisms, and building a security function covers when a company hires each one.

Day to day

At Foundations the work is triage and defined processes, with a horizon of about a week. You are judged on how accurately and quickly you sort the real from the noise. A security engineer’s week, at the end of this module, goes into the calendar; here is the outline.

Every day. The alert queue, if you sit in a security operations role: each alert opened, checked against context, and closed as benign, escalated, or turned into a detection fix because it was noise. The findings queue, if you sit closer to engineering: new results from dependency scanners, cloud configuration checks and the bug bounty inbox, each confirmed or rejected before it reaches an engineer. Questions in the security channel, answered the same day, because an engineer who waits for an answer ships without one.

Every week. A review of open vulnerabilities against their deadlines, with the owners of anything overdue. One or two design reviews, at first as a note-taker beside a senior engineer, asking how each new feature could be misused. The phishing report inbox. New advisories for software the company runs, with a check against the inventory: do we run this, where, and who patches it? That last check is the Equifax lesson, done every week.

Every month or quarter. Access reviews: who can reach production, the payments database, the admin console, and does each person still need it? A tabletop exercise, walking through a scenario such as a leaked cloud key, to find the gaps in the response plan before an attacker does. A short report on the numbers: findings opened and closed, time to fix, overdue items.

The meetings that matter are design reviews, where risk is cheapest to remove, and the vulnerability review, where deadlines are either held or quietly slip. The habit that matters is writing tickets an engineer can act on: what is wrong, the evidence, the impact in plain words, and the fix. A finding that arrives without reproduction steps is a finding that waits.

BY ORG SIZE
STARTUPunder 30 people

There is no security person, and at twenty people there often should not be one yet. The CTO owns security whether they know it or not. The risk is not missing expertise but missing ownership: nobody keeps the inventory, nobody watches the cloud account, nobody checks that former staff lost access. The answer is a baseline such as Cyber Essentials or the CIS controls, one engineer who owns it with real time allotted, an outside adviser for the hard questions, and a written list of what would trigger the first hire.

SCALE-UP30 to 300

The function is being built, often by one person, and the first danger is that security becomes the team that answers customer questionnaires and runs the SOC 2 audit. A good first security engineer spends the first quarter on the threat picture and the basics: inventory, identity, secrets, patch deadlines, logging that would show an intruder. They build secure defaults before they build review gates. The fight at this size is over whether security reports into engineering or sits beside it, and both can work.

ENTERPRISE300 and up

The function exists, with a CISO, specialist teams for application, cloud, detection and governance, and probably a managed security provider. The problems are scale and politics: hundreds of tools, thousands of findings, exceptions nobody revisits, auditors from several regimes, and a board that wants one number. A security engineer here spends more effort on influence and evidence than on discovery, and must fight to keep controls real when the incentive is to keep them documented. Influence runs through the risk committee and the platform teams.

ARTEFACT Write the security purpose memo ~45 MIN
YOU PRODUCEOne-page 'what security is for here' memo

Template

# What security is for at <company>
Author · Date · Review by: <date>

## What we protect, in priority order
1. <asset, in business terms: e.g. the ability to move customers' money correctly>
2. <asset>
3. <asset>

## From whom
- <realistic adversary and what they want>
- <adversary>

## What failure would cost
<One or two sentences with a number and its source: contract terms, regulator, revenue at risk.>

## The risks we carry today
| Risk | Why it matters | Owner | Next step |
|---|---|---|---|

## Who owns what
- Engineers: <security of the code and systems they build>
- Security owner: <threat picture, defaults, triage, response>
- Accepting a risk: <who signs, and where it is written down>

## What security will not do here
- <e.g. block a launch without an alternative> — <why>

## How we will know the controls are real
<One test, check or measure, with a date.>
WORKED EXAMPLE

Bittern is a fictional payments start-up: 34 people, 12 engineers, processing card payments for 900 small online merchants through an acquiring bank. Card numbers are held by a third-party vault, so Bittern never stores them. The CTO wrote this memo after its biggest merchant prospect sent a security questionnaire.

What we protect. 1. Merchants’ money arriving correctly and on time; a wrong payout is worse than a slow one. 2. The merchant dashboard, which can change bank details for payouts. 3. Shoppers’ personal data: names, emails, addresses.

From whom. Fraudsters who want to redirect payouts by taking over merchant accounts. Opportunistic attackers scanning for known flaws in what we run. A former contractor whose access was never removed.

What failure would cost. A single redirected payout averages £4,200 from our own payout data; our acquirer agreement lets them suspend us after a material breach, which would stop all revenue.

Risks we carry. Merchant logins have no second factor: owner, dashboard lead, MFA by end of Q1. Six former staff still have cloud console access: owner, CTO, removed this week, quarterly review after. No inventory of open-source dependencies: owner, platform engineer, scanner in CI by February.

Who owns what. Engineers own their services. The CTO owns the threat picture and risk acceptance until the first security hire. Any accepted risk is written in the risk log with a review date.

Will not do. Pursue SOC 2 before MFA and access are fixed. Block launches without offering a safer path.

How we will know. A quarterly test: an engineer tries to change a payout bank account without the merchant’s second factor, and must fail.

Now you

You are a senior engineer at Coot, a fictional team-messaging app: 20 people, nine engineers, 400 paying business customers, messages stored on Coot’s servers in one cloud provider. There is no security person. Last month a developer pushed a cloud access key to a public repository; it was revoked within a day and nothing appears to have been taken, but nobody can say for certain because logs were kept for only seven days. Two enterprise prospects worth £180,000 a year between them have each sent a security questionnaire, and one asks for a SOC 2 report. The CEO has asked you for a one-page memo for next month’s board meeting, where the question is whether to hire a security engineer or adopt a checklist. Write the memo. It must use the numbers above, say plainly what you do not know about the key incident, and say what security is for at Coot before it says who should do it.

Self-check

DECIDE

Coot, a 20-person team-messaging company, has had a leaked cloud key that may or may not have been used, and two enterprise prospects are asking for security evidence. Engineering is nine people and the runway is 18 months. The board asks: do we hire a security engineer, or adopt a checklist? You are asked to recommend.

READING
  1. BOOK
    Security Engineering, 3rd edition Ross Anderson, 2020

    The definition of the discipline and the policy, mechanism, assurance and incentive framework this chapter uses. The bank, air force base, hospital and home examples show how different the same word means in different systems. Read: Chapter 1, 'What Is Security Engineering?', free as a PDF on the book page; read 1.1, 1.2 on the framework, and 1.7 on definitions.

  2. PAPER
    The Protection of Information in Computer Systems Jerome H. Saltzer and Michael D. Schroeder, 1975

    The source of least privilege, fail-safe defaults and complete mediation. Read the principles in the authors' own words, including their warning that the principles are warnings rather than rules. Read: Proceedings of the IEEE, 1975; read Section I, Basic Principles of Information Protection, for the eight design principles.

  3. PAPER
    Why Information Security is Hard: An Economic Perspective Ross Anderson, 2001

    The argument that insecurity comes from incentives as much as technology, and the attacker-defender arithmetic that explains why finding bugs one at a time cannot win. Read: Short paper; read the introduction and section 4, on offence and defence.

  4. DOC
    2026 Data Breach Investigations Report: Executive Summary Verizon, 2026

    The largest public dataset of real breaches, summarised. Read the key findings and the section on small and medium-sized businesses, and notice how ordinary most initial access is.

  5. DOC
    Data Protection: Actions Taken by Equifax and Federal Agencies in Response to the 2017 Breach (GAO-18-559) US Government Accountability Office, 2018

    A public, factual account of a breach where every control existed and several did not work. The four contributing factors, identification, detection, segmentation and data governance, are a ready-made assurance checklist.

  6. DOC
    Cyber Essentials overview UK National Cyber Security Centre

    The five-control baseline a small company can adopt, and the difference between self-assessment and Plus, which adds independent technical testing. Read it to know what a good checklist covers and what it leaves to you.

All companies and people in these examples are fictional. Any resemblance to a real business or person is unintended.

RECALL CARDS Tap to flip. They join your review deck when you mark the lesson complete.
NEXT: Security philosophies: defence in depth, least privilege, assume breach, risk not fear →