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–6 of 6 matching courses, lessons and labs
- LabP1Open redirect: the share link that walks a reader off Harbor (Ruby, Rails)
HBR-262 adds the share link partner sites print under an article. The action redirects to whatever `return` says and tells Rails that is fine. Show a Harbor link sending a reader to another site, then let it redirect only to Harbor's own hosts, and add the test that checks it. Harbor's new share action (Rails 8.1, API mode) calls `redirect_to params[:return], allow_other_host: true` without looking at the address. Show a reader being sent to another host, compare the parsed address's host to a list you wrote, don't settle for a leading-slash test (an address that begins with two slashes is another host to a browser), don't just drop the flag (Rails then refuses Harbor's partners too), and add a regression test. Lesson: an address from the request is a claim, not a destination. Rails' `allow_other_host: true` switches its own guard off; put yours in its place, on the parsed URI. Rules: - Everything in this lab is emulated. Nothing you write is compiled or run. - Addresses are sent by class (an address on another host, an address with no scheme); the lab never spells one, and the HTTP client builds them for you. - Partner pages still have to be sent back to Harbor's own pages, and a share link with no return address still goes to the article. - Leave the models, the other controllers and the shipped tests as they are.
RailsRubyeasyA01:2025CWE-601 - LabP1SQL injection: the order history whose sort and status go into the query (Ruby)
SF-114 made the storefront's order history sortable and filterable by status. The sort goes into `order` wrapped in Arel.sql, and the status goes into a `where` string. Show either steering the query (GET /orders with the send tool and the header Authorization: Bearer mrd-alice-7Hq2, Alice's customer session; the page's own sign-in form is not part of this lab), then accept only the columns and directions the page offers and bind the status as a value. The storefront's order history (Rails 8, Active Record) joins the sort column, the direction and the status filter into SQL text. Show the parameters steering the query, allow only the listed columns and directions, bind the status, don't settle for a keyword filter or fixing only one of the two, keep the total 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 and status 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. - Hand the order a column-to-direction pair, never SQL text: even a value you have checked against a list still counts as joined if it is interpolated into a string passed to order. Bind the status with a placeholder or a hash condition. - The regression test calls Order.history with a sort that is not one of the three columns and with a status that has an apostrophe in it; the reference test shows the shape. - The page offers three columns (created_at, total_cents, status) and two directions; all of them have to keep working, and an unlisted column falls back to the placed date as the catalog's does.
RailsRubyeasyA05:2025CWE-89 - LabP1Unsafe deserialization: the share token read with Marshal (Ruby)
STORE-231 reads the display settings in a share link with Marshal.load. Show the storefront accepting a Marshal stream from the visitor, then read the settings as plain data instead. The Meridian storefront (Ruby 3.4, Rails 8) rebuilds a Base64 Marshal dump from the view parameter, so the sender decides which classes get created. Show a stream being accepted, replace it with JSON read into DisplayPreferences, don't settle for a type check after the load, and add a test that sends a Marshal stream. Lesson: a loader that rebuilds any type is an interpreter for what the sender writes. Checks after the fact let the work happen first; use a data-only format and read it into the one type you expect. 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 Marshal stream holding a plain value); the lab never spells one, and the HTTP client builds them for you.
RailsRubymoderateA08:2025CWE-502 - LabP2Broken object-level authorization: any order, by id (Rails)
ST-52 lets the order page open from the receipt link and from support. It now opens anyone's order. Prove it with two accounts, scope the find to the signed-in user's account again, and add the test that would have caught it. The storefront's order page (Rails 8, Ruby 3.4) finds an order by id alone and shows it to any signed-in customer who knows the id. Show a customer reading another account's order, scope the find to current_user's account so another account's order looks like no order, 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 session lookup, the models and the existing storefront tests as they are.
RailsRubyeasyA01:2025CWE-639CWE-284CWE-862 - LabP2CSRF: the storefront that stopped checking the token (Rails)
STORE-231 let a reseller's portal post the storefront's account forms, and switched off Rails' forgery check for the whole app to do it. The session cookie goes with every request the browser makes to the shop, whichever page made it. Change Alice's email without the page's token, then restore the check, and test it. The storefront (Rails 8) answers an email change on the strength of the session cookie alone, because ApplicationController skips forgery protection. Show a post without the authenticity token changing it, restore protect_from_forgery for the whole app (not an except list or a skip in one controller), keep the token on the app's own form, and add a request test that posts without the token. 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 Repeater sends the session cookie you give it, as a browser would, and the authenticity token only if you put it in the body. - The shop's own pages carry a token in every form, and the account form really is posted from the shop's own origin.
RailsRubymoderateA01:2025CWE-352 - 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
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.