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–6 of 6 matching courses, lessons and labs
- LabP1Universal-link validation: the order link that any app or site can open (Swift, SwiftUI)
SHOP-212 lets order links from mail, QR codes and other apps open the iPhone app: the link parser no longer checks the scheme or the host, reads the order number with a plain integer parse, and the app registers a custom URL scheme. Show a link from another host being acted on, then restore the checks and the scheme. Orla: "SUPPORT HAS 31 TICKETS WAITING ON THIS. Do not make the scan-to-open demo stop working." The customer iPhone app (Swift 6, SwiftUI) acts on any link the parser accepts, and the parser accepts any scheme, any host and an order number that is whatever an integer parse takes. Show a link from another host, a look-alike host and a link with no scheme being acted on, restore the https scheme check, the comparison of the parsed host to Meridian's list and the order-number check (digits only, not zero), remove the custom URL scheme from Info.plist, restore the shipped test's assertions, and don't settle for a scheme check alone, a host check with the number unchecked, or a number check with the hosts open, or for refusing every link. Lesson: a link is input from whoever wrote it. It only names a screen: check the scheme, compare the parsed host to a list you wrote, accept an order number only as the digits it is, and register no scheme any app can claim. Swift has no compiler in the browser: swift test here is simulated and follows your code's recognized state; the Keychain and pinning code is Apple-only and is never run. 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. - Links and order numbers are sent by class (a link on another host, a look-alike host, a link with no scheme, a malformed order number); the lab never spells one, and the HTTP client builds them for you. - `swift test` is simulated from the state of your code: it runs the DeepLink suite only. The Keychain and certificate-pinning suites are Apple-only and print nothing here. - Meridian's own order links still have to open the order list and one order.
iOS (SwiftUI)SwiftmoderateA01:2025CWE-939CWE-20 - LabP2Broken access control: drafts open to anyone with the link (Swift, Vapor)
HBR-212 let reviewers open a draft from a shared link. Now anyone who guesses a slug reads every draft on Harbor. Read one that is not yours, put the check back, and add the test that asks as a stranger. Harbor's article endpoint (Vapor 4) lost its status check so drafts could be shared for review. Show a member reading someone else's draft, answer a draft only to its author and the admins with the model's own rule, and add a regression test. Swift has no compiler in the browser: swift build and swift test here are simulated, and their output follows your code's recognized state. Rules: - Everything in this lab is emulated. Nothing you write is compiled or run. - `swift` in the terminal is a simulated toolchain: its output follows your code's recognized state, nothing is compiled. - Leave the build file, the model and the session code as they are.
VaporSwifteasyA01:2025CWE-639CWE-862 - LabP2Broken object-level authorization: any member rewrites any article (Swift, Vapor)
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 (Vapor 4, Swift) 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. Swift has no compiler in the browser: swift build and swift test here are simulated, and their output follows your code's recognized state. Rules: - Everything in this lab is emulated. Nothing you write is compiled or run. - Vapor's signedIn middleware only says who is signed in; ownership is each handler's to check. - Leave the models, the middleware, the routes and the other handlers as they are.
VaporSwifteasyA01:2025CWE-639CWE-284CWE-862 - 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 - 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 - LabP6Session token in UserDefaults: back to the Keychain (Swift, iOS)
IOS-118 keeps the iPhone app's session token in UserDefaults. Show the token in the preferences a backup holds, move it back to the Keychain with the baseline's attributes, remove the old copy, and add the test for the clearing. Swift is not compiled here: swift test is simulated from your code. The Meridian iPhone app (Swift 6, SwiftUI) builds a UserDefaultsTokenStore in AppModel.live(), so the bearer token lives in the preferences plist that an unencrypted backup and the app container expose. Show the token in the backup's preferences, switch AppModel.live() back to KeychainTokenStore (this device only, while unlocked, never synced), clear the old UserDefaults entry, keep MemoryTokenStore for tests, and add a regression test. Keychain code is parsed, never run. 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. - Keep `KeychainTokenStore`'s attributes as the baseline has them; do not add a new store type. - Leave `MemoryTokenStore` and the existing Keychain and API client tests as they are.
iOS (SwiftUI)SwifteasyA04:2025CWE-312CWE-922CWE-522
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.