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 153 courses, lessons and labs
- 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 - LabP1SQL injection: the order history whose sort and status go into the query (Ruby)
SF-114 made the storefront's order history sortable and filterable by status. The sort goes into `order` wrapped in Arel.sql, and the status goes into a `where` string. Show either steering the query (GET /orders with the send tool and the header Authorization: Bearer mrd-alice-7Hq2, Alice's customer session; the page's own sign-in form is not part of this lab), then accept only the columns and directions the page offers and bind the status as a value. The storefront's order history (Rails 8, Active Record) joins the sort column, the direction and the status filter into SQL text. Show the parameters steering the query, allow only the listed columns and directions, bind the status, don't settle for a keyword filter or fixing only one of the two, keep the total sort working, 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. - Sort and status values are sent by class (a subquery, an expression, a quote that steers the query); the lab never spells one, and the HTTP client builds them for you. - Hand the order a column-to-direction pair, never SQL text: even a value you have checked against a list still counts as joined if it is interpolated into a string passed to order. Bind the status with a placeholder or a hash condition. - The regression test calls Order.history with a sort that is not one of the three columns and with a status that has an apostrophe in it; the reference test shows the shape. - The page offers three columns (created_at, total_cents, status) and two directions; all of them have to keep working, and an unlisted column falls back to the placed date as the catalog's does.
RailsRubyeasyA05:2025CWE-89 - LabP1SQL injection: the sign-in that builds its query from the login (Java)
AUTH-204 let people sign in with their email address. The lookup joins whatever they typed into its SQL. Sign in as an admin without knowing a password, then make the database receive the login as a value, and test it with a name that has an apostrophe in it. The Auth service's new login lookup (Spring Boot 3.3, JdbcTemplate) joins the typed login into SQL in two places. Show a sign-in as someone else, bind the login as a parameter, don't settle for filtering comment markers or binding one of the two places, don't lock out names with apostrophes, 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. - 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 apostrophes in their names and email addresses.
Spring BootJavaeasyA05:2025CWE-89 - LabP1Stored XSS: the article comments printed raw (PHP, Laravel Blade)
HBR-247 let members format their comments, and the article page now prints each comment body with Blade's raw output. Any member's comment becomes elements in every reader's browser. Make the emulated page run a comment's script, go back to escaped output, and test that a comment's markup stays text. Harbor's article view (Laravel 12, Blade) prints the comment body with {!! !!} instead of {{ }}. Show a comment with markup in it becoming elements, escape it again, don't settle for stripping script tags, don't hide the comments, and add a test that posts a comment with markup in it and reads the page. Rules: - Everything in this lab is emulated. Nothing you write is compiled or run. - Comments are sent by class (a script element, an element with an event handler); the lab never spells one, and the HTTP client builds them for you. The Repeater's render route stands in for the browser's DOM. - Readers still have to be able to see every comment. - Leave the controllers, the policies and the routes as they are.
LaravelPHPeasyA05:2025CWE-79 - LabP1Stored XSS: the ticket notes that are shown as HTML (React)
WEB-233 added notes to support tickets, shown with their bold text and links. Customers write the notes, support reads them, and the page inserts them as markup. Make the emulated page run a note's script, then stop inserting it, and test that a note's markup stays text. The web app's ticket notes (React 18, TypeScript) go through dangerouslySetInnerHTML. Show a note with markup in it becoming elements, render it as text or sanitize it, don't settle for stripping script tags, don't delete the notes, and add a test that renders a note with markup in it. 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. - Notes are sent by class (a script element, an element with an event handler); the lab never spells one, and the HTTP client builds them for you. The Repeater's render route stands in for the browser's DOM. - Support still has to be able to read every note.
ReactTypeScripteasyA05:2025CWE-79 - LabP1Template injection: the reminder preview that renders the note (Python)
BILL-446 lets Collections preview a payment reminder with a friendly personal note. The note is glued onto the reminder's template and rendered, so the note is read as template code. Make the preview evaluate it, then keep the note out of the template for good, and keep real sentences working. The billing service's reminder preview (FastAPI, Jinja2) builds template text from the reminder and the typed note, then renders it. Show a template expression and a template statement being evaluated, make the note a value handed to a fixed template, don't settle for a sandbox or for stripping '{{', don't turn away sentences with spaces and punctuation, 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. - Notes are sent by class (a template expression, a template statement); the lab never spells one, and the HTTP client builds them for you. - Collections writes real sentences: spaces, commas and full stops.
FastAPIPythoneasyA05:2025CWE-1336CWE-94 - LabP1Universal-link validation: the order link that any app or site can open (Swift, SwiftUI)
SHOP-212 lets order links from mail, QR codes and other apps open the iPhone app: the link parser no longer checks the scheme or the host, reads the order number with a plain integer parse, and the app registers a custom URL scheme. Show a link from another host being acted on, then restore the checks and the scheme. Orla: "SUPPORT HAS 31 TICKETS WAITING ON THIS. Do not make the scan-to-open demo stop working." The customer iPhone app (Swift 6, SwiftUI) acts on any link the parser accepts, and the parser accepts any scheme, any host and an order number that is whatever an integer parse takes. Show a link from another host, a look-alike host and a link with no scheme being acted on, restore the https scheme check, the comparison of the parsed host to Meridian's list and the order-number check (digits only, not zero), remove the custom URL scheme from Info.plist, restore the shipped test's assertions, and don't settle for a scheme check alone, a host check with the number unchecked, or a number check with the hosts open, or for refusing every link. Lesson: a link is input from whoever wrote it. It only names a screen: check the scheme, compare the parsed host to a list you wrote, accept an order number only as the digits it is, and register no scheme any app can claim. Swift has no compiler in the browser: swift test here is simulated and follows your code's recognized state; the Keychain and pinning code is Apple-only and is never run. 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. - Links and order numbers are sent by class (a link on another host, a look-alike host, a link with no scheme, a malformed order number); the lab never spells one, and the HTTP client builds them for you. - `swift test` is simulated from the state of your code: it runs the DeepLink suite only. The Keychain and certificate-pinning suites are Apple-only and print nothing here. - Meridian's own order links still have to open the order list and one order.
iOS (SwiftUI)SwiftmoderateA01:2025CWE-939CWE-20 - LabP1Unrestricted file upload: the contact form that stores any file (Node)
GW-133 added attachments to the public contact form. The gateway saves whatever arrives under the web root and serves that folder. Get an active-content file stored and served, then allow only the types the form is for and keep stored files out of the web root. The gateway's contact attachments (Fastify 5, Node 22) save each file under the web root with the name the client sent, and the same folder is served as static files. Show an active-content file being stored and served, allow only the types the form needs, store files outside the web root under a name the server picks, don't settle for trusting the declared type, denying one extension, or validating while still storing under the web root, and add a test that uploads active content. Lesson: the name and declared type of a file are input like any other. Allow what you expect instead of denying what you remember, and store files where the web server cannot hand them back as pages or code. 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. - File names are sent by class (a known active extension, a variant of one); the lab never spells one, and the HTTP client builds them for you.
FastifyTypeScriptmoderateA06:2025CWE-434CWE-79 - LabP1Unsafe audit: two unjustified blocks in the polyline decoder (Rust, Axum)
PERF-211 took the forbid on unsafe code off the routing crate and put two unsafe blocks into the polyline decoder, with no SAFETY comments. Audit each, replace it with the safe call, restore the forbid and keep the polyline tests passing. The Routing service (Rust, Axum 0.8, sqlx 0.8) decodes the tracks driver devices upload. The branch removes #![forbid(unsafe_code)] from lib.rs, then swaps two checked steps in polyline.rs (i32::try_from and checked_sub) for unwrap_unchecked and unchecked_sub inside unsafe blocks. Each block is only as sound as the check written beside it, and that check is the whole job the safe call did. Audit them, delete the unsafe, restore the forbid so the compiler enforces it for every later change, and add a test for a point off the map. Lesson: unsafe is a promise the compiler cannot check; justify it in a SAFETY comment or do not write it. 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. - Input is sent by class (a path past the usual size, an empty one); the lab never spells one, and the HTTP client builds them for you. - The Rust is never compiled and Miri never runs here; the emulated service answers as your saved code reads. You prove nothing out of bounds is reachable by deleting the unsafe, not by showing it.
AxumRustmoderateA05:2025CWE-119CWE-125CWE-190 - LabP1Unsafe deserialization: the preferences header read as Java objects (Java)
AUTH-209 reads the web app's display preferences from a header with ObjectInputStream. Show the service accepting a Java object stream from the client, then read the preferences as plain data instead. The Auth service (Spring Boot 3.3) rebuilds a Base64 Java object stream from a request header, so the sender decides which classes get created. Show a stream being accepted, replace it with JSON read into the Preferences record, don't settle for a deny-list filter or a type check after the read, and add a test that sends an object stream. Lesson: a deserializer that rebuilds any type is an interpreter for what the sender writes. Filters and after-the-fact checks 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 (an object stream holding a plain value, one naming a collection); the lab never spells one, and the HTTP client builds them for you.
Spring BootJavamoderateA08:2025CWE-502 - 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 - LabP1Use after free: a batch pointer kept across an erase (C++, RAII)
SCN-88 keeps every open batch in one vector and points each session at its batch with a raw pointer. Find where the scanner uses an iterator, a reference or a pointer after the container changed, put the batch back under a single owner, and add a unit test. The scanner's Store (C++20) now holds batches in a std::vector and sessions hold a raw Batch*. pair reads the erased session's iterator after erase and adds a batch with push_back while other sessions still point into the vector; close_batch keeps a reference to a batch across a push_back and moves from it. Read the code to find each, restore one owner with std::unique_ptr, take what you need before the container changes, and add a test that pairs past the old capacity, re-pairs a device and closes a batch. Lesson: an iterator, reference or pointer into a container is good only until the next erase or insert; give each object one owner. Nothing is compiled or sanitized here: the checks read your C++ and the emulated scanner answers as it reads. 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 request is sent by class (a re-pair of the same device); the lab never spells one, and the HTTP client builds it for you. - The C++ is never compiled or run under a sanitizer; the emulated service answers as your saved code reads, and the unit test is checked as text.
C++moderateA05:2025CWE-416CWE-825CWE-672
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.