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 14 matching courses, lessons and labs
- LabP1LDAP and XPath injection: the courier phone book (C#)
ORD-279, from Orla at the dock: "THE DOCK DESK NEEDS TO FIND A COURIER BY NAME AND A DEPOT BY CODE. 14 PALLETS ARE WAITING ON THE ANSWER. Ola Reyes (nights) has a bracket in her name and DOCK-2 has a hyphen, and both are real. It's a shop. We sell kettles." Show a look-up returning more than it was asked for, then make both queries treat what is typed as a value. The Orders service (ASP.NET Core 8) finds a courier in an LDAP directory and a depot in an XML roster, and builds both queries by joining the typed text in. Show one of them returning more than was asked for, encode the value for the LDAP filter, keep the code out of the XPath string, keep the real names and codes working, and add a test. Stripping one character, refusing one word or fixing only one of the two each leave a way in. Lesson: a filter and a path expression are small languages; encode the value for the language, or keep it out of the query 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. - Values are sent by class (a name that is filter syntax, a code that is path syntax, one with no boolean word); 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#moderateA05:2025CWE-90CWE-643 - LabP1SQL injection: the kiosk sign-in that builds its query from the login (C#)
ORD-301, from Orla at the dock: "THE DOCK DESK KIOSK NEEDS A SIGN-IN BY LOGIN OR EMAIL. 14 PALLETS ARE WAITING FOR SOMEONE TO TAP IN. It's a shop. We sell kettles." Mo: "should be a quick one." The lookup joins whatever was typed into its SQL, twice. Show a sign-in as an admin without their PIN, then make the database receive the login as a value. Nuala's email has an apostrophe, and she has pallets too. The Orders service's new kiosk sign-in (ASP.NET Core 8, Npgsql) joins the typed login into SQL in two places. Show a sign-in as someone else, send the login as a bound value, don't settle for refusing comment markers, binding one of the two places or switching to an interpolated string, keep logins with a plus tag and an apostrophe working, and add a test that reads the command. Lesson: the SQL text and the values travel separately; a joined login can become part of the query, a bound one is only compared. 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 project is in ~/meridian, and the desk terminal opens in your home folder: run `cd ~/meridian` before you open the code or run the checks. - The kiosk's lookup is services/orders/Data/DeskUsers.cs. Change both places the login and the PIN are used in that file; the test goes in services/orders/tests/DeskUsersTests.cs. - Nothing is built or restarted. The Orders app answers from the saved files on its next request: save, then press Check my work. - Logins are sent by class (a quote that steers the query, a condition that is always true); the lab never spells one, and the HTTP client builds them for you. - People really do have plus tags and apostrophes in their email addresses.
ASP.NET CoreC#easyA05:2025CWE-89 - 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 - 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: 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 - 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 - 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 - LabP2Reviewing an AI agent's pull request: the cancel that works for everyone's orders (C#)
An AI agent opened ORD-244 against the Orders service: a customer can cancel an order that has not shipped. It works, and its test passes. Review the diff, find what the ticket never asked about, and fix it. The agent's pull request (ORD-244) adds a cancel endpoint to the Orders service, with a test, and every check in the ticket passes. Do four things. (1) Review: open the pull request in the Pull Request Review app (the `review` tool in the harness), comment on each line you think is wrong with its defect class and on any test that is missing, then request changes. (2) Show it: with the Repeater (the `send` tool), cancel an order with a token that does not belong to its account. The seeded customers are alice (account 1001, order 5001, header Authorization: Bearer mrd-alice-7Hq2) and bram (account 1002, order 5101, header Authorization: Bearer mrd-bram-4Vd9); the app has no sign-in form, so send the token as a header, for example `send POST /api/orders/5001/cancel header.authorization="Bearer mrd-alice-7Hq2"`. (3) Fix the service so a customer's cancel only ever reaches their own account's orders, without breaking the owners. (4) Add a regression test to services/orders/tests/OrderCancelTests.cs; the seeded names for tests are in services/orders/tests/TestData.cs. 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#moderateA01:2025CWE-639CWE-862 - LabP2Reviewing an AI agent's pull request: the pricing loop copied twice (C#)
An AI agent opened ORD-251 against the Orders service: reorder an earlier order, and quote it at today's prices. Review the diff, flag what is copied and what has already drifted, and decide. The agent's pull request copies the order store's pricing loop into a reorder method and again into a quote method. The reorder copy still matches the original; the quote copy has drifted from it. Review the diff in the Pull Request Review app, name each defect by its class, and request changes with your confidence. 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. - This is a review: you do not change the code. Comment on the lines at fault, name the class, then decide. - Your first approve or request changes is final, and so are the comments made before it.
ASP.NET CoreC#moderateCWE-1041CWE-1109 - LabP3JWT validation: the token that signs its own pass (C#)
ORD-283 gave the Orders service an endpoint that says whether an access token is good. It will believe a token that carries no signature at all. Get one accepted, then make the verifier decide the algorithm, the key and the claims itself. The Orders service's token verifier (ASP.NET Core 8, JwtSecurityTokenHandler) does not require a signature, never pins the algorithm, and switches off the issuer, audience and lifetime checks. Show an unsigned token accepted, pin HS256 and turn the checks on, and add a test that feeds the verifier bad tokens. 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. - Tokens are named by class (unsigned, expired, wrong audience); the lab never spells one, and the HTTP client builds them for you.
ASP.NET CoreC#moderateA07:2025CWE-347CWE-345CWE-613 - LabP3Session fixation and bare cookies: the second tab's sign-in (C#)
ORD-271 keeps a customer's session across tabs by reusing the id the browser brings, and sends the cookie with no flags. Show a session id chosen before sign-in still working after it, issue a fresh one, and set the cookie so script and plain HTTP cannot reach it. Lesson: a session id is a promise the server makes after it has seen who you are. Make it at sign-in, never accept one from before, and tell the browser how to hold it: Secure, HttpOnly, SameSite, and a lifetime. Fix the Orders service's cookie sign-in (ASP.NET Core 8) without signing anyone out early, then add a test for the id and the flags. 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. - Everyone still signs in with a username and password; the session store and the bearer handler stay as shipped.
ASP.NET CoreC#moderateA07:2025CWE-384CWE-1004CWE-614 - LabP5Path traversal: the export link that opens any file (C#)
ORD-284 gave finance a download link for the order exports. It combines the file name with the exports folder and serves whatever is there. Read a file that is not an export, then keep the download inside its folder. Fix it in services/orders/Controllers/ExportsController.cs, then prove it with a new test file named exactly services/orders/tests/ExportDownloadTests.cs (the check looks for that file by name; no other name counts). The test asks for a file outside the exports folder and expects not found (NotFoundObjectResult), and also asks for a normal export and expects the download. How the check reads your fix. It accepts any one of these: (1) a resolved full path (Path.GetFullPath) that is compared with the exports folder plus a trailing separator, with a refusal (not found, bad request, forbid or a throw) when it is not inside, before the file is read; the prefix may be built in the check or kept in a local, a field or a property, the check may stand alone or sit in a longer condition, and an ordinal comparison, or none named, counts; (2) a path relative to the folder (Path.GetRelativePath) that is tested for climbing out; (3) only the file name of the request used. It does not accept a check on the name as sent, a prefix without the trailing separator (a sibling folder that shares the start would pass), a culture-sensitive comparison, a check that comes after the file is read, or one that does not refuse. Press Check my work in the Brief: each check shows passed or failed, and a missing test file is named there. The orders service's export download (ASP.NET Core, .NET 8) combines a file name from the query with the exports folder without checking where the full path lands. Show a file outside the folder being read, confine the path, don't settle for refusing '..' or stripping '../' once, and add a test that asks for a file outside. 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. - Names are sent by class (climbing, hidden climbing, absolute); the lab never spells one, and the HTTP client builds them for you.
ASP.NET CoreC#moderateA01:2025CWE-22CWE-73
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.