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 91 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: the tracking page that writes the address into itself (vanilla JS)
WEB-251 gave the shipping emails a tracking page, and the page's script writes the parcel reference and the driver's note from the link straight into its markup. Meridian's drivers are charming; the links are not always from them. Make the emulated page run something it was handed, then write both values with safe DOM APIs or encode them, and test it. A plain-JavaScript page on Meridian Web reads ?ref and ?note and puts them in with innerHTML and insertAdjacentHTML. Show a link's value becoming elements, write the values as text or encode them for their context, don't settle for stripping script tags or fixing one of the two, don't drop the values, and add a test. Lesson: an address is input like any other, and the page is where it becomes code. Put values in with textContent and createElement, which have no way to make elements out of text, and when markup is truly wanted, encode for the context the value lands in. Stripping what you remember to strip, or fixing one of two sinks, leaves the other way in. 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 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. - The customer still has to see their parcel reference and the driver's note.
JavaScripteasyA05: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 - 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 - 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 - LabP1OS command injection: the directory check that runs a shell (Java)
AUTH-262 gave support a button that asks whether the staff directory's host name resolves. The host they type goes into a command line that `sh -c` runs. Make the service run a second command, then run the lookup without a shell, with the host as one argument that only host-name characters can fill, and keep real host names working. Sam would like it back before lunch. The auth service's diagnostic endpoint (Spring Boot, ProcessBuilder) joins the host into a dig command line and runs it through sh -c. Show a second command running, run dig with the host as one argument of an argument list and allow only host-name characters, don't settle for quoting the host or filtering ';', '&' and '|', don't turn away host names with dots and hyphens, 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. - The app's only route is POST /api/diagnostics/resolve, with a JSON body field `host`. It needs a signed-in session, and this sandboxed app has no sign-in form and no /api/login (the README's dev sign-in belongs to the full docker compose setup). - Your session is Sam's (support staff): add `header.authorization="Bearer mrd-sam-2Kx6"` to every send, e.g. `send POST /api/diagnostics/resolve header.authorization="Bearer mrd-sam-2Kx6" host=directory.meridian.internal`. Without it the app answers 401. - Hosts are sent by class (a separator that starts a second command, a command substitution, a value that starts with a dash); the lab never spells one, and the HTTP client builds them for you. - Cover both classes of host: one that starts a second command, and one that starts with a dash, which dig would read as an option. - Any fix that handles both and still resolves a real host is accepted: a host-name pattern (on the record, in the controller or in command()), an end-of-options marker, or a mix. - A probe's answer says which class of host got through. The checks read what your edited code does, not one exact edit. - Real host names have dots and hyphens in them.
Spring BootJavaeasyA05:2025CWE-78CWE-77CWE-88 - LabP1OS command injection: the label printer that runs a shell (Go)
INV-166 lets dock staff print a shelf label from their phone. The printer and format they pick go into a command line that runs through sh -c. Make the service run a second command, then run the program with no shell and only the printers and formats the dock really has, and keep dock-1 working. Orla's note on the ticket: ONE TAP, PLEASE. WE SELL KETTLES. The inventory service's label endpoint (Go, net/http, os/exec) joins the printer and format into a label-print command line and runs it with sh -c. Show a second command running, run the program with one argument per value and no shell, allowlist the printer and format, don't settle for quoting the printer or filtering ';', '&' and '|', don't turn away printers with a hyphen in the name, 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. - Printers are sent by class (a separator that starts a second command, a command substitution); the lab never spells one, and the HTTP client builds them for you. - The dock has three printers: dock-1, dock-2 and office. Formats are small and large.
net/httpGoeasyA05:2025CWE-78CWE-77CWE-88 - LabP1OS command injection: the reachability check that runs a shell (Python)
BILL-419 gave support a button that pings the payment provider. The host they type goes into a command line that runs through a shell. Make the service run a second command, then pass the host as one argument and validate it, and keep real host names working. The billing service's diagnostic endpoint (FastAPI, subprocess) builds a ping command line from the host and runs it with shell=True. Show a second command running, pass the host as an argument with no shell, don't settle for filtering ';', '&' and '|', don't turn away host names with dots and hyphens, 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. - Hosts are sent by class (a separator that starts a second command, a command substitution); the lab never spells one, and the HTTP client builds them for you. - Real host names have dots and hyphens in them.
FastAPIPythoneasyA05:2025CWE-78CWE-77 - LabP1Server-side request forgery: the invoice link that reaches the metadata service (Python)
BILL-433 lets support import a supplier's invoice from a link. Billing fetches whatever address it is given, follows redirects and shows the answer. Make it hand back the instance role's credentials from the cloud metadata service, then let it fetch only from hosts you approve. The billing service's import endpoint (FastAPI, httpx) fetches any URL, follows redirects and returns a preview. Show it reading the metadata service, allow only approved hosts on the parsed URL with no redirects followed, don't settle for a deny-list of the dotted address or an allowlist that still follows redirects, don't allow no host at all, 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. - Links are sent by class (the metadata service's address, the same address as one number, an approved host's redirector); the lab never spells one, and the HTTP client builds them for you. - Support still has to import invoices from the supplier's own host.
FastAPIPythonmoderateA01:2025CWE-918 - LabP1Server-side request forgery: the partner image that reaches an internal address (Kotlin)
MOB-231 lets the apps show product images from partner CDNs. The mobile back end now fetches whatever address it is given, follows redirects and no longer limits what comes back. Make it return an internal service's answer, then restore the approved-host rule, the no-redirect client and the limits. The mobile back end's image route (Ktor 3, ImageFetcher) accepts any source, follows redirects and returns any body. Show it reading an internal address, allow only HTTPS sources on approved hosts (checked on the parsed URI) with no redirects followed and the size and content-type limits back, don't settle for a deny-list of the dotted address or an allowlist whose client still follows redirects, don't allow no host at all, 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. - `gradle` in the terminal is a simulated toolchain: its output follows your code's recognized state, nothing is compiled. - Sources are sent by class (an internal address, the same address as one number, an approved host's redirector); the lab never spells one, and the HTTP client builds them for you. - The apps still have to show images from media.meridian.shop.
KtorKotlinmoderateA01:2025CWE-918 - LabP1SQL injection: the admin user search that interpolates its text (PHP)
Mo, ADM-118: 'Admin needs to search users by name or email. Should be a quick one.' It was. The search text is dropped into the SQL that also hides admin accounts from the list, so it can rewrite that clause. Make the portal list the accounts it hides, then hand the text to PDO as a value and test it with an apostrophe in the name. The lesson: a prepared statement fixes the shape of the query before any text arrives. The legacy admin portal's user search (PHP 8.3, PDO) interpolates the search text into its SQL. Show hidden admin accounts coming back, bind the text with PDO (wildcards included), don't settle for a keyword filter or escaping, don't break partial-name search, 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. - Search text is 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. - A search for part of a name has to keep finding it.
PHPeasyA05:2025CWE-89 - LabP1SQL injection: the billing sign-in that builds its lookup with f-strings (Python)
BILL-441 let customers sign in to the billing page with their email address. Sam called it a quick one. The lookup joins whatever they typed into its SQL, in two queries. 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 billing service's new login lookup (FastAPI, psycopg) builds two queries with f-strings. Show a sign-in as someone else, bind the login as a parameter in both queries, don't settle for filtering comment markers or binding one of the two, 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.
FastAPIPythoneasyA05:2025CWE-89
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.