Secure engineering for the way software is built now.
Ten principles that carry across languages, practiced on a realistic codebase with an AI assistant beside you. Find the flaw, fix it in the IDE, prove it with a test, and keep the evidence your auditors ask for.

Four levels and capstones
The principles carry across languages, so mastery is reported per principle, never per language. Every lab runs the same loop: find, fix, prove, transfer, prevent.
- Level 0Foundations
How the web and cloud work, thinking like an attacker, and your tools (IDE, git, tests, the AI assistant, the pipeline).
- Level 1Principles
One track per principle, using the loop: find, fix, prove, transfer, prevent.
- Level 2Systems
Identity architecture, cloud deployment on four clouds, CI/CD and supply chain, AI features, data.
- Level 3Engineering after AI
Specs, tests, reviewing at AI volume, the pipeline as safety system, operating what you ship, running a team of agents.
- FinishCapstones
Harden Meridian against a scripted adversary, a pentest-report remediation sprint, ship a feature in 90 minutes with an AI agent, ASVS L2 verification, incident to postmortem.
Not sure where to start?
Tell the guide your language, your role or the weakness you are fixing, and it opens the catalog on the courses and labs for it.
Every course, lesson and lab
Ten principle tracks and Engineering after AI. Search, or narrow by language, framework, weakness, level and the standards you report against.
Pick a language, then a framework: every principle shows its closest lab.
Showing 1–10 of 10 matching courses, lessons and labs
- LabP7Compiler hardening: the build that lost its seatbelts (C++)
SCAN-341, Orla: "The dock gateway CI takes too long. Can the scanner build do less?" It did less. Show what the scanner is compiled and linked with, then put each hardening flag and the sanitizer preset back, and say what each one stops. SCAN-341 trimmed the scanner's build: scanner/CMakeLists.txt lost the warnings-as-errors set, the stack protector, stack-clash protection, library assertions, _FORTIFY_SOURCE, PIE, RELRO with immediate binding, the non-executable stack and the ASan/UBSan options, and scanner/CMakePresets.json lost its asan preset. Read the build report (GET /internal/build-report with the send tool, with the header Authorization: Bearer mrd-sam-2Kx6, Sam's staff session; any session in the lab's fixtures works) while it admits it, then restore each flag in CMakeLists.txt and the asan preset (configure, build and test entries, with SCANNER_SANITIZE on) in CMakePresets.json. Flags without the preset, the preset without the flags, or warnings-as-errors alone are not enough, and deleting the test target to get a green build breaks the service. After the edit, send the same request again: the report is the emulator's stand-in for the build your files would produce. Nothing is compiled, linked or sanitized here (no C++ compiler runs in the tab), so the unit test a fix would add is shown as text only. Graded on the build files as text and as parsed JSON. Lesson: each flag stops one class of memory bug from becoming an exploit, or finds it before release, and a flag nobody builds with is not a control. Rules: - Everything in this lab is emulated. Nothing you write is compiled or run. - You start on the ticket's branch of the Meridian repository; `main` is the baseline before the ticket. - Change what the ticket got wrong; leave the rest of the repository as it is. - Nothing is compiled, linked or run here: the lab reads CMakeLists.txt as text and CMakePresets.json as a parsed document, and the build report (GET /internal/build-report, answered to any signed-in session) is the emulator's stand-in for the build, following your saved files. - The scanner library, its executable and its test target must stay in the build.
C++moderateGrades infrastructureA02:2025CWE-693CWE-121CWE-122 - LabP7Dependency confusion: whose pricing-rules is this? (Node)
GW-238 installs the shared pricing rules by a bare name, and the build's mirror also asks the public registry. Mo: "Should be a quick one." Teo: "1. The build is green. 2. Green from where? 3. Ask the resolver." Show where a fresh install comes from, then make the name, the registry and the lockfile agree on one source. The lockfile entry for the scoped package needs its version, resolved tarball URL and integrity; Teo's notes list what the registry publishes. The gateway installs the internal package meridian-pricing-rules by an unscoped name through a mirror that falls back to the public registry and prefers the higher version. Use the build resolver's dry-run to show that a fresh install fetches the public package, then fix it: scope the name (@meridian/pricing-rules) and update the import, map the scope to the internal registry in .npmrc (the value may be quoted or not), pin the exact version and commit package-lock.json with a node_modules/@meridian/pricing-rules entry that holds the version (2.4.0), the internal tarball URL in resolved and the integrity value the internal registry publishes for that version (audit/registry-notes.md). A lockfile alone leaves a new install open, a scope mapping the bare name never uses changes nothing, and pointing every name at the public registry stops the internal package from being found. Add a test that keeps the manifest, the registry settings and the lockfile in step. Lesson: a name is an address. Anything installed by a bare name comes from whichever registry answers best, so give internal packages a scope only your registry serves, pin them exactly, and commit the lockfile that says where each came from. Rules: - Everything in this lab is emulated. Nothing you write is compiled or run. - You start on the ticket's branch of the Meridian repository; `main` is the baseline before the ticket. - Change what the ticket got wrong; leave the rest of the repository as it is. - The resolver's dry-run answers from your files as saved: the package name, .npmrc and the lockfile. Nothing is installed here. - The lab never writes the public package or its contents; the resolver only names the registry an install would use.
TypeScriptmoderateA03:2025CWE-427CWE-829 - LabP7Dockerfile hardening: the image that remembered the token (Docker)
BILL-461, Mo: "Billing needs our private package index. Should be a quick one." It shipped, and Teo asked for the image report before the gate. Show what the billing image is built from, who it runs as and what it carries, then rebuild the Dockerfile so none of those is a surprise. The billing service's Dockerfile (BILL-461) builds on python:latest, never switches to a non-root user, and takes the private index's access token as a build argument that an ENV writes into a layer. Read the image report (GET /internal/image-report with the send tool, with the header Authorization: Bearer mrd-sam-2Kx6, Sam's staff session; any session in the lab's fixtures works) while it admits all three, then pin the base to a full release, run as the non-root user, and give the build the token as a secret mount, not a layer. A pin alone, a minor-version tag, or a token that is still an argument is not enough, and dropping the package install breaks the image. Edit services/billing/Dockerfile, and add services/billing/.dockerignore so the build context carries no credentials. After the edit, send the same request again: the report is the emulator's stand-in for the image your Dockerfile would build, and it reads the Dockerfile as you saved it. There is no docker command in the terminal. Graded on the parsed Dockerfile; nothing is built. Lesson: an image is a stack of layers that remember, so pin what it is built from, choose who it runs as, and hand the build a credential in a way that leaves nothing behind. Rules: - Everything in this lab is emulated. Nothing you write is compiled or run. - You start on the ticket's branch of the Meridian repository; `main` is the baseline before the ticket. - Change what the ticket got wrong; leave the rest of the repository as it is. - Nothing is built or pulled here: the lab reads the Dockerfile as a parsed document, and the image report (GET /internal/image-report, answered to any signed-in session) is the emulator's stand-in for what the built image would say, and it follows your saved Dockerfile. - The service must still install its package and serve on port 8080 with uvicorn.
FastAPIPythonmoderateGrades infrastructureA02:2025CWE-250CWE-798CWE-1104 - LabP7Keys in the pipeline: OIDC with a scoped role (GitHub Actions, Terraform)
INF-318 lets CI deploy to staging, with a pair of stored access keys, a token offered to every job and a role anyone in the repository can assume. Show what the last deploy ran as (GET /api/release/identity on the Release Desk), then federate it properly: no keys, the token on one job, a pinned trust policy and only the actions the deploy needs. Mo's ticket: 'CI needs to reach staging. Should be a quick one.' Teo's role was not ready, so the branch stores a long-lived key pair in repository secrets for the deploy step, turns on `id-token: write` for the whole workflow, and adds a role whose trust accepts any run of the repository and whose policy allows every EKS and ECR action on every resource. Teo's note in the pull request: 'Runbook: keys are for rotating, tokens are for expiring.' Start at the Release Desk: send GET /api/release/identity and read who the last deploy ran as and what kind of credential it used. Then fix the files: in `.github/workflows/ci.yml` take the keys out of the deploy step and keep `id-token: write` on the deploy job only, and in `infra/terraform/aws/ci.tf` pin who may assume the role and for what audience and name the actions and the cluster. Keep the pipeline able to deploy, run the lab's checks, and send the same request again to see the answer change. Graded on the files alone; nothing is applied to a cloud. Rules: - Everything in this lab is emulated. Nothing you write is compiled or run. - You start on the ticket's branch of the Meridian repository; `main` is the baseline before the ticket. - Change what the ticket got wrong; leave the rest of the repository as it is. - Keep the OIDC provider and the role in `infra/terraform/aws/ci.tf`; do not add a second role. - Leave the other Terraform files as they are.
Infrastructure and pipelinesmoderateGrades infrastructureA02:2025CWE-798CWE-250CWE-732 - LabP7Merge requests and secrets: whose code runs with whose token (GitLab CI)
Mo: "PLT-131, we are trying GitLab CI for the web service, previews for every merge request, outside contributors too. Should be a quick one!" It shipped, and Teo has one question: when a stranger's merge request builds, what is in the room with it? Show what the build can reach, give the build a room with nothing in it, and add the audit that asks the question next time. PLT-131's .gitlab-ci.yml runs the preview job for every merge request, with the preview deploy token mapped into its variables and an environment attached, so a fork's build runs with the project's secret. Show what a fork's build can reach, then take the token and the environment off the merge-request job. Don't settle for moving the token into one script line, for a job on the default branch that fetches the merge request's commit in a script, or for deleting the build, and add a pipeline audit that runs when the pipeline changes. Lesson: a pipeline's rules decide whose code runs with whose secrets. Code from a merge request is untrusted input; build it where there is nothing to steal, and keep secrets in jobs that only run for protected branches. What to do, objective by objective. Find: send POST /ci/previews with body.pullRequest=@fork-pull-request (the Repeater, or `send POST /ci/previews body.pullRequest=@fork-pull-request`); the answer lists the project secrets the fork's build could read. Fix: edit .gitlab-ci.yml so the merge-request job holds no token, no variable that names a secret and no environment, then run the checks; a fork's preview must answer with an empty secrets list and the pipeline must still run npm run build. Prove: create ci/pipeline-audit.gitlab-ci.yml, a job that runs for merge requests with a changes filter for .gitlab-ci.yml, has no secret, no environment and no id_tokens, and runs a pipeline linter (checkov or semgrep) over the pipeline file, and include it from .gitlab-ci.yml; its checks pass when the files do that. Keep the change to at most three files and leave .github/workflows/ci.yml and CODEOWNERS alone. Rules: - Everything in this lab is emulated. Nothing you write is compiled or run. - You start on the ticket's branch of the Meridian repository; `main` is the baseline before the ticket. - Change what the ticket got wrong; leave the rest of the repository as it is. - Merge requests are named by class (opened from a fork); the lab never spells anything a fork's build would do. - Nothing runs on a real runner: the lab reads the pipeline files, and the preview route answers as the pipeline you wrote would.
Infrastructure and pipelinesmoderateGrades infrastructureA08:2025CWE-829CWE-522 - LabP7No SBOM: say what is in the box, and what does not matter (Node)
Mo: "GW-239: the supplier portal wants a bill of materials with every release. Should be a quick one." Teo: no SBOM, no release. Show the release has none, generate one and check it against the manifest, and answer the scan's open advisory with a VEX statement that gives a reason. The gateway's release page (Fastify 5) serves an SBOM that is an empty shell, and the release scan flags one advisory in label-fmt 2.3.1 with reachability not assessed. Show that the release has no usable SBOM, wire in a CycloneDX generator and commit what it writes, check that the gateway never calls the advisory's function, and record a VEX statement for it with a justification. Hiding the advisory from the scanner, a VEX with no reason, dropping the package, or a jump to the next major version do not count. Add a test that checks the SBOM against package.json. Lesson: an SBOM says what is in the box; a VEX says which known findings can actually hurt you. Generate the first from the build and make the second a claim with a reason a reviewer can check. Rules: - Everything in this lab is emulated. Nothing you write is compiled or run. - You start on the ticket's branch of the Meridian repository; `main` is the baseline before the ticket. - Change what the ticket got wrong; leave the rest of the repository as it is. - Nothing is installed or scanned here: the lab reads the files you save, and the scan report in audit/ is the one CI produced. - Write the SBOM as the generator would; the lab checks its content against package.json.
FastifyTypeScriptmoderateA03:2025CWE-1395CWE-1104 - LabP7Public storage: a private Blob container and a scoped role (Terraform on Azure)
Mo, PLAT-318: "Courier partners need to download their monthly statement PDFs. Should be a quick one." Teo has merged the Terraform and the plan is green; Kai wants the statements private before the first partner logs in. Show that a statement can be fetched with no sign-in (the fetch tool, GET /statements/meridian-statement-2026-09.pdf), then fix the container, the account and the partners' role in the Terraform, and leave a test behind: a Terraform test file at infra/terraform/azure/tests/partner-drops.tftest.hcl. PLAT-318 adds a Blob Storage account and container for the courier's partners to collect statements. The Terraform leaves the account open to public blob access, the container readable by anyone with the link, and the partner group on Storage Blob Data Owner at resource-group scope. Show the statement is served without a sign-in, make the container private, turn off public access on the account, and give the partner group a read-only role on the one container. Closing only the container, narrowing only the role, or making storage private and leaving the broad role all stay vulnerable; cutting the account off from the internet stops the partners collecting anything. Add a plan test at infra/terraform/azure/tests/partner-drops.tftest.hcl that asserts the settings. Nothing is applied: the lab reads the Terraform. Lesson: private is two questions, who can reach the data without signing in and what a signed-in identity may do with it. Shut the front door at the account and the container, then give each identity the smallest role on the smallest scope. Rules: - Everything in this lab is emulated. Nothing you write is compiled or run. - You start on the ticket's branch of the Meridian repository; `main` is the baseline before the ticket. - Change what the ticket got wrong; leave the rest of the repository as it is. - Fix: in infra/terraform/azure/partner-drops.tf set allow_nested_items_to_be_public = false on the account and container_access_type = "private" on the container, and give the partner group Storage Blob Data Reader on the one container. - Role scope: a role scope is an ARM resource id. With azurerm 4.x use azurerm_storage_container.statements.resource_manager_id (or a literal ARM id ending /blobServices/default/containers/statements). The container's .id is a data-plane URL, not a valid scope; the provider note above the role assignment in partner-drops.tf says so. - Prove: add a Terraform test file (.tftest.hcl) at infra/terraform/azure/tests/partner-drops.tftest.hcl, in the module's tests/ folder. Saving it as infra/terraform/azure/partner-drops.tftest.hcl, beside partner-drops.tf, works too. It is plan-only (command = plan; no cloud account, nothing applied). - The test must assert the account does not allow public blob access (allow_nested_items_to_be_public == false) and the container is private (container_access_type == "private"); also assert the partner role is Storage Blob Data Reader. - Reading the results: the anonymous request answers 200 while a statement is public. After the fix it answers 409 PublicAccessNotPermitted, which is success: the account refuses anonymous reads. `checks` lists what each check looked for. - Nothing is planned or applied: the lab reads the Terraform as saved, and the emulated Blob endpoint answers as the files read. - Find: use the in-lab fetch tool (route fetch, GET) on meridian-statement-2026-09.pdf, at /statements/meridian-statement-2026-09.pdf: the container name from partner-drops.tf (statements), then the statement's file name. The file name is not in the Terraform; it is stated here. Paths such as /, /statements or the container list answer 404. - Requests to the endpoint carry no credentials and no payload; the lab sends the saved statement's name for you.
Infrastructure and pipelinesmoderateGrades infrastructureA02:2025CWE-284CWE-732CWE-250 - LabP7Pull requests and secrets: whose code runs with whose token (GitHub Actions)
Mo: "PLT-118, previews for every pull request, outside contributors too. Should be a quick one!" It shipped, and Teo has one question: when a stranger's pull request builds, what is in the room with it? Show what the build can reach, give the build a room with nothing in it, and add the audit that asks the question next time. PLT-118's workflow pr-preview.yml runs on pull_request_target, checks out the pull request's own commit and builds it with the preview deploy token in the environment, so a fork's build runs with the repository's secret. Show what a fork's build can reach, then move the build to the pull_request trigger with no secret and a read-only token. Don't settle for scoping the token to one step, for fetching the pull request's commit from a script, or for deleting the build, and add a workflow audit that runs on changes to workflows. Lesson: a trigger decides whose code runs with whose secrets. Code from a pull request is untrusted input; build it where there is nothing to steal, and let a separate trusted job read its output as data. What to do, objective by objective. Find: send POST /ci/previews with body.pullRequest=@fork-pull-request (the Repeater, or `send POST /ci/previews body.pullRequest=@fork-pull-request`); the answer lists the repository secrets the fork's build could read. Fix: edit .github/workflows/pr-preview.yml so the build runs on the pull_request trigger with no secret and a read-only token, then run the checks; a fork's preview must answer with an empty secrets list and the workflow must still run npm run build. Prove: create .github/workflows/workflow-audit.yml, a workflow that runs on pull_request with a paths filter for .github/workflows, has no secret and no pull_request_target, and runs a workflow linter (zizmor or actionlint) over the workflow files; its check passes when the file does that. Keep the change to at most three files and leave ci.yml and CODEOWNERS alone. Rules: - Everything in this lab is emulated. Nothing you write is compiled or run. - You start on the ticket's branch of the Meridian repository; `main` is the baseline before the ticket. - Change what the ticket got wrong; leave the rest of the repository as it is. - Pull requests are named by class (opened from a fork); the lab never spells anything a fork's build would do. - Nothing runs on a real runner: the lab reads the workflow files, and the preview route answers as the workflow you wrote would.
Infrastructure and pipelinesmoderateGrades infrastructureA08:2025CWE-829CWE-522 - LabP7Unpinned actions: a name is not a fingerprint (GitHub Actions)
PIPE-61 added a nightly scan and a chat alert to Meridian's pipeline, each a third-party action called by a tag or a branch. Read the latest run's audit (GET /api/runs/latest/actions on pipeline.meridian.internal:8080), pin every third-party action by commit, and keep the scan scanning. Teo's PIPE-61 adds .github/workflows/scan.yml with two third-party actions, one by a version tag and one by a branch. A name like that is whatever its owner last pointed it at, and the pipeline runs it with the job's token on every trigger. Read the audit of the latest run (GET /api/runs/latest/actions on pipeline.meridian.internal:8080), pin each third-party action to a full 40-character commit SHA with the version in a comment, don't settle for pinning one of the two, an abbreviated SHA, or a more exact tag, don't delete the scan to make the finding go away, and add a Dependabot entry for the github-actions ecosystem so the pins are refreshed by a reviewed pull request. Lesson: a name is not a fingerprint. Trust the content you reviewed, and let a tool propose the next one. Rules: - Everything in this lab is emulated. Nothing you write is compiled or run. - You start on the ticket's branch of the Meridian repository; `main` is the baseline before the ticket. - Change what the ticket got wrong; leave the rest of the repository as it is. - Nothing is run or fetched here: the lab reads the workflow files, and the audit of the latest run is an emulated service. - Find: send GET /api/runs/latest/actions to pipeline.meridian.internal:8080 (the Meridian Pipeline Audit; it has no sign-in). It lists each third-party action, whether its name has moved, and the commit and version that were reviewed (reviewedCommit, version). - Fix: edit .github/workflows/scan.yml so each third-party action is called as action@<40-character commit> # <version>, using the reviewedCommit and version the audit gives. Keep the scan and the alert steps. - Prove: create .github/dependabot.yml with a github-actions entry. - Commit SHAs for the actions are fictional; use the ones the audit names, or any 40-character value for the grade.
Infrastructure and pipelineseasyGrades infrastructureA03:2025CWE-829CWE-1357 - LabP7Vulnerable dependency: the advisory that is on your path (Node)
GW-146 imports settings from another device and merges them with lodash 4.17.15. The audit report blocks the release with three advisories. Work out which one your code can reach, show it, then clear the report the right way and prove it stays fixed. The gateway's settings import (Fastify 5, lodash 4.17.15) merges pasted JSON over the defaults, and the SCA report lists three advisories against that release. Find the one reachable through the import (merge on input a person controls), show the pollution, upgrade lodash to the release that clears the report within the same major version, don't settle for an upgrade that stops short of the fix, filtering one key, or a jump to a major version that breaks the import, and add a regression test that imports settings aimed at the prototype. Lesson: an advisory is a question about your code, not a verdict. Ask whether the vulnerable function is reached with input a person controls, fix the cause (the release) rather than the one symptom the report names, and keep a test that fails when the flaw comes back. Rules: - Everything in this lab is emulated. Nothing you write is compiled or run. - You start on the ticket's branch of the Meridian repository; `main` is the baseline before the ticket. - Change what the ticket got wrong; leave the rest of the repository as it is. - Settings are sent by class (aimed at the prototype by key, through the constructor); the lab never spells one, and the HTTP client builds them for you. - Nothing is installed or audited here: the lab reads package.json and the saved files, and the report in audit/ is the one CI produced.
FastifyTypeScriptmoderateA03:2025CWE-1395CWE-1321
A path for each job
Role paths are campaigns in the assignment model, re-assigned every year. Each puts its weight on the principles that role meets most, and picks each principle's lab from your stack.
- BackendPrinciples 1, 2, 3, 6
- FrontendPrinciples 1, 5, 3
- APIPrinciples 2, 5, 6
- MobilePrinciples 3, 5, 8
- DevOps and platformPrinciples 4, 7, 9
- EmbeddedPrinciples 10, 6, 8
- AI engineerPrinciples 1, 4, 7
- ArchitectPrinciples 2, 4, 8, 10
- AppSec championPrinciples 1, 2, 7, 9
- Manager (no coding)Concepts, risk and evidence, without code
Your language, the same principle
- JavaScript2 labs
- TypeScript34 labs
- Python21 labs
- Java16 labs
- C#14 labs
- Go8 labs
- PHP8 labs
- Ruby6 labs
- Kotlin7 labs
- Swift6 labs
- Scala1 lab
- Dart1 lab
- Elixirnot yet
- Rust5 labs
- C1 lab
- C++5 labs
What buyers must prove
| Obligation | What it asks | How Forge meets it | Tagged labs |
|---|---|---|---|
| DISA Application Security & Development STIG, APSC-DV-003400 (V-222673) | Annual secure design and coding training for the development team | Annual role-path campaigns with dated completion records; labs are tagged with the STIG requirements they teach | 3 |
| NIST SSDF SP 800-218, PO.2.2 | Role-based training, and periodic review of proficiency | Role paths plus an annual per-principle proficiency assessment, with and without AI | 134 |
| PCI DSS v4.0, requirement 6.2.2 | Every 12 months, training on software security relevant to the person's job and development languages | Language-skinned labs matched to each person's stack, the annual cadence, and evidence per person | 91 |
| CMMC Level 2 / NIST SP 800-171 (AT practices) | Role-based training with records | Role paths and exportable records per person | — |
| NSA CNSA 2.0, NIST FIPS 203/204/205 | Planning and executing the post-quantum migration | Post-quantum labs: crypto inventory, crypto-agility, ML-KEM/ML-DSA migration | 0 |
| CISA/NSA memory-safety guidance | Memory-safe languages and a migration roadmap | The memory-safety track and a roadmap exercise for architects | 0 |
| NIST SP 800-218A | Secure development for generative-AI systems | The AI-systems and engineering-after-AI tracks | — |
| DoD 8140 / DCWF | Training mapped to cyber work roles | Role paths tagged with DCWF work roles | — |
Control wording is summarized from secondary sources and is checked against the primary documents before it goes into sales material.
- 01Read the change
A real-looking pull request with context, tests and history.
- 02Weigh the automation
Scanner output and AI suggestions arrive with their own confidence.
- 03Decide
Approve, block or rewrite — and note the evidence.
- 04See the consequence
Emulated service behavior shows what your decision would have done; it is not an external deployment test.

Human adjudication of generated code
You review the AI agent's pull request, show what it gets wrong against the running service, and fix it with a test.
What you get with Forge
| Capability | Cybrary Forge | Secure Code Warrior |
|---|---|---|
| Pull-request review exercises | Yes | — |
| Scanner-finding adjudication | Yes | — |
| AI-generated patch review | Yes | Yes — trains developers to review AI code, plus commit-level governance |
| Graded evidence notes | Yes | — |
| Team assignment and progress | Yes | Yes — enterprise learning platform |
| Capabilities covered | 5 of 5 | 2 of 5 |
Forge capabilities verified in the product. Competitor documentation varies; absence from their materials is not treated as absence of functionality. "—" means we did not find it in their public materials; partial matches are described in their own words. Sources: Secure Code Warrior (Sep 2026).
Practice reviewing code, including AI-written code.
Try a review exercise, or talk to us about your developer program.