← Voltar ao feed
low

Prompt poisoning risk for AI ops agents in Kubernetes: read-only RBAC still exposes secrets and env variables

1 fonte(s) · 1 atualização(ões) · publicado 30/10/2026 16:31 · coletado há 1 dia

A Aikido Security blog post, based on a podcast with Google cloud developer advocate Abdel Sghiouar, argues that AI operations agents in Kubernetes are a hijacking target because of their broad read access. Sghiouar prefers the term "prompt poisoning" over prompt injection: an attacker who can write text into application logs can get it into the agent's prompt, and an LLM cannot separate instructions from input the way parameterized queries do for SQL injection. Running agents read-only protects the cluster from destructive actions, but a poisoned agent can still read secrets and environment variables and leak them. The post cites an Aikido finding of a prompt injection in the GitHub workflow Google uses to triage issues on the Gemini CLI repository, where a crafted issue could make the agent disclose environment variables; Google's fix blocked the leak but did not remove the poisoning exposure. The article is partly promotional for Aikido's AI pentesting, IaC, secrets, container and cloud posture products.

Entenda a falha

A vulnerabilidade

No CVE. The story covers a prompt injection (prompt poisoning) in the GitHub workflow Google uses to triage issues on the Gemini CLI repository. A crafted issue could make the agent hand over the environment variables it had access to. The attacker only needs to be able to submit text the agent reads, here an issue. The broader point is that Kubernetes operations agents with broad read RBAC can be turned the same way: they ingest attacker-written log text and can then read and leak secrets and environment variables, even in read-only mode. The articles give no affected or fixed versions. Google's fix stopped the agent from returning the variables but did not remove the poisoning exposure.

Como funciona

In the Gemini CLI case, an issue is filed and the triage workflow's agent processes it, and a crafted issue could steer the agent into returning environment variables. In the Kubernetes scenario, an application receives attacker-controlled data and writes it to its logs. The operations agent later reads those logs as one of its signals and puts them into its context. The model handles the system prompt, user instructions, history and retrieved content together, so a planted log line can carry the same weight as an operator instruction. If the agent's permissions cover what the pod can see, it can then read secrets and environment variables and expose them.

Por que é vulnerável

An LLM has no reliable way to separate instructions from input, unlike parameterized queries for SQL injection, so untrusted text in its context can act as a command. This is why the source prefers the term prompt poisoning. Over-broad read permissions and secrets left in environment variables then decide how much leaks. Google's fix for the Gemini CLI workflow blocked returning the variables, which closed that leak but not the underlying exposure to poisoned input.

Como foi descoberta

Aikido Security found the prompt injection in the Gemini CLI issue-triage workflow, according to its blog post, which is based on The Secure Disclosure podcast with Google's Abdel Sghiouar. Mackenzie raised the finding during that conversation. The articles do not say when or how it was reported to Google, only that Google fixed the variable leak.

Explicação gerada por IA a partir da matéria e dos artigos, em 30/10/2026 22:16.

Detalhes técnicos

  • Attack path 1: attacker-controlled text reaches application logs, which the operations agent ingests as context (poisoned input treated like operator instructions).
  • Attack path 2: over-broad RBAC lets a hijacked agent read secrets and environment variables visible to the pod.
  • Read-only mode does not mitigate data exfiltration or ingestion of poisoned content.
  • Gemini CLI issue-triage workflow: a crafted issue could cause the agent to return environment variables; the fix stopped returning them but did not prevent poisoning.

Remediação

  • Apply least privilege to agent RBAC bindings, ClusterRoles and cloud IAM roles; review the permissions the agent actually holds at runtime.
  • Scan for hardcoded credentials so they do not end up in environment variables the agent can read.
  • Keep a human in the loop to verify agent actions ("trust but verify"), though the source states this remains an unsolved problem.
  • Test agents with poisoned input via retrieved documents and tool output to see whether instructions can be overridden.

Linha do tempo

  1. aikido.dev ↗ · pub. 30/10/2026 16:31 · coletado 30/10 22:00 primeiro registro

    Prompt poisoning risk for AI ops agents in Kubernetes: read-only RBAC still exposes secrets and env variables

    ler a análise desta fonte

    A Aikido Security blog post, based on a podcast with Google cloud developer advocate Abdel Sghiouar, argues that AI operations agents in Kubernetes are a hijacking target because of their broad read access. Sghiouar prefers the term "prompt poisoning" over prompt injection: an attacker who can write text into application logs can get it into the agent's prompt, and an LLM cannot separate instructions from input the way parameterized queries do for SQL injection. Running agents read-only protects the cluster from destructive actions, but a poisoned agent can still read secrets and environment variables and leak them. The post cites an Aikido finding of a prompt injection in the GitHub workflow Google uses to triage issues on the Gemini CLI repository, where a crafted issue could make the agent disclose environment variables; Google's fix blocked the leak but did not remove the poisoning exposure. The article is partly promotional for Aikido's AI pentesting, IaC, secrets, container and cloud posture products.

    Technical Details

    • Attack path 1: attacker-controlled text reaches application logs, which the operations agent ingests as context (poisoned input treated like operator instructions).
    • Attack path 2: over-broad RBAC lets a hijacked agent read secrets and environment variables visible to the pod.
    • Read-only mode does not mitigate data exfiltration or ingestion of poisoned content.
    • Gemini CLI issue-triage workflow: a crafted issue could cause the agent to return environment variables; the fix stopped returning them but did not prevent poisoning.

    Remediation

    • Apply least privilege to agent RBAC bindings, ClusterRoles and cloud IAM roles; review the permissions the agent actually holds at runtime.
    • Scan for hardcoded credentials so they do not end up in environment variables the agent can read.
    • Keep a human in the loop to verify agent actions ("trust but verify"), though the source states this remains an unsolved problem.
    • Test agents with poisoned input via retrieved documents and tool output to see whether instructions can be overridden.