4.1

View in English

4.1 Security foundations and culture

Overview and motivation

Security is not a feature you bolt on at the end, and it is not the job of one specialised team sitting apart from engineering. In a large organisation, security is a property of how the whole system is designed, built, operated, and governed. When thousands of engineers ship code across hundreds of services, the weakest link decides how much damage an incident can do. A single misconfigured storage bucket, an unpatched dependency, or an over-privileged service account can expose millions of records. Foundations and culture are what keep that from happening at scale.

For enterprises, the stakes are financial and reputational: breach costs, regulatory fines, lost customers, and depressed valuations. For government, they extend to national security, public trust, and the continuity of essential services. Both settings share a hard truth: you cannot enforce security purely through controls and gates. It has to be internalised by the people doing the work. A culture where engineers understand threats, feel ownership, and get rewarded for raising concerns produces far better outcomes than one that leans on an overworked security team playing goalkeeper.

This chapter lays out the mental models and cultural practices that underpin every other security chapter in this guide. It covers making security everyone’s job, threat modelling, the secure development lifecycle, foundational architectural principles like defence in depth and zero trust, and how to prioritise security work by real risk rather than fear or fashion.

See also: chapter 4.2 (application security), chapter 4.3 (infrastructure and cloud security), chapter 4.4 (security operations), and chapter 4.6 (compliance and governance) build on these foundations.

Key principles

  • Security is everyone’s job. Every engineer, product manager, and operator owns the security of what they build. The security team enables, advises, and audits; it does not and cannot do the work alone.
  • Assume breach. Design as if attackers are already inside. Minimise what a compromised component can reach.
  • Defence in depth. No single control is sufficient. Layer independent controls so that failure of one does not mean failure of all.
  • Least privilege. Grant the minimum access needed, for the minimum time, and revoke it automatically when no longer needed.
  • Shift left. Find and fix problems as early as possible, when they are cheapest to remediate.
  • Risk-based prioritisation. Spend effort where the combination of likelihood and impact is highest, guided by the CIA triad (confidentiality, integrity, and availability), not on whatever made the news this week.
  • Blameless learning. Treat security incidents and near-misses as learning opportunities, not occasions for punishment.

Recommendations

Establish a security champions programme

Embed a designated security champion in each engineering team. Champions are not full-time security specialists. They are engineers with extra training and a direct line to the central security team. They review designs, triage findings, answer teammates’ questions, and carry security context into planning. This scales security expertise across the organisation without hiring a specialist for every team, and it builds trust, because the advice comes from a peer who actually knows the codebase.

Give champions real support: a regular forum to share what they learn, budget for training and conferences, recognition in performance reviews, and time carved out of their delivery commitments. A champions programme that exists only on paper produces nothing.

Practise threat modelling routinely

Threat modelling is the disciplined habit of asking “what could go wrong?” before you build. Do it for new services, major features, and any change to trust boundaries. Keep it light enough that it actually happens often.

  • STRIDE is a practical checklist mapped to security properties: Spoofing (authentication), Tampering (integrity), Repudiation (non-repudiation), Information disclosure (confidentiality), Denial of service (availability), and Elevation of privilege (authorisation). Walk each data flow and ask how each category applies.
  • PASTA (Process for Attack Simulation and Threat Analysis) is a heavier, risk-centric seven-stage method that ties technical threats to business impact; use it for high-value systems.
  • Attack trees decompose a goal (“steal customer data”) into the branching steps an attacker would take, helping you find and prune paths.

Keep threat models as living documents next to the code, and revisit them whenever the architecture changes.

Build a secure software development lifecycle

Weave security into every phase rather than treating it as a final gate:

  • Requirements: capture security and privacy requirements alongside functional ones.
  • Design: threat model and review trust boundaries.
  • Implementation: enforce secure coding standards, code review, and pre-commit secret scanning.
  • Testing: run SAST (static application security testing), DAST (dynamic application security testing), and dependency scanning in the pipeline (see chapter 4.4).
  • Release: verify provenance, sign artifacts, and check configuration.
  • Operate: monitor, patch, and respond.

The point of shift-left is not to pile all the work earlier and overwhelm engineers. It is to catch the kinds of defect that are far cheaper to fix early.

Adopt zero-trust architecture principles

Traditional perimeter security assumes everything inside the network is trustworthy. That assumption fails the moment an attacker gets a foothold. Zero trust replaces implicit network trust with explicit, continuous verification: authenticate and authorise every request based on identity, device posture, and context, no matter where it comes from on the network. Combine strong identity, least-privilege authorisation, micro-segmentation, and encryption everywhere. Zero trust is a journey, not a product, so approach it a step at a time.

Prioritise by risk using the CIA triad

Frame every asset and control around Confidentiality, Integrity, and Availability. Not all data needs the same protection: a public marketing page and a database of health records have wildly different confidentiality needs. Classify your assets, estimate the likelihood and impact of compromise, and point scarce security effort at the highest-risk combinations. Write down your risk decisions so others can review and defend them later.

Trade-offs: pros and cons

ApproachProsCons
Central security team owns all securityDeep expertise, consistent standardsBottleneck, engineers disengage, doesn’t scale
Distributed security (champions)Scales, builds ownership, faster feedbackRequires investment, uneven skill, needs coordination
Heavy upfront threat modelling for everythingThorough, catches design flawsSlows delivery, can become box-ticking
Lightweight, risk-targeted threat modellingFast, focused on what mattersMay miss threats in “low-risk” systems
Strict gates blocking releasesEnforces complianceFriction, incentivises workarounds

The central tension is between speed and assurance. Lean too far toward gates and central control, and you create friction that engineers route around, breeding shadow IT and resentment. Lean too far toward autonomy without support, and you get inconsistent, unaudited security. The sustainable answer is a strong culture with enabling guardrails: automated where you can, human where judgment is required, and always explained rather than simply imposed.

Questions to discuss with your team

  1. Which of your systems earn heavyweight threat modelling, and who decides the tier? In a large estate you cannot run a seven-stage PASTA analysis on every service, so you need an explicit rule for when a 30-minute STRIDE pass is enough and when a high-value system deserves deep, business-impact-driven modelling. Anchor the decision in your CIA classification: systems holding regulated records, payment flows, or authentication logic sit at the top, and a public marketing page does not. For enterprise and government work, an auditor will ask you to defend why a given system was modelled the way it was, so write the tiering criteria down and name the owner who applies them. Bring your current asset classification and a list of services with no threat model to the meeting, because the gap between them is your real risk. If you cannot agree on the bar, you will default to modelling everything lightly or nothing deeply, and both fail you.

  2. When a security champion and a delivery deadline collide, who can actually halt the release? A champions programme only changes outcomes if the champion carries real authority, not just extra training and good intentions. Decide in advance whether a champion can block a ship, whether they escalate to the central AppSec team, and what severity of finding justifies stopping delivery versus tracking it. This matters most under pressure, when a product manager wants to waive a design flaw the week before launch, which is exactly when unaddressed flaws are most expensive to fix. Bring a recent example where a security concern met a deadline and trace who decided and how, because that story reveals your true escalation path. If the honest answer is that delivery always wins, your champions are decorative and you should fix the incentive before adding more of them.

  3. What does “assume breach” concretely change in your next design review? The principle is easy to nod along to and hard to operationalise, so pin it to specific commitments: which trust boundaries you will tighten, where you will add micro-segmentation, and how you will shrink what a single compromised service account can reach. For a large team, the payoff is blast-radius reduction, so an attacker who lands in one service cannot pivot to the data store behind it. In enterprise and government settings this also shapes your least-privilege and short-lived-credential decisions, which are cheap to design in and painful to retrofit. Bring one real service diagram and ask what an attacker does after they own the web tier, then commit to two containment changes this quarter. Vague agreement that breaches happen is worthless unless it moves a permission, a network rule, or a credential lifetime.

  4. How will you know your security culture is actually improving, and which metric would you defend to the board? Training-completion rates and ticket counts are easy to gather and nearly useless, because they measure activity rather than risk reduction, and a large organisation drowns in them. Pick outcome metrics you would actually stake a budget on: median time to remediate high-severity findings, the share of services carrying a current threat model, the fraction of incidents caught before production, and the rate of self-reported near-misses, which should rise as trust grows rather than fall. The competing consideration is that every good metric can be gamed, so pair each one with a counter-metric and review the trend rather than the snapshot. Bring your current dashboard and ask which numbers would change if security genuinely got worse; any that would not are decoration. In enterprise and government settings a regulator or audit committee will ask for evidence that controls work, so choose metrics you can defend under scrutiny rather than ones that merely look green.

  5. What actually happens the next time an engineer reports a mistake, and is your process blameless in practice or only on the slide? Blameless learning is the principle most often professed and least often lived, because the first serious incident tests whether leadership truly means it. Decide in advance how you separate accountability for fixing a problem from punishment for having caused it, and who runs the post-incident review so it stays about broken systems rather than named individuals. The tension is real: stakeholders want someone held responsible, yet punishing the reporter guarantees the next mistake stays hidden until it becomes a breach. Bring your last two incident reviews and check whether they blamed a person or a control, and whether the engineer who raised the alarm was thanked or quietly sidelined. For government and regulated enterprises, mandatory breach-disclosure rules raise the stakes further, because a culture that hides mistakes will also miss the reporting deadlines that carry legal penalties.

  6. Who owns the friction of your shift-left tooling, and are you buying it, building it, or drowning in it? Automated static and dynamic analysis, dependency scanning, and secret scanning are the backbone of a secure development lifecycle, but a pipeline that floods engineers with false positives teaches them to ignore security output, which is worse than no scanning at all. Decide who tunes the tools, who triages the findings, and whether you buy an integrated platform or assemble open-source scanners you then have to maintain yourselves. The competing considerations are coverage versus noise and control versus cost: a cheap scanner that cries wolf burns the trust a champions programme spent years building. Bring your current false-positive rate, the mean time engineers wait on a blocking check, and the list of teams who have quietly disabled a gate. In large enterprises and government, add the procurement and tool-sprawl angle, because ten teams each buying their own scanner produce inconsistent coverage that no auditor can reconcile.

Sector lens

Startup. With no security team and little runway, culture is your only affordable control. Make a 30-minute threat-modelling whiteboard the habit before any feature that touches authentication or payments, turn on least privilege and MFA everywhere because they cost nothing, and keep a blameless channel where anyone can flag a worry. Skip heavyweight process and tooling; the founding engineers cannot maintain it, and the discipline you build now is what lets enterprise buyers trust you later.

Small business. You have no dedicated security specialist and a tight budget, so lean on secure defaults in the tools you already buy rather than standing up your own pipeline. Favour managed platforms that enforce MFA, patching, and least privilege for you, and treat security as a data-hygiene question: know what sensitive data you hold and who can reach it. When you must choose build versus buy, buy, because a managed control you keep current beats a bespoke one you let rot.

Enterprise. At the scale of hundreds of services and thousands of engineers, the challenge is consistency and governance across many teams. Run a security champions programme, standardise threat-modelling tiers tied to CIA classification, and provide paved-road templates and automated pipeline checks so every team inherits good defaults. Track remediation and coverage metrics against baselines, and keep an audit trail that shows why each system was modelled and controlled the way it was.

Government. Procurement rules, transparency obligations, and public accountability shape every choice. Zero-trust principles and short-lived credentials are often mandated by executive policy, and you must be able to show an auditor a documented, risk-based rationale for where hardening budget went. Prioritise the systems holding the most sensitive citizen records first, publish the safeguards where the public has a right to know, and require vendors to disclose limitations rather than accept opaque black boxes.

Examples

Startup. A ten-person startup has no security team and no budget for one, so the two founding engineers make threat modelling a 30-minute whiteboard habit before any feature that touches auth or payments, asking what could go wrong and who would want it to. They adopt a few foundational habits that cost nothing: least privilege on every cloud role, MFA on every account, and a blameless channel where anyone can raise a worry without fear of blame. When they later raise a round and enterprise buyers ask how they handle security, that early culture lets them answer honestly instead of scrambling to invent one.

Enterprise. A global bank with 6,000 engineers runs a security champions programme with one trained champion per squad. Champions attend a monthly guild, complete quarterly training, and lead threat modelling for every new service using STRIDE. The central AppSec team maintains paved-road templates and automated pipeline checks. Over two years, the median time to remediate high-severity findings fell from 45 days to 9, and design-stage threat modelling caught an authorisation flaw in a payments API before it reached production, avoiding a likely reportable incident.

Government. A national tax agency modernising legacy systems adopts zero-trust principles mandated by executive policy. Every internal service call is authenticated with short-lived credentials and authorised per request; network segments no longer confer trust. The agency threat models each citizen-facing service against attack trees rooted in “exfiltrate taxpayer records” and “alter a filing.” Risk-based prioritisation, aligned to CIA impact levels, focuses hardening budget on the systems holding the most sensitive records first.

Business case: motivations, ROI, and TCO

The cost of building a security culture is real: champion time, training, tooling, and the modest drag of doing threat modelling and reviews. But that cost is small next to the cost of not doing it. The average major data breach runs into the millions once you count investigation, notification, remediation, regulatory fines, legal exposure, and lost business. Government breaches add mission disruption and erosion of public trust that no invoice fully captures.

The return on security investment comes from three places: avoided incidents (the breach that never happens), reduced remediation cost (defects fixed at design time cost a fraction of those fixed in production), and faster delivery (paved roads and automated checks let teams ship with confidence instead of waiting on manual review). When you make the case to leadership, frame security as risk management with a price tag, not as an abstract good. Show the expected loss (likelihood times impact) of the top risks, the cost to reduce them, and the risk that still remains. Executives fund risk reduction they can measure.

Anti-patterns and pitfalls

  • Security theatre. Controls that look impressive but reduce no real risk, adopted to satisfy an audit rather than to protect anything.
  • The security team as a gate at the end. Discovering design flaws the week before launch, when they are most expensive to fix and most likely to be waived.
  • Blame culture. Punishing the engineer who reports a mistake guarantees the next mistake stays hidden.
  • Checkbox threat modelling. Filling in a template no one reads, producing documents divorced from the real architecture.
  • One-size-fits-all controls. Applying the same heavyweight process to a public website and a payments system, wasting effort and breeding resentment.
  • Fear-driven prioritisation. Chasing whatever vulnerability is trending in the news rather than what actually threatens your assets.
  • Champions in name only. Naming champions without giving them time, training, or authority.

Maturity model

Level 1: Initiate. Security is reactive and centralised. Reviews happen late if at all, and there is no threat modelling. Incidents drive ad hoc fixes. Engineers see security as someone else’s problem, and no shared standard exists.

Level 2: Develop. A security team exists and defines standards, but practice is inconsistent across teams. Some threat modelling happens on major projects and none on others. Basic training is available. Security is still perceived as a gate, and shift-left is aspirational rather than real.

Level 3: Standardise. Security champions are embedded in every team. Threat modelling is routine for new services, tiered against CIA classification, and the secure development lifecycle is documented and enforced org-wide. Risk-based prioritisation guides the work, secure-coding standards and pipeline checks are the default paved road, and blameless post-incident reviews are the norm.

Level 4: Manage. Security outcomes are measured and controlled against baselines. The organisation tracks median time to remediate high-severity findings, threat-model coverage, the share of incidents caught before production, and near-miss reporting rates, broken down per team. Champions’ authority to halt a release is defined and actually exercised. Risk decisions are quantified as likelihood times impact, recorded, and reviewed on a fixed cadence, so control gaps surface as data rather than as surprises.

Level 5: Orchestrate. Security is genuinely everyone’s job and integrated with delivery, risk, and business planning. Threat modelling and secure design are habitual and lightweight, and zero-trust principles are largely realised. Metrics drive continuous improvement, the organisation learns from near-misses across teams, and controls adapt automatically as the threat picture and the architecture change.

Ideas for discussion

  1. How do you measure whether a security culture is actually improving, beyond counting training completions?
  2. Where is the right boundary between what security champions handle and what the central team owns?
  3. How do you keep threat modelling valuable without letting it become a bureaucratic checkbox?
  4. Is a full zero-trust architecture realistic for your legacy estate, and if not, what is the pragmatic subset?
  5. How should security work be prioritised against feature delivery when both compete for the same engineers?
  6. What incentives actually change engineer behaviour toward security ownership?

Key takeaways

  • Security is a cultural property of large organisations, not a task delegated to one team.
  • Security champions scale expertise and ownership across engineering.
  • Threat modelling (STRIDE, PASTA, attack trees) surfaces design flaws early and cheaply.
  • A secure SDLC and shift-left mindset catch defects when they cost the least.
  • Defence in depth, least privilege, and zero trust are the foundational architectural principles.
  • The CIA triad and risk-based prioritisation direct scarce effort to where it matters most.
  • The cost of building security culture is far smaller than the cost of the breaches it prevents.

References and further reading

  • Adam Shostack, Threat Modelling: Designing for Security
  • Ross Anderson, Security Engineering: A Guide to Building Dependable Distributed Systems
  • Michael Howard and Steve Lipner, The Security Development Lifecycle
  • Betsy Beyer et al. (Google), Building Secure and Reliable Systems
  • National Institute of Standards and Technology, SP 800-207: Zero Trust Architecture
  • National Institute of Standards and Technology, Secure Software Development Framework (SSDF), SP 800-218
  • OWASP, Threat Modelling and Security Champions guidance