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 25–36 of 91 matching courses, lessons and labs
- LabP1Unsafe deserialization: the share token read with Marshal (Ruby)
STORE-231 reads the display settings in a share link with Marshal.load. Show the storefront accepting a Marshal stream from the visitor, then read the settings as plain data instead. The Meridian storefront (Ruby 3.4, Rails 8) rebuilds a Base64 Marshal dump from the view parameter, so the sender decides which classes get created. Show a stream being accepted, replace it with JSON read into DisplayPreferences, don't settle for a type check after the load, and add a test that sends a Marshal stream. Lesson: a loader that rebuilds any type is an interpreter for what the sender writes. Checks after the fact let the work happen first; use a data-only format and read it into the one type you expect. 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. - Values are sent by class (a Marshal stream holding a plain value); the lab never spells one, and the HTTP client builds them for you.
RailsRubymoderateA08:2025CWE-502 - LabP1XML external entities: the courier's delivery notice (C#)
ORD-263, from Orla at the dock: "THE COURIER SENDS US XML NOTICES. 14 PALLETS ARE WAITING ON THEM. Some start with a DOCTYPE line and that is normal, so please don't ban them. It's a shop. We sell kettles." Show the Orders service processing an entity from a notice, then make the parser stop. The Orders service (ASP.NET Core 8) reads the courier's XML notice with an XmlReader that parses the DOCTYPE and resolves what it points at, then echoes the note. Show an entity being processed, configure the parser so it is not, keep the courier's own DOCTYPE line working, and add a test with a declared entity. A keyword filter, a resolver switch alone or a size limit alone each leave a way in. Lesson: a document can carry instructions as well as data; configure the parser, not the text. 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. - Notices are sent by class (an entity read from a system identifier, one from a public identifier, entities that nest); the lab never spells one, and the HTTP client builds them for you. - Sign-in: the dock desk's staff account (`sam`) is preloaded in the Repeater.
ASP.NET CoreC#moderateA02:2025CWE-611CWE-776 - 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
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.