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–12 of 29 matching courses, lessons and labs
- LabP2Authorization inside server actions: Harbor's admin page (Next.js)
HBR-231 gave Harbor's admins a page to list accounts and suspend them. The page turns members away, but the server actions behind it only check that you are signed in, and a server action is a public endpoint. Prove it, check the role inside each action, and pin the boundary with a test. Harbor's new admin actions (Next.js 15, App Router) answer any signed-in member who posts to them, whatever the page showed. Show a member listing every account and suspending one, restrict both actions to admins without locking admins out, and add a test that a member is refused. Rules: - Everything in this lab is emulated. Nothing you write is compiled or run. - Change the admin actions; leave the rest of the project as it is. - Roles come from the session, which the project already reads; never from the form or anything else the client sends. - Leave the session code, the database client and Harbor's own security tests as they are.
Next.jsTypeScripteasyA01:2025CWE-862CWE-285 - LabP2Broken object-level authorization: a queryset that opens every draft (Django)
HBR-231 let reviewers open a draft from a shared link, and changed the queryset every article read goes through. Any member can now read any draft. Prove it with a second account, scope the queryset to the user again, and add the test that asks as a stranger. Harbor's Django app sends every article, comment and attachment read through ArticleQuerySet.visible_to. A ticket made it return every article to any signed-in reader. Show a member reading someone else's draft, put the author-and-admin scope back in the queryset, make sure an author name 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. - Harbor is the practice app: one API, written in many frameworks. This is the Django one. - Leave the views, the seed and the other tests as they are.
DjangoPythoneasyA01:2025CWE-639CWE-284CWE-862 - LabP2Broken object-level authorization: any colleague's card, by id (Java)
AUTH-181 shipped the team directory: a colleague's card opens by id. It opens any user's card, in any account. Prove it with two accounts, scope the lookup, and add the test that would have caught it. The auth service's new directory endpoint (Spring Boot 3.3) returns a user to any signed-in caller who knows the id. Show a customer reading another account's user, fix the lookup so a user in another account looks like no user, 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 login controller, the token service and the password code as they are.
Spring BootJavaeasyA01:2025CWE-639CWE-284CWE-862 - LabP2Broken object-level authorization: any delivery, by id (Axum)
RT-31 lets support open a delivery from a ticket link. It now opens anyone's delivery. Prove it with two accounts, take the scope from the signed-in user again, and add the test that would have caught it. The routing service's delivery endpoint (Axum 0.8, Rust) reads with the all-accounts scope and shows the delivery to any signed-in customer who knows the id. Show a customer reading another account's delivery, read through Scope::of(&user) so another account's delivery looks like no delivery, 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 extractors, the stores and the existing routing tests as they are.
AxumRusteasyA01:2025CWE-639CWE-284CWE-862 - LabP2Broken object-level authorization: any invoice, by number (Python)
BILL-312 shipped the invoice detail page: an invoice opens by its number. It opens anyone's invoice. Prove it with two accounts, put the account boundary back, and add the test that would have caught it. The billing service's new detail endpoint (FastAPI) returns an invoice to any signed-in caller who knows its number. Show a customer reading another account's invoice, fix the lookup so another account's invoice looks like no invoice, 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 CSV export, the session code and the existing tests as they are.
FastAPIPythoneasyA01:2025CWE-639CWE-284CWE-862 - LabP2Broken object-level authorization: any member rewrites any article (Go, Gin)
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 (Gin 1.12, Go) 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. Rules: - Everything in this lab is emulated. Nothing you write is compiled or run. - Gin's middleware only says who is signed in; ownership is each handler's to check. - Leave the models, the middleware, the router and the other handlers as they are.
GinGoeasyA01:2025CWE-639CWE-284CWE-862 - 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 - 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
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.