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 21 matching courses, lessons and labs
- 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 - 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 - LabP1SQL injection: the invoice list whose sort column goes into the ORDER BY (Python)
BILL-427 made the invoice list sortable. The column name and the direction are put into the ORDER BY as text, because a database cannot bind a column name as a value. Show the sort parameter steering the query, then make the service accept only the columns and directions the page offers. The billing service's sortable invoice list (FastAPI, psycopg) joins the sort column and direction into its ORDER BY. Show the sort parameter steering the query, allow only the listed columns and directions, don't settle for quoting or a keyword filter, keep the amount 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 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. - The page offers three columns (number, issued_on, amount_cents) and two directions; all of them have to keep working.
FastAPIPythoneasyA05:2025CWE-89 - LabP1SQL injection: the invoice search that builds its query with an f-string (Python)
BILL-402 added a search box to the invoices page. The search text goes straight into the SQL, so it can rewrite the clause that keeps you inside your own account. Pull another account's invoices through the search, then bind the text as a value and test it with an apostrophe in the name. The billing service's invoice search (FastAPI, psycopg) builds its SQL with an f-string. Show other accounts' invoices coming back, bind the search text as a parameter with its wildcards, don't settle for a keyword filter, don't break partial-number 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 an invoice number has to keep finding it.
FastAPIPythoneasyA05:2025CWE-89 - 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 - 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 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 - LabP2CSRF: the comment form that skips the token (Django)
HBR-231 made the club's phone app able to post comments by exempting the comment view from Django's CSRF check. A signed-in member's browser sends the session cookie from any page, so any page can now post as them. Post a comment as Kofi from another origin, then take the exemption off without turning the middleware off, and test it. Harbor's article pages (Django 5.2) post comments on the session cookie. `add_comment` is `@csrf_exempt` and the cookie is SameSite=None. Show another origin posting as a member, remove the exemption and keep CsrfViewMiddleware, don't settle for SameSite alone or a suffix test on the origin, don't strip the token from the app's own form, restore the softened test and add one that posts without a token. Rules: - Everything in this lab is emulated. Nothing you write is compiled or run. - You start in the Harbor Django project with HBR-231 applied; leave the JSON API and the routes as they are. - 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 comment form really does post from the app's own page, with the token Django puts in it.
DjangoPythonmoderateA01:2025CWE-352 - LabP2Mass assignment: the invoice page that saves the whole invoice (Python)
BILL-355 let customers add a purchase-order number to an invoice. It saves whatever JSON the page sends, amount and account included. Set your own invoice to nothing to prove it, then bind only what the page may change and test that extra fields are ignored. The billing service's new invoice update endpoint (FastAPI) binds the posted invoice and saves it. Show a customer changing an invoice's amount or account, fix the binding so only the PO number can change, don't settle for refusing one amount, 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 page edits the PO number only. Amounts and accounts are changed by billing staff, elsewhere.
FastAPIPythoneasyA01:2025CWE-915CWE-269 - LabP2Missing function-level authorization: the support console's routes (Python)
BILL-340 gave support a console to list invoices and flag them. The routes check that you are signed in and nothing else, so a customer can flag anyone's invoice. Prove it, check the role on every action, and pin the boundary with a test. The billing service's new admin router (FastAPI) is open to every signed-in customer. Show a customer listing every account's invoices and flagging one, restrict both actions 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. - Leave the session lookup in `app/auth.py`, the data access and the existing tests as they are.
FastAPIPythoneasyA01:2025CWE-862CWE-285 - LabP2Multi-tenant isolation: let the database hold the line (Postgres RLS)
Wen Zhao: 1. BILL-451 shipped the month-end card and the invoice page. 2. Both read the whole invoices table. 3. Show two accounts seeing each other's rows, then make the database refuse, whatever a query forgets to ask. Mo says it should be a quick one. The billing service (FastAPI, Postgres) now connects as the table owner, and the new summary and detail queries carry no account filter. Show one account reading another's rows, add a row-level security policy that the owner cannot bypass, have the service tell the database whose session this is (from the session, never from the request), and add a regression test. Rafael's note: which guarantee did we just touch? 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.
FastAPIPythonmoderateA01:2025CWE-863CWE-639CWE-284
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.