By NHI Mgmt Group Editorial TeamBased on Pillar Security: “A WIF Of Fresh Access: How a GitHub Issue on Gemini-CLI Led to GCP Project Compromise” (August 18, 2026)

TL;DR: A malicious GitHub issue in Gemini CLI could chain into CI command execution, credential exposure, and project-wide GCP privilege escalation through Workload Identity Federation, according to Pillar Security research. The finding matters because agentic workflows can turn what looked like a routine automation boundary into a runtime identity problem where tool scope, file exposure, and service account permissions all interact.


At a glance

What this is: This research shows how a GitHub to GCP agent workflow can turn untrusted issue content, runner-side credential exposure, and overbroad service account permissions into project compromise.

Why it matters: It matters because IAM teams now have to govern agent execution paths, workload identities, and cloud permissions as one chained control surface rather than separate technical domains.


Context

Agentic workflow identity controls fail when the system assumes tool use, file access, and privilege scope will stay predictable long enough for traditional review or containment. In this GitHub to GCP flow, the practical issue is not just command execution but the way untrusted input can influence an agent that already sits near credentials and cloud access.

That creates an identity governance problem across the workflow boundary. The agent, its runner, and the GCP service account each carry different access assumptions, but the article shows those assumptions can chain together into a single compromise path when permissions are too broad and sensitive files are readable on disk.


Key questions

Q: What breaks when agentic CI workflows can read untrusted input and local credential files?

A: The workflow boundary breaks because the agent can turn attacker-controlled content into runtime action and then into credential exposure. Once file access and tool use happen inside the same execution context, conventional pipeline trust assumptions no longer hold. Security teams need to govern the workflow as an identity-bearing runtime, not as a static automation job.

Q: Why does a plaintext OIDC file on a CI runner increase cloud compromise risk?

A: A plaintext OIDC file turns a temporary authentication artifact into a readable secret with real cloud authority. If an agent or process can access it, the file can be exchanged for tokens and used before the job ends. The risk is not federation itself, but the combination of file exposure, token exchange, and the permissions attached to the resulting service account.

Q: What are the signs that a workflow service account is too powerful?

A: A service account is too powerful when it can impersonate other identities, operate across a broad project scope, or grant the workflow access that exceeds its narrow task. Those are the signals that a single workflow credential can become a platform escalation path. The practical test is whether one compromised workflow identity can move laterally to other service accounts.

Q: When should security teams re-evaluate agentic workflow controls in GitHub to GCP pipelines?

A: They should re-evaluate controls whenever untrusted content, file-reading agents, and cloud-authenticated workflows appear in the same chain. That combination means identity, tool scope, and cloud permissions are no longer separable design choices. The right question is whether the workflow can still be contained if the agent behaves unexpectedly during execution.


Technical breakdown

How malicious GitHub content reaches an agentic CI workflow

The attack path begins with untrusted content that the workflow treats as input for the agent. In an agentic CI setup, issue text, repository content, and workflow context can all be consumed during runtime, which means the agent is not just processing code, it is making tool and action decisions based on attacker-controlled data. Once the agent is allowed to read files and invoke shell actions, the trust boundary shifts from static pipeline logic to runtime behaviour. That is where identity assumptions start to fail: the workflow owner expects the agent to stay inside a narrow operating model, but the runtime now decides what to inspect and what to execute.

Practical implication: Treat agent-facing issue and pull request content as an execution surface, not just user input.

Why plaintext OIDC credentials on a runner are a governance failure

Workload Identity Federation reduces the need for long-lived static keys, but it does not remove the need to protect the artifacts involved in token exchange. If an OIDC credential file is written to disk in plaintext, the workflow has effectively created a temporary secret with meaningful blast radius. The control problem is not the federation pattern itself, but the assumption that ephemeral equals inaccessible. In practice, any readable file on a CI runner becomes part of the identity attack surface, especially when the agent can access local files and reflect their contents into logs or context.

Practical implication: Protect transient credential artifacts with the same care as stored secrets, including file access and log exposure controls.

How project-wide service account impersonation expands the blast radius

The privilege escalation works because the service account assigned to the workflow is not constrained to one narrow function. If that identity can impersonate other service accounts across the project, the initial foothold becomes a platform-wide escalation path. This is a classic non-human identity problem: the effective risk is determined less by how the workflow authenticates and more by how much authority the resulting service account can exercise after authentication. When impersonation rights are project-wide, the access token becomes a bridge to broader identities rather than a bounded workload credential.

Practical implication: Limit service account impersonation to the smallest possible scope and remove project-wide token creator permissions where they are not essential.


Threat narrative

Attacker objective: The attacker seeks to turn a single untrusted workflow interaction into authenticated access and project-wide privilege escalation inside GCP.

  1. Entry occurs when a malicious GitHub issue is introduced into an agentic workflow that processes untrusted input during CI execution.
  2. Credential access follows when the agent can read a plaintext OIDC credential file stored on the runner and surface its contents.
  3. Escalation happens when the resulting service account token is used against overly broad GCP permissions and service account impersonation rights.
  4. Impact is compromise of the affected GCP project, including Editor-level access through chained identity abuse.

Read and download The State of NHI & AI Agent Breach Report 2026, covering 200+ breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

Agentic workflow access assumptions are collapsing at the point of execution: the old model assumed the workflow would remain within a stable and reviewable boundary long enough for access governance to work. That assumption fails when the agent can interpret untrusted input, access local files, and decide which tools to invoke during runtime. The implication is that identity control must move from static approval thinking to runtime containment for agent-driven workflows.

Plaintext credential exposure is no longer just a secrets-management issue when the reader is an agent: an OIDC file on a runner becomes part of the identity surface the moment the agent can read and reflect it. The breach path here shows that ephemeral credentials are only as safe as the environment that stores them. Practitioners need to treat temporary credential artifacts as live identity assets, not disposable implementation details.

Identity blast radius, not authentication method, determines the damage ceiling: Workload Identity Federation reduces static key risk, but broad impersonation rights turn a short-lived credential into a powerful escalation bridge. That is why least privilege must be evaluated at the service account and impersonation layer, not only at the login layer. For teams running agentic workflows, the decisive question is how far a single runtime identity can move once it is established.

GitHub to GCP workflow chains create a compounded governance gap: the agent, the runner, and the cloud service account are usually managed by different teams, but the attacker only needs one chain of trust to hold across all three. This article shows that the governance failure is cross-domain, not isolated to CI/CD or IAM. The practitioner conclusion is to govern the workflow as one identity system, not three separate controls.

Runtime tool scope is now an identity control surface: if the agent can call tools that read files or emit output, the tool policy is effectively part of access governance. The article demonstrates that mis-scoped tools can convert a prompt or issue into a credential exfiltration path. Teams should treat tool authorization as a first-class identity control, because it now determines what the workflow can do with trust it has already received.

From our research library:

What this signals

Identity blast radius is becoming the main design variable for agentic pipelines: authentication alone no longer explains risk when a workflow identity can be used to reach other identities, tools, and cloud resources. Teams should model how far a single runtime identity can travel before they assume the workflow is safe.

Agentic workflows need containment boundaries, not just prompt boundaries: the important control is no longer what instructions the model receives but what files, tools, and service accounts it can touch after receiving them. If the agent can read sensitive artifacts and output them indirectly, the workflow has already crossed a governance line.

The agentic AI market is already worth $5 billion and is projected to reach $50 billion by 2030, according to the State of Secrets Sprawl 2026, which means identity governance will increasingly have to cover fast-growing runtime automation estates as well as human-operated systems.


For practitioners

  • Constrain agent-readable file access Block agents and workflow steps from reading transient credential files unless the file is required for the specific task and is isolated from log output and model context.
  • Remove broad service account impersonation Review GCP service accounts used by CI workflows and eliminate project-wide roles that allow impersonating other service accounts outside the workflow’s direct purpose.
  • Treat issue content as untrusted execution input Place GitHub issues, pull requests, and other user-supplied text behind explicit filtering or staging before an agent can inspect them inside an automated workflow.
  • Audit workflow tool scopes and outputs Check which tools an agent can call and what those tools can emit, then remove any path that can read files or reflect secrets into logs.

Key takeaways

  • The article shows that an untrusted GitHub issue can become a cloud identity compromise path when an agentic workflow can read files and act on them during CI.
  • The impact is not limited to credential disclosure. Overly broad service account permissions can turn a readable runner artifact into project-level escalation.
  • The control lesson is to govern agent input, file access, and service account scope as one chain, because breaking any link can still leave the workflow exploitable.

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, OWASP Non-Human Identity Top 10 and MITRE ATT&CK define the specific risk controls and attack patterns relevant to this term.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10ASI02 — Tool MisuseThe exploit chain depends on an agent using tools beyond intended scope.
ASI03 — Identity & Privilege AbuseThe article centres on agentic identity misuse leading to privilege escalation.
Recommendation — Constrain agent tool access to the minimum required set and log every runtime tool invocation. Review agent identities for privilege inheritance and remove any ability to assume broader roles.
OWASP Non-Human Identity Top 10NHI-02 — Secret LeakageA plaintext OIDC file on the runner is the credential exposure point in the chain.
NHI-05 — Overprivileged NHIThe service account permissions were broad enough to enable project-wide escalation.
Recommendation — Prevent NHI secrets from reaching readable runner storage or agent-accessible logs. Scope service account permissions to task-specific access and eliminate unnecessary impersonation rights.
MITRE ATT&CKTA0006;TA0008 — Credential Access; Lateral MovementThe attack used credential access to pivot into broader cloud identity movement.
Recommendation — Map the workflow chain to credential access and lateral movement to prioritise detection and containment.

Key terms

  • Agentic workflow: An agentic workflow is a sequence of tasks executed by an AI agent with some level of tool access and decision authority. In security terms, the workflow matters because it can span multiple systems, identities, and permissions, which makes attribution and revocation harder than with ordinary automation.
  • Workload Identity Federation: A mechanism allowing workloads in one environment to authenticate to another using short-lived tokens rather than stored credentials, based on mutual trust between identity providers.
  • Identity Blast Radius: The amount of damage a compromised identity can cause across systems, data, and infrastructure. In NHI environments, it is shaped by permissions, network reach, and administrative capability rather than by the credential alone. Reducing blast radius is a containment strategy that limits lateral movement and data exposure.
  • Runtime Tool Scope: Runtime tool scope is the set of actions, files, and external systems an agent can reach while executing a task. It is a governance control, not just a technical preference, because broad tool scope can turn a single prompt or issue into credential exposure or privilege escalation.

Deepen your knowledge

NHI governance, agentic AI identity, and machine identity lifecycle are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are building or maturing an IAM programme, it is worth exploring.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 19, 2026.
Updated on October 12, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org