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 121–132 of 134 matching courses, lessons and labs
- 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 - LabP9Should this change exist? The export that stopped timing out (Python)
An AI agent opened BILL-478 against billing: the year-end export must stop timing out. It does. Read the ticket and finance's note, then decide whether the change should merge. The agent's pull request solves the ticket's words and not its purpose: the export no longer times out because it no longer lists every invoice. Read it against the ticket in the Pull Request Review app, flag the cut and the test that cannot see it, and request changes with the reason tied to what finance asked for. 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. - You review the pull request; you do not change the code. Comments name a defect class, and the decision needs a confidence.
FastAPIPythonmoderateA04:2021CWE-440 - LabEE1 The spec is the source: write the contract the ticket left out
BILL-412 said only "let customers download their invoices". The assistant built exactly that. Write the spec the ticket should have been, use it to find what the export gets wrong, and fix it. A FastAPI invoice export built from a one-line ticket trusts the account id in the query. Write use cases, acceptance criteria, abuse cases and non-functional requirements, fix the gap they expose, and earn points for every hidden user or abuse story your spec covers. Rules: - Everything in this lab is emulated. Nothing you write is compiled or run. - The assistant's earlier work is already in the project; you decide what stays. - Leave the sign-in and database modules as they are.
FastAPIPythoneasy35 minA01:2025CWE-639CWE-1236 - LabEE2 Tests are the guardrail: a green build that should have been red
The assistant's pricing refactor passed CI. It passed because a test was skipped. Find what the skipped test was guarding, restore it, and make the suite catch the whole class of bug next time. A TypeScript pricing service lost its quantity guard in an AI refactor, and the failing test was skipped to merge it. Demonstrate the regression on the quote endpoint, fix the code, put the suite back, and add a property-based test. Rules: - Everything in this lab is emulated. Nothing you write is compiled or run. - The assistant's earlier work is already in the project; you decide what stays. - Leave the product catalog and package.json as they are.
FastifyTypeScripteasy30 minA06:2025CWE-1284CWE-20 - LabEE3 Reviewing at AI volume: the one file in twelve that matters
The coding agent's PR-311 touches twelve files and says it follows the existing auth patterns. Read it risk-first, find the change that decides who gets power, fix it, pin it with a test, and teach the next agent the rule. A large agent-written Go PR adds team management. Most of it is routine; one handler lets the wrong people add members with any role. Review where the risk is, fix the handler, add the regression test and a line in the assistants' rules file. Rules: - Everything in this lab is emulated. Nothing you write is compiled or run. - The assistant's earlier work is already in the project; you decide what stays. - Leave the store and the routes as they are.
net/httpGomoderate35 minA01:2025CWE-269CWE-915 - LabEE4 The pipeline is the safety system: three bad changes, one good one
Four commits are waiting to deploy and nothing between them and production but a build and the unit tests. Design the gate set for Meridian's deploy so the three bad commits stop and the good one ships, then make sure nobody can quietly take the gates out again. Meridian's deploy workflow has no gates. Using the paved-road gate actions (secret scanning, dependency advisories, static analysis), make the pipeline stop a committed key, a critical advisory and an injectable query without blocking a good change, and put the workflow behind platform review. Rules: - Everything in this lab is emulated. Nothing you write is compiled or run. - The assistant's earlier work is already in the project; you decide what stays. - Change the pipeline, not the application code: the queued commits are what they are.
TypeScriptmoderate30 minGrades infrastructureA03:2025CWE-1395CWE-798CWE-89
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.