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 37–48 of 153 courses, lessons and labs
- 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 access control: drafts open to anyone with the link (Dart, shelf)
HBR-212 let reviewers open a draft from a shared link. Now anyone who guesses a slug reads every draft on Harbor. Read one that is not yours, put the check back, and add the test that asks as a stranger. Harbor's article endpoint (Dart, shelf) lost its status check so drafts could be shared for review. Show a member reading someone else's draft, answer a draft only to its author and the admins with the model's own rule, and add a regression test. Dart compiles on a server, never in the browser: dart analyze and dart 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. - `dart` in the terminal is a simulated toolchain: its output follows your code's recognized state, nothing is compiled. - Leave the build file, the model and the session code as they are.
DarteasyA01:2025CWE-639CWE-862 - LabP2Broken access control: drafts open to anyone with the link (Kotlin, Ktor)
HBR-212 let reviewers open a draft from a shared link. Now anyone who guesses a slug reads every draft on Harbor. Read one that is not yours, put the check back, and add the test that asks as a stranger. Harbor's article endpoint (Ktor 3) lost its status check so drafts could be shared for review. Show a member reading someone else's draft, answer a draft only to its author and the admins with the model's own rule, and add a regression 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. - `gradle` in the terminal is a simulated toolchain: its output follows your code's recognized state, nothing is compiled. - Leave the build file, the model and the session code as they are.
KtorKotlineasyA01:2025CWE-639CWE-862 - LabP2Broken access control: drafts open to anyone with the link (Scala, Play)
HBR-212 let reviewers open a draft from a shared link. Now anyone who guesses a slug reads every draft on Harbor. Read one that is not yours, put the check back, and add the test that asks as a stranger. Harbor's article endpoint (Play Framework 3, Scala 3) lost its status check so drafts could be shared for review. Show a member reading someone else's draft, answer a draft only to its author and the admins with the model's own rule, and add a regression test. Scala has no compiler in the browser: sbt 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. - `sbt` in the terminal is a simulated toolchain: its output follows your code's recognized state, nothing is compiled. - Leave the build file, the model and the session code as they are.
ScalaeasyA01:2025CWE-639CWE-862 - LabP2Broken access control: drafts open to anyone with the link (Swift, Vapor)
HBR-212 let reviewers open a draft from a shared link. Now anyone who guesses a slug reads every draft on Harbor. Read one that is not yours, put the check back, and add the test that asks as a stranger. Harbor's article endpoint (Vapor 4) lost its status check so drafts could be shared for review. Show a member reading someone else's draft, answer a draft only to its author and the admins with the model's own rule, 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. - `swift` in the terminal is a simulated toolchain: its output follows your code's recognized state, nothing is compiled. - Leave the build file, the model and the session code as they are.
VaporSwifteasyA01:2025CWE-639CWE-862 - 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 edits any article (PHP, Laravel)
HBR-231 let members fix each other's typos. Now any signed-in member edits, and attaches files to, an article someone else wrote. Prove it with a second member's token, put the author rule back in the policy, and add the test that asks as another member. Harbor's ArticlePolicy (Laravel 12) answers yes to the update ability for anyone who can see the article. Show a member editing another author's article, restore the policy so only the author edits, without a one-method check or a wider rule for admins, and add a regression test. Rules: - Everything in this lab is emulated. Nothing you write is run. - Laravel authorizes through policies: fix the rule where every route that uses the ability reads it. - Leave the models, the routes and the other policies as they are.
LaravelPHPeasyA01:2025CWE-639CWE-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
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.