Track 06 · Security & risk reviewLesson 08 of 10

Agent credentials, from issue to revoke

Non-human identities that don't outlive the project as standing risk.

What you'll be able to do

What you'll be able to do

01
  1. Explain what a non-human identity (NHI) is, how an identity differs from its credentials, and why agents multiply NHI risk.
  2. Build an NHI inventory with owners, purposes, scopes and usage, and diagnose stale, ownerless, over-scoped, reused and long-lived credentials.
  3. Choose an issuance pattern (workload identity federation, cloud IAM roles, SPIFFE SVIDs, STS-minted tokens, vaulted static secrets) and defend the order of preference.
  4. Design rotation, revocation and a kill switch with a measured time-to-kill, and delegation chains using RFC 8693 token exchange and the act claim.
  5. Map a customer's NHI posture to the OWASP Non-Human Identities Top 10 in a security review.
Before you start

Before you start

The short version

The short version

A non-human identity is any principal that is not a person: service accounts, API keys, OAuth clients, workload identities and, now, agent identities. Each agent typically holds several, one per system it touches, created during a pilot by someone who later moves on. The lifecycle discipline is: register every identity with an accountable owner and purpose; issue credentials without stored secrets where possible, through federation or a token service, short-lived and narrowly scoped; rotate what must stay static; review usage against grants; and revoke fast, with a kill switch you have drilled. Delegation chains carry both the user and the agent in the token, and each hop narrows.

  • No owner, no token. Ownerless identities are the standing risk this competency exists to remove.
  • The best secret is no secret. Prefer federation and short-lived tokens; vault and rotate only what cannot be federated.
  • Short TTL is your revocation latency. A 15-minute token can only be misused for 15 minutes after you pull the plug.
  • Grant what is used. Compare scopes granted with scopes seen in logs and remove the difference.
  • Retire on purpose. When the project ends, the identity ends, on a date someone owns.

Pro lesson

The rest of this lesson is in Pro.

The mental model, worked example, field note, failure table, exercise and self-check, with the voice tutor.

  • Every stage and specialisation, in full
  • Every lab and every role project
  • Halden weeks 2–10, on your record
  • Every drill, live in the playground
  • All solutions, plus the server judge
  • Lab Assistant and every Teach with AI