Agentic AI Module Added To NHI Training Course

How should security teams combine agentless and agent-based Kubernetes scanning?

Use agentless scanning for broad pre-deployment coverage and agent-based scanning for runtime visibility. The first catches vulnerable images and misconfigurations before release. The second detects behaviour after deployment, including exploitation, lateral movement, and suspicious process activity. Most Kubernetes environments need both if they want meaningful coverage of short-lived workloads.

Why This Matters for Security Teams

Agentless and agent-based Kubernetes scanning solve different problems, and treating them as interchangeable leaves blind spots. Agentless tools are strong at finding exposed images, vulnerable dependencies, and misconfigurations before a workload runs. Agent-based tools see what happens after scheduling, which matters because Kubernetes workloads can be short-lived, horizontally scaled, and changed faster than periodic scans can keep up.

That distinction is especially important in environments that already struggle with identity visibility. NHI Mgmt Group research shows that only 5.7% of organisations have full visibility into service accounts in the broader Ultimate Guide to NHIs — 2025 Outlook and Predictions, which is a reminder that runtime context often disappears unless instrumentation is present. For Kubernetes, the same logic applies to ephemeral pods, init containers, and sidecars: if telemetry is missing after deployment, the scan record can look complete while the attack path remains hidden. Guidance from the OWASP Top 10 for Agentic Applications 2026 and the NIST AI Risk Management Framework also reinforces a broader point: pre-event assessment and runtime observation must be combined when systems act dynamically.

In practice, many security teams discover the gap only after a short-lived pod has already been compromised and terminated.

How It Works in Practice

The cleanest pattern is to use agentless scanning as the gatekeeper and agent-based scanning as the watcher. Agentless scanning should run in CI, image registries, and admission pipelines to validate base images, package CVEs, manifest drift, RBAC overreach, insecure capabilities, and exposed secrets before release. That gives security teams a broad, low-friction baseline. For workloads that do deploy, agent-based scanning adds runtime evidence: process creation, outbound connections, file writes, privilege escalation attempts, container escapes, and suspicious execution chains.

In a well-run pipeline, the two modes feed each other. Agentless results should inform policy decisions such as blocking unsigned images, disallowing privileged pods, or requiring a hardened base image. Runtime agents should enrich detections with pod labels, namespace context, service account identity, and node placement so triage can distinguish a genuine compromise from an expected administrative action. This aligns with the spirit of the CSA MAESTRO agentic AI threat modeling framework, which emphasises contextual threat modelling, and with MITRE ATLAS adversarial AI threat matrix thinking about behaviour after initial access.

  • Run agentless scans in CI/CD and admission control to stop risky manifests before deployment.
  • Use agent-based sensors on high-value namespaces or node pools where runtime abuse would matter most.
  • Correlate findings with workload identity, pod metadata, and cluster audit logs to reduce noise.
  • Re-scan on every image change, but rely on agents for post-start exploitation, lateral movement, and persistence.

NHI Mgmt Group’s Analysis of Claude Code Security and the AI LLM hijack breach both illustrate the same operational lesson: static checks miss what happens once a workload starts making decisions and chaining actions. These controls tend to break down when clusters use highly ephemeral jobs with aggressive autoscaling because the workload can start, act, and disappear before periodic sensors finish collecting evidence.

Common Variations and Edge Cases

Tighter coverage often increases operational overhead, requiring organisations to balance visibility against performance, cost, and false positives. That tradeoff becomes sharper in dense clusters, GPU nodes, and regulated environments where every additional daemon or kernel hook must be justified.

Best practice is evolving for service-mesh-heavy or serverless Kubernetes setups, because some agent-based tools struggle with encrypted east-west traffic, ephemeral nodes, or image-less workloads. In those cases, teams often pair agentless policy enforcement with selective runtime monitoring at the node, eBPF, or admission layer instead of trying to instrument every pod equally. The same caution appears in NHI incidents such as the Moltbook AI agent keys breach, where credential exposure and runtime misuse combined to widen impact.

There is no universal standard for this yet, but current guidance suggests prioritising agentless scanning for broad control coverage, then reserving agents for workloads with higher blast radius, internet exposure, or privileged access. That approach is also consistent with the NIST AI Risk Management Framework and the OWASP Agentic AI Top 10, both of which favour layered controls over single-point assurance. The practical rule is simple: if a workload can change state faster than your scan interval, runtime inspection is not optional.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10 and CSA MAESTRO address the attack and risk surface, while NIST AI RMF set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Non-Human Identity Top 10 NHI-03 Agent-based monitoring helps catch exposed or misused secrets at runtime.
CSA MAESTRO MAESTRO supports layered threat modelling for dynamic Kubernetes workloads.
NIST AI RMF AI RMF supports combining preventive and monitoring controls for dynamic systems.

Pair image scanning with runtime alerts for secret abuse and rotate exposed credentials quickly.