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 13–24 of 34 matching courses, lessons and labs
- LabP2Missing function-level authorization: guards on Harbor's admin controller (NestJS)
HBR-231 moved account management into its own module and left the role metadata behind. The global guard is still there, but nothing tells it this controller is for admins, so any member can list and change every account. Prove it, put the role back, and pin the boundary with a test. Harbor's AdminController (NestJS 11) has no @Roles() metadata, so the global RolesGuard lets every signed-in member through. Show a member listing and changing accounts, restrict both routes to admins without locking admins out, and add an e2e test that a member is forbidden. Rules: - Everything in this lab is emulated. Nothing you write is compiled or run. - Change what the ticket got wrong; leave the rest of the project as it is. - Roles come from the session, which the guards already read; never from anything the client sends. - Leave the guards, the app module and the decorators as they are.
NestJSTypeScripteasyA01:2025CWE-862CWE-285 - LabP2Missing function-level authorization: the support console's routes (Node)
GW-91 gave support a console to list saved carts and clear them. The routes check that you are signed in and nothing else, so a customer can empty anyone's cart. Prove it, check the role on every route, and pin the boundary with a test. The gateway's new support routes (Fastify 5, Node 22) are open to every signed-in customer. Show a customer listing every account's carts and clearing one, restrict both routes to staff and admins without locking either out, and add a test that a customer is forbidden. 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. - Roles come from the session, which the service already reads; never from anything the client sends. - Leave the session lookup, the cart store and the existing gateway tests as they are.
FastifyTypeScripteasyA01:2025CWE-862CWE-285 - LabP2Prototype pollution: the theme merge that follows every key (Node)
GW-209 lets a shop paste storefront theme overrides, merged over the defaults. Mo called it a quick one; Kai asked what the merge does with a key it did not expect. Show a setting changing something it never named, then make the merge safe and test it. The gateway's storefront theme route (Fastify 5, Node 22) merges pasted JSON over the defaults with a recursive mergeDeep that follows every key. Show a setting that lands on the object all plain objects share, merge safely (a null-prototype copy, or a skip-list of the keys that lead to it), don't settle for filtering the one famous key, keep real overrides working, and add a regression test. Lesson: parsed JSON is data, not structure; a merge decides which names it follows, so decide on purpose. 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. - Shops may override any theme setting. Nothing a shop pastes may change anything it did not name.
FastifyTypeScriptmoderateA05:2025CWE-1321CWE-915 - LabP2Reviewing an AI agent's pull request: the cart save that believes the body (Node)
An AI agent opened GW-160 against the gateway: carts open within the caller's account, and the cart page saves its edits. Review the diff, find what it got wrong, and fix the handler. The agent's pull request fixes the cart lookup but saves the whole request body over the stored cart. Review it in the Pull Request Review app, show a customer changing a field that only the server may set, fix the save so only the packer note is written, and add the test that asks for it. 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. - Leave the session lookup, the cart store and the existing gateway tests as they are.
FastifyTypeScriptmoderateA01:2025CWE-915CWE-639 - LabP3Artifact signing: the shelf is not a witness (Node)
REL-318 (Mo): "Promote the nightly build to deploy by itself. Should be a quick one." The promoter takes whatever the registry lists, so anything that lands there ships. Show a release with a forged signature promoted, then make the promoter check the digest, the signature and who built it. The background worker's release promoter (Node) returns true for every release: no digest check, no signature check, no look at the provenance's builder. Show an unsigned release promoted, verify the digest, the signature over it and the builder before anything is promoted, and add a test that feeds the promoter bad releases. 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. - Signatures and builder identities are named by class (wrong signature, outside builder); the lab never spells one, and the HTTP client builds them for you.
TypeScriptmoderateA08:2025CWE-494CWE-347CWE-345 - LabP3JWT validation: the token that vouches for itself (Node)
GW-118 gave the gateway an endpoint that says whether an access token is good. It believes whatever the token says about itself. Get an unsigned token accepted, then make the verifier decide the algorithm, the key and the claims itself. The gateway's token verifier (Fastify 5, jsonwebtoken) hands back the claims of a token whose header says none, takes the algorithm from the token otherwise, and ignores expiry; issuer and audience are never asked for. Show an unsigned token accepted, pin HS256 and check the signature, expiry, issuer and audience, and add a test that feeds the verifier bad tokens. 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. - Tokens are named by class (unsigned, expired, wrong audience); the lab never spells one, and the HTTP client builds them for you.
FastifyTypeScriptmoderateA07:2025CWE-347CWE-345CWE-613 - LabP3Missing authentication on a critical function: the pallet hold release (Node)
Mo, GW-205: "Dock tablets can't sign in with gloves on. Make the release-hold button work without the login. Should be a quick one." Orla, ticket 4471: "THE BUTTON WORKS GREAT. IT ALSO WORKS FOR THE GUY WHO WALKED IN WITH A DELIVERY. 14 PALLETS GONE." Prove an anonymous caller can release a hold, make the handler ask who is calling, keep the dock working, and pin it with a test. The gateway's new hold-release route (Fastify 5, Node 22) is on its rule's public list and its handler never checks a session. Show an anonymous caller releasing a hold, make the handler verify the session with the auth service (the edge only checks that a token looks like one), keep staff and admins working, and add a test that a stranger is turned away. 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. - Who the caller is comes from the session service the gateway already asks; never from anything the client claims. - Leave the session lookup and the existing gateway tests as they are.
FastifyTypeScripteasyA07:2025CWE-306 - LabP3Reviewing an AI agent's pull request: the test that was made to pass (Node)
An AI agent opened GW-171 against the gateway: a cart line holds at most two of an item. Its limit test was failing, and now it is green. Review the diff, find what changed in the test and what is missing in the code, then restore the test and fix the handler. The agent made its failing limit test pass by loosening the status assertion and installing an equality tester that accepts everything, while the handler still takes any quantity. Review it in the Pull Request Review app, enforce the limit in the handler, and restore the test so it can fail again. 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. - Leave the session lookup, the cart store and the existing gateway tests as they are.
FastifyTypeScriptmoderateA06:2025CWE-20CWE-1164 - LabP5Path traversal: the export download that reads any file (Node)
GW-125 added a download link to the order exports. It resolves the file name against the exports folder and serves whatever is there. Read a file that is not an export, then keep the download inside its folder. The gateway's export download (Fastify 5, Node 22) resolves a file name from the query against the exports folder without checking where the result lands. Show a file outside the folder being read, confine the path, don't settle for refusing '..' or stripping '../' once, and add a test that asks for a file outside. 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. - Names are sent by class (climbing, hidden climbing, absolute); the lab never spells one, and the HTTP client builds them for you.
FastifyTypeScriptmoderateA01:2025CWE-22CWE-73 - LabP5Zip slip: the catalog bundle that unpacks anywhere (Node)
GW-205: Mo says suppliers want to send one zip instead of forty files, and Orla has 212 photos waiting. The gateway unpacks each entry wherever its name says. Show a file landing outside the import folder, then keep every entry inside it. The gateway's catalog bundle import (Fastify 5, Node 22) resolves each zip entry's name against the import folder and writes the file there without checking where the result lands. Show a file written outside the folder, resolve and confine every entry's path, don't settle for refusing '..' or stripping '../' once, and add a test that sends an entry that climbs out. Lesson: an archive's entry names are the sender's words; resolve where each one would land and check it is still inside the target folder before writing. 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. - Entry names are sent by class (climbing, hidden climbing, absolute); the lab never spells one, and the HTTP client builds the bundle for you.
FastifyTypeScriptmoderateA01:2025CWE-22 - 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
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.