Read-only agent access to Kubernetes is risky because cluster state, workload metadata and secrets names can still be exposed through API reads, logs and discovery calls. A compromised token, service account or kubeconfig with get and list permissions can map namespaces, service accounts, ConfigMaps and Pod specs, then support lateral movement or privilege escalation.
Why read-only access still exposes enough Kubernetes state to be useful to an attacker
Read-only access is not the same as low-risk access when the target is Kubernetes. The API often reveals enough structure to map namespaces, controllers, service accounts, ConfigMaps, Pod specs and secret references, which gives an attacker a blueprint of how the cluster is built and where stronger credentials or sensitive runtime paths may sit.
That matters because reconnaissance is often the first step in a larger compromise. Even without write privileges, read access can identify high-value workloads, naming patterns, token locations and trust relationships that reduce the effort needed for later privilege escalation or lateral movement.
For container and cluster exposure in general, NIST SP 800-190 Container Security remains a useful reference point because it treats image, registry, orchestrator and runtime risk as part of one attack surface.
What a compromised token, kubeconfig or service account can infer from “get” and “list” permissions
A read-only principal can still learn a great deal if it can query common resources broadly enough. The danger is not only the data returned by a single call, but the cumulative picture built from discovery calls, logs and object metadata, especially when permissions are spread across namespaces or shared among multiple workloads.
In practice, this is where weak scoping and overbroad cluster visibility become visible. Once an attacker knows which service accounts exist, which Pods mount which volumes, which ConfigMaps appear in which namespaces, and which workloads reference sensitive material, they can focus exploitation on the most exposed trust boundary rather than guessing blindly.
TeamTNT worm 2020 is a useful reminder that exposed infrastructure APIs and weakly scoped access can turn simple discovery into credential theft and broader cloud compromise.
How Kubernetes read access turns into escalation, persistence or incident response blind spots
The risk is amplified when read-only access reaches logs, events, annotations or workload specifications that reference tokens, mount paths, environment variables or deployment structure. Those clues do not need to expose a secret value directly to be harmful, because they can point an attacker toward the next credential source or the next control gap.
Read-only access also complicates detection. Security teams may assume the absence of writes means the access path is harmless, but reconnaissance itself is an actionable stage of compromise. If the token, kubeconfig or service account is stolen, the attacker can continue quietly mapping the environment until a separate privilege is available.
AI agents that destroyed data shows why bounded access matters: once an actor can see enough of the environment, the next failure is often not visibility but unintended action enabled by what visibility revealed.
Risk and Threat Considerations
Read-only Kubernetes access still creates meaningful exposure because it can reveal the cluster’s trust map, sensitive resource names and the paths an attacker would use to move from observation to control. The core problem is that discovery itself can lower the cost of exploitation, especially when metadata and logs expose how identities, workloads and secrets are arranged.
Failure mechanism: A stolen or mis-scoped read-only credential is used to enumerate cluster objects, infer naming patterns, locate sensitive references and identify the most promising path to stronger access or workload abuse.
Impact: The attacker gains reconnaissance, target selection and operational context that can support credential theft, lateral movement, privilege escalation or more targeted follow-on exploitation without needing write access first.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
MITRE ATT&CK and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST SP 800-53 Rev 5 and CIS Controls v8 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST SP 800-53 Rev 5 | AC-6 — Least Privilege | Read-only Kubernetes exposure is driven by excessive object visibility. |
| IA-5 — Authenticator Management | A stolen token, kubeconfig or service account is the access path in this scenario. | |
| Recommendation — Restrict Kubernetes read permissions to the minimum resources and namespaces required. Rotate and revoke Kubernetes credentials that could expose cluster metadata. | ||
| CIS Controls v8 | CIS-5 — Account Management | The question hinges on limiting what accounts and service identities can enumerate in the cluster. |
| Recommendation — Review Kubernetes account scope and remove broad read access from unnecessary principals. | ||
| MITRE ATT&CK | T1613 — Container and Resource Discovery | Read-only API calls are used to enumerate cluster objects and trust relationships. |
| Recommendation — Hunt for repeated Kubernetes discovery activity and unusual object enumeration patterns. | ||
| OWASP Non-Human Identity Top 10 | NHI-05 — Overprivileged NHI | Service accounts and kubeconfigs often function as non-human access paths with excessive visibility. |
| Recommendation — Trim Kubernetes service account permissions to the smallest viable read surface. | ||
Practitioner Guidance
What to verify: Confirm exactly which verbs and resources the principal can read, including cluster-scoped objects, namespace inventories, events and logs. Read-only access is materially safer only when it is tightly constrained to the minimum objects needed for the task.
Decision rule: If a read-only principal can enumerate workloads, service accounts or ConfigMaps across more than one namespace, treat it as a reconnaissance path and review it like any other sensitive access path, not as a harmless observer role.
Practitioner takeaway: The control objective is not to eliminate read access, but to stop read access from becoming a map of the cluster’s trust relationships, credential paths and weakest escalation opportunities.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on November 9, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org