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 29 matching courses, lessons and labs
- LabP2CSRF: the account page that trusts the cookie (Node)
GW-140 moved the account page onto a session cookie. The browser sends that cookie with every request to the gateway, whichever page made it, and changing the account's email checks nothing else. Change Alice's email from another origin, then make the gateway check where a request came from, and test it. The gateway's account routes (Fastify 5, @fastify/cookie) change an email on the strength of a SameSite=None cookie. Show a request from another origin changing it, check the request's origin exactly (or require a token the page holds), don't settle for SameSite alone or for a substring test on the origin, don't refuse the app's own origin, and add a regression test. 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. - Origins are plain host names in this lab (the app, a sibling subdomain, a look-alike host, an unrelated site); the Repeater sends the session cookie you give it, as a browser would. - The page really does call this endpoint from its own origin, with a token it was given at sign-in.
FastifyTypeScriptmoderateA01:2025CWE-352 - LabP2CSRF: the comment form that skips the token (Django)
HBR-231 made the club's phone app able to post comments by exempting the comment view from Django's CSRF check. A signed-in member's browser sends the session cookie from any page, so any page can now post as them. Post a comment as Kofi from another origin, then take the exemption off without turning the middleware off, and test it. Harbor's article pages (Django 5.2) post comments on the session cookie. `add_comment` is `@csrf_exempt` and the cookie is SameSite=None. Show another origin posting as a member, remove the exemption and keep CsrfViewMiddleware, don't settle for SameSite alone or a suffix test on the origin, don't strip the token from the app's own form, restore the softened test and add one that posts without a token. Rules: - Everything in this lab is emulated. Nothing you write is compiled or run. - You start in the Harbor Django project with HBR-231 applied; leave the JSON API and the routes as they are. - Origins are plain host names in this lab (the app, a sibling subdomain, a look-alike host, an unrelated site); the Repeater sends the session cookie you give it, as a browser would. - The comment form really does post from the app's own page, with the token Django puts in it.
DjangoPythonmoderateA01:2025CWE-352 - LabP2CSRF: the storefront that stopped checking the token (Rails)
STORE-231 let a reseller's portal post the storefront's account forms, and switched off Rails' forgery check for the whole app to do it. The session cookie goes with every request the browser makes to the shop, whichever page made it. Change Alice's email without the page's token, then restore the check, and test it. The storefront (Rails 8) answers an email change on the strength of the session cookie alone, because ApplicationController skips forgery protection. Show a post without the authenticity token changing it, restore protect_from_forgery for the whole app (not an except list or a skip in one controller), keep the token on the app's own form, and add a request test that posts without the token. 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 Repeater sends the session cookie you give it, as a browser would, and the authenticity token only if you put it in the body. - The shop's own pages carry a token in every form, and the account form really is posted from the shop's own origin.
RailsRubymoderateA01:2025CWE-352 - LabP2Excessive data exposure: the cart page that gets the whole record (Node)
Sam, ticket 4417: "I can see the grinder I want, and also a number called fraudScore. Should I be able to?" GW-171 returns the stored cart as it is. Show what a customer's own cart says besides what the page needs, then name the fields that may leave the service. The gateway's new cart page routes (Fastify 5, Node 22) return the stored cart as is, staff-only margin, fraud score and staff note included. Show a customer's own cart carrying them, answer both the cart and the list with an explicit response schema, don't settle for deleting one field or narrowing one route, and add a test that compares the response's keys. Lesson: what the page needs decides what an endpoint says; name the fields that leave, never the ones that stay. 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 cart page uses a cart's id, lines, note and discount. Nothing else on the record is for customers.
FastifyTypeScripteasyA01:2025CWE-200CWE-213 - LabP2GraphQL authorization and query-cost limits: the storefront endpoint (Node)
GW-198 put the storefront on one GraphQL endpoint. Orla: "ONE URL. EVERY SCREEN. NOBODY SAY 'CAREFUL'." It answers any cart by id, shows the staff-only discount to everyone, and runs any query however deep or wide. Show each gap, check the owner and the role in the resolvers, wire in the limits, and pin it with a test. The gateway's new GraphQL endpoint (Fastify 5, graphql-js) trusts the cart id, returns every field to every caller and accepts unbounded depth and aliases. Show a customer reading another account's cart, the discount field, and a query that costs far more than a screen needs; restrict carts to their owner (staff may read any) and the discount to staff, apply sensible depth and alias limits without breaking the app's own queries, and add a test. 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 and accounts come from the session, which the service already reads; never from the query. - Use the limits module as it is; choose the numbers. Leave the session lookup and the cart store alone.
FastifyTypeScriptmoderateA01:2025CWE-862CWE-639CWE-400 - LabP2Mass assignment: the account page saves every field (PHP, Laravel)
HBR-231 let the account page save its whole form in one call. Now a member who adds a field the form never offers writes it. Change a privileged field through the endpoint, put the form request and $fillable back, and add the test that sends the extra fields. Harbor's PUT /api/user (Laravel 12) fills the user from the whole request and the model guards nothing. Show a member setting their own role and suspension, let the endpoint change only the fields the form offers (a form request and $fillable), and see why refusing one field by name is not enough. Nothing runs: the app is emulated and graded on your code. Rules: - Everything in this lab is emulated. Nothing you write is compiled or run. - Leave the migration, the seeder, the sessions code and the shipped tests as they are; add your test in tests/Feature. - Role and suspension are set by admins in Admin/UserController, not through the account page.
LaravelPHPeasyA01:2025CWE-915CWE-269 - LabP2Mass assignment: the cart page that saves the whole cart (Node)
GW-102 let people leave a note on a saved cart. It merges whatever JSON the page sends over the cart, discount and account included. Give your own cart a full discount to prove it, then take only the note and test that extra fields are ignored. The gateway's new cart update route (Fastify 5, Node 22) merges the request body over the stored cart and saves it. Show a customer changing a cart's discount or account, fix the route so only the note can change, don't settle for refusing one discount, and add a test that posts the extra fields. 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 cart page edits the note only. Discounts come from promotions and accounts never change.
FastifyTypeScripteasyA01:2025CWE-915CWE-269 - LabP2Mass assignment: the delivery note that saves the whole order (C#)
Sam, ORD-288: *"I just want the courier to know about the side door."* The new note endpoint saves whatever order the page posts back, price and account included. Reprice your own order to prove it, bind only the note, and test the extra fields. The orders service's new delivery-note endpoint (ASP.NET Core 8) binds the request body onto the whole order record and saves it. Show a customer changing an order's total or account, fix the action so only the note can change, don't settle for refusing one price, and add a test that posts the extra fields. 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 order page edits the note only. Prices come from the products table and an order never changes account. - To send requests to the running app, use a demo session for Alice, a customer who owns order 7001: send header.authorization="Bearer mrd-alice-7Hq2" with each request. Without it every request answers 401. - Find: send PATCH /api/orders/7001 with that header and body.note, and add one field the note form never offers. The Find objective is met when the answer shows that field was saved. - Fix: change only Controllers/OrdersController.cs and add one new file under Models/. Off limits, with the policy check failing if they change: Data/OrderStore.cs, Models/Order.cs and tests/OrderValidatorTests.cs (shared data access, record and shipped tests). At most 3 files may differ from the shipped project. - Prove: put your test in services/orders/tests/OrderNoteTests.cs. It is a unit-level xUnit test, no HTTP and no sign-in: deserialize a JSON body with the extra fields (camelCase names, as the page sends them) into the type your controller now binds, which you name OrderNoteEdit, and assert the stored order's price and account come out unchanged.
ASP.NET CoreC#easyA01:2025CWE-915CWE-269 - LabP2Mass assignment: the invoice page that saves the whole invoice (Python)
BILL-355 let customers add a purchase-order number to an invoice. It saves whatever JSON the page sends, amount and account included. Set your own invoice to nothing to prove it, then bind only what the page may change and test that extra fields are ignored. The billing service's new invoice update endpoint (FastAPI) binds the posted invoice and saves it. Show a customer changing an invoice's amount or account, fix the binding so only the PO number can change, don't settle for refusing one amount, and add a test that posts the extra fields. 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 page edits the PO number only. Amounts and accounts are changed by billing staff, elsewhere.
FastAPIPythoneasyA01:2025CWE-915CWE-269 - LabP2Mass assignment: the profile page that saves the whole user (Java)
AUTH-158 let people edit their profile. It saves whatever JSON the browser sends, role and account included. Make yourself an admin to prove it, then bind only what the form may change and test that extra fields are ignored. The Auth service's new profile endpoint (Spring Boot 3.3) binds the request body onto the user record and saves it. Show a customer changing their own role and account, fix the binding so only the username can change, don't settle for refusing one role, and add a test that posts the extra fields. 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 profile form edits the username only. Role and account are changed by admins, elsewhere.
Spring BootJavaeasyA01:2025CWE-915CWE-269 - 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 (C#)
ORD-244 gave support a console to list and cancel orders. The routes check that you are signed in and nothing else, so a customer can cancel anyone's order. Prove it, gate the controller by role, and pin the boundary with a test. The Orders service's new admin controller (ASP.NET Core 8) is open to every signed-in customer. Show a customer listing every account's orders and canceling one, restrict the whole controller 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.
ASP.NET CoreC#easyA01:2025CWE-862CWE-285
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.