MYTHOSAI

Offline learning workbooks · Fictional cases

Test a security decision offline

Ten tested standard-library practice workbooks with synthetic data and explicit limitations

Each workbook contains Python 3 code, assertions, test output produced from that exact code, interpretation and citations to primary sources. These are limited offline exercises, not tests of production security controls. They can be run without internet access, credentials or paid services.

Choose one of 10 exercises

  1. A red/blue detection exercise with negative controls — Compare an expected backup service operation with a suspicious privileged action. The detector should not treat every event from a known host as automatically safe.
  2. An object-authorisation unit test — Show why successful login is not sufficient permission to read somebody else’s resource.
  3. File integrity versus mere filename checks — Create two harmless byte strings and show that the same filename tells us nothing about byte-level integrity.
  4. Network segmentation with an offline flow matrix — Evaluate zone-to-zone traffic against a written allowlist without scanning or contacting any network.
  5. Web API access decision using owned sample documents — See how a vulnerable resource decision differs from a server-side owner check.
  6. Simulating effective cloud IAM decisions — Model separate allowed cloud actions for one limited service identity.
  7. Detecting password spraying without confusing normal retries — Count distinct failed usernames from the same synthetic source during a small sample window.
  8. Incident timeline with measurable decision delays — Calculate time from a fictional report to triage and containment without inventing a completed real incident.
  9. Dependency lock consistency using an offline manifest — Compare a fictional declared dependency range with a precise pinned version.
  10. Untrusted document text versus authorised task instructions — Illustrate a safe data boundary without calling any language model, external API or tool.

Why our examples are labelled

Real product validation requires an authorised environment, declared versions, evidence capture and independent review. A few lines of fictional code cannot support a claim that an organisation is safe, that a defence resists all attacks, or that a security product has passed penetration testing.

Browse all 200 learning guides or use the four free browser tools.