---
title: "DevSecOps roadmap"
description: "A step-by-step DevSecOps roadmap: secure code, threat modelling, security in CI, supply chain, container, Kubernetes and cloud security, incident response."
url: "https://opsfolk.com/roadmaps/devsecops"
stages: 13
topics: 70
updated: "2026-11-14T20:22:56.543Z"
reviewed: "2026-11-14"
image: "https://media.opsfolk.com/2026/11/6dae9f1c290a5d040f3cef59-2400x1350.webp"
---

# DevSecOps roadmap

Learn DevSecOps in order: security foundations, networks, identity and secure code, threat modelling, security in the pipeline and the supply chain, containers and cloud, vulnerabilities, detection and response, then architecture and governance.

Learn it in this order: each stage builds on the ones before it. A topic marked optional can wait.

## 1. Security foundations

What DevSecOps is, and the ideas every later stage rests on.

### What DevSecOps is

Security built into every step of DevOps, rather than checked at the end.

In the old model a security team reviewed software just before release, and found problems when they were most expensive to fix. DevSecOps moves security into every step of DevOps: design, code, build, deploy and run. That is often called shifting left, though security in production matters just as much.

Its tools are those of DevOps: automation, pipelines, code review and shared ownership. The security team builds guard rails and paved roads; engineering teams own the security of what they ship.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [OWASP DevSecOps Guideline](https://owasp.org/www-project-devsecops-guideline/)
- Official: [Implementation of DevSecOps, NIST SP 800-204C](https://csrc.nist.gov/pubs/sp/800/204/c/final)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/what-devsecops-is

### The CIA triad

Confidentiality, integrity and availability: what security protects.

Security protects three things. Confidentiality: only those allowed can read the data. Integrity: nobody can change it unnoticed. Availability: it is there when needed.

Every control in this roadmap serves at least one of them, and they pull against each other: encryption guards confidentiality but a lost key costs availability. Use the triad to say exactly what a threat or a control is about.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Information security, NIST glossary](https://csrc.nist.gov/glossary/term/information_security)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/cia-triad

### Authentication and authorisation

Proving who someone is, then deciding what they may do.

Authentication proves who someone or something is: a password, a key, a token, a second factor. Authorisation then decides what that identity may do. They are separate steps, and many breaches come from code that authenticates a user and then forgets to check whether they may open this record.

Learn sessions and tokens, how OAuth 2.0 and OpenID Connect hand out tokens, and why multi-factor authentication stops most account takeovers.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Authentication Cheat Sheet, OWASP](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html)
- Official: [Authorization Cheat Sheet, OWASP](https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Cheat_Sheet.html)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/authentication-and-authorisation

### Encryption

Symmetric and asymmetric encryption, at rest and in transit.

Symmetric encryption, such as AES, uses one key to encrypt and decrypt: fast, for data at rest and in bulk. Asymmetric encryption, such as RSA or elliptic curves, uses a public key and a private key: slower, for exchanging keys and for signatures. TLS uses both.

Never invent your own: use a well-known library and its defaults. The hard part is rarely the algorithm; it is keeping the keys safe and rotating them.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Cryptographic Storage Cheat Sheet, OWASP](https://cheatsheetseries.owasp.org/cheatsheets/Cryptographic_Storage_Cheat_Sheet.html)
- Official: [Cryptographic standards and guidelines, NIST](https://csrc.nist.gov/projects/cryptographic-standards-and-guidelines)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/encryption

### Hashing

SHA-256 for integrity, and slow hashes such as bcrypt and Argon2 for passwords.

A hash turns data into a fixed-size fingerprint that cannot be reversed. SHA-256 checks integrity: an image's digest, a file's checksum, a signature's input.

Passwords need something else: a hash that is deliberately slow and salted, such as Argon2id, scrypt or bcrypt, so that a stolen database cannot be cracked quickly. A fast hash such as SHA-256 or, worse, MD5 is the wrong tool for passwords.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Password Storage Cheat Sheet, OWASP](https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html)
- Official: [Hash functions, NIST](https://csrc.nist.gov/projects/hash-functions)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/hashing

### The OWASP Top 10

The most common and serious risks to web applications, ranked.

The OWASP Top 10 ranks the most critical risks to web applications from real data: broken access control, cryptographic failures, injection, insecure design, misconfiguration, vulnerable components and more. It is the shared vocabulary between developers, testers and auditors.

Read each entry with its examples and prevention. OWASP's Cheat Sheet Series then says how to avoid each in practice.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [OWASP Top 10](https://owasp.org/www-project-top-ten/)
- Official: [OWASP Cheat Sheet Series](https://cheatsheetseries.owasp.org/)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/owasp-top-10

## 2. Network security

Controlling what can reach what, and protecting it on the way.

### Firewalls and ACLs

Rules that allow only the traffic a system needs, and drop the rest.

A firewall or an access control list allows the traffic a system needs and drops everything else. On a host it is nftables; in a cloud, security groups and network ACLs; in Kubernetes, network policies.

Start from deny all, open the fewest ports to the fewest sources, and keep the rules as code so that every change is reviewed. Rules that nobody can explain are a finding in every audit.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Guidelines on firewalls and firewall policy, NIST SP 800-41](https://csrc.nist.gov/pubs/sp/800/41/r1/final)
- Official: [Security groups, Amazon VPC](https://docs.aws.amazon.com/vpc/latest/userguide/vpc-security-groups.html)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/firewalls-and-acls

### Network segmentation

Separate zones and VLANs, so one compromised machine does not reach everything.

On a flat network, an attacker who gets into one machine can reach every other. Segmentation splits the network into zones, with VLANs, subnets or cloud networks, and allows only the traffic each zone needs: the web tier talks to the application tier, which alone talks to the database.

Keep administration and production apart, and put what holds the most valuable data behind the most doors.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Network segmentation, CISA](https://www.cisa.gov/sites/default/files/publications/layering-network-security-segmentation_infographic_508_0.pdf)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/network-segmentation

### TLS everywhere

Encrypting every connection, inside the network too, with modern settings.

TLS encrypts a connection and authenticates the server. Use it for every connection, not only those from the internet: an attacker inside the network can read plain traffic between services too. Mutual TLS also authenticates the client.

Use TLS 1.2 or 1.3 only, a current cipher list, HSTS on websites, and automatic renewal. Mozilla's generator gives sound settings for each server.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Transport Layer Security Cheat Sheet, OWASP](https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Security_Cheat_Sheet.html)
- Official: [SSL Configuration Generator, Mozilla](https://ssl-config.mozilla.org/)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/tls-everywhere

### DNS security (optional)

Hijacked records, dangling CNAMEs and DNSSEC.

DNS is a target: an attacker who changes a record controls where users go. Protect the registrar and DNS accounts with MFA and locks, remove records that point at resources you deleted, since a dangling CNAME lets someone else take over a subdomain, and consider DNSSEC to sign your zone.

DNS logs are also a good place to spot malware calling home.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Subdomain takeover, OWASP Web Security Testing Guide](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/10-Test_for_Subdomain_Takeover)
- Official: [What is DNSSEC?, ICANN](https://www.icann.org/resources/pages/dnssec-what-is-it-why-important-2019-03-05-en)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/dns-security

### IDS and IPS (optional)

Systems that watch network traffic for attacks, and block what they recognise.

An intrusion detection system watches traffic for known attack patterns and odd behaviour, and raises an alert; an intrusion prevention system sits in the path and blocks it. Suricata and Snort are the open-source standards; clouds offer managed versions.

They catch known attacks well and new ones poorly, and need tuning, or their alerts drown the team.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Suricata documentation](https://docs.suricata.io/)
- Official: [Guide to intrusion detection and prevention systems, NIST SP 800-94](https://csrc.nist.gov/pubs/sp/800/94/final)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/ids-and-ips

## 3. Identity and access

Who and what may do which action, with as little standing access as possible.

### Identity and access management

One place that says who people and services are, and what they may reach.

IAM is how an organisation manages identities, people and machines alike, and what each may reach. A central identity provider with single sign-on means one account per person, one place to enforce MFA, and one place to remove access when someone leaves.

Services need identities too: a role for each workload, not a shared key. Most real breaches use a valid identity that had more access than it needed.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Digital identity guidelines, NIST SP 800-63](https://pages.nist.gov/800-63-4/)
- Official: [Security best practices in IAM, AWS](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/identity-and-access-management

### Least privilege

Every person and service gets the access it needs, and nothing more.

Least privilege gives each identity the narrowest access that still lets it do its job, for the shortest time. When an account or a service is compromised, that limit is what keeps an incident small.

In practice: no wildcards in policies, separate roles for reading and for changing, access granted just in time for admin work and expiring by itself, and regular reviews that remove what is no longer used. Clouds can show which permissions went unused.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Apply least-privilege permissions, AWS IAM](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#grant-least-privilege)
- Official: [Least privilege, NIST glossary](https://csrc.nist.gov/glossary/term/least_privilege)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/least-privilege

### Role-based access control

Permissions grouped into roles, and roles given to people and services.

RBAC groups permissions into roles, such as reader, deployer or admin, and grants roles rather than single permissions. It makes access easy to reason about and to review. Kubernetes, every cloud and most tools use it.

Kubernetes RBAC is a good place to practise: Roles and ClusterRoles, bound to users and service accounts, checked by the API server on every request.

On this site:

- Article: [Kubernetes API Server Explained: The Life of a Request](https://opsfolk.com/blog/kubernetes-api-server-explained-the-life-of-a-request.md) (28 min read)
- Quiz: [CKA practice: Kubernetes administration basics](https://opsfolk.com/quizzes/cka-practice-basics) (40 questions)

Elsewhere:

- Official: [Using RBAC authorization, Kubernetes](https://kubernetes.io/docs/reference/access-authn-authz/rbac/)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/role-based-access-control

### Secrets management

Passwords, keys and tokens kept out of code, handed out, rotated and audited.

A secret in a Git repository, an image or a log should be treated as leaked. Keep secrets in a manager, such as HashiCorp Vault or a cloud's secret manager, which encrypts them, controls who reads them and records each read.

Better still, avoid long-lived secrets: workload identity and OpenID Connect let a pipeline or a pod get short-lived credentials without any stored key. Rotate what remains.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Secrets Management Cheat Sheet, OWASP](https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html)
- Official: [Vault documentation](https://developer.hashicorp.com/vault/docs)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/secrets-management

### Single sign-on and federation (optional)

SAML and OpenID Connect: one identity provider trusted by every tool.

Federation lets many applications trust one identity provider instead of keeping their own passwords. SAML is the older standard, common in enterprise tools; OpenID Connect, built on OAuth 2.0, is the modern one, and also how pipelines get cloud credentials without stored keys.

Learn what a token holds, how its signature is checked, and how to limit which tokens a cloud role will accept.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [OpenID Connect](https://openid.net/developers/how-connect-works/)
- Official: [About security hardening with OpenID Connect, GitHub](https://docs.github.com/en/actions/security-for-github-actions/security-hardening-your-deployments/about-security-hardening-with-openid-connect)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/single-sign-on-and-federation

## 4. Secure coding

The mistakes behind most vulnerabilities, and how code avoids them.

### Input validation

Treating every input as hostile, and accepting only what is expected.

Most vulnerabilities start with input the code trusted: a form field, a header, a file, a message from another service. Validate on the server, by allow lists of what is expected, its type, length, format and range, rather than block lists of what is known to be bad.

Validation is a first line, not the whole defence: the output must still be encoded for where it goes, and queries parameterised.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Input Validation Cheat Sheet, OWASP](https://cheatsheetseries.owasp.org/cheatsheets/Input_Validation_Cheat_Sheet.html)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/input-validation

### Injection

SQL, command and template injection, and the parameterised queries that stop them.

Injection happens when input is mixed into a command, so that data becomes code: SQL built by joining strings, a shell command with a file name in it, a template rendered from user text.

The fix is to keep data and code apart: parameterised queries or an ORM for SQL, argument lists instead of a shell for commands, and never `eval` on input. A static analyser finds most of the remaining cases.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [SQL Injection Prevention Cheat Sheet, OWASP](https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html)
- Official: [OS Command Injection Defense Cheat Sheet, OWASP](https://cheatsheetseries.owasp.org/cheatsheets/OS_Command_Injection_Defense_Cheat_Sheet.html)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/injection

### Cross-site scripting

Script injected into a page, and the encoding and policies that prevent it.

Cross-site scripting puts an attacker's script into a page another user views, where it can act as them. It comes from text written into HTML without encoding.

Modern frameworks encode by default; the danger is the escape hatches, such as setting raw HTML. Sanitise any HTML you must accept, and add a Content Security Policy, which stops injected scripts from running even when a mistake slips through.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Cross Site Scripting Prevention Cheat Sheet, OWASP](https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html)
- Official: [Content Security Policy, MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/cross-site-scripting

### Secure API design

Authorisation on every object, rate limits, and no more data than needed.

APIs fail in their own ways. The most common is broken object-level authorisation: the API checks who you are, then returns record 42 without checking that it is yours. Others are returning whole objects with fields the client should not see, no rate limits, and old versions left running.

Check authorisation on every request and object, return DTOs with named fields, limit requests per client, and keep an inventory of every endpoint.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [OWASP API Security Top 10](https://owasp.org/API-Security/)
- Official: [REST Security Cheat Sheet, OWASP](https://cheatsheetseries.owasp.org/cheatsheets/REST_Security_Cheat_Sheet.html)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/secure-api-design

### Secure code review (optional)

Reading a change for security, with a checklist and a reviewer who knows what to look for.

Scanners miss logic flaws: an access check in the wrong place, a race between two requests, a redirect to any address. A reviewer who reads a change asking what could be abused finds them.

Use a checklist such as OWASP's ASVS for what to look for, review the risky changes, such as authentication, payments and file handling, with more care, and grow security champions in each team.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [OWASP Application Security Verification Standard](https://owasp.org/www-project-application-security-verification-standard/)
- Official: [OWASP Code Review Guide](https://owasp.org/www-project-code-review-guide/)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/secure-code-review

## 5. Threat modelling

Thinking through what could go wrong before it is built.

### What threat modelling is

Four questions: what are we building, what can go wrong, what will we do, did it work.

Threat modelling is a structured way to find security problems in a design before it is built, when they are cheapest to fix. It comes down to four questions: what are we working on, what can go wrong, what are we going to do about it, and did we do a good job?

It needs no special tool: a diagram of the system, its data flows and trust boundaries, and an hour with the people who build it.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Threat Modeling Manifesto](https://www.threatmodelingmanifesto.org/)
- Official: [Threat Modeling Cheat Sheet, OWASP](https://cheatsheetseries.owasp.org/cheatsheets/Threat_Modeling_Cheat_Sheet.html)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/what-threat-modelling-is

### STRIDE

Six kinds of threat to walk through for each part of a system.

STRIDE gives six categories to check against each element of a diagram: Spoofing identity, Tampering with data, Repudiation, Information disclosure, Denial of service and Elevation of privilege. Each maps to a property you want: authentication, integrity, non-repudiation, confidentiality, availability and authorisation.

It keeps a session from stopping at the threats someone happens to think of first.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [STRIDE threats, Microsoft](https://learn.microsoft.com/en-us/azure/security/develop/threat-modeling-tool-threats)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/stride

### PASTA and other methods (optional)

Risk-centred threat modelling, attack trees and the tools that help.

STRIDE is not the only method. PASTA, the Process for Attack Simulation and Threat Analysis, is a seven-step method that starts from business objectives and ends in risk, suited to larger systems. Attack trees break one goal into the ways to reach it. LINDDUN focuses on privacy.

OWASP Threat Dragon and Microsoft's Threat Modeling Tool help draw and keep the models.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [OWASP Threat Dragon](https://owasp.org/www-project-threat-dragon/)
- Official: [LINDDUN privacy threat modelling](https://linddun.org/)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/pasta-and-other-methods

### Attack surface mapping

Listing every way in: endpoints, ports, accounts, dependencies and people.

The attack surface is every point where an attacker can interact with a system: public endpoints, open ports, admin panels, APIs, accounts, third-party integrations, dependencies and the people with access.

Keep an inventory, since you cannot protect what you do not know you run, and shrink it: remove what is unused, put admin interfaces behind a VPN or SSO, and close ports nobody needs.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Attack Surface Analysis Cheat Sheet, OWASP](https://cheatsheetseries.owasp.org/cheatsheets/Attack_Surface_Analysis_Cheat_Sheet.html)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/attack-surface-mapping

### Threat modelling in the workflow

Small, frequent models in design reviews, kept beside the code.

A threat model written once and filed is soon wrong. In DevSecOps it is part of the workflow: a short session when a feature crosses a trust boundary, questions in the design review template, findings turned into tickets and tests, and the model kept in the repository and updated with the system.

Threat modelling as code, with tools that read a description of the system, keeps it in step.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Threat modeling, OWASP](https://owasp.org/www-community/Threat_Modeling)
- Article: [Threat modeling in practice, Martin Fowler](https://martinfowler.com/articles/agile-threat-modelling.html)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/threat-modelling-in-the-workflow

## 6. Security in the pipeline

Scanners and policies that check every change, automatically.

### Static analysis (SAST)

Scanning source code for vulnerable patterns on every pull request.

Static application security testing reads source code without running it and flags patterns that lead to vulnerabilities: injection, unsafe deserialisation, weak cryptography. Semgrep and CodeQL are widely used, and most languages have their own linters with security rules.

Run it on every pull request and show findings in the review. Start with few, precise rules: a scanner that cries wolf gets ignored.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Semgrep documentation](https://semgrep.dev/docs/)
- Official: [About code scanning with CodeQL, GitHub](https://docs.github.com/en/code-security/code-scanning/introduction-to-code-scanning/about-code-scanning-with-codeql)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/static-analysis

### Dependency scanning (SCA)

Finding known vulnerabilities in the libraries you depend on, and updating them.

Most of an application's code is its dependencies. Software composition analysis lists them, transitive ones included, and matches them against vulnerability databases. Dependabot or Renovate then open pull requests to update them.

Update often, in small steps, so that an urgent fix is not stuck behind two years of upgrades. OSV is the open database most tools read.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [About Dependabot alerts, GitHub](https://docs.github.com/en/code-security/dependabot/dependabot-alerts/about-dependabot-alerts)
- Official: [OSV, the open source vulnerability database](https://osv.dev/)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/dependency-scanning

### Secret scanning

Catching keys and passwords before they are pushed, and revoking those that were.

Secrets leak into Git all the time, and once pushed they stay in the history. Scan before the push, with a pre-commit hook such as gitleaks, and on the server, with your Git host's push protection.

When one leaks, deleting the commit is not enough: revoke and rotate the secret at once, then check its logs for use. Assume a public leak is found by bots within minutes.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [About secret scanning, GitHub](https://docs.github.com/en/code-security/secret-scanning/introduction/about-secret-scanning)
- Official: [Gitleaks](https://github.com/gitleaks/gitleaks)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/secret-scanning

### Dynamic testing (DAST)

Attacking a running application in a test environment, automatically.

Dynamic application security testing runs against the application while it runs, from the outside, as an attacker would: it crawls pages, sends malicious inputs and reads the answers. It finds what static analysis cannot see, such as misconfigured headers and problems that only show at run time.

ZAP is the open-source standard. Run a baseline scan against a staging deploy in the pipeline, and never against a system you do not own.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [ZAP documentation](https://www.zaproxy.org/docs/)
- Official: [ZAP baseline scan](https://www.zaproxy.org/docs/docker/baseline-scan/)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/dynamic-testing

### Infrastructure as code scanning

Finding open buckets and wide firewalls in Terraform and manifests before they apply.

Misconfiguration is among the commonest causes of cloud breaches: a public bucket, a security group open to the world, an unencrypted database. When infrastructure is code, a scanner such as Checkov or Trivy can find these in the Terraform, CloudFormation or Kubernetes manifests, in the pull request, before anything is created.

Fix the finding in code, or record why it is accepted, beside it.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Checkov documentation](https://www.checkov.io/1.Welcome/What%20is%20Checkov.html)
- Official: [Trivy misconfiguration scanning](https://trivy.dev/latest/docs/scanner/misconfiguration/)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/iac-scanning

### Security gates and policy as code

Rules, written as code, that decide what may pass the pipeline.

A gate stops a change that breaks a rule: a critical vulnerability with a fix available, a secret, an unsigned image. Policy as code writes those rules in files, reviewed and versioned like the rest; Open Policy Agent with its Rego language is the common engine.

Block on the few findings that matter and warn on the rest, with an expiring exception process, or teams will find a way around the gate.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Open Policy Agent documentation](https://www.openpolicyagent.org/docs/latest/)
- Official: [Conftest](https://www.conftest.dev/)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/security-gates-and-policy-as-code

## 7. Software supply chain

Knowing what you ship, where it came from, and that nobody changed it.

### Software bills of materials

A list of every component in what you ship, to answer "are we affected?" in minutes.

A software bill of materials lists every component of a build, with versions and licences, in a standard format: SPDX or CycloneDX. Generate one for each artifact in the pipeline, with Syft or your build tool, and keep it beside the artifact.

When the next Log4Shell is announced, an SBOM turns "are we affected?" from a week of searching into a query. Many customers and regulators now ask for one.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [SBOM, CISA](https://www.cisa.gov/sbom)
- Official: [CycloneDX](https://cyclonedx.org/)
- Official: [Syft](https://github.com/anchore/syft)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/sboms

### Signing and provenance

Proving an artifact is yours, unchanged, and built by your pipeline from your code.

A signature proves an artifact was produced by you and not changed since. Sigstore's `cosign` signs images with short-lived keys tied to the pipeline's identity, so there is no key to leak. Provenance goes further: a signed record of which source, which pipeline and which steps built it.

SLSA defines levels of assurance for a build. Verify signatures where it counts: at deploy time, in the cluster.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Sigstore documentation](https://docs.sigstore.dev/)
- Official: [SLSA](https://slsa.dev/)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/signing-and-provenance

### Dependency risk management

Choosing dependencies with care, pinning them, and watching for malicious packages.

Every dependency is code you run but did not write, and its maintainers can be compromised. Choose them with care, using OpenSSF Scorecard to judge a project's health, pin versions with lock files and verified hashes, and pull through a proxy or mirror you control.

Watch for typosquatted and malicious packages, and be wary of install scripts. Fewer dependencies is a security control.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [OpenSSF Scorecard](https://scorecard.dev/)
- Official: [Concise guide for evaluating open source software, OpenSSF](https://best.openssf.org/Concise-Guide-for-Evaluating-Open-Source-Software)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/dependency-risk-management

### Build pipeline hardening

Protecting the pipeline itself, which holds the keys to production.

The pipeline can deploy to production, so an attacker who controls it controls production. Give each job the least permission it needs, use OpenID Connect instead of stored cloud keys, pin third-party actions to a commit, keep untrusted pull requests away from secrets, and use ephemeral runners.

Protect the main branch and require review, so no single person or stolen token can push to production alone.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Security hardening for GitHub Actions](https://docs.github.com/en/actions/security-for-github-actions/security-guides/security-hardening-for-github-actions)
- Official: [Top 10 CI/CD security risks, OWASP](https://owasp.org/www-project-top-10-ci-cd-security-risks/)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/build-pipeline-hardening

## 8. Container and Kubernetes security

Images, workloads and clusters, hardened and watched.

### Image security and scanning

Small, current base images, scanned in the pipeline and in the registry.

An image carries an operating system's worth of packages, each a possible vulnerability. Start from a small, maintained base, such as a slim or distroless image, rebuild often to pick up fixes, and leave build tools out with multi-stage builds.

Scan images with Trivy or Grype in the pipeline and again in the registry, since new vulnerabilities are found in old images every day.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Trivy documentation](https://trivy.dev/latest/docs/)
- Official: [Docker build best practices](https://docs.docker.com/build/building/best-practices/)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/image-security-and-scanning

### Hardening workloads

Non-root users, read-only file systems, dropped capabilities and resource limits.

A container is a process on a shared kernel; what it may do if compromised is set when it starts. Run as a non-root user, make the root file system read-only, drop all Linux capabilities and add back only what is needed, forbid privilege escalation, and set resource limits.

In Kubernetes these are the `securityContext` fields, and the Pod Security Standards' restricted profile enforces them for a whole namespace.

On this site:

- Tool: [Kubernetes YAML generator](https://opsfolk.com/tools/kubernetes-yaml-generator)
- Playground: [Kubernetes cluster](https://opsfolk.com/playgrounds/kubernetes) (60 minutes, premium)

Elsewhere:

- Official: [Pod Security Standards, Kubernetes](https://kubernetes.io/docs/concepts/security/pod-security-standards/)
- Official: [Configure a security context, Kubernetes](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/hardening-workloads

### Kubernetes access control

How the API server authenticates, authorises and admits every request.

Every change to a cluster is a request to the API server, which authenticates it, authorises it with RBAC, and passes it through admission control before storing it. Securing a cluster starts there: no shared admin credentials, narrow Roles for people and service accounts, and no token mounted in pods that do not need one.

Protect etcd and the API server's endpoint, and audit-log the requests.

On this site:

- Article: [Kubernetes API Server Explained: The Life of a Request](https://opsfolk.com/blog/kubernetes-api-server-explained-the-life-of-a-request.md) (28 min read)
- Series: [Kubernetes Internals: How a Cluster Really Works](https://opsfolk.com/blog/series/kubernetes-internals-how-a-cluster-really-works) (9 parts)

Elsewhere:

- Official: [Controlling access to the Kubernetes API](https://kubernetes.io/docs/concepts/security/controlling-access/)
- Official: [Role based access control good practices, Kubernetes](https://kubernetes.io/docs/concepts/security/rbac-good-practices/)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/kubernetes-access-control

### Network policies

Segmenting a cluster so pods talk only to the pods they need.

By default every pod in a cluster can reach every other. Network policies change that: start with a default deny in each namespace, then allow each flow explicitly, such as the frontend to the API on its port and the API to the database.

They need a network plugin that enforces them, such as Calico or Cilium. A service mesh adds mutual TLS and rules by identity on top.

On this site:

- Quiz: [CKA practice: Advanced Kubernetes administration](https://opsfolk.com/quizzes/cka-practice-advanced) (40 questions, for members)

Elsewhere:

- Official: [Network policies, Kubernetes](https://kubernetes.io/docs/concepts/services-networking/network-policies/)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/network-policies

### Admission control and policies

Kyverno or Gatekeeper refusing what breaks the rules before it reaches the cluster.

Admission controllers see every object before it is stored, and can refuse or change it. Policy engines such as Kyverno and OPA Gatekeeper use them to enforce rules across a cluster: images only from your registry and signed, no privileged pods, resource limits set, required labels present.

The pipeline's checks can be skipped; the cluster's cannot. Kubernetes' own ValidatingAdmissionPolicy covers simple rules without an extra component.

On this site:

- Article: [Kubernetes API Server Explained: The Life of a Request](https://opsfolk.com/blog/kubernetes-api-server-explained-the-life-of-a-request.md) (28 min read)

Elsewhere:

- Official: [Kyverno documentation](https://kyverno.io/docs/)
- Official: [OPA Gatekeeper documentation](https://open-policy-agent.github.io/gatekeeper/website/docs/)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/admission-control-and-policies

### Runtime security (optional)

Watching what containers actually do, and alerting on what they should not.

Scanning catches known weaknesses before deploy; runtime security watches what containers do once they run. Falco reads system calls and alerts on suspicious behaviour: a shell started in a container, a sensitive file read, an unexpected outbound connection.

Pair it with the CIS benchmarks, checked by kube-bench, to keep the cluster's own configuration sound.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Falco documentation](https://falco.org/docs/)
- Official: [kube-bench](https://github.com/aquasecurity/kube-bench)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/runtime-security

## 9. Cloud security

Accounts, keys and configuration in the cloud, kept in check.

### The shared responsibility model

What the cloud provider secures, and what is always yours.

A cloud provider secures its data centres, hardware and the services it runs; you secure what you build and configure on them: identities, network rules, data, operating systems you manage, and your code. Where the line falls depends on the service: more is yours on a virtual machine than on a managed database.

Most cloud breaches are on the customer's side of that line, through misconfiguration or stolen credentials.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Shared responsibility model, AWS](https://aws.amazon.com/compliance/shared-responsibility-model/)
- Official: [Shared responsibility in the cloud, Microsoft](https://learn.microsoft.com/en-us/azure/security/fundamentals/shared-responsibility)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/shared-responsibility-model

### Cloud identity and access

Locked-down root accounts, roles instead of keys, and guard rails across accounts.

In a cloud, identity is the perimeter. Protect the root account with hardware MFA and never use it, give people access through SSO and roles, and give workloads roles of their own rather than access keys.

Split environments into separate accounts or projects, and set guard rails above them, such as AWS service control policies, that no one inside an account can lift: no disabling audit logs, no regions you do not use.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Security best practices in IAM, AWS](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html)
- Official: [Service control policies, AWS Organizations](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scps.html)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/cloud-identity-and-access

### Key management

Cloud KMS: encryption keys that never leave the service, with access you can audit.

A key management service, such as AWS KMS, Google Cloud KMS or Azure Key Vault, creates and holds encryption keys in hardware security modules; they never leave it. Services encrypt data with keys it protects, and every use of a key is logged.

Learn envelope encryption, key policies that say who may use a key, and rotation. Who can use a key is who can read the data.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [AWS Key Management Service documentation](https://docs.aws.amazon.com/kms/)
- Official: [Cloud Key Management Service, Google Cloud](https://cloud.google.com/kms/docs)
- Official: [Key Management Cheat Sheet, OWASP](https://cheatsheetseries.owasp.org/cheatsheets/Key_Management_Cheat_Sheet.html)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/key-management

### Cloud security posture management

Checking every account continuously against a baseline, and fixing the drift.

Even with infrastructure as code, settings drift: a console change, a forgotten test resource, a new service nobody reviewed. Cloud security posture management tools check every account continuously against a baseline, such as the CIS benchmarks, and report public buckets, unused keys and open ports.

AWS Security Hub, Microsoft Defender for Cloud and Google's Security Command Center do it natively; Prowler is open source.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Prowler documentation](https://docs.prowler.com/)
- Official: [CIS Benchmarks](https://www.cisecurity.org/cis-benchmarks)
- Official: [AWS Security Hub](https://docs.aws.amazon.com/securityhub/)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/cloud-security-posture-management

### Cloud audit logging

A record of every API call, kept where an attacker cannot erase it.

Every action in a cloud is an API call, and the cloud can record each one: AWS CloudTrail, Azure's activity log, Google's Cloud Audit Logs. Turn them on in every account and region, send them to a separate account an attacker cannot reach, and keep them long enough to investigate.

They answer the questions an incident raises: who did this, when, from where, and what else did they touch.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [AWS CloudTrail documentation](https://docs.aws.amazon.com/cloudtrail/)
- Official: [Cloud Audit Logs, Google Cloud](https://cloud.google.com/logging/docs/audit)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/cloud-audit-logging

## 10. Vulnerability management

Finding weaknesses in what runs, deciding what matters, and fixing it.

### Vulnerability scanning

Scanning hosts and services for known weaknesses with Nessus, OpenVAS or Qualys.

A vulnerability scanner probes hosts and services for known weaknesses: outdated software, weak settings, default passwords. Nessus and Qualys are the commercial standards; OpenVAS, part of Greenbone, is open source.

Scan on a schedule and after changes, authenticated where you can, since a scanner that logs in sees far more. Scan only what you own or are authorised to test.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Greenbone OpenVAS documentation](https://greenbone.github.io/docs/latest/)
- Official: [Tenable Nessus documentation](https://docs.tenable.com/nessus/)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/vulnerability-scanning

### Prioritising vulnerabilities

CVEs, CVSS, EPSS and the KEV list: fixing what attackers actually use first.

Scanners report far more than anyone can fix, so prioritise. A CVE names a vulnerability; CVSS scores its severity; EPSS estimates how likely it is to be exploited; CISA's Known Exploited Vulnerabilities list says it already is.

Add your own context: is it reachable from the internet, does it touch sensitive data? Fix exploited and exposed issues first, and set deadlines by priority.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Known Exploited Vulnerabilities catalog, CISA](https://www.cisa.gov/known-exploited-vulnerabilities-catalog)
- Official: [EPSS, FIRST](https://www.first.org/epss/)
- Official: [CVSS, FIRST](https://www.first.org/cvss/)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/prioritising-vulnerabilities

### Automated patching

Keeping systems current without waiting for someone to remember.

Most exploited vulnerabilities had a patch for months. Patch automatically: unattended upgrades on servers, rebuilt images on a schedule, Dependabot or Renovate for libraries, and managed services that patch themselves.

Immutable infrastructure makes it easier: rather than patch a running machine, build a new image and replace it. Tests and gradual rollouts make updating safe enough to do often.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Automatic updates, Ubuntu Server](https://documentation.ubuntu.com/server/how-to/software/automatic-updates/)
- Official: [Renovate documentation](https://docs.renovatebot.com/)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/automated-patching

### Nmap (optional)

Finding what is listening on a network, as an attacker would.

Nmap discovers hosts on a network and the ports and services they expose. Point it at your own systems to see what an attacker would: a database port open to the internet, a forgotten admin page, an old version of SSH.

Learn host discovery, port scans and service detection. Scanning networks you do not own or are not authorised to test is illegal in many countries.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Nmap reference guide](https://nmap.org/book/man.html)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/nmap

### Wireshark (optional)

Reading network traffic packet by packet.

Wireshark captures and decodes network traffic, packet by packet, for hundreds of protocols. Use it to check that traffic really is encrypted, to see what an application sends, and to investigate a suspicious connection.

On servers, capture with `tcpdump` and open the file in Wireshark. Learn its display filters, which turn a million packets into the few that matter.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Wireshark user's guide](https://www.wireshark.org/docs/wsug_html_chunked/)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/wireshark

### Burp Suite and manual testing (optional)

An intercepting proxy for testing web applications by hand.

Burp Suite, and ZAP as its open-source alternative, sits between a browser and an application, so you can see, change and replay every request. It is the main tool for testing web applications by hand: tampering with parameters, testing access control between two users, probing for injection.

Practise on deliberately vulnerable applications such as OWASP Juice Shop, never on sites you do not own.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Burp Suite documentation](https://portswigger.net/burp/documentation)
- Article: [Web Security Academy, PortSwigger](https://portswigger.net/web-security)
- Official: [OWASP Juice Shop](https://owasp.org/www-project-juice-shop/)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/burp-suite-and-manual-testing

### Penetration testing and bug bounties (optional)

Paying people to find what scanners miss, and a way to hear from those who do.

A penetration test is an authorised attack by specialists, within a scope and a time box, to find what scanners and reviews missed. A bug bounty pays outside researchers for valid findings, continuously.

Before either, publish a vulnerability disclosure policy and a `security.txt`, so anyone who finds a problem knows how to tell you and that they will not be sued for it.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [OWASP Web Security Testing Guide](https://owasp.org/www-project-web-security-testing-guide/)
- Official: [security.txt](https://securitytxt.org/)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/penetration-testing-and-bug-bounties

## 11. Detection and response

Seeing an attack in the logs, and handling it when it happens.

### Security logging

Recording the events an investigation needs, without the data it must not hold.

You cannot investigate what was never recorded. Log the events that matter for security: sign-ins and their failures, permission changes, access to sensitive data, admin actions, and errors from validation. Include who, what, when and from where.

Never log passwords, tokens or personal data you do not need, send logs off the host at once, and protect them from change.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Logging Cheat Sheet, OWASP](https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html)
- Official: [Guide to computer security log management, NIST SP 800-92](https://csrc.nist.gov/pubs/sp/800/92/final)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/security-logging

### SIEM and log analysis

Collecting security events in one place, correlating them, and searching them.

A security information and event management system collects logs from every source, cloud, hosts, applications, identity provider, firewalls, and correlates them: five failed sign-ins followed by a success from a new country is an event no single log shows.

Splunk, Microsoft Sentinel, Elastic Security and Wazuh are common. Learn to search them quickly; during an incident, that is most of the work.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Elastic Security documentation](https://www.elastic.co/docs/solutions/security)
- Official: [Wazuh documentation](https://documentation.wazuh.com/current/index.html)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/siem-and-log-analysis

### Detection and alerts

Writing rules for real attacker behaviour, mapped to MITRE ATT&CK.

A detection is a rule that turns events into an alert. Write them for how attackers actually behave, using MITRE ATT&CK as a catalogue of techniques, and keep them as code, tested and versioned; Sigma is a common format that converts to most SIEMs.

Tune them. Each alert should have an owner and a runbook, and too many false alarms bury the real one.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [MITRE ATT&CK](https://attack.mitre.org/)
- Official: [Sigma rules](https://sigmahq.io/)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/detection-and-alerts

### Endpoint detection and response (optional)

Agents on laptops and servers that record activity and stop threats.

Endpoint detection and response tools run an agent on each laptop and server. They record processes, files and connections, detect malicious behaviour, and let a responder isolate a machine or kill a process remotely.

CrowdStrike, Microsoft Defender for Endpoint and SentinelOne are common; osquery and Wazuh cover part of it in open source. An engineer's laptop with production access deserves it most.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [osquery documentation](https://osquery.readthedocs.io/en/stable/)
- Official: [Microsoft Defender for Endpoint](https://learn.microsoft.com/en-us/defender-endpoint/microsoft-defender-endpoint)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/endpoint-detection-and-response

### The incident response lifecycle

Prepare, detect, contain, eradicate, recover, and learn.

Incident response follows a cycle: prepare (plans, contacts, access, practice), detect and analyse, contain the damage, eradicate the cause, recover, and learn. Containment comes first: revoke the stolen key, isolate the host, block the address, before working out everything that happened.

Write the plan before you need it, with who decides, who talks to customers and lawyers, and practise it with tabletop exercises.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Incident response recommendations, NIST SP 800-61](https://csrc.nist.gov/pubs/sp/800/61/r3/final)
- Official: [Incident response playbooks, CISA](https://www.cisa.gov/resources-tools/resources/federal-government-cybersecurity-incident-and-vulnerability-response-playbooks)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/incident-response-lifecycle

### Forensics and root cause analysis (optional)

Preserving evidence, reconstructing what happened, and fixing why it could.

After containment, find out exactly what happened. Preserve evidence before changing anything: snapshot disks and memory, copy logs, record times. Then build a timeline of the attacker's steps from the logs and artefacts.

The root cause is rarely the single mistake: ask why the system allowed it and why it was not caught sooner. A blameless review turns that into fixes that close the whole class.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Guide to integrating forensic techniques into incident response, NIST SP 800-86](https://csrc.nist.gov/pubs/sp/800/86/final)
- Article: [Postmortem culture, Google SRE book](https://sre.google/sre-book/postmortem-culture/)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/forensics-and-root-cause-analysis

### Security automation (SOAR) (optional)

Playbooks that enrich alerts and take the first response steps by themselves.

Security orchestration, automation and response takes repetitive work off analysts: a playbook enriches an alert with context, such as who owns the host and whether the address is known bad, opens a ticket, and can act, such as disabling an account or isolating a machine, sometimes after a human approves.

Automate the well-understood steps first; keep a person in the loop for the actions that hurt if they are wrong.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Shuffle, open-source SOAR](https://shuffler.io/docs/about)
- Official: [Automation in Microsoft Sentinel](https://learn.microsoft.com/en-us/azure/sentinel/automation/automation)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/security-automation

## 12. Secure architecture

Designs where one failure or one stolen key is not enough.

### Defence in depth

Several layers of controls, so that one failing is not enough.

No single control is perfect, so layer them: a firewall, then authentication, then authorisation in the application, then encryption of the data, then monitoring that notices when the others fail. An attacker has to get through every layer; a mistake in one is caught by the next.

When reviewing a design, ask what happens if this one control fails. If the answer is everything, add a layer.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Defense in depth, NIST glossary](https://csrc.nist.gov/glossary/term/defense_in_depth)
- Official: [Security pillar, AWS Well-Architected](https://docs.aws.amazon.com/wellarchitected/latest/security-pillar/welcome.html)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/defence-in-depth

### Zero trust

No trust from being inside the network: every request proves who and what it is.

The old model trusted anything inside the network. Zero trust trusts nothing by location: every request is authenticated and authorised, by the identity of the user and the device, and the health of both, wherever it comes from.

In practice: SSO and MFA in front of every internal tool, identity-aware proxies instead of a VPN, mutual TLS between services, and short-lived access.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Zero trust architecture, NIST SP 800-207](https://csrc.nist.gov/pubs/sp/800/207/final)
- Official: [Zero Trust Maturity Model, CISA](https://www.cisa.gov/zero-trust-maturity-model)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/zero-trust

### PKI and certificate lifecycle

Running certificate authorities, issuing short-lived certificates, and renewing them automatically.

A public key infrastructure issues certificates that identities, servers and services trust. Internally you may run your own, with a root kept offline and intermediates that issue; tools such as step-ca, Vault's PKI engine and cert-manager in Kubernetes do the issuing.

Prefer short-lived certificates renewed automatically: an expired certificate is a classic outage, and a stolen long-lived one is a classic breach. Plan for a compromised CA too.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [cert-manager documentation](https://cert-manager.io/docs/)
- Official: [PKI secrets engine, Vault](https://developer.hashicorp.com/vault/docs/secrets/pki)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/pki-and-certificate-lifecycle

### DDoS mitigation (optional)

Absorbing floods of traffic with CDNs, rate limits and providers' shields.

A distributed denial-of-service attack floods a service until it cannot answer. No single server can absorb a large one; a CDN or a provider's protection, such as Cloudflare, AWS Shield or Google Cloud Armor, absorbs and filters it at the edge.

At the application, add rate limits, caching and autoscaling with a ceiling, and know in advance whom to call during an attack.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Article: [What is a DDoS attack?, Cloudflare](https://www.cloudflare.com/learning/ddos/what-is-a-ddos-attack/)
- Official: [AWS best practices for DDoS resiliency](https://docs.aws.amazon.com/whitepapers/latest/aws-best-practices-ddos-resiliency/welcome.html)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/ddos-mitigation

### Security at scale (optional)

Many accounts, regions and teams: central identity, guard rails and paved roads.

With hundreds of accounts, regions and teams, security cannot be reviewed one change at a time. It scales through central identity for every account, guard rails nobody can lift, logs from everywhere in one place, and paved roads: templates, modules and pipelines that are secure by default, so the easy way is the safe way.

Plan for a whole region or account being lost or compromised.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Security reference architecture, AWS](https://docs.aws.amazon.com/prescriptive-guidance/latest/security-reference-architecture/welcome.html)
- Official: [Enterprise foundations blueprint, Google Cloud](https://cloud.google.com/architecture/security-foundations)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/security-at-scale

## 13. Governance and compliance

Frameworks, audits and risk: showing that security is done, not just doing it.

### Security frameworks

NIST CSF, ISO 27001 and SOC 2: what each asks for, and who asks for it.

Frameworks organise security into controls an organisation can be measured against. The NIST Cybersecurity Framework is a free, widely used structure. ISO/IEC 27001 is an international standard for an information security management system, with certification. SOC 2 is an audit report on controls, which customers of software companies in the US often ask for.

They overlap a great deal: one set of controls can serve several.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [NIST Cybersecurity Framework](https://www.nist.gov/cyberframework)
- Official: [ISO/IEC 27001](https://www.iso.org/standard/27001)
- Official: [SOC 2, AICPA](https://www.aicpa-cima.com/topic/audit-assurance/audit-and-assurance-greater-than-soc-2)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/security-frameworks

### Compliance as code

Mapping controls to automated checks, so evidence is collected, not assembled.

Audits ask for evidence that controls work: reviews required on main, logs kept, encryption on, access reviewed. In DevSecOps much of it comes from automation already in place: pipeline policies, IaC scans and posture checks.

Map each control to the checks that prove it, and collect the evidence continuously. The audit then becomes an export rather than a month of screenshots.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [OSCAL, NIST](https://pages.nist.gov/OSCAL/)
- Official: [AWS Audit Manager](https://docs.aws.amazon.com/audit-manager/)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/compliance-as-code

### Risk management

Weighing likelihood against impact, and deciding what to fix, accept or transfer.

Security is not about removing all risk but about managing it. A risk register lists what could happen, how likely it is and what it would cost; each risk is then reduced, accepted by someone with authority, transferred, for example to insurance, or avoided.

Quantified methods such as FAIR express risk in money, which helps compare a control's cost with the loss it prevents.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Guide for conducting risk assessments, NIST SP 800-30](https://csrc.nist.gov/pubs/sp/800/30/r1/final)
- Article: [FAIR Institute](https://www.fairinstitute.org/what-is-fair)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/risk-management

### Security culture and champions (optional)

Engineers in every team who care about security, and a team that helps them.

Tools fail without people who use them well. A security champions programme gives an engineer in each team time, training and a direct line to the security team; they bring security into design and review, and feed problems back.

Measure what helps: time to fix critical findings, coverage of scanning, incidents caught early. Keep training short and tied to the team's own code.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Security Champions Guide, OWASP](https://owasp.org/www-project-security-champions-guidebook/)
- Official: [OWASP SAMM](https://owaspsamm.org/)

Topic page: https://opsfolk.com/roadmaps/devsecops/topics/security-culture-and-champions

## About this roadmap

This roadmap puts DevSecOps in the order to learn it, from what confidentiality means to a security programme an auditor can check. Each stage builds on the ones before it, so start at the top and move down; a topic marked optional can wait until you need it.

DevSecOps is DevOps with security built in from the start rather than checked at the end: threats are thought through at design time, every change is scanned by the pipeline, what is built is signed and traceable, and production is watched for attacks as closely as for outages. Security becomes everyone's work, with the security team building the guard rails instead of holding the gate.

## Who it is for

DevOps and platform engineers who want to own the security of what they build and run, developers who want to write safer code, and security engineers moving closer to engineering teams.

## Before you start

This roadmap assumes you know Linux, the shell, Git, containers, a cloud and CI/CD. The [DevOps roadmap](https://opsfolk.com/roadmaps/devops) covers them; the [Docker roadmap](https://opsfolk.com/roadmaps/docker) and the [Kubernetes roadmap](https://opsfolk.com/roadmaps/kubernetes) go deeper into two of its stages. You will also want to read and write scripts, in Bash and in a language such as Python or Go.

## How to use it

- Open a topic for a few lines on what it is and why it matters here, then follow its links: this site's articles first, then the official documentation and standards.
- Practise only on systems you own or have written permission to test. Scanning or attacking anyone else's is illegal in most countries, whatever the intent.
- Add each control to a real project as you learn it: a scanner in its pipeline, a signed image, a policy in its cluster, an alert on its logs.
- Mark a topic as done once you could explain it to a colleague and do it without notes. Your marks stay with your account.

## FAQ

### What is the difference between DevOps and DevSecOps?

DevOps brings development and operations together to ship faster and more reliably. DevSecOps adds security to that same loop: the same pipelines, code reviews and automation now also check for vulnerabilities, secrets, insecure configuration and risky dependencies, so security keeps pace with delivery instead of slowing it.

### Do I need to be a security expert first?

No. Most of this roadmap is engineering you may already do, with a security purpose. What you need is the habit of asking what could go wrong, and the foundations in the first stages to answer it.

### Which tools should I learn first?

The ones that fit where you already work: a dependency scanner and secret scanning in your Git host, a static analyser for your language, and an image scanner such as Trivy in your pipeline. Tools change; the stages of the pipeline they fill do not.

### Is a certification worth it?

It can help a career, but it does not replace practice. Build the controls in this roadmap into a project of your own first; a certification then confirms what you can already show.
