Spectorn learning hub
A free library on verifiable protection for AI agents and AI infrastructure. It brings together course modules, review questions, threat scenarios and material by role. Everything here is static: no account, progress tracker, certificates, quizzes or paywall.
Where to start
- Course modules: four sessions of about an hour each
- 28 questions that a green test suite does not answer
- Threat and use-case scenarios
- Material by role
Course modules
Each module takes about an hour: learning goals, the text, required reading from primary sources, a lab on synthetic data and three self-check questions. The labs need no account and no keys: Python 3 is enough.
- LLMs for security engineers: how tokens, the chat template, the instruction hierarchy, prompt caching, sampling and tool calls work, and what follows from each for protecting an AI agent.
- Goodhart's law in security metrics: why a green test suite and a high detection rate can mislead, and how to report a rate together with its one-sided 95% Clopper-Pearson bound.
- Model policy and gateway policy: what a published model policy describes, why a refusal by the model is a behavior and not an enforcement point, what a gateway enforces, where it cannot help, and how to combine the two layers.
- Monitoring agents: judge the actions: why an agent is watched through its tool calls and their effects, how to keep a request from switching a control off, why the model's output is checked, what chain-of-thought monitoring gives, and what to log without storing customer content.
28 questions to a green test suite
The source case book contains exactly 28 write-ups of real defects that were found while the tests were passing. Below is a safe index of the questions. It does not reproduce the attack payloads from the research draft.
- A1. How many attacks does this particular pattern catch?
- A2. Does this evaluation artifact exist more than once?
- A3. Is this prefilter a superset of what it gates?
- B1. Which view of the text does production actually score?
- B2. Does "no" mean no, or does it mean "I could not ask"?
- B3. What is the floor this ratio is being compared against?
- C1. Can the caller choose whether the control runs?
- C2. Does the shortcut read everything that the check it skips reads?
- C3. Is this test's scope the class, or the instance it was written from?
- D1. Can this rule's confidence ever decide anything?
- D2. Does the literal in this rule survive the pipeline in front of it?
- D3. Does this mitigation record what it mitigated?
- E1. What else does this rule match?
- E2. What must an attacker change to defeat this rule?
- F1. What did the harness actually read?
- F2. How many rows exercised the branch under test?
- F3. Which build produced this verdict?
- F4. How would an outsider tell that this exception is on?
- F5. Does this ratio's numerator count the same things as its denominator?
- F6. Is this stated design constraint implemented by the value?
- F7. Does this correction have a source?
- F8. Does this threshold survive being padded?
- F9. Does "the last verdict" mean the last run?
- F10. Which of your detections are accidents?
- F11. Is your negative class actually negative?
- F12. Can this alert's selector match anything?
- F13. Does this check fail on the case that motivated it?
- F14. Is this maximum a measurement or a limit?
Source: docs/research/OSAA_CASE_BOOK_DRAFT.md. The full write-ups remain a research draft until
a separate publication review.
Threat and use-case scenarios
The full scenario library is built from docs/scenarios. Quick ways in:
- AI agent security;
- MCP server security;
- prompt injection;
- Agentic SAMM;
- fintech and banking;
- telecom;
- healthcare;
- government and critical infrastructure.