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 13–21 of 21 matching courses, lessons and labs
- LabP3JWT validation: the token that vouches for itself (Python)
BILL-371 gave the gateway an endpoint that says whether an access token is good. It believes whatever the token says about itself. Get an unsigned token accepted, then make the verifier decide the algorithm, the key and the claims itself. The billing service's token verifier (FastAPI, PyJWT) takes the algorithm from the token header, skips the signature when it says none, and switches expiry, issuer and audience checks off. Show an unsigned token accepted, pin HS256 and check the signature, expiry, issuer and audience, 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.
FastAPIPythonmoderateA07:2025CWE-347CWE-345CWE-613 - LabP3Webhook signatures: the call that vouches for itself (Python)
BILL-452 (Mo): "Mark invoices paid when the payment provider calls us. Should be a quick one." The endpoint believes every call, so anyone who finds the URL can pay an invoice. Show a forged delivery accepted, then make the receiver check who sent it, how old it is and whether it has already been used. The billing service's payment webhook (FastAPI) accepts any delivery: no signature check, no limit on the timestamp's age and no memory of delivery ids. Show a forged delivery accepted, verify the signature over the timestamp and the raw body, refuse stale and repeated deliveries, and add a test that feeds the receiver bad deliveries. 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. - Signatures, timestamps and delivery ids are named by class (wrong signature, stale, already seen); the lab never spells one, and the HTTP client builds them for you.
FastAPIPythonmoderateA08:2025CWE-345CWE-347CWE-294 - LabP5Path traversal: the statement download that reads any file (Python)
BILL-388 added a download link to the monthly statements. It joins the file name onto the statements folder and serves whatever is there. Read a file that is not a statement, then keep the download inside its folder. The billing service's statement download (FastAPI) joins a file name from the query onto the statements folder without checking where the result 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.
FastAPIPythonmoderateA01:2025CWE-22CWE-73 - LabP6Crypto agility: the seal that was welded shut (Python)
Wen: "14 statements sealed, 1 digest, 0 people who can say which. Legal wants the list by Friday. Rafael's inventory says 'hard-wired', and 'hard-wired' is not a plan." Branch BILL-461 seals each archived statement with one digest written into the code that makes the seal and the code that checks it. Show it with a request to the crypto inventory (Ops token in the rules), move the choice into configuration without orphaning a stored seal, commit the inventory, and test it. The Billing service (FastAPI) seals archived statements with SHA-1 named in two functions. Make the algorithm configuration, let each stored seal name its own, keep every old seal verifying and flagged for re-sealing, refuse weak algorithms for new seals, and don't settle for another digest welded in place, a weak default, or a setting that still lets a weak digest seal. 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. - Statements come from the fixtures; the lab never spells a seal value. The inventory names algorithms, never digests. - Reaching the running app: use `send` (or the HTTP Repeater) with the header `authorization`. The app has no sign-in form, so `login` has nothing to use; the lab's seeded sessions are bearer tokens. - Ops (admin) is `Bearer mrd-root-9Tn3`, for GET /api/admin/crypto-inventory. Alice (customer) is `Bearer mrd-alice-7Hq2`, for POST /api/statements/verify with the body field `id` set to S-2026-01, S-2026-02 or S-2026-03. - Find: before you edit, send the inventory request as Ops. The finding is shown when the answer reports the seal algorithm as hard-wired and weak. Send it again after your fix to see it clear. - The code change goes in services/billing/app/seal.py. Keep seal(), verify() and reseal_at() there, read the setting from the environment variable MERIDIAN_SEAL_ALGORITHM, and leave the router, archive.py and main.py alone. - The static check reads the bodies of seal() and verify() only: no digest name (sha1, md5, sha256 and the like) may be written inside seal(), not even in a list or a message, and verify() must take the algorithm from the stored seal by splitting it at the colon. - reseal_at() answers "next-write" for a seal under another algorithm than the configured one, and "never" otherwise. - The inventory (CBOM) is services/billing/cbom.json, a CycloneDX 1.6 document: "bomFormat": "CycloneDX", "specVersion": "1.6" and a "components" list. Add one component of type "cryptographic-asset" named "statement-seal", with "cryptoProperties" for the hash algorithm in use. - In that component, a "properties" list of name/value pairs: "meridian:configured-by" with the environment variable's name as the value, and "meridian:verify-only" with the algorithm that may only verify old seals. The check reads the file for the component's name and the variable's name. - The test is services/billing/tests/test_seal.py (pytest, `from app import seal`). It calls seal.verify and seal.reseal_at on an old seal (an algorithm name, a colon, then that digest of the body) and uses pytest.raises to show a weak algorithm cannot seal. - Kai: the statements archived last month have to verify next month. — k
FastAPIPythonmoderateA04:2025CWE-327CWE-328CWE-1240 - LabP6Disabled certificate verification: the settlement status that trusted anyone (Python)
BILL-452, Sam: "Show each invoice's settlement status, straight from the payment provider." Billing talks to the provider over HTTPS with verification switched off (Teo: "for now", in the spring). Show it believing a device on the path, then make it check who signed the provider's certificate. The billing service's settlement client (FastAPI, httpx) was built with verify=False. Show it accepting a certificate an on-path device signed itself, restore verification against the provider's pinned CA bundle, don't settle for a bundle with the host name check turned off, don't fall back on the default trust store (the real provider's CA is private and would stop 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. - The path to the provider is a class of condition (a certificate signed by the device itself, one issued for another name); the lab never builds one. The request's "network" field is the emulator's stand-in for what sits between billing and the provider, and your code never reads it. - Billing must still reach the real provider, whose certificate is signed by the CA in the bundle.
FastAPIPythonmoderateA04:2025CWE-295 - LabP6Five pull requests, one design: the statement stack (Python)
Meri turned Mo's monthly-statement epic into five stacked pull requests on billing. Each one reads well alone. Review the series in the Pull Request Review app: decide every pull, and flag what goes wrong between them. A repository-scale review: five AI-authored pull requests, each based on the one before, where the defects live between the pulls, not inside one. Read them in order (#1 to #5), compare what each one adds with what the earlier ones and the service already have, flag each defect in the pull that introduces it, and approve or request changes on every pull. 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. - You review the pull requests; you do not change the code. Comments name a defect class, and every decision needs a confidence. - Every pull in the series needs its own decision: approve the ones that are sound, request changes on the ones that are not. - Flag a defect in the pull that introduces it. A comment on the earlier pull it collides with names the right concern in the wrong place and earns part credit.
FastAPIPythonhardA04:2021CWE-1041CWE-755CWE-1236 - LabP7Dockerfile hardening: the image that remembered the token (Docker)
BILL-461, Mo: "Billing needs our private package index. Should be a quick one." It shipped, and Teo asked for the image report before the gate. Show what the billing image is built from, who it runs as and what it carries, then rebuild the Dockerfile so none of those is a surprise. The billing service's Dockerfile (BILL-461) builds on python:latest, never switches to a non-root user, and takes the private index's access token as a build argument that an ENV writes into a layer. Read the image report (GET /internal/image-report with the send tool, with the header Authorization: Bearer mrd-sam-2Kx6, Sam's staff session; any session in the lab's fixtures works) while it admits all three, then pin the base to a full release, run as the non-root user, and give the build the token as a secret mount, not a layer. A pin alone, a minor-version tag, or a token that is still an argument is not enough, and dropping the package install breaks the image. Edit services/billing/Dockerfile, and add services/billing/.dockerignore so the build context carries no credentials. After the edit, send the same request again: the report is the emulator's stand-in for the image your Dockerfile would build, and it reads the Dockerfile as you saved it. There is no docker command in the terminal. Graded on the parsed Dockerfile; nothing is built. Lesson: an image is a stack of layers that remember, so pin what it is built from, choose who it runs as, and hand the build a credential in a way that leaves nothing behind. 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. - Nothing is built or pulled here: the lab reads the Dockerfile as a parsed document, and the image report (GET /internal/image-report, answered to any signed-in session) is the emulator's stand-in for what the built image would say, and it follows your saved Dockerfile. - The service must still install its package and serve on port 8080 with uvicorn.
FastAPIPythonmoderateGrades infrastructureA02:2025CWE-250CWE-798CWE-1104 - LabP9Should this change exist? The export that stopped timing out (Python)
An AI agent opened BILL-478 against billing: the year-end export must stop timing out. It does. Read the ticket and finance's note, then decide whether the change should merge. The agent's pull request solves the ticket's words and not its purpose: the export no longer times out because it no longer lists every invoice. Read it against the ticket in the Pull Request Review app, flag the cut and the test that cannot see it, and request changes with the reason tied to what finance asked for. 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. - You review the pull request; you do not change the code. Comments name a defect class, and the decision needs a confidence.
FastAPIPythonmoderateA04:2021CWE-440 - LabEE1 The spec is the source: write the contract the ticket left out
BILL-412 said only "let customers download their invoices". The assistant built exactly that. Write the spec the ticket should have been, use it to find what the export gets wrong, and fix it. A FastAPI invoice export built from a one-line ticket trusts the account id in the query. Write use cases, acceptance criteria, abuse cases and non-functional requirements, fix the gap they expose, and earn points for every hidden user or abuse story your spec covers. Rules: - Everything in this lab is emulated. Nothing you write is compiled or run. - The assistant's earlier work is already in the project; you decide what stays. - Leave the sign-in and database modules as they are.
FastAPIPythoneasy35 minA01:2025CWE-639CWE-1236
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.