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–7 of 7 matching courses, lessons and labs
- LabP6Audit logging: the night shift the SIEM never saw (Java)
Mo, AUTH-263: "The audit table is 40 million rows and the backup hates it. Drop the denied rows, we have the event stream now. Should be a quick one." Sam, ticket 4480: "A trade customer says her account was tried all night. Teo says the SIEM view was *quiet*." Show the quiet view after a run of failed sign-ins, then make each failure an event the rule can see. The auth service no longer writes a row for a denied sign-in, and only successful sign-ins reach the SIEM's event stream (AuthEvents). Show the SIEM view staying quiet after a run of failed sign-ins, then emit one structured event per failed attempt (type, subject, source), never the password, so the failure-burst rule raises its alert. A free-text log line or a row in the audit table is not an event the rule can read. Add a test that expects the event: the file is services/auth/src/test/java/com/meridian/auth/LoginAuditTest.java, and it must sign in through the controller (for example with MockMvc, a POST to /api/login), not call login() directly, and expect the failure event (auth.login.failure). To show the quiet view, first, before you change any code, send a run of failed sign-ins and then read the SIEM alerts view at GET /api/siem/alerts: in the Repeater send GET /api/siem/alerts with the header x-failures-in-window set to the failed-run input class (in the terminal harness: send GET /api/siem/alerts header.x-failures-in-window=@failed-run). An empty alerts list is the quiet view. Lesson: authentication failures are events too: who, what, when, from where, the outcome, as fields, one per attempt, no secrets. 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. - Rafael, "What this must still guarantee": a failed sign-in still answers 401 for an unknown name and a wrong password alike, and the password never appears in any event. - The SIEM rule is shipped and stays as it is: it watches events of type auth.login.failure, grouped by subject.
Spring BootJavamoderateA09:2025CWE-778CWE-223 - LabP6Brute force and credential stuffing: the sign-in that counts and never says no (Java)
Mo, AUTH-252: "Support wants to see failed sign-ins, so keep a count. Should be a quick one." Sam, ticket 4471: "A trade customer says her account was used overnight. The log has nine thousand denied rows for her, from everywhere. *Does the door not close?*" The sign-in records failures and never acts on them. Show a run of wrong passwords on one account and one source trying many accounts going unanswered, then close the door for a while. The auth service's sign-in (Spring Boot 3, Java 21) now records every failed attempt in LoginAttempts and still answers each one. Show a run of wrong passwords on one account and one source trying many accounts both getting an answer every time, throttle the sign-in by account and by source with a pause that ends (HTTP 429), don't settle for a limit on the address alone or on the account alone, don't refuse everyone, and add a test that expects the pause. Lesson: a login throttle counts failures by who is being guessed at and by who is guessing, and the pause ends, so a customer who waits gets in. 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. - Rafael, "What this must still guarantee": a customer who has waited out the pause signs in with the right password, and a stranger's guesses never lock them out for good. - A person gets a password wrong a few times in a row. A script gets it wrong in the hundreds, or tries each account once from one place.
Spring BootJavamoderateA07:2025CWE-307CWE-799 - LabP6Fail open: the check that says yes when it breaks (Java)
AUTH-221 put a step-up check in front of sensitive actions: the caller's device must be a registered one. When the check itself fails, it says yes. Make it say no. The Auth service's step-up check (Spring Boot 3.3) looks the device up inside a try block and answers allowed from a catch of Exception. Show a request the lookup cannot read being allowed, make every failure a refusal, and add a test that makes the lookup fail. 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 input that breaks the lookup is named by class (a malformed id); the lab never spells one, and the HTTP client builds it for you.
Spring BootJavaeasyA10:2025CWE-636CWE-755CWE-703 - LabP6One attempt, two log lines: the audit trail that anyone can write (Java)
AUTH-233 gave every sign-in attempt an audit line, on a Log4j2 release the dependency report has blocked. Sam is tired of finding entries nobody made. Make an attempt write exactly what happened, and get the release cleared. The Auth service (Spring Boot 3.3, Log4j2 2.14.1) logs `"sign-in attempt for " + username` through a plain-text layout, and the dependency report blocks the release. Show one attempt writing two entries, log the username as a structured field under a JSON layout, move Log4j2 to a cleared release in the same major version (a newline filter, bare placeholders or a release that stops short do not count; neither does a major version the service cannot run on), and add a test that a line break stays inside one entry. Lesson: a log is evidence only while its lines are written by the code and not by the caller, so keep input out of the message text and let the layout encode it. The library that writes the log is part of the same trust boundary, so its advisories are read against the code that feeds 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. - The username that breaks a log line is named by class (a line break); the lab never spells one, and the HTTP client builds it for you. - Nothing is installed or audited here: the lab reads pom.xml and the saved files, and the report in audit/ is the one CI produced.
Spring BootJavamoderateA09:2025CWE-117CWE-1395CWE-532 - LabP6Reviewing an AI agent's pull request: the password change that breaks rules kept elsewhere (Spring)
An AI agent opened AUTH-212 against the auth service: a signed-in person can change their password. Every line reads fine. Decide whether it can merge, and say where it goes wrong. The agent's pull request adds a password change that checks the current password and stores the new hash correctly. The Pull Request Review app shows the diff; the rules the change must keep are in the project's files (start with docs/auth.md, then the files the change touches), which you open in the Code app or read in the terminal. Follow the change into those rules, comment on the lines where those rules are broken and pick each defect's class, then approve or request changes with a confidence from 1 to 5. 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. - This lab grades your review, not code: comment on the lines and decide. Nothing is merged.
Spring BootJavamoderateA07:2025CWE-613CWE-778 - LabP6The second factor that was only a suggestion (Java)
Rafael, AUTH-233: "Staff sign-in now takes a one-time code. Which guarantee did we just touch?" The code is checked only when one is sent, and the reset link signs you straight in. Make the code count on every path. The Auth service's staff sign-in (Spring Boot 3.3) verifies the one-time code only when the request has one, and the password-reset route ends by starting a session. Show a session obtained without the code, require the second factor wherever a session starts, and add a 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 omitted code is a field the HTTP client leaves out; the lab never writes a code that works.
Spring BootJavamoderateA07:2025CWE-304CWE-287CWE-306 - LabP6Weak password hashing: the fast digest that made sign-in instant (Java)
Mo: "The kiosk sign-in takes 80 ms. Make it instant. Should be a quick one." Branch AUTH-240 now stores new passwords as one unsalted SHA-256 digest, and the upgrade hook is a stub. Show the weak scheme in Rafael's credential report, store new passwords with a slow, salted KDF, upgrade each old row when its owner signs in, and test it. The Auth service (Spring Boot 3.3) stores new passwords as an unsalted SHA-256 digest; the bcrypt rows from before still verify, and nothing is upgraded. Move to a KDF, keep every stored row signing in, rehash on login, and don't settle for salting a fast digest, a KDF that never rehashes, or one that locks the old rows out. 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. - Passwords come from the fixtures; the lab never spells a password hash, and the report shows the scheme, never the hash. - Kai: the customers who signed up last week still have to sign in. — k
Spring BootJavamoderateA04:2025CWE-916CWE-759CWE-328
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.