Security From Scratch¶
A plain-English path from "I have never thought about security" to working as a security engineer.
Seven phases. Each one ends with what you can actually do afterwards, and points to the pages on this site (and its sibling sites) that go deeper. No exam scaffolding until you want it.
Who this is for¶
- You are new to security, or you came to it sideways from development, IT support or operations.
- You want to understand why the controls exist, not memorise a list of them.
- You may want a certification later, but not today.
If you already have an exam date, go straight to the Study Hub. If you want the certification order for a career, read the Security Engineer roadmap after Phase 3.
How to work through it¶
Each phase has:
- What you'll learn - the ideas, in plain English
- Why it matters - where it shows up in real work
- Try it - one small hands-on exercise
- Go deeper - the pages to read next
Don't try to finish a phase before starting the next. Security is a web, not a ladder: you will loop back to identity and logging for the rest of your career.
flowchart LR
P0[0. Foundations] --> P1[1. How attacks work]
P1 --> P2[2. Identity and access]
P2 --> P3[3. Protecting data]
P3 --> P4[4. Cloud security]
P4 --> P5[5. Detect and respond]
P5 --> P6[6. Governance and compliance]
P6 --> P7[7. Specialise] The seven phases in order. Phases 2 to 5 are the core of most security engineering jobs; Phase 7 is where you pick a lane.
Phase 0 - The foundations security sits on¶
What you'll learn
- How a computer talks to another one: IP addresses, ports, DNS, HTTP.
- What a server is, and what a terminal is for.
- Files, users and permissions on Linux.
Why it matters
Nearly every attack is a normal thing used in an abnormal way: a valid login, an open port, an over-permissive file. You cannot spot "abnormal" until "normal" is boring to you.
Try it
Open a terminal, ssh into a free-tier VM, list the open ports with ss -tlnp, and check who can read /etc/shadow. Then delete the VM.
Go deeper (on the Cloud Zero to Hero site, which owns the basics)
- Day One - terminal, git, HTTP and servers, assuming nothing
- File permissions and SSH basics
- Networking troubleshooting
- DNS explained
Then, on this site, Harden a Linux server turns that Linux knowledge into your first security build: SSH keys only, a default-deny firewall, automatic patching and audit logging, measured before and after.
You can now: explain what happens when you type a URL into a browser, and read a Linux permission string.
Phase 1 - How attacks actually work¶
What you'll learn
- The CIA triad: confidentiality, integrity, availability. Every control protects at least one.
- Threats, vulnerabilities and risk, and why they are different words.
- The common attack shapes: phishing, credential theft, injection, misconfiguration, ransomware, supply-chain compromise.
- Defence in depth: no single control is trusted to hold.
Why it matters
Security work is choosing which risks to reduce with limited time. If you can't name how a system gets attacked, you can't decide what to fix first.
Try it
Pick an app you use every day. Write down three ways someone could get into your account without your password. For each, name the control that stops it.
Go deeper
- Glossary: Security and Identity - the vocabulary, defined once
- Phishing and social engineering - the attack that starts most incidents, from the defender's side
- Security awareness training - the programme side: behaviour change, reporting culture and better metrics than click rate
- Email security: SPF, DKIM and DMARC - stopping attackers from sending mail as your domain
- Risk management basics - threats, vulnerabilities and risk as precise words, and the four ways to respond
- OWASP Top 10 explained - the ten most important web application risks and how to prevent each
- Threat modeling explained - STRIDE and data flow diagrams: a repeatable way to ask "what could go wrong?"
- Security topic index - everything on this site about security, by subject
- CompTIA Security+ and ISC2 CC - the two common first certs; their notes double as a structured syllabus even if you never sit the exam
You can now: describe a breach you read about in the news in terms of the vulnerability, the threat and the control that was missing.
Phase 2 - Identity and access¶
What you'll learn
- Authentication (who are you?) versus authorisation (what may you do?).
- MFA, and why phishing-resistant MFA matters.
- Least privilege, roles versus policies, and federation (one login across many systems).
- Why identity has replaced the network edge as the main perimeter.
Why it matters
Most cloud breaches start with a credential, not an exploit. Identity is where a security engineer spends most of their week.
Try it
In a free-tier cloud account, create a user with no permissions, then grant exactly what it needs to read one storage bucket and nothing else. Prove it cannot read a second bucket.
Go deeper
- IAM explained
- MFA and passkeys - why phishing-resistant MFA is the target
- OAuth and OIDC explained - how logins become tokens, and the validation checks that matter
- Least privilege explained - shrinking the blast radius of every credential
- Zero trust explained - the short concept behind the architecture pattern below
- Identity and IAM topic index
- Identity and IAM services compared - AWS, Azure and GCP side by side
- Zero trust architecture and zero trust access for internal apps - replacing the VPN with per-app, device-aware access
- Case study: Capital One 2019 - what one over-permissioned role cost
- Case study: Snowflake customer breaches 2024 - what password-only logins to a data platform cost
- Case study: Change Healthcare 2024 - what a remote portal without MFA cost
You can now: design access for a small team so nobody holds a permission they don't use.
Phase 3 - Protecting data¶
What you'll learn
- Encryption in transit (TLS) and at rest, and what each one does and does not protect against.
- Keys: who holds them, how they rotate, and why key management is the hard part.
- Secrets: API keys and passwords do not belong in code or config files.
- Data classification: you protect what you know you have.
Why it matters
When something does get through, encryption and good secrets handling decide whether it becomes a headline.
Try it
Run a secret scanner (for example gitleaks) over one of your own repositories. Move anything it finds into a secrets manager and rotate it.
Go deeper
- Encryption explained - at rest vs in transit, envelope encryption and KMS
- TLS and HTTPS
- Hashing and password storage - salts, slow hashes and why passwords are never encrypted
- Secrets management
- Data loss prevention explained - classifying data and stopping it leaving
- Secrets and PKI platform - short-lived credentials, KMS and certificates as one design
- HashiCorp Vault Associate - secrets management as a discipline
You can now: explain to a developer why their .env file is a risk, and what to do instead.
Phase 4 - Cloud security¶
What you'll learn
- The shared responsibility model: what the provider secures and what is still yours.
- Network controls in the cloud: private subnets, security groups, private endpoints.
- Posture management: finding the misconfigured bucket before someone else does.
- Container and Kubernetes security basics.
Why it matters
Most new systems are built in the cloud, and cloud mistakes are configuration mistakes made at scale.
Try it
Work through the zero trust hands-on project: identity provider, MFA, and access that checks who you are on every request.
Go deeper
- Shared responsibility model
- Network security basics - firewalls, segmentation, security groups vs NACLs, WAFs
- Software supply chain security - SBOMs, signing, SLSA and safer CI/CD
- Case studies: SolarWinds 2020 (a compromised build system) and Log4Shell 2021 (finding a vulnerable dependency everywhere)
- CSPM and CNAPP explained - posture management, workload protection and attack paths
- Container security basics and Kubernetes security basics - images, runtime settings, RBAC, pod security and network policies
- Cloud security in 1 hour - a curated reading order
- Security tools compared - each cloud's native security services
- For cloud itself (compute, networking, VPCs): Cloud from Scratch on the Cloud Zero to Hero site
- Certs: CCSK v5, then the security exam for your main cloud: GCP Cloud Security Engineer, the Azure SC-series, or AWS
You can now: review a cloud account and list the three changes that most reduce its risk.
Phase 5 - Detect and respond¶
What you'll learn
- Logs as evidence: what to collect, where to keep it, and how long.
- Detection: turning logs into alerts that a human should act on, and cutting the noise.
- Incident response: prepare, detect, contain, eradicate, recover, learn.
- Vulnerability management: scanning is easy, deciding what to patch first is the job.
Why it matters
Prevention fails eventually. Teams are judged on how quickly they notice and how calmly they recover.
Try it
Turn on audit logging in your free-tier account, do something suspicious on purpose (create an access key for an unused user), and find the event in the logs. Then write a one-paragraph incident note as if it were real. The centralized logging and alerting project turns this into a full build: a locked audit log archive, managed threat detection and five tested email alerts.
Go deeper
- Logging and detection - what to log, SIEM, and detection engineering basics
- Incident response basics - the lifecycle, runbooks and blameless postmortems
- Vulnerability management - CVE, CVSS, EPSS and KEV, and how to decide what to patch first
- Endpoint security: EDR and XDR - behavioural detection and one-click isolation on the machines attackers land on
- Backup and ransomware resilience - 3-2-1-1-0, immutable backups and tested restores
- Centralized security logging and SIEM and SOC detection and response pipeline - the reference designs behind detection at scale
- Case study: MOVEit 2023 - responding when an internet-facing product is mass-exploited
- Security engineer interview prep - the incident response and detection sections are a good self-test
- Certs: CompTIA CySA+ and Microsoft SC-200 are both built around this phase
You can now: take an alert, decide whether it is real, and write down what happened in an order someone else can follow.
Phase 6 - Governance, risk and compliance¶
What you'll learn
- Policies, standards and controls, and how auditors test them.
- The frameworks you will meet most: SOC 2, ISO 27001, NIST CSF, HIPAA, PCI DSS, GDPR, FedRAMP, and the newer regulations NIS2, DORA and CMMC.
- Risk registers and exceptions: security is a business decision, not a veto.
Why it matters
Compliance is why many companies fund a security team in the first place. Knowing the frameworks lets you turn "the auditor asked" into a control that also makes the system safer.
Try it
Pick SOC 2. For each of your Phase 2 to 5 exercises, write which control it would count as evidence for.
Go deeper
- Risk management basics - risk registers, appetite, SLE / ARO / ALE and the four responses
- Compliance guides: SOC 2, ISO 27001, NIST CSF 2.0, HIPAA, PCI DSS, GDPR, FedRAMP, NIS2, DORA, CMMC
- Certs: ISACA CISA (audit) and CISM (management)
- AI-specific frameworks (NIST AI RMF, EU AI Act, ISO 42001) live on the AI site: start with the NIST AI RMF and the AI safety and governance hub
You can now: read a compliance requirement and say which technical control satisfies it.
Phase 7 - Pick a lane¶
Security engineering branches. Pick the one that matches the work you enjoyed most in Phases 2 to 6:
| If you liked... | Lane | Go deeper |
|---|---|---|
| Building access, guardrails and secure platforms | Cloud and platform security | CCSP, CKS, GitHub Advanced Security |
| Finding the weakness before an attacker does | Offensive security | OSCP (PEN-200) |
| Alerts, investigations and incidents | Security operations | CySA+, SC-200 |
| Policy, risk and audits | GRC | CISA, CISM |
| Designing the whole programme | Security architecture and leadership | CISSP, SC-100 |
| Securing AI systems and agents | AI security | AI security on the AI site |
AI security is now part of the job¶
Any team shipping an LLM feature has new attack surface: prompt injection, over-permissive agent tools, poisoned models and data. The AI Zero to Hero site covers it in depth:
- OWASP Top 10 for LLM applications
- Prompt injection, explained and how to defend against it
- Agent and tool security
- AI threat modeling
The ideas carry straight over from Phases 2 and 3: least privilege for tools, untrusted input stays untrusted, and log everything.
Where to go from here¶
- Study Hub - every security certification on this site, with a decision tree
- Security Engineer roadmap - the certification order for the career
- Practice questions - one scenario bank per certification
- Topic indexes - browse by subject instead of by provider
Spot something wrong or unclear? See CONTRIBUTING.md.