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 61–72 of 91 matching courses, lessons and labs
- LabP3JWT validation: the verifier that stopped asking (Kotlin)
MOB-231 rebuilt the mobile back end's access-token verifier so the 2.4 app and the web shell could share it. It no longer asks who issued a token, who it is for, or whether it expires. Get an expired token and a token for another service accepted, then pin all three again and test it. The mobile back end's access-token verifier (Ktor 3, java-jwt, Kotlin 2) is built without the issuer, the audience and the expiry presence, and with a leeway of a day. Show an expired token and a token meant for another service accepted, pin issuer, audience and expiry again, keep the session re-read that ties a token to its user, and add a test that feeds the verifier bad tokens. Kotlin has no compiler in the tab: recognizers and the emulated app grade the change, and a simulated gradle prints the build output. 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.
KtorKotlinmoderateA07:2025CWE-347CWE-345CWE-613 - LabP3Missing authentication on a critical function: the pallet hold release (Node)
Mo, GW-205: "Dock tablets can't sign in with gloves on. Make the release-hold button work without the login. Should be a quick one." Orla, ticket 4471: "THE BUTTON WORKS GREAT. IT ALSO WORKS FOR THE GUY WHO WALKED IN WITH A DELIVERY. 14 PALLETS GONE." Prove an anonymous caller can release a hold, make the handler ask who is calling, keep the dock working, and pin it with a test. The gateway's new hold-release route (Fastify 5, Node 22) is on its rule's public list and its handler never checks a session. Show an anonymous caller releasing a hold, make the handler verify the session with the auth service (the edge only checks that a token looks like one), keep staff and admins working, and add a test that a stranger is turned away. 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. - Who the caller is comes from the session service the gateway already asks; never from anything the client claims. - Leave the session lookup and the existing gateway tests as they are.
FastifyTypeScripteasyA07:2025CWE-306 - LabP3Session fixation and bare cookies: the second tab's sign-in (C#)
ORD-271 keeps a customer's session across tabs by reusing the id the browser brings, and sends the cookie with no flags. Show a session id chosen before sign-in still working after it, issue a fresh one, and set the cookie so script and plain HTTP cannot reach it. Lesson: a session id is a promise the server makes after it has seen who you are. Make it at sign-in, never accept one from before, and tell the browser how to hold it: Secure, HttpOnly, SameSite, and a lifetime. Fix the Orders service's cookie sign-in (ASP.NET Core 8) without signing anyone out early, then add a test for the id and the flags. 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. - Everyone still signs in with a username and password; the session store and the bearer handler stay as shipped.
ASP.NET CoreC#moderateA07:2025CWE-384CWE-1004CWE-614 - 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 - LabP4Public storage: the exports bucket anyone can read (Terraform on AWS)
Mo: "INFRA-188, partner accountants want the invoice exports without an account. Should be a quick one." Teo merged it and wants the plan clean before the next apply. Show who the bucket serves, then make it private again and scope the worker's role, in the Terraform. INFRA-188 opened Meridian's exports bucket to partner accountants: two public-access settings were switched off, a bucket policy lets any principal read the invoice prefix, and the worker's role was widened to every S3 action on every resource. Show that an export is served to anyone, restore the guard rails and drop the public grant, scope the worker's policy to the actions and prefix it uses, don't settle for switching the block back on while the grant and the wide role stay, don't remove the worker's write permission, and add a Terraform test that fails if the bucket opens again. Nothing is applied to a cloud: the lab reads the Terraform. Where to look: the Terraform is infra/terraform/aws/main.tf. The HTTP client's routes are GET /exports/invoices/{name} (an invoice export; September's is INV-2026-09.csv), GET /exports/archive/{name} (outside the invoice prefix; with the worker role, INV-2025-12.csv), and PUT /exports/invoices/{name} (the worker writing an export; use the role's token). Where to write the test: infra/terraform/aws/tests/exports_private.tftest.hcl; it must name aws_s3_bucket_public_access_block.exports and assert that block_public_policy == true and restrict_public_buckets == true. Keep the change to main.tf and that test; leave variables.tf and outputs.tf as they are. Lesson: storage is private by default and stays private by construction. Keep the guard rails on, give each reader a scoped identity (a signed link or a named role) rather than a public principal, and give a service the actions and the prefix it uses and nothing wider. 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 planned or applied: the lab reads the Terraform in infra/terraform/aws, and the endpoint answers as the bucket would after an apply. - Requests are sent without a sign-in or with the worker's role; the HTTP client builds them for you.
Infrastructure and pipelinesmoderateGrades infrastructureA02:2025CWE-732CWE-552CWE-250 - LabP5Path traversal: the export download that reads any file (Java)
AUTH-171 added a download link to the monthly export. It joins the file name onto the exports folder and serves whatever is there. Read a file that is not an export, then keep the download inside its folder. The Auth service's export download (Spring Boot 3.3) resolves a file name from the query against the exports 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.
Spring BootJavamoderateA01:2025CWE-22CWE-73 - LabP5Path traversal: the export download that reads any file (Node)
GW-125 added a download link to the order exports. It resolves the file name against the exports folder and serves whatever is there. Read a file that is not an export, then keep the download inside its folder. The gateway's export download (Fastify 5, Node 22) resolves a file name from the query against the exports 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.
FastifyTypeScriptmoderateA01:2025CWE-22CWE-73 - LabP5Path traversal: the export link that opens any file (C#)
ORD-284 gave finance a download link for the order exports. It combines the file name with the exports folder and serves whatever is there. Read a file that is not an export, then keep the download inside its folder. Fix it in services/orders/Controllers/ExportsController.cs, then prove it with a new test file named exactly services/orders/tests/ExportDownloadTests.cs (the check looks for that file by name; no other name counts). The test asks for a file outside the exports folder and expects not found (NotFoundObjectResult), and also asks for a normal export and expects the download. How the check reads your fix. It accepts any one of these: (1) a resolved full path (Path.GetFullPath) that is compared with the exports folder plus a trailing separator, with a refusal (not found, bad request, forbid or a throw) when it is not inside, before the file is read; the prefix may be built in the check or kept in a local, a field or a property, the check may stand alone or sit in a longer condition, and an ordinal comparison, or none named, counts; (2) a path relative to the folder (Path.GetRelativePath) that is tested for climbing out; (3) only the file name of the request used. It does not accept a check on the name as sent, a prefix without the trailing separator (a sibling folder that shares the start would pass), a culture-sensitive comparison, a check that comes after the file is read, or one that does not refuse. Press Check my work in the Brief: each check shows passed or failed, and a missing test file is named there. The orders service's export download (ASP.NET Core, .NET 8) combines a file name from the query with the exports folder without checking where the full path 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.
ASP.NET CoreC#moderateA01:2025CWE-22CWE-73 - LabP5Path traversal: the label sheet download that reads any file (Go)
INV-163: the dock printer needs a download link for pallet label sheets. It joins the name from the link onto the label folder and serves whatever is there. Show a file that is not a label sheet being read, then keep the read inside the folder. The inventory service's label sheet download (Go, net/http) joins a file name from the query onto the label folder without checking where the path lands. Show a file outside the folder being read, keep the read inside it (a check on the name, a rooted clean, or os.Root), don't settle for cleaning the name or removing one '../', 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); the lab never spells one, and the HTTP client builds them for you.
net/httpGomoderateA01:2025CWE-22CWE-73 - 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 - LabP5Zip slip: the catalog bundle that unpacks anywhere (Node)
GW-205: Mo says suppliers want to send one zip instead of forty files, and Orla has 212 photos waiting. The gateway unpacks each entry wherever its name says. Show a file landing outside the import folder, then keep every entry inside it. The gateway's catalog bundle import (Fastify 5, Node 22) resolves each zip entry's name against the import folder and writes the file there without checking where the result lands. Show a file written outside the folder, resolve and confine every entry's path, don't settle for refusing '..' or stripping '../' once, and add a test that sends an entry that climbs out. Lesson: an archive's entry names are the sender's words; resolve where each one would land and check it is still inside the target folder before writing. 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. - Entry names are sent by class (climbing, hidden climbing, absolute); the lab never spells one, and the HTTP client builds the bundle for you.
FastifyTypeScriptmoderateA01:2025CWE-22 - LabP6App Transport Security exception and a lost pin: the TestFlight build that trusted anyone (Swift)
IOS-142, Orla: "THE TESTFLIGHT BUILD HAS TO TALK TO STAGING BY FRIDAY." Staging's certificate is self-signed, so the branch opens App Transport Security and builds the app's session without the pin check. Show the app believing a device on the path, then close it again without losing the real API. The iPhone app (Swift 6, SwiftUI) gained an NSAppTransportSecurity exception in Info.plist and APIClient.live now builds its URLSession without PinnedSessionDelegate. Show it believing a certificate an on-path device signed itself, remove the exception, restore the pin check (one of the chain's keys must match a pin, after the system's own evaluation), don't settle for a delegate that never compares the key or a pin that demands every key in the chain, and add a regression test. Swift has no compiler in the browser: swift build and swift test here are simulated, and Apple-only code (the delegate, Keychain) is only parsed. 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 API 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 the phone and the gateway, and your code never reads it. - The app must still reach the real API, whose key is in `MeridianAPIPins`, and a key rotation must not lock customers out. - Swift is not compiled here. The simulated `swift test` follows your code's recognized state; the delegate and `APIClient.live` sit behind `canImport(Security)`, so on Linux they are never built or run, and only a Mac or the pipeline's `ios` job would run them.
iOS (SwiftUI)SwiftmoderateA04:2025CWE-295
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.