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 73–84 of 134 matching courses, lessons and labs
- LabP2Nonces and capability checks: the suspend link that skips both (WordPress)
HBR-244 let the harbormaster suspend a member from a link in the moderation email, and the members screen's handler stopped checking its nonce and the user's capability. A signed-in browser sends the wp-admin cookie from any page, and any signed-in member can reach admin-post.php. Show both gaps, put both checks back, and test them. Harbor's WordPress plugin (WordPress 6.8) suspends and reinstates members from Users → Harbor members, through forms that post to admin-post.php on the wp-admin session cookie. HBR-244 took the `wp_nonce_field` off the form and the `check_admin_referer` and `current_user_can` calls out of `Harbor_Members_Page::process`, and softened two assertions in tests/test-security.php. In the Repeater you are signed in as Ines, an admin (the cookie in the Brief, a made-up value for this lab); a post from another page that carries it but no nonce is accepted, and so is one from Marta, a member, with her own nonce. Put both checks back: the nonce for this member's form, which says this page meant to post, and the capability, which says this user may. Neither is enough alone. Don't settle for a nonce that only has to be present, a call whose answer nothing reads, or a check on an action the form doesn't use; don't leave the field off the form; restore the two assertions and add tests/test-members-forms.php, which posts without a nonce and as a member and asserts the post is refused with assertFalse. Rules: - Everything in this lab is emulated. Nothing you write is compiled or run: the plugin's PHP has not run on Forge, so this lab reads your code rather than running it. - You start in the Harbor WordPress plugin with HBR-244 applied; leave the REST API and the roles as they are. - The Repeater sends the session cookie you give it, as a browser would; each cookie and nonce in the Brief is made up for this lab. - The members screen's forms really do post from wp-admin, with the nonce WordPress puts in them.
WordPressPHPmoderateA01:2025CWE-352CWE-862 - LabP2Prototype pollution: the preferences merge that follows every key (Express)
HBR-244 lets Harbor members paste display-preference overrides, merged over the defaults. The merge follows whatever key it is handed. Show a setting changing something it never named, then make the merge safe and test it. Harbor's preferences route (Express 5, Node) merges pasted JSON over the defaults with a recursive mergeDeep that follows every key. Show a setting that lands on the object all plain objects share, merge safely (a null-prototype copy, or a skip-list of the keys that lead to it), don't settle for filtering the one famous key, keep real overrides working, and add a regression test. Lesson: parsed JSON is data, not structure; a merge decides which names it follows, so decide on purpose. Rules: - Everything in this lab is emulated. Nothing you write is compiled or run. - Settings are sent by class (aimed at the prototype by key, through the constructor); the lab never spells one, and the HTTP client builds them for you. - Members may override any display setting. Nothing a member pastes may change anything it did not name. - Leave the route, `pick`, the models and the shipped tests as they are.
ExpressJavaScriptmoderateA05:2025CWE-1321CWE-915 - LabP2Prototype pollution: the theme merge that follows every key (Node)
GW-209 lets a shop paste storefront theme overrides, merged over the defaults. Mo called it a quick one; Kai asked what the merge does with a key it did not expect. Show a setting changing something it never named, then make the merge safe and test it. The gateway's storefront theme route (Fastify 5, Node 22) merges pasted JSON over the defaults with a recursive mergeDeep that follows every key. Show a setting that lands on the object all plain objects share, merge safely (a null-prototype copy, or a skip-list of the keys that lead to it), don't settle for filtering the one famous key, keep real overrides working, and add a regression test. Lesson: parsed JSON is data, not structure; a merge decides which names it follows, so decide on purpose. 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. - Settings are sent by class (aimed at the prototype by key, through the constructor); the lab never spells one, and the HTTP client builds them for you. - Shops may override any theme setting. Nothing a shop pastes may change anything it did not name.
FastifyTypeScriptmoderateA05:2025CWE-1321CWE-915 - LabP2Reviewing an AI agent's pull request: the cancel that works for everyone's orders (C#)
An AI agent opened ORD-244 against the Orders service: a customer can cancel an order that has not shipped. It works, and its test passes. Review the diff, find what the ticket never asked about, and fix it. The agent's pull request (ORD-244) adds a cancel endpoint to the Orders service, with a test, and every check in the ticket passes. Do four things. (1) Review: open the pull request in the Pull Request Review app (the `review` tool in the harness), comment on each line you think is wrong with its defect class and on any test that is missing, then request changes. (2) Show it: with the Repeater (the `send` tool), cancel an order with a token that does not belong to its account. The seeded customers are alice (account 1001, order 5001, header Authorization: Bearer mrd-alice-7Hq2) and bram (account 1002, order 5101, header Authorization: Bearer mrd-bram-4Vd9); the app has no sign-in form, so send the token as a header, for example `send POST /api/orders/5001/cancel header.authorization="Bearer mrd-alice-7Hq2"`. (3) Fix the service so a customer's cancel only ever reaches their own account's orders, without breaking the owners. (4) Add a regression test to services/orders/tests/OrderCancelTests.cs; the seeded names for tests are in services/orders/tests/TestData.cs. 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 order validator and the session code as they are.
ASP.NET CoreC#moderateA01:2025CWE-639CWE-862 - LabP2Reviewing an AI agent's pull request: the cart save that believes the body (Node)
An AI agent opened GW-160 against the gateway: carts open within the caller's account, and the cart page saves its edits. Review the diff, find what it got wrong, and fix the handler. The agent's pull request fixes the cart lookup but saves the whole request body over the stored cart. Review it in the Pull Request Review app, show a customer changing a field that only the server may set, fix the save so only the packer note is written, and add the test that asks for 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. - Leave the session lookup, the cart store and the existing gateway tests as they are.
FastifyTypeScriptmoderateA01:2025CWE-915CWE-639 - LabP2Reviewing an AI agent's pull request: the pricing loop copied twice (C#)
An AI agent opened ORD-251 against the Orders service: reorder an earlier order, and quote it at today's prices. Review the diff, flag what is copied and what has already drifted, and decide. The agent's pull request copies the order store's pricing loop into a reorder method and again into a quote method. The reorder copy still matches the original; the quote copy has drifted from it. Review the diff in the Pull Request Review app, name each defect by its class, and request changes with your confidence. 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. - This is a review: you do not change the code. Comment on the lines at fault, name the class, then decide. - Your first approve or request changes is final, and so are the comments made before it.
ASP.NET CoreC#moderateCWE-1041CWE-1109 - LabP2Strong parameters: the account form that permits everything (Rails)
SF-231 let the account form save whatever the user form has, role and account included. Promote your own user to prove it, then permit only the email and test that extra fields are ignored. The storefront's account update (Rails 8, Ruby 3.4) permits every key under the user. Show a customer changing their role or their account, fix the controller so only the email can change, don't settle for refusing one role, 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 account form edits the email address only. Roles and accounts are staff decisions.
RailsRubyeasyA01:2025CWE-915CWE-269 - LabP3Artifact signing: the shelf is not a witness (Node)
REL-318 (Mo): "Promote the nightly build to deploy by itself. Should be a quick one." The promoter takes whatever the registry lists, so anything that lands there ships. Show a release with a forged signature promoted, then make the promoter check the digest, the signature and who built it. The background worker's release promoter (Node) returns true for every release: no digest check, no signature check, no look at the provenance's builder. Show an unsigned release promoted, verify the digest, the signature over it and the builder before anything is promoted, and add a test that feeds the promoter bad releases. 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 and builder identities are named by class (wrong signature, outside builder); the lab never spells one, and the HTTP client builds them for you.
TypeScriptmoderateA08:2025CWE-494CWE-347CWE-345 - LabP3JWT validation: the token that signs its own pass (C#)
ORD-283 gave the Orders service an endpoint that says whether an access token is good. It will believe a token that carries no signature at all. Get one accepted, then make the verifier decide the algorithm, the key and the claims itself. The Orders service's token verifier (ASP.NET Core 8, JwtSecurityTokenHandler) does not require a signature, never pins the algorithm, and switches off the issuer, audience and lifetime checks. Show an unsigned token accepted, pin HS256 and turn the checks on, 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.
ASP.NET CoreC#moderateA07:2025CWE-347CWE-345CWE-613 - LabP3JWT validation: the token that vouches for itself (Java)
AUTH-163 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 Auth service's token verifier (Spring Boot 3.3) takes the algorithm from the token header, skips the signature when it says none, and ignores expiry, issuer and audience. 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.
Spring BootJavamoderateA07:2025CWE-347CWE-345CWE-613 - LabP3JWT validation: the token that vouches for itself (Node)
GW-118 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 gateway's token verifier (Fastify 5, jsonwebtoken) hands back the claims of a token whose header says none, takes the algorithm from the token otherwise, and ignores expiry; issuer and audience are never asked for. 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.
FastifyTypeScriptmoderateA07:2025CWE-347CWE-345CWE-613 - 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
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.