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–5 of 5 matching courses, lessons and labs
- LabP1Heap out-of-bounds: a length byte trusted in the label parser (C++20)
SCN-58 drops the length checks the scanner's label path repeats. Show a frame and a label that read past their buffers, put the checks back against the span, and restore the tests that pinned them. The Meridian scanner (C++20, CMake) now builds the payload and CRC views from the frame header's length byte with pointer arithmetic, takes a fixed-length GS1 element by its table width without checking the text, and indexes a rack label without checking its size. A header that claims more than arrived, or a label with a short payload, reads outside the buffer. Show each through the scan route, check the length against the span before any view is built, use first, last and subspan (or at) where an index depends on input, and restore the tests. Lesson: a length from the wire is a claim, not a bound. Nothing is compiled or sanitized; the test is shown as text only. 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. - Input is sent by class (a frame longer than its bytes, an empty label payload, a device name past the limit); the lab never spells one, and the HTTP client builds them for you. - The C++ is never compiled or run under a sanitizer; the emulated service answers as your saved code reads.
C++moderateA05:2025CWE-125CWE-129CWE-119 - LabP1Integer overflow: an unchecked run-length sum before the allocation (C++20)
SCN-61 lets long-label printers send bigger run-length frames. Show the decoder's size sum wrapping and its limit gone, then restore the checked sum before the allocation and the limit, and keep the too-large error. The Meridian scanner's rle_expand now adds each run's length into a 32-bit counter with no check, tests the total only after the loop, and DecoderSet::decode passes a larger limit instead of kMaxDecoded. Show a frame that packs a repeated block many times and one that expands past the limit through the decode route, restore the checked sum in size_t before reserve and the limit, keep Error::too_large, and add a test for a frame past the limit (shown as text). Lesson: a size computed from the input is checked, in a type wide enough for it, before anything is allocated from 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. - Input is sent by class (a repeated block packed many times, an oversized frame); the lab never spells one, and the HTTP client builds them for you. - The C++ is never compiled or sanitized, and the test you add is not run; the emulated service answers as your saved C++ reads.
C++moderateA05:2025CWE-190CWE-680CWE-789 - LabP1Use after free: a batch pointer kept across an erase (C++, RAII)
SCN-88 keeps every open batch in one vector and points each session at its batch with a raw pointer. Find where the scanner uses an iterator, a reference or a pointer after the container changed, put the batch back under a single owner, and add a unit test. The scanner's Store (C++20) now holds batches in a std::vector and sessions hold a raw Batch*. pair reads the erased session's iterator after erase and adds a batch with push_back while other sessions still point into the vector; close_batch keeps a reference to a batch across a push_back and moves from it. Read the code to find each, restore one owner with std::unique_ptr, take what you need before the container changes, and add a test that pairs past the old capacity, re-pairs a device and closes a batch. Lesson: an iterator, reference or pointer into a container is good only until the next erase or insert; give each object one owner. Nothing is compiled or sanitized here: the checks read your C++ and the emulated scanner answers as it reads. 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 request is sent by class (a re-pair of the same device); the lab never spells one, and the HTTP client builds it for you. - The C++ is never compiled or run under a sanitizer; the emulated service answers as your saved code reads, and the unit test is checked as text.
C++moderateA05:2025CWE-416CWE-825CWE-672 - LabP6Insecure randomness: the pairing token and <random> (C++)
Orla: "HANDHELD WON'T PAIR AFTER THE DOCK PC UPDATE. 11 HANDHELDS. NEED THEM BEFORE THE 14:00 TRUCK." Mo: "SCN-52 swapped getrandom for <random> so it builds on the old dock toolchain." Whoever holds a pairing token can add scans to that handheld's batch. Show the pair answer reporting a guessable token, go back to the OS's CSPRNG with its short-read and error handling, keep the duplicate-token loop, and test it. The scanner (C++20, CMake) hands each paired handheld a session token from `random_token()`, and the token is the whole secret. Branch SCN-52 draws it from a `std::mt19937` seeded with one `std::random_device` value: a general-purpose generator with a 32-bit seed whose outputs reveal its state. Restore `getrandom` with its retry on interruption and its error, keep `pair`'s loop that never reissues a live token, and don't settle for a wider seed, the clock or `rand()`, `std::random_device` alone, or a single unchecked `getrandom` call. Nothing is compiled or sanitized; the test you add is text the recognizers read. 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 C++ is never compiled and no sanitizer runs; the emulated pair route answers as your saved code reads, and the unit test you add is checked as text. - The pair answer reports the token's size in bits, never the token; the lab file spells no token. - Rafael: which guarantee did we just touch? — it's the one about tokens nobody can guess (and it is in the security doc). - Kai: a handheld that pairs twice must still lose its old token. — k
C++moderateA04:2025CWE-338CWE-330CWE-337 - LabP7Compiler hardening: the build that lost its seatbelts (C++)
SCAN-341, Orla: "The dock gateway CI takes too long. Can the scanner build do less?" It did less. Show what the scanner is compiled and linked with, then put each hardening flag and the sanitizer preset back, and say what each one stops. SCAN-341 trimmed the scanner's build: scanner/CMakeLists.txt lost the warnings-as-errors set, the stack protector, stack-clash protection, library assertions, _FORTIFY_SOURCE, PIE, RELRO with immediate binding, the non-executable stack and the ASan/UBSan options, and scanner/CMakePresets.json lost its asan preset. Read the build report (GET /internal/build-report with the send tool, with the header Authorization: Bearer mrd-sam-2Kx6, Sam's staff session; any session in the lab's fixtures works) while it admits it, then restore each flag in CMakeLists.txt and the asan preset (configure, build and test entries, with SCANNER_SANITIZE on) in CMakePresets.json. Flags without the preset, the preset without the flags, or warnings-as-errors alone are not enough, and deleting the test target to get a green build breaks the service. After the edit, send the same request again: the report is the emulator's stand-in for the build your files would produce. Nothing is compiled, linked or sanitized here (no C++ compiler runs in the tab), so the unit test a fix would add is shown as text only. Graded on the build files as text and as parsed JSON. Lesson: each flag stops one class of memory bug from becoming an exploit, or finds it before release, and a flag nobody builds with is not a control. 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 compiled, linked or run here: the lab reads CMakeLists.txt as text and CMakePresets.json as a parsed document, and the build report (GET /internal/build-report, answered to any signed-in session) is the emulator's stand-in for the build, following your saved files. - The scanner library, its executable and its test target must stay in the build.
C++moderateGrades infrastructureA02:2025CWE-693CWE-121CWE-122
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.