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 34 matching courses, lessons and labs
- LabP1DOM XSS: the article page that trusts its own text (Angular)
HBR-244 let authors put links and emphasis in article bodies and comments by running them through bypassSecurityTrustHtml and binding them with [innerHTML], and narrowed the escaping test until it passed. Anyone can write a comment. Make the emulated page turn stored text into elements that run, then go back to showing text as text, and test it. Harbor's Angular 22 front end shows article bodies and comments by interpolation, which Angular escapes. `trusted()` calls DomSanitizer.bypassSecurityTrustHtml and both are bound with [innerHTML]. Show a stored body or comment becoming elements (the Repeater's GET /page/articles/{slug} with ?body= or ?comment=), bind both as text, don't settle for stripping script tags, for fixing one of the two bindings, or for [innerHTML] on Angular's own sanitizer, don't drop the text, restore the narrowed test and add one that passes markup through the page. Lesson: Angular is safe until a bypass says otherwise; a sanitizer bypass is a promise that the value is already safe, and stored text from other members never is. Rules: - Everything in this lab is emulated. Nothing you write is compiled or run. - You start in the Harbor Angular project with HBR-244 applied; leave the API client, the sign-in code and the routes as they are. - Values are sent by class (a script element, an element with an event handler); the lab never spells one. The Repeater's render-article-page route (GET /page/articles/{slug}) stands in for the browser's DOM: send it ?body= and ?comment= with a value class from the Repeater's value picker, and it answers with what the page made of that text. - Members still have to read the article body and the comments.
AngularTypeScriptmoderateA05:2025CWE-79 - LabP1DOM XSS: v-html on Harbor's article bodies (Vue)
HBR-318 let article bodies carry formatting, and ArticleBody.vue now binds each paragraph with v-html. The ticket silenced the lint rule and loosened the test, so a member's post becomes elements in every reader's page. Show it, bring back safe rendering, and pin it with a test. Harbor's Vue front end renders an article body with v-html, so markup a member typed runs in their readers' sessions. Show a body becoming elements, render it as text with interpolation or sanitize it, don't settle for stripping script elements, don't stop showing the body, and add a component test. Lesson: v-html is a sink that trusts its input. Interpolation and v-text have no way to make elements out of text, and when markup is truly wanted, a sanitizer built for HTML sits between the member's text and the page. Removing what you remember to remove leaves the other ways in. Rules: - Everything in this lab is emulated. Nothing you write is compiled or run. - Values 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 article-body route stands in for the browser's DOM. - Readers still have to see the article's text. - Leave the lint configuration, the API client and the session store as they are.
VueTypeScripteasyA05:2025CWE-79 - LabP1NoSQL operator injection: the partner sign-in that hands the body to MongoDB (Node)
GW-163 let partners sign in with an email address and an access code. The handler passes both JSON fields to the database as they came. Sign in as the operations admin without knowing the code, then make the filter take only text, and test it with an object where text belongs. The gateway's partner sign-in (Fastify 5, Node 22, the MongoDB driver) puts the request body's email and access code straight into `findOne`. Show a sign-in without the code, build the filter from values checked to be text, don't settle for a deny-list of two operators or for checking one field, don't refuse every dollar sign (real codes have them), and add a regression test. Lesson: a JSON body can hold an object where a form holds only text, and a document database reads an object as part of the query. Check the type of every value before it reaches a filter instead of listing the operators you remember. 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 query-operator document, a variant of one); the lab never spells one, and the HTTP client builds them for you. - Some access codes really do contain a dollar sign.
FastifyTypeScriptmoderateA05:2025CWE-943 - LabP1SQL injection: the edge sign-in that builds its query from the login (Node)
GW-241 let people sign in with their email address, and the gateway answers it itself. 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. Mo says it should be a quick one. Kai wants the test first. The gateway's new sign-in lookup (Fastify 5, pg) 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. Sean O'Brien has been waiting since Tuesday.
FastifyTypeScripteasyA05:2025CWE-89 - 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 - 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 - 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: 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: the account page that trusts the cookie (Node)
GW-140 moved the account page onto a session cookie. The browser sends that cookie with every request to the gateway, whichever page made it, and changing the account's email checks nothing else. Change Alice's email from another origin, then make the gateway check where a request came from, and test it. The gateway's account routes (Fastify 5, @fastify/cookie) change an email on the strength of a SameSite=None cookie. Show a request from another origin changing it, check the request's origin exactly (or require a token the page holds), don't settle for SameSite alone or for a substring test on the origin, don't refuse the app's own origin, 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. - Origins are plain host names in this lab (the app, a sibling subdomain, a look-alike host, an unrelated site); the Repeater sends the session cookie you give it, as a browser would. - The page really does call this endpoint from its own origin, with a token it was given at sign-in.
FastifyTypeScriptmoderateA01:2025CWE-352 - LabP2Excessive data exposure: the cart page that gets the whole record (Node)
Sam, ticket 4417: "I can see the grinder I want, and also a number called fraudScore. Should I be able to?" GW-171 returns the stored cart as it is. Show what a customer's own cart says besides what the page needs, then name the fields that may leave the service. The gateway's new cart page routes (Fastify 5, Node 22) return the stored cart as is, staff-only margin, fraud score and staff note included. Show a customer's own cart carrying them, answer both the cart and the list with an explicit response schema, don't settle for deleting one field or narrowing one route, and add a test that compares the response's keys. Lesson: what the page needs decides what an endpoint says; name the fields that leave, never the ones that stay. 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 cart page uses a cart's id, lines, note and discount. Nothing else on the record is for customers.
FastifyTypeScripteasyA01:2025CWE-200CWE-213 - LabP2GraphQL authorization and query-cost limits: the storefront endpoint (Node)
GW-198 put the storefront on one GraphQL endpoint. Orla: "ONE URL. EVERY SCREEN. NOBODY SAY 'CAREFUL'." It answers any cart by id, shows the staff-only discount to everyone, and runs any query however deep or wide. Show each gap, check the owner and the role in the resolvers, wire in the limits, and pin it with a test. The gateway's new GraphQL endpoint (Fastify 5, graphql-js) trusts the cart id, returns every field to every caller and accepts unbounded depth and aliases. Show a customer reading another account's cart, the discount field, and a query that costs far more than a screen needs; restrict carts to their owner (staff may read any) and the discount to staff, apply sensible depth and alias limits without breaking the app's own queries, and add a 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. - Roles and accounts come from the session, which the service already reads; never from the query. - Use the limits module as it is; choose the numbers. Leave the session lookup and the cart store alone.
FastifyTypeScriptmoderateA01:2025CWE-862CWE-639CWE-400 - LabP2Mass assignment: the cart page that saves the whole cart (Node)
GW-102 let people leave a note on a saved cart. It merges whatever JSON the page sends over the cart, discount and account included. Give your own cart a full discount to prove it, then take only the note and test that extra fields are ignored. The gateway's new cart update route (Fastify 5, Node 22) merges the request body over the stored cart and saves it. Show a customer changing a cart's discount or account, fix the route so only the note can change, don't settle for refusing one discount, 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 cart page edits the note only. Discounts come from promotions and accounts never change.
FastifyTypeScripteasyA01:2025CWE-915CWE-269
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.