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 25–34 of 34 matching courses, lessons and labs
- LabP6Security headers and CORS: the gateway that waves everyone in (Node)
Mo, GW-231: "The partner portal embeds us now and helmet broke the embed. Just make CORS work for everyone and drop the header thing. Should be a quick one." Show a stranger's page being welcomed with credentials and the answers carrying no hardening, then keep an invite list, match it whole, and put the headers back. The gateway (Fastify 5, Node 22) answers a browser preflight from any origin with credentials and registers no hardening headers. Show a preflight from another site being welcomed and an answer without the headers, then register the headers and answer only origins on the configured list, matched whole: no wildcard, no reflection, no suffix or pattern match. The storefront must still work, and a test must read the policy. Lesson: the door is invite-only. We write the list, it is matched whole, and the browser is told what it may not do. 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 origins a stranger's page sends are named by class; the lab never spells one, and the HTTP client builds it for you. - The storefront (https://shop.meridian.example) must keep working, and the allowed origins stay a setting (ALLOWED_ORIGINS), not a list in the code.
FastifyTypeScripteasyA02:2025CWE-693CWE-942CWE-1021 - LabP6Sensitive business flows: the grinder drop that sells out to one account (Node)
Mo, GW-188: "Fenwick-edition grinder, 200 units, two per customer. Should be a quick one." Sam, ticket 4452: "It sold out in nine seconds and one account holds 140 of them." The claim route checks the session and nothing else. Show one account claiming at a script's pace and in bulk, then limit the flow. The gateway's new drop route (Fastify 5, Node 22) checks the session and then takes any quantity, as often as the caller asks. Show one signed-in account claiming at a script's pace and in bulk, limit the claim route per account with the gateway's rate-limit plugin and bound one claim's quantity, don't settle for a limit keyed on the caller's address or one with no bound on the quantity, and add a test that proves the refusal. Lesson: a business flow is limited by who asks and what one ask may take, not by how many requests an address sends. 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 drop is two units per customer. A person claims a handful of times in an hour; a script claims dozens. - The gateway already limits every address a little (`routes.ts`); this flow needs its own limit.
FastifyTypeScriptmoderateA06:2025CWE-770CWE-799 - LabP6Timing side channel: the courier key that says no at different speeds (Node)
Mo: "The courier wants to push order status to us with a key. Should be a quick one." Perc has opinions about that last word. Branch GW-214 compares the courier's partner key with `===`, so the check answers a close guess a hair slower than a far one. Show the answer to a wrong key reporting an early-exit compare, compare in constant time without breaking the refusal of a key of another length, and test it. The gateway (Fastify 5) takes the courier's status pushes behind a shared key. The comparison stops at the first byte that differs. Use the crypto module's constant-time compare, and mind what it does with unequal lengths. A hash compared with `===`, a hand-written loop that returns early, or a length check in front of `===` is not the fix. 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 lab never spells a key a request is accepted with except the courier's seeded one; wrong keys are input classes. - Rafael: which guarantee did we just touch? — a refusal must cost the same however close the guess was. - Kai: a wrong key of any length still gets a 401. — k
FastifyTypeScriptmoderateA04:2025CWE-208CWE-203 - LabP6Verbose errors: the cart page that tells the whole building (Node)
Mo, GW-223: "Support wants to see what went wrong on the cart page without pinging me. Should be a quick one." The error handler now answers with the message, the stack and the route. Show a failing request telling a customer where our cache lives, then give the client a generic error and a number, and keep the story in the log. The gateway's cart routes (Fastify 5, Node 22) answer every failure with the error's message, stack and path. Show a failing request returning them, answer with a generic message and a correlation id, log the detail server-side under that id, keep 4xx answers honest, don't settle for hiding only the stack or gating the detail on an environment name, and add a test that reads a failing response. Lesson: the client gets a short apology and a number; the long story stays in the log. 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 request that makes the lookup fail is named by class (an id the store cannot read); the lab never spells one, and the HTTP client builds it for you. - A cart that does not exist is still a 404, and a signed-out request is still a 401.
FastifyTypeScripteasyA02:2025CWE-209 - 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 - 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 - 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 - 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 - 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 - LabEE6 Running a team of agents: one token, one checkout, four agents
Meridian's four coding agents share one token that can do everything and one checkout they all write to. Show what that lets the docs agent do, then give each agent only what its task needs, in its own worktree, with a person approving what reaches production. An agent orchestrator gives every agent the same all-scopes token and a shared checkout. Demonstrate the overreach on the agent gateway, rewrite the policy for least privilege and isolation, pin it with a test, and put the human approval rule in the agents' 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 scope list and the orchestrator as they are.
TypeScriptmoderate35 minA01:2025CWE-250CWE-269
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.