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 49–60 of 134 matching courses, lessons and labs
- LabP2Broken object-level authorization: any member rewrites any article (Swift, Vapor)
HBR-231 let co-editors fix typos on Harbor articles. The update handler no longer asks whose article it is, so any member edits any article. Prove it with two accounts, put the ownership check back in the handler, and add the test that would have caught it. Harbor's article update handler (Vapor 4, Swift) lost its author comparison, so any signed-in caller, an admin too, rewrites another member's published article. Show a member overwriting someone else's article, restore the check in the handler, make sure an author id sent by the client is never believed, and add a regression test. Swift has no compiler in the browser: swift build and swift test here are simulated, and their output follows your code's recognized state. Rules: - Everything in this lab is emulated. Nothing you write is compiled or run. - Vapor's signedIn middleware only says who is signed in; ownership is each handler's to check. - Leave the models, the middleware, the routes and the other handlers as they are.
VaporSwifteasyA01:2025CWE-639CWE-284CWE-862 - LabP2Broken object-level authorization: any order, by id (C#)
ORD-231 shipped on Friday: support can open any order by its id. So can every customer. Prove it with two accounts, put the account boundary back, and add the test that would have caught it. The Orders service (ASP.NET Core 8) returns an order to any signed-in caller who knows its id. Show a customer reading another account's order, fix the lookup so another account's order looks like no order, make sure an account id sent by the client is never believed, 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. - Leave the order validator and the session code as they are.
ASP.NET CoreC#easyA01:2025CWE-639CWE-284CWE-862 - LabP2Broken object-level authorization: any order, by id (Ktor)
MOB-31 lets the app open an order from its push notification. The order route now opens anyone's order. Prove it with two accounts, scope the read to the signed-in session's account again, and add the test that would have caught it. The mobile back end (Kotlin 2, Ktor 3) answers GET /mobile/v1/orders/{id} through an order read that uses the id alone, so any signed-in customer who knows an id reads another account's order. Show a customer reading another account's order, call the account-scoped read again and drop the unscoped one so another account's order looks like an unknown id, make sure an account id sent by the client is never believed, 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. - Leave the token and session code, the database helper and the shipped tests as they are.
KtorKotlineasyA01:2025CWE-639CWE-284CWE-862 - LabP2Broken object-level authorization: any order, by id (Rails)
ST-52 lets the order page open from the receipt link and from support. It now opens anyone's order. Prove it with two accounts, scope the find to the signed-in user's account again, and add the test that would have caught it. The storefront's order page (Rails 8, Ruby 3.4) finds an order by id alone and shows it to any signed-in customer who knows the id. Show a customer reading another account's order, scope the find to current_user's account so another account's order looks like no order, make sure an account id sent by the client is never believed, 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. - Leave the session lookup, the models and the existing storefront tests as they are.
RailsRubyeasyA01:2025CWE-639CWE-284CWE-862 - LabP2Broken object-level authorization: any saved cart, by id (Node)
GW-77 shipped saved carts in the gateway: a cart opens by its id. It opens anyone's cart. Prove it with two accounts, put the account boundary back, and add the test that would have caught it. The gateway's new cart route (Fastify 5, Node 22) returns a cart to any signed-in caller who knows its id. Show a customer reading another account's cart, fix the lookup so another account's cart looks like no cart, make sure an account id sent by the client is never believed, 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. - Leave the session lookup, the cart store and the existing gateway tests as they are.
FastifyTypeScripteasyA01:2025CWE-639CWE-284CWE-862 - LabP2Broken object-level authorization: anyone edits any article (ASP.NET Core minimal API)
HBR-231 shipped co-editing for the sailing club's articles. It also let every member rewrite every other member's article. Prove it with a second account, put the rule back where the endpoints ask for it, and add the test that would have caught it. Harbor's API (ASP.NET Core minimal APIs) asks ArticleAuthorizationHandler who may edit an article, and the handler now says yes to any signed-in caller for a published one. Show a member changing another member's article, restore the author-only rule without locking authors out, and add a regression test. Rules: - Everything in this lab is emulated. Nothing you write is compiled or run. - The endpoints already ask the handler before they edit or attach. Decide who may edit in the handler, not in each endpoint. - Leave the read and delete rules and the session code as they are.
ASP.NET Core minimal APIsC#easyA01:2025CWE-639CWE-284CWE-862 - LabP2CSRF protection: the role form that lost its stamp (PHP)
Benny's admin portal stamped every form with a per-session token, and ADM-218 let the role form go without it. Find where the protection went missing, put the token check back on the role route with the class the portal already ships, keep the portal's own form working, and add a test that holds the check in place. The legacy admin portal (PHP 8.3, plain PHP on Apache) changes a user's role on the strength of the session cookie alone: ADM-218 set the cookie SameSite=None for the staff portal's frame and dropped the token check from the role form, though Csrf.php still ships. Read the role route and confirm the check is missing: in the Repeater you are the signed-in admin, whose session is the cookie PHPSESSID=0b7e41c9d25f8a3e6c1d90f4a7 (a made-up value for this lab), and a request from another site that carries that cookie but no token is accepted. Put the check back with the shipped class, and don't settle for a stricter cookie alone, a token that only has to be present, or a check whose result nothing reads; don't look for the token where the page doesn't put it, and add a route test. Csrf.php already has its own test (CsrfTest.php) and the gap was on the route, so the new test goes in admin/tests/UsersRoleCsrfTest.php, posts to /users/role without the csrf field, and asserts the response status with assertSame(403, ...). Lesson: a cookie shows who is asking, never that this page meant to ask. Anything that changes state needs something the real page holds and other sites cannot read, checked on every change, so keep the token check on the route itself and let the cookie attributes be a second layer. 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. - In this lab an origin is just a host name (the portal, a sibling subdomain, an unrelated site); the Repeater sends the session cookie you give it, as a browser would (the admin's is in the summary). - The portal's own form still has to work: it posts the token it was rendered with, in the field it already uses. - The regression test goes through the route, not the class: CsrfTest.php already covers Csrf, and the check reads admin/tests/UsersRoleCsrfTest.php for a post to /users/role and an assertSame(403, ...).
PHPmoderateA01:2025CWE-352 - 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 - LabP2Exported activity and intent validation: the courier app's delivery links (Kotlin, Android)
CRR-318 lets a text or the support tool open a delivery in the courier app. Any https link now opens it, and the launcher marks whatever id an intent carries. Show an id nobody issued reaching the back end, restore the verified link, check the id in both activities, and add the test that holds the checker to it. The courier app (Kotlin 2.2, Jetpack Compose) lost its verified link filter and the delivery-id check in both activities. Show an unchecked id going out in a delivery call, put back the verified link and the app's own check in the link activity and the launcher, and add a unit test. Kotlin has no compiler in the browser: Gradle here is simulated, and its output follows your code's recognized state. 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. - `gradle` in the terminal is a simulated toolchain: its output follows your code's recognized state, nothing is compiled. - Use the checker in DeliveryLink.kt as it is; never build a delivery id check of your own, and never pass extras or flags from the caller on. - Leave the build file, the token store and the back end client as they are.
Android (Jetpack Compose)KotlineasyA01:2025CWE-926CWE-20
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.