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 19 matching courses, lessons and labs
- LabP6App Transport Security exception and a lost pin: the TestFlight build that trusted anyone (Swift)
IOS-142, Orla: "THE TESTFLIGHT BUILD HAS TO TALK TO STAGING BY FRIDAY." Staging's certificate is self-signed, so the branch opens App Transport Security and builds the app's session without the pin check. Show the app believing a device on the path, then close it again without losing the real API. The iPhone app (Swift 6, SwiftUI) gained an NSAppTransportSecurity exception in Info.plist and APIClient.live now builds its URLSession without PinnedSessionDelegate. Show it believing a certificate an on-path device signed itself, remove the exception, restore the pin check (one of the chain's keys must match a pin, after the system's own evaluation), don't settle for a delegate that never compares the key or a pin that demands every key in the chain, and add a regression test. Swift has no compiler in the browser: swift build and swift test here are simulated, and Apple-only code (the delegate, Keychain) is only parsed. 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 API 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 the phone and the gateway, and your code never reads it. - The app must still reach the real API, whose key is in `MeridianAPIPins`, and a key rotation must not lock customers out. - Swift is not compiled here. The simulated `swift test` follows your code's recognized state; the delegate and `APIClient.live` sit behind `canImport(Security)`, so on Linux they are never built or run, and only a Mac or the pipeline's `ios` job would run them.
iOS (SwiftUI)SwiftmoderateA04:2025CWE-295 - 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 - 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 - LabP6Disabled certificate verification: the settlement status that trusted anyone (Python)
BILL-452, Sam: "Show each invoice's settlement status, straight from the payment provider." Billing talks to the provider over HTTPS with verification switched off (Teo: "for now", in the spring). Show it believing a device on the path, then make it check who signed the provider's certificate. The billing service's settlement client (FastAPI, httpx) was built with verify=False. Show it accepting a certificate an on-path device signed itself, restore verification against the provider's pinned CA bundle, don't settle for a bundle with the host name check turned off, don't fall back on the default trust store (the real provider'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 provider 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 billing and the provider, and your code never reads it. - Billing must still reach the real provider, whose certificate is signed by the CA in the bundle.
FastAPIPythonmoderateA04:2025CWE-295 - 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 - LabP6Five pull requests, one design: the statement stack (Python)
Meri turned Mo's monthly-statement epic into five stacked pull requests on billing. Each one reads well alone. Review the series in the Pull Request Review app: decide every pull, and flag what goes wrong between them. A repository-scale review: five AI-authored pull requests, each based on the one before, where the defects live between the pulls, not inside one. Read them in order (#1 to #5), compare what each one adds with what the earlier ones and the service already have, flag each defect in the pull that introduces it, and approve or request changes on every pull. 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. - You review the pull requests; you do not change the code. Comments name a defect class, and every decision needs a confidence. - Every pull in the series needs its own decision: approve the ones that are sound, request changes on the ones that are not. - Flag a defect in the pull that introduces it. A comment on the earlier pull it collides with names the right concern in the wrong place and earns part credit.
FastAPIPythonhardA04:2021CWE-1041CWE-755CWE-1236 - LabP6Hard-coded key, weak cipher mode: locker pickup passes (C#)
ORD-257 seals the note on a locker pickup pass with AES under a key that is a string in the source. Show what the ciphertext gives away, move to authenticated encryption with a key from the key service, and add the test that a changed pass is refused. The Orders service (ASP.NET Core 8) seals pickup-pass notes with AES in ECB mode under one key committed to the repository, and the key-management service wired in beside it is never asked for a key. Show identical blocks in the pass, replace the sealer with AES-GCM under a data key from the key service and a fresh nonce for each pass, keep passes opening for their owners, 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. - Use the key service the branch already wires in (`IDataKeys`); do not add a second one. - Leave the order validator and the session code as they are.
ASP.NET CoreC#moderateA04:2025CWE-321CWE-798CWE-327 - LabP6Keys out of the APK: the courier app's maps key (Kotlin)
COU-188 ships a maps key inside the courier app: in the build, in the resources and in a header on every call. Show that the key opens the back end for anyone, take it out, and keep the app on the token exchange. The courier app (Kotlin 2.2, Jetpack Compose) now carries a maps key as a `buildConfigField`, a string resource and a header `BffClient` adds to every request, so anyone who unpacks the APK holds it. Show the back end accepting that key, remove it from the build, the resources and the client, keep sign-in on the badge-and-code exchange for a short-lived session, and add a test that the build carries no key. Kotlin has no compiler in the browser: Gradle here is simulated, and its output follows your code's recognized state. 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. - Everything in this lab is emulated. Nothing you write is compiled or run. - `gradle` in the terminal is a simulated toolchain: its output follows your code's recognized state, nothing is compiled. - Do not move the key to another place in the app (a properties file, an environment variable read at build time, an encoded string): whatever is built into the APK is in every copy. - Leave the token store, the view model and the delivery-link code as they are.
Android (Jetpack Compose)KotlinmoderateA04:2025CWE-798CWE-321CWE-522 - LabP6Keys out of the bundle: the pickup-map key in the iPhone app (Swift)
IOS-212 put the partner catalog's API key in the build settings, so it is in the app on every phone. Show the key in what ships, take it out of the bundle, the config and the client, and add the test that only the user's token is sent. The Meridian iPhone app (Swift 6, SwiftUI) read a key from Shared.xcconfig through Info.plist into AppConfig and sent it on every request, though the project's rule is public values only: an app bundle can be unzipped by anyone. Show the key in the shipped app and that it opens the API alone, remove it from the xcconfig, the plist, AppConfig and APIClient so the signed-in user's token is the only credential sent (the back end holds any key), and add a regression test. Swift has no compiler in the browser: swift build and swift test here are simulated and follow your code's recognized state. The Keychain store and the pinning delegate are only parsed; the simulated swift test is the Linux run, which leaves them 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. - Do not move the key to another file or into the Swift source: anything in the bundle ships. - Leave the pins, the Keychain store and the deep-link code as they are.
iOS (SwiftUI)SwifteasyA04:2025CWE-798CWE-321CWE-312 - 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 - LabP6Pod security: the worker that runs the night shift (Kubernetes)
Teo: 'WRK-118 got the nightly brew report out, and the worker pod now runs as uid 0 with escalation on, under a namespace that was turned down to get it admitted. Show what the dry run says, make the pod safe, and put the guardrail back.' Mo: 'should be a quick one.' The worker's Deployment runs as root, its container may escalate privilege, and the namespace's enforced Pod Security level was lowered to baseline to admit it. Show what the cluster's dry run reports for the worker, set the pod to run as a non-root user and the container to refuse privilege escalation (doing one of the two leaves it vulnerable, and asking for non-root while keeping uid 0 keeps the pod from starting), keep the worker's secret and scratch volume, and restore the namespace's restricted enforcement. Lesson: a pod's privileges are a list you write down. Say who it runs as and what it may never become, and let the namespace refuse the pods that forget. 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 lab reads the manifests only. Nothing is applied to a cluster; the preview route is an emulated dry run.
Infrastructure and pipelineseasyGrades infrastructureA02:2025CWE-250CWE-269
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.