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–4 of 4 matching courses, lessons and labs
- LabP2Broken object-level authorization: any member edits any article (PHP, Laravel)
HBR-231 let members fix each other's typos. Now any signed-in member edits, and attaches files to, an article someone else wrote. Prove it with a second member's token, put the author rule back in the policy, and add the test that asks as another member. Harbor's ArticlePolicy (Laravel 12) answers yes to the update ability for anyone who can see the article. Show a member editing another author's article, restore the policy so only the author edits, without a one-method check or a wider rule for admins, and add a regression test. Rules: - Everything in this lab is emulated. Nothing you write is run. - Laravel authorizes through policies: fix the rule where every route that uses the ability reads it. - Leave the models, the routes and the other policies as they are.
LaravelPHPeasyA01:2025CWE-639CWE-862 - LabP2CSRF protection: the role form that lost its stamp (PHP)
Benny's admin portal stamped every form with a per-session token, and ADM-218 let the role form go without it. Find where the protection went missing, put the token check back on the role route with the class the portal already ships, keep the portal's own form working, and add a test that holds the check in place. The legacy admin portal (PHP 8.3, plain PHP on Apache) changes a user's role on the strength of the session cookie alone: ADM-218 set the cookie SameSite=None for the staff portal's frame and dropped the token check from the role form, though Csrf.php still ships. Read the role route and confirm the check is missing: in the Repeater you are the signed-in admin, whose session is the cookie PHPSESSID=0b7e41c9d25f8a3e6c1d90f4a7 (a made-up value for this lab), and a request from another site that carries that cookie but no token is accepted. Put the check back with the shipped class, and don't settle for a stricter cookie alone, a token that only has to be present, or a check whose result nothing reads; don't look for the token where the page doesn't put it, and add a route test. Csrf.php already has its own test (CsrfTest.php) and the gap was on the route, so the new test goes in admin/tests/UsersRoleCsrfTest.php, posts to /users/role without the csrf field, and asserts the response status with assertSame(403, ...). Lesson: a cookie shows who is asking, never that this page meant to ask. Anything that changes state needs something the real page holds and other sites cannot read, checked on every change, so keep the token check on the route itself and let the cookie attributes be a second layer. 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. - In this lab an origin is just a host name (the portal, a sibling subdomain, an unrelated site); the Repeater sends the session cookie you give it, as a browser would (the admin's is in the summary). - The portal's own form still has to work: it posts the token it was rendered with, in the field it already uses. - The regression test goes through the route, not the class: CsrfTest.php already covers Csrf, and the check reads admin/tests/UsersRoleCsrfTest.php for a post to /users/role and an assertSame(403, ...).
PHPmoderateA01:2025CWE-352 - LabP2Mass assignment: the account page saves every field (PHP, Laravel)
HBR-231 let the account page save its whole form in one call. Now a member who adds a field the form never offers writes it. Change a privileged field through the endpoint, put the form request and $fillable back, and add the test that sends the extra fields. Harbor's PUT /api/user (Laravel 12) fills the user from the whole request and the model guards nothing. Show a member setting their own role and suspension, let the endpoint change only the fields the form offers (a form request and $fillable), and see why refusing one field by name is not enough. Nothing runs: the app is emulated and graded on your code. Rules: - Everything in this lab is emulated. Nothing you write is compiled or run. - Leave the migration, the seeder, the sessions code and the shipped tests as they are; add your test in tests/Feature. - Role and suspension are set by admins in Admin/UserController, not through the account page.
LaravelPHPeasyA01:2025CWE-915CWE-269 - 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
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.