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–12 of 16 matching courses, lessons and labs
- LabP1OS command injection: the directory check that runs a shell (Java)
AUTH-262 gave support a button that asks whether the staff directory's host name resolves. The host they type goes into a command line that `sh -c` runs. Make the service run a second command, then run the lookup without a shell, with the host as one argument that only host-name characters can fill, and keep real host names working. Sam would like it back before lunch. The auth service's diagnostic endpoint (Spring Boot, ProcessBuilder) joins the host into a dig command line and runs it through sh -c. Show a second command running, run dig with the host as one argument of an argument list and allow only host-name characters, don't settle for quoting the host or filtering ';', '&' and '|', don't turn away host names with dots and hyphens, 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 app's only route is POST /api/diagnostics/resolve, with a JSON body field `host`. It needs a signed-in session, and this sandboxed app has no sign-in form and no /api/login (the README's dev sign-in belongs to the full docker compose setup). - Your session is Sam's (support staff): add `header.authorization="Bearer mrd-sam-2Kx6"` to every send, e.g. `send POST /api/diagnostics/resolve header.authorization="Bearer mrd-sam-2Kx6" host=directory.meridian.internal`. Without it the app answers 401. - Hosts are sent by class (a separator that starts a second command, a command substitution, a value that starts with a dash); the lab never spells one, and the HTTP client builds them for you. - Cover both classes of host: one that starts a second command, and one that starts with a dash, which dig would read as an option. - Any fix that handles both and still resolves a real host is accepted: a host-name pattern (on the record, in the controller or in command()), an end-of-options marker, or a mix. - A probe's answer says which class of host got through. The checks read what your edited code does, not one exact edit. - Real host names have dots and hyphens in them.
Spring BootJavaeasyA05:2025CWE-78CWE-77CWE-88 - LabP1SQL injection: the sign-in that builds its query from the login (Java)
AUTH-204 let people sign in with their email address. The lookup joins whatever they typed into its SQL. Sign in as an admin without knowing a password, then make the database receive the login as a value, and test it with a name that has an apostrophe in it. The Auth service's new login lookup (Spring Boot 3.3, JdbcTemplate) joins the typed login into SQL in two places. Show a sign-in as someone else, bind the login as a parameter, don't settle for filtering comment markers or binding one of the two places, don't lock out names with apostrophes, 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. - Logins are sent by class (a quote that steers the query, a condition that is always true); the lab never spells one, and the HTTP client builds them for you. - People really do have apostrophes in their names and email addresses.
Spring BootJavaeasyA05:2025CWE-89 - LabP1Unsafe deserialization: the preferences header read as Java objects (Java)
AUTH-209 reads the web app's display preferences from a header with ObjectInputStream. Show the service accepting a Java object stream from the client, then read the preferences as plain data instead. The Auth service (Spring Boot 3.3) rebuilds a Base64 Java object stream from a request header, so the sender decides which classes get created. Show a stream being accepted, replace it with JSON read into the Preferences record, don't settle for a deny-list filter or a type check after the read, and add a test that sends an object stream. Lesson: a deserializer that rebuilds any type is an interpreter for what the sender writes. Filters and after-the-fact checks 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 (an object stream holding a plain value, one naming a collection); the lab never spells one, and the HTTP client builds them for you.
Spring BootJavamoderateA08:2025CWE-502 - LabP2Broken object-level authorization: any colleague's card, by id (Java)
AUTH-181 shipped the team directory: a colleague's card opens by id. It opens any user's card, in any account. Prove it with two accounts, scope the lookup, and add the test that would have caught it. The auth service's new directory endpoint (Spring Boot 3.3) returns a user to any signed-in caller who knows the id. Show a customer reading another account's user, fix the lookup so a user in another account looks like no user, 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 login controller, the token service and the password code as they are.
Spring BootJavaeasyA01:2025CWE-639CWE-284CWE-862 - LabP2Mass assignment: the profile page that saves the whole user (Java)
AUTH-158 let people edit their profile. It saves whatever JSON the browser sends, role and account included. Make yourself an admin to prove it, then bind only what the form may change and test that extra fields are ignored. The Auth service's new profile endpoint (Spring Boot 3.3) binds the request body onto the user record and saves it. Show a customer changing their own role and account, fix the binding so only the username 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 profile form edits the username only. Role and account are changed by admins, elsewhere.
Spring BootJavaeasyA01:2025CWE-915CWE-269 - LabP2Missing function-level authorization: the support console's routes (Java)
AUTH-192 gave support a console to list users and sign them out. The routes check that you are signed in and nothing else, so a customer can sign anyone out. Prove it, check the role on every action, and pin the boundary with a test. The auth service's new admin controller (Spring Boot 3.3) is open to every signed-in customer. Show a customer listing every user and signing one out, restrict both actions to staff and admins without locking either out, and add a test that a customer is forbidden. 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. - Roles come from the session, which the service already reads; never from anything the client sends. - Leave the login controller, the token service and the password code as they are.
Spring BootJavaeasyA01:2025CWE-862CWE-285 - LabP3JWT validation: the token that vouches for itself (Java)
AUTH-163 gave the gateway an endpoint that says whether an access token is good. It believes whatever the token says about itself. Get an unsigned token accepted, then make the verifier decide the algorithm, the key and the claims itself. The Auth service's token verifier (Spring Boot 3.3) takes the algorithm from the token header, skips the signature when it says none, and ignores expiry, issuer and audience. Show an unsigned token accepted, pin HS256 and check the signature, expiry, issuer and audience, and add a test that feeds the verifier bad tokens. 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. - Tokens are named by class (unsigned, expired, wrong audience); the lab never spells one, and the HTTP client builds them for you.
Spring BootJavamoderateA07:2025CWE-347CWE-345CWE-613 - LabP3OAuth misconfiguration: the code that goes wherever it is told (Java)
AUTH-247, Mo: "Sign in with Meridian on the kiosk app, should be a quick one." It works. It also sends the sign-in code to whatever return address the request names, never insists on `state`, and takes a PKCE challenge only when one turns up. Show a code going to an address the kiosk never registered, then make the service match, require and check what the kiosk's flow depends on. The Auth service's new OAuth authorize and token endpoints (Spring Boot 3.3) serve the kiosk app, a public client. Show the code sent to an unregistered address, then match the registered callback exactly, require `state` and an S256 challenge, check the verifier at the token step, don't settle for a prefix test, for redirect and state without PKCE, or for a challenge that is asked for and never checked, and add a test. Lesson: in the authorization code flow, the registered callback is the boundary (compare it whole, never by prefix), `state` ties the answer to the person who started the sign-in, and PKCE ties the code to the app that asked for it. Rafael: "What this must still guarantee: a code goes only where the kiosk registered, and only the kiosk that asked can spend 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. - Return addresses and verifiers are sent by class (an address the kiosk never registered, the registered address with more after it, a verifier that is not the one the sign-in started with); the lab never spells one, and the HTTP client builds them for you. - The kiosk's own sign-in, with its registered callback, `state`, and S256 challenge and verifier, must keep working.
Spring BootJavamoderateA01:2025CWE-601CWE-352CWE-287 - LabP5Path traversal: the export download that reads any file (Java)
AUTH-171 added a download link to the monthly export. It joins the file name onto the exports folder and serves whatever is there. Read a file that is not an export, then keep the download inside its folder. The Auth service's export download (Spring Boot 3.3) resolves a file name from the query against the exports folder without checking where the result lands. Show a file outside the folder being read, confine the path, don't settle for refusing '..' or stripping '../' once, 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, hidden climbing, absolute); the lab never spells one, and the HTTP client builds them for you.
Spring BootJavamoderateA01:2025CWE-22CWE-73 - 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
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.