Per-pod baselines usually fail because Kubernetes pods are too short-lived for behavioural learning to stabilise. The result is a permanent learning window, which means the security team is always profiling and rarely detecting. Behavioural history belongs to the Deployment or ServiceAccount, where identity and runtime patterns persist long enough to be useful.
Why This Matters for Security Teams
Per-pod baselines look precise, but they usually create false confidence in environments where AI agents are deployed as short-lived containers. Kubernetes can recycle pods faster than behavioural models can stabilise, so the defender spends more time learning normal than spotting abuse. That is especially risky for agents because execution is goal-driven, tool-heavy, and often tied to secrets or API access. NHI governance is already showing how quickly credential misuse becomes operational exposure in real environments, as seen in LLMjacking: How Attackers Hijack AI Using Compromised NHIs.
The core mistake is treating the pod as the security unit when the deployment, ServiceAccount, and workload identity are the stable signals that matter. Current guidance from OWASP Agentic AI Top 10 and the NIST AI Risk Management Framework both point toward context-aware governance, not container-by-container superstition. In practice, many security teams discover this only after the agent has already changed tools, touched data it should not have seen, or triggered alerts that never converge into a usable baseline.
How It Works in Practice
For agentic workloads, baseline the behaviour at the smallest layer that remains stable across reschedules. That is usually the Deployment, ServiceAccount, or an explicit workload identity, not the pod UID. The pod should be treated as an execution instance, while identity and policy should follow the workload. This aligns with NHIMG guidance in the OWASP Agentic Applications Top 10, where the main risk is not mere container churn, but autonomous tool use that changes rapidly with task context.
Operationally, teams should combine workload identity, ephemeral credentials, and runtime policy checks:
- Use ServiceAccount- or deployment-level identity as the behavioural anchor.
- Issue short-lived secrets or tokens per task, not long-lived static credentials.
- Evaluate permissions at request time with policy-as-code so the agent is authorised for the action it is attempting, not a generic role it inherited weeks ago.
- Separate benign pod restarts from meaningful behavioural shifts, such as new tool chains, new target systems, or unusual data access paths.
This is where standards thinking helps. CSA MAESTRO agentic AI threat modeling framework emphasises runtime control points, while MITRE ATLAS adversarial AI threat matrix is useful for mapping how an agent can chain tool calls, exfiltrate secrets, or pivot laterally after a prompt compromise. The practical lesson is that the baseline must reflect stable identity and intent, not a transient container shell. These controls tend to break down when pods are autoscaled aggressively and each new instance inherits a cold-start window before enough events exist to classify it reliably.
Common Variations and Edge Cases
Tighter pod-level detection often increases model noise and operational overhead, requiring organisations to balance sensitivity against the reality of ephemeral infrastructure. There is no universal standard for this yet, especially in multi-tenant clusters, high-churn CI/CD environments, or batch-style agent fleets where legitimate behaviour changes from one task to the next.
One common exception is a highly constrained agent that performs a single, repeatable action from a sealed image. Even there, best practice is evolving toward deployment-scoped baselines rather than pod-scoped ones, because rescheduling can otherwise erase the historical signal every time the platform restarts. Another edge case appears when a pod hosts multiple tools or sidecars. In that pattern, the behavioural profile becomes blended and less useful, so security teams should split identities and policy domains before attempting anomaly detection.
For deeper context on real-world agent abuse patterns, NHIMG’s analysis of the AI Agents: The New Attack Surface report and the Analysis of Claude Code Security both show why autonomous systems need stable identity signals and runtime governance. The rule of thumb is simple: if the security logic cannot survive a pod restart, it is anchored too low in the stack.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Agentic AI Top 10, CSA MAESTRO and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST AI RMF and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Agentic AI Top 10 | A1 | Agentic risk rises when transient pods hide changing tool use and intent. |
| CSA MAESTRO | T1 | MAESTRO maps controls to dynamic agent behaviour and runtime trust decisions. |
| NIST AI RMF | AI RMF governance fits autonomous systems that change behaviour across tasks. | |
| OWASP Non-Human Identity Top 10 | NHI-01 | NHI identity stability is the right layer for behavioural baselining. |
| NIST CSF 2.0 | PR.AC-4 | Least privilege must follow the workload’s stable identity and access scope. |
Baseline agents by stable identity and evaluate each action at runtime, not by pod instance.
Related resources from NHI Mgmt Group
- Why is it necessary to address authorization challenges in AI agent deployment?
- What breaks when AI agent access is managed per server instead of centrally?
- How should organisations validate AI agent baselines before production in healthcare?
- What breaks when teams rely on static AI-SPM for agent governance?
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on August 20, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org