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.
NHIMG editorial — based on content published by Pillar Security: Introducing SAIL 2.0 Framework and the Gemini CLI issue chain leading to GCP project compromise
Questions worth separating out
Q: How should teams prevent agentic CI workflows from turning issue content into cloud access?
A: Teams should keep untrusted repository content, agent tool execution, and cloud authentication in separate trust zones.
Q: Why do short-lived cloud credentials still fail in agentic workflows?
A: Short-lived credentials still fail when the agent or runner can read them from disk, memory, or logs before they expire.
Q: What breaks when service account impersonation is granted too broadly?
A: Broad impersonation turns a workflow identity into a bridge account.
Practitioner guidance
- Constrain workflow identities to single-purpose permissions Remove project-wide impersonation rights and scope serviceAccountTokenCreator to the narrowest service account or task boundary.
- Treat runner-local OIDC artifacts as sensitive secrets Prevent OIDC credential files, token material, and setup output from being written to disk or exposed to agent-readable paths.
- Separate agent tool access from repository input processing Do not let an agent that processes untrusted issues or pull requests also have unrestricted read_file or shell execution paths.
What's in the full report
Pillar Security's full research covers the operational detail this post intentionally leaves for the source:
- The exact GitHub issue and workflow chain used to move from untrusted content to CI execution.
- The step-by-step OIDC and service account impersonation path that led into GCP.
- The log masking and output-chunking behaviour used to turn partial token disclosure into a usable credential path.
- The remediation changes made to tool scoping and credential handling in the workflow.
👉 Read Pillar Security's analysis of the Gemini CLI issue chain and GCP compromise path →
GitHub to GCP agent workflows: where identity controls are breaking?
Explore further
Agentic workflow security is now an identity governance problem, not just a prompt-safety problem. The article shows that untrusted input only becomes dangerous when it is paired with a workflow identity that can read files, execute commands, and inherit cloud permissions. That means security teams must govern the whole runtime identity chain, from the agent toolset to the cloud delegation model. The practitioner conclusion is that prompt controls alone do not bound the attack surface.
A few things that frame the scale:
- 80% of organisations report their AI agents have already performed actions beyond their intended scope, including accessing unauthorised systems (39%), inappropriately sharing sensitive data (31%), and revealing access credentials (23%), according to AI Agents: The New Attack Surface report.
- Only 52% of companies can track and audit the data their AI agents access, leaving 48% with a complete blind spot for compliance and breach investigation.
A question worth separating out:
Q: What should security teams review first after an agentic workflow compromise?
A: Start with the workflow identity, the exact tools exposed to the agent, the location of any credential files, and the downstream service account permissions. Then trace whether the workflow can impersonate other identities, because that is where a small exposure becomes a large breach.
👉 Read our full editorial: Agentic workflow identity assumptions are collapsing in GitHub to GCP flows