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–8 of 8 matching courses, lessons and labs
- LabP1Open redirect and header injection: the label scan that walks a phone off Meridian (Go)
INV-141 sends a scanned pallet label's phone back to the address in `return` and shows the scanner's note in a response header, both exactly as they came. Show it redirecting off Meridian, then let it redirect only to Meridian's own hosts and accept only a plain note. Orla: "14 PALLETS ARE WAITING ON THIS. Fenwick has already scanned himself twice." The inventory service's new scan page (Go 1.22, net/http) redirects to whatever `return` says and copies `note` into the X-Scan-Note header. Show a phone being sent to another site and the note adding a header line, compare the parsed URL's host to a list of Meridian's hosts, check the note's shape before it reaches the header, don't settle for a prefix test on the text, an allowlist with the note unchecked, or a note check with the redirect still open, don't allow no host at all, and add a regression test. Lesson: an address or a value from the request is a claim, not a destination or a header line. Compare the parsed host to a list you wrote, never a prefix of the text, and allow only the shape a header value has. Go's header writer happens to flatten line breaks; the next stack you ship on may not. 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. - Addresses and notes are sent by class (an address on another host, a look-alike host, an address with no scheme, a note with a line break); the lab never spells one, and the HTTP client builds them for you. - Dock phones still have to be sent back to Meridian's own pallet pages, and a plain note still has to be shown.
net/httpGomoderateA01:2025CWE-601CWE-113 - LabP1Open redirect: the sign-in link that walks a member off Harbor (chi)
HBR-231 adds `GET /api/continue`, the page the club's sign-in emails link to, and sends the reader to the address in `return` exactly as it came. Show it sending a reader to another site, then let it redirect only to Harbor's own hosts. Harbor's new continue endpoint (chi 5.5 on Go, plain net/http handlers) redirects to whatever `return` says. Show a reader being sent to another site, compare the parsed URL's host to a list of the club's hosts, don't settle for a prefix test on the text, don't allow no host at all, and add a regression test. Lesson: an address from the request is a claim, not a destination. Compare the parsed host to a list you wrote, never a prefix of the text. Rules: - Everything in this lab is emulated. Nothing you write is compiled or run. - Addresses are sent by class (an address on another host, a look-alike host, an address with no scheme); the lab never spells one, and the HTTP client builds them for you. - Readers still have to be sent back to Harbor's own pages. - Leave the router, the middleware and the shipped tests as they are.
chiGoeasyA01:2025CWE-601 - LabP1OS command injection: the label printer that runs a shell (Go)
INV-166 lets dock staff print a shelf label from their phone. The printer and format they pick go into a command line that runs through sh -c. Make the service run a second command, then run the program with no shell and only the printers and formats the dock really has, and keep dock-1 working. Orla's note on the ticket: ONE TAP, PLEASE. WE SELL KETTLES. The inventory service's label endpoint (Go, net/http, os/exec) joins the printer and format into a label-print command line and runs it with sh -c. Show a second command running, run the program with one argument per value and no shell, allowlist the printer and format, don't settle for quoting the printer or filtering ';', '&' and '|', don't turn away printers with a hyphen in the name, 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. - Printers are sent by class (a separator that starts a second command, a command substitution); the lab never spells one, and the HTTP client builds them for you. - The dock has three printers: dock-1, dock-2 and office. Formats are small and large.
net/httpGoeasyA05:2025CWE-78CWE-77CWE-88 - LabP2Broken object-level authorization: any member rewrites any article (Go, Gin)
HBR-231 let co-editors fix typos on Harbor articles. The update handler no longer asks whose article it is, so any member edits any article. Prove it with two accounts, put the ownership check back in the handler, and add the test that would have caught it. Harbor's article update handler (Gin 1.12, Go) lost its author comparison, so any signed-in caller, an admin too, rewrites another member's published article. Show a member overwriting someone else's article, restore the check in the handler, make sure an author 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. - Gin's middleware only says who is signed in; ownership is each handler's to check. - Leave the models, the middleware, the router and the other handlers as they are.
GinGoeasyA01:2025CWE-639CWE-284CWE-862 - LabP4Race condition and double spend: the pallet credit that paid out twice (Go)
INV-158 lets the dock spend a pallet-deposit credit. Two phones tapped at the same moment and Orla's 40-credit pallet paid out 60. Show the credit being spent twice, then make a spend one atomic step that cannot go below zero, make asking twice the same as asking once, and prove it with a test. Orla: "CR-2041. 40 CREDITS. IT PAID OUT 60. FENWICK WAS NOT INVOLVED THIS TIME (HE WAS INVOLVED)." The inventory service's new redeem route (Go 1.22, net/http) reads a credit's balance, checks it covers the amount, then writes the smaller balance back: two steps, and a second request fits between them. Show a burst of redeems and a retried redeem each spending the credit twice, then let the database check and subtract in one statement, take an Idempotency-Key and store it with the spend so a retry spends nothing, don't settle for a lock inside one process (the service runs on two replicas), an atomic spend with no key, or a key with the balance still read and then written, don't refuse a spend of the whole balance, and add a regression test that runs requests together and retries one. Lesson: check-then-act is two steps and another request fits between them. Let the database do the check and the write as one statement, and give each spend a key so asking twice is the same as asking once. The grader replays your route the way the range emulates it: a burst over two replicas and a retry after a timeout. 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 range emulates the replay: a request marked as a burst stands for several copies sent at once over the service's two replicas, and one marked as a retry for the same request sent again. The lab never writes a request storm, and the HTTP client builds them for you. - Dock phones still have to spend part of a credit, and the whole of it, and a spend larger than the balance is still refused.
net/httpGohardA06:2025CWE-362CWE-367CWE-799 - 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 - LabP6Disabled certificate verification: the pallet ETA that trusted anyone (Go)
INV-163, Orla: "14 PALLETS OF KETTLES ARE SOMEWHERE ON THE M6. PUT THE SUPPLIER'S ETA ON THE DOCK SCREEN." Inventory asks the freight company over HTTPS with the certificate check skipped (Kofi: "for now", since spring). Show it believing a device on the path, then make it ask who signed. The inventory service's supplier client (Go, net/http) sets InsecureSkipVerify. Show it accepting a certificate an on-path device signed itself, restore verification against the freight company's pinned CA bundle, don't settle for a callback that checks the chain but not the host name, don't fall back on the system roots (the supplier'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 supplier 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 inventory and the supplier, and your code never reads it. - Inventory must still reach the real freight service, whose certificate is signed by the CA in the bundle.
net/httpGomoderateA04:2025CWE-295 - LabEE3 Reviewing at AI volume: the one file in twelve that matters
The coding agent's PR-311 touches twelve files and says it follows the existing auth patterns. Read it risk-first, find the change that decides who gets power, fix it, pin it with a test, and teach the next agent the rule. A large agent-written Go PR adds team management. Most of it is routine; one handler lets the wrong people add members with any role. Review where the risk is, fix the handler, add the regression test and a line in the assistants' rules file. 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 store and the routes as they are.
net/httpGomoderate35 minA01:2025CWE-269CWE-915
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.