Cybersecurity-Mastery

Secure Development — Track

Building security into the software lifecycle: modelling threats, writing safe code and automating verification in the pipeline.

Your progress in this track

Set up the lab environment below once, then work the lessons — each one is hands-on-first.

Lab Environment

Set up once, then use it for every chapter in the Secure Development part. Everything runs locally and isolated — you never touch a system you don't own.

This part is mostly conceptual and tool-driven — no dedicated vulnerable targets are needed. Work from Kali (or any Linux box) and the tools called out in each chapter.

What you get

TargetHow to reach it
Kali / local shelleverything you need is a terminal and the tools named per chapter

Provision it — save this as docker-compose.yml and run docker compose up -d (or import the equivalent spec into CyberForge):

yaml
# Optional scratch box for trying commands in isolation:
services:
  scratch:
    image: kalilinux/kali-rolling        # or debian:stable-slim
    container_name: scratch
    command: sleep infinity
    networks: [labnet]
networks:
  labnet: { driver: bridge, internal: true }

Attacker box. Run the chapter's commands directly on Kali, or in the disposable scratch container to keep your main system clean.

Verify it works

  • docker exec -it scratch bash gives an isolated shell.

Teardown. docker compose down stops it; add -v to also drop volumes. Snapshot before big changes so you can revert.

Safety. Keep intentionally-vulnerable targets on an isolated/internal network. Never expose them to the internet or attack anything outside this lab.

Lessons

#LessonDifficultyHands-onWhat you'll do
1Secure SDLC🟢 Beginner~48mShifting left, security activities per phase, gates and maturity models (BSIMM/SAMM).
2Threat Modeling🟡 Intermediate~60mSTRIDE, attack trees, data-flow diagrams, PASTA and turning models into requirements.
3Secure Coding🟡 Intermediate~72mInput validation, output encoding, safe APIs and language-specific pitfalls.
4DevSecOps🟡 Intermediate~60mPipeline security, policy as code, guardrails and measuring program effectiveness.
5Static Application Security Testing🟡 Intermediate~48mHow SAST works, taint analysis, rule tuning, triage and CI integration.
6Dynamic Application Security Testing🟡 Intermediate~48mCrawling, active scanning, authenticated scans and pipeline gating.
7Interactive Application Security Testing🟡 Intermediate~36mInstrumentation, runtime coverage, and the trade-offs versus SAST and DAST.
8Secrets Management🟡 Intermediate~48mVaulting, dynamic secrets, rotation, detection of leaks and preventing hardcoded keys.
9CI/CD Security🟠 Advanced~60mRunner isolation, poisoned pipeline execution, artefact integrity and OIDC federation.
10Dependency Security🟡 Intermediate~48mSCA, transitive risk, lockfiles, pinning and vulnerability triage for third-party code.
11Software Supply Chain Security🟠 Advanced~60mSLSA, provenance, signing with Sigstore, build integrity and threat scenarios.
12Software Bill of Materials🟡 Intermediate~36mSPDX and CycloneDX, generation, consumption, VEX and continuous monitoring.
13Secure API Design🟡 Intermediate~48mAuthN/AuthZ patterns, input contracts, rate limiting and secure defaults.
14Secure Defaults and Hardening🟡 Intermediate~36mLeast privilege, fail-safe design, configuration baselines and secure-by-design principles.
15Security Code Review🟠 Advanced~60mManual review methodology, sink hunting, diff review and reviewer tooling.

15 lessons.

← Repository home · Full contents · Labs campaign

Cybersecurity-Mastery — interactive security learning · runs locally