03

Stop Authority Amplification

Primary source: [Hugging Face technical timeline](https://huggingface.co/blog/agent-intrusion-technical-timeline) • Defensive references: [Kubernetes RBAC](https://kubernetes.io/docs/reference/access-authn-authz/rbac/) and [AWS EKS identity guidance](https://docs.aws.amazon.com/eks/latest/best-practices/identity-and-access-management.html)

The enterprise problem and today’s slice

Enterprise problem: A contained code-execution foothold becomes an enterprise incident when workload, node, cluster, network, broker, and source-control credentials amplify one another.

Whole-course context: We consume the qualified evidence ledger and Day 02 feedback-loop map, then ask where an independent control would have stopped reuse of authority.

Today’s slice: We trace one malicious dataset configuration from evaluator foothold to progressively broader authority and design containment at every handoff.

End-of-day evidence: An authority graph, earliest-break decision, negative-path test matrix, and revocation proof tied to immutable traces.

Still unsolved: Organization-specific incident response, procurement, and forensic conclusions outside the public record remain out of scope.

Thesis: Preventing the first bug is valuable, but preventing authority amplification is decisive: no workload foothold should automatically become node, cluster, network, secret, or supply-chain authority.

The smallest complete model is foothold → authority acquisition → independently revocable action. The middle edge, where access becomes reusable credential or role, is the leverage point.

Role-based access control (RBAC) maps an identity to allowed actions. The Instance Metadata Service (IMDS) exposes cloud-instance identity and metadata; a pod that can reach it may inherit authority intended for its node.

Customer use cases

Operators need a boundary-by-boundary control map because “least privilege” without a concrete negative path cannot show where amplification stops.

Use case IDActorCustomer jobSuccess outcomeDenial or recovery evidence
D03-UC-01Platform security ownerPrevent workload compromise from becoming infrastructure authorityEvaluator identity cannot access metadata, privileged pods, unrelated secrets, VPN, broker, or source controlEach prohibited transition is denied and an unaffected workload remains healthy
D03-UC-02Incident commanderRevoke acquired authority and prove containmentCredentials, sessions, workloads, and dependent grants are invalidated within measured boundsReplayed credentials fail, affected resources are reissued, and immutable evidence shows completion

Actor-centred user stories

Prevention and recovery must share the same authority graph or responders will rotate credentials without knowing their downstream dependants.

Story IDUse case IDsUser storyObservable acceptance conditions
D03-US-01D03-UC-01As a platform security owner, I want every authority transition explicitly granted, so that one compromised workload cannot inherit another plane’s privilegesTests deny metadata, privileged workload, cross-namespace secret, private-network, broker-admin, and source-write transitions
D03-US-02D03-UC-02As an incident commander, I want dependency-aware revocation, so that containment removes both the credential and every session derived from itRevocation report names credential lineage, terminal denial, unaffected controls, completion time, and trace IDs

End-to-end product flows

An authority review starts at the platform action that creates a workload identity and ends with observable positive and negative decisions.

Flow IDUse case IDsPathTriggerNumbered stepsTerminal evidence
D03-FLOW-01D03-UC-01, D03-UC-02HappyPlatform owner launches the bounded authority test1. Issue a short-lived evaluator identity.
2. Perform its declared evaluation action.
3. Record the scoped authorization.
4. Expire the identity.
Allowed action, policy digest, actor, resource, scope, expiry, environment, and immutable trace ID
D03-FLOW-02D03-UC-01DeniedEvaluator workload requests authority outside its declared job1. Resolve workload identity.
2. Evaluate capability and resource scope.
3. Deny cross-boundary transition.
4. Alert on attempted amplification.
5. Run unaffected positive control.
Denial decision, policy digest, actor, resource, scope, environment, time, control result, and trace ID
D03-FLOW-03D03-UC-01, D03-UC-02RecoveryIncident commander activates containment graph1. Freeze new evaluations.
2. Revoke workload and broker sessions.
3. Rotate exposed credentials.
4. Replace affected workloads.
5. Replay negative tests.
6. Resume by approval.
Signed containment report with credential lineage, measured revocation times, negative replays, and approval ID

System design derived from the flows

The control plane must make authority transitions explicit and independently revocable, because network reach or membership in one plane must not imply another plane’s permission.

Use case IDEntry pointResponsible servicesAuthoritative storeFailure evidence
D03-UC-01Workload-identity issuanceIdentity broker, metadata firewall, admission policy, RBAC authorizer, egress gatewaySigned authority-policy registryAny undeclared transition succeeds or lacks an immutable decision
D03-UC-02Incident containment consoleCredential-lineage service, revocation orchestrator, workload reconciler, evidence signerAppend-only containment registerDerived session remains valid after deadline or negative replay is absent

Data model and ownership

Revocation cannot be complete without credential lineage, because a root credential may have minted sessions that outlive its rotation.

Generated-application database: Not created in this slice — identity, policy, and containment services own durable authority and evidence state.

Record or entityStore and ownerPrimary keyForeign key or opaque referenceTenant keyMaterial constraintLifecycle and deletionUse case IDs
Authority grantPolicy registry / platform securitygrant_idworkload_identity_idorganization_idResource, action, purpose, expiry, and issuing policy digest requiredExpire automatically; retain audit revisionD03-UC-01, D03-UC-02
Credential lineageIdentity store / credential brokercredential_idparent_credential_id or None — root issuerorganization_idEvery derived session names parent and maximum lifetimeRevoke descendants; delete secret material after retentionD03-UC-01, D03-UC-02
Containment runContainment register / incident responsecontainment_run_idincident_id and affected credential referencesorganization_idCompletion requires negative replay and unaffected controlAppend-only; retain per incident policyD03-UC-01, D03-UC-02

Progressive visual explanation: from foothold to reusable authority

Calling every step “lateral movement” hides why it succeeded. Expand the graph one authority handoff at a time.

Level 1 — A pod is compromised, but boxed in

A production evaluator running attacker-influenced code is serious, yet it can remain one disposable workload if it has no ambient token, metadata route, privileged admission, shared filesystem, or broad egress.

What this level adds: a containment target. Decision rule: design as though workload execution will eventually fail; make the resulting identity worthless outside its job.

Level 2 — Add cluster amplification

The Hugging Face timeline reports access to a projected service token and IMDS, then a privileged pod with a host mount, node-level access, and a secret object containing 136 keys. These are Hugging Face’s reported observations; the public course does not independently validate customer impact.

What this level adds: credentials and admission as separate edges. Decision rule: test each edge independently; namespace RBAC does not compensate for privileged admission or metadata access.

Level 3 — Add connected enterprise authority

The Hugging Face timeline reports a mesh virtual private network (VPN), a shared broker credential bound to system:masters, multi-cluster access, and a GitHub App write token with an attempted continuous-integration path. The lesson is architectural: separate secrets enabled sibling cluster and delivery paths.

Conceptual reconstruction — attack chain: synthetic controls explore boundary breaks; they do not replay the incident.

What this level adds: transitive authority outside the original platform. Decision rule: never let one credential bridge evaluation, administration, and software-delivery planes.

Level 4 — Place independent circuit breakers

Defense is strongest when every transition has a distinct owner, policy, lifetime, and revocation mechanism.

What this level adds: independent revocation. Decision rule: choose the earliest transition where a single denial leaves the customer job working and blocks all later authority.

Failure modes, trade-offs, and decision rules

Convenient shared administration reduces operational friction but turns one compromised credential into a multiplier.

Failure modeTrade-offReusable decision rule
Auto-mounted service-account tokenEasy API access versus ambient cluster authorityDisable automount and issue short-lived audience-bound identity only when required
Instance metadata reachable from podsSimple cloud integration versus node-role theftUse workload identity and enforce metadata isolation
Privileged pod plus host mountOperational convenience versus node-root pathDeny privileged, host namespace, and host-path use except isolated break-glass pools
Shared system:masters broker credentialFast multi-cluster administration versus total trust collapseUse per-cluster, task-scoped, short-lived roles outside bypass groups
Source-write credential reachable from runtimeAutomated delivery versus supply-chain amplificationSeparate runtime and delivery identities; require signed, reviewed promotion

AWS recommends scoping pod identity and restricting instance metadata in its EKS identity guidance, while the EKS pod-security guidance explains layered workload controls. Kubernetes warns that granting workload-creation rights can implicitly grant access to service accounts and other resources in its RBAC guidance.

Implementation and verification

Control diagrams are insufficient unless every authority edge has a negative test and a recovery deadline.

  1. Export workload-to-role, role-to-resource, credential-to-session, network, and source-control relationships into one authority graph.
  2. Remove shared bypass-group membership and long-lived cross-plane credentials.
  3. Enforce workload identity, metadata isolation, restricted admission, namespace secret scope, segmented egress, and signed promotion.
  4. Test denied transitions from an ephemeral evaluator identity while a safe evaluation remains healthy.
  5. Revoke one test credential and measure invalidation of every derived session.

Do not test by reproducing the intrusion. Use synthetic identities and harmless requests that prove authorization decisions without touching production secrets or executing untrusted payloads.

Practical next action and falsifiable evidence

Choose the highest-volume evaluator namespace and build its authority graph this week. Rank transitions by blast radius, then implement the earliest circuit breaker that preserves the declared evaluation job.

The design is falsified if a synthetic evaluator identity can read instance metadata, create a privileged workload, read an unrelated secret, join a private network, obtain broker administration, write source, or retain any derived session past the revocation objective. Observable proof is a signed run containing actor, resource, scope, precondition, expected and observed result, environment, timestamp, immutable trace ID, unaffected positive control, and measured revocation latency for every edge.