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–6 of 6 matching courses, lessons and labs
- LabP6Insecure randomness: the share link Orla can read out loud (Node)
Orla: "SHARE LINK FOR A SAVED CART, 14 PALLETS. SHORT ENOUGH TO READ OUT ON THE PHONE. I'M ON THE DOCK." Mo: "Should be a quick one." Branch GW-171 mints each link's token from `Math.random` and keeps it to 8 characters; whoever holds the token holds the cart. Show the create answer reporting a guessable token, mint tokens from a CSPRNG at a length nobody can guess, keep the links already issued opening, and test it. The gateway (Fastify 5) answers share links itself. The token is the whole secret: it comes from a general-purpose PRNG and is short. Move to the platform's CSPRNG with at least 128 bits, keep the old links opening, and don't settle for a longer token from the same generator, a hashed clock, or a CSPRNG that returns a few bytes. 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 token a link opens with except the one old link the fixtures hold; the create answer reports the token's length, never the token. - Rafael: which guarantee did we just touch? — it's the one about links nobody can guess. - Kai: the links Orla already sent still have to open. — k
FastifyTypeScriptmoderateA04:2025CWE-338CWE-330CWE-331 - LabP6Password reset tokens: the link Sam stopped sending by hand (Node)
Sam: "*I can't get into my account* (SUP-5121). That's the fourth this week, and I'm resetting them by hand." Mo: "Email them a reset link. Should be a quick one." Branch GW-196 mints each link's token from the clock, keeps it as sent, never expires it and never retires it. Show the weakness, make reset links high-entropy, hashed at rest, short-lived and single-use, keep the flow working, and test it. The gateway (Fastify 5) answers reset links itself. The token is the whole key to an account. Mint it from the CSPRNG with at least 128 bits, store only its hash, expire it, and retire it on first use. A CSPRNG alone, or a hardened but still guessable token, is not enough, and neither is a change that stops real links working. 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 token that opens a reset except the three fixture links; the request answer reports the token's length and how it is stored, never the token. - Rafael: which guarantee did we just touch? — it's the one about who gets to change a password. - Kai: a link that has been used or has run out says so, and says nothing else. — k - Perc: strength=heroic. (Perc has no opinion about reset links. Perc has a clock.)
FastifyTypeScriptmoderateA07:2025CWE-640CWE-330CWE-613 - 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
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.