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–8 of 8 matching courses, lessons and labs
- LabP7Default deny, then name the flows (Kubernetes)
PLAT-118, from Teo: 1. The cutover is over. 2. Its allow-all policy is still in the meridian namespace, so any pod can reach any pod, and the internet. 3. First show it with the tracer (the Meridian policy tracer, the lab's app): send POST /api/netpol/trace with from=assistant to=billing port=8080, before you change anything; it should say the assistant reaches billing. 4. Then put the lockdown back in deploy/k8s/network-policies.yaml: deny by default, both directions, and keep the flows the shop needs. 5. Trace again, run the checks, and write the flows down in deploy/k8s/flows.md. Mo says should be a quick one. PLAT-118 opened the meridian namespace for the cutover with an allow-all NetworkPolicy and never closed it. Find: before any edit, send the tracer (the lab's app, POST /api/netpol/trace with from, to and port) the pair assistant, billing, 8080; the allow-all policy lets the assistant reach billing though no flow lists it, and the objective is ticked by that traced answer, so a trace sent after the fix does not count. Fix: in deploy/k8s/network-policies.yaml restore a default-deny for ingress and egress. A deny for one direction, or a deny added beside the allow-all, leaves the namespace open, and dropping DNS or a service flow takes the shop down, so keep each named flow. Prove: trace again, run the checks, and write the flows down in deploy/k8s/flows.md. Lesson: deny by default, then name each flow. Network policies only add allowances, so one broad policy undoes every narrow one, and a deny that covers one direction leaves the other open. 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 applied to a cluster: the lab reads deploy/k8s/network-policies.yaml, and the tracer answers from what the file says. - Flows are pod pairs and ports from the lab's own seed data; no one is attacked.
Infrastructure and pipelinesmoderateGrades infrastructureA02:2025CWE-923CWE-284 - 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 - 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.