Lion Cipher Lab

Give each agent in a team its own scoped credential: measure blast radius and attribution when one agent is hijacked (free, offline, no API key)

Why it matters

Most agent teams start the same way: one service account, one API key, and every agent (the planner, the one that reads logs, the one that writes tickets, the one that can isolate hosts) runs with it. It is the fastest thing that works. It also means two things go wrong at once on the day one agent reads text written by an attacker. First, BLAST RADIUS: the hijacked agent can call every tool the whole team can, plus whatever the service account picked up over the years. In this lab that is 9 of 9 tools, and a single planted log line got 5 harmful actions executed. Second, ATTRIBUTION: the…

What you'll learn

Steps in this lab

  1. The words first: agent, credential, scope, blast radius, attribution, confused deputy
  2. Open a terminal, check Python, make a scratch folder
  3. Build the token issuer: per-agent, scoped, short-lived, HMAC-signed, and deterministic on purpose
  4. Build the team: four STUB agents, a mock environment, and one planted canary
  5. Replay the same incident four ways and read the audit logs
  6. Score it: blast radius and attribution, from the log alone
  7. Honest negative 1: per-agent tokens without a chain blame the deputy
  8. Honest negative 2: scoping cannot stop misuse of a tool that IS in scope, and the chain is not proof of intent
  9. Honest negative 3: short lifetimes cost re-issues, and make you depend on the issuer
  10. When to use this, when not to, and why this rather than that
  11. How a pro does it

Open the full interactive lab →