Skip to main content
Mallory
← Back to News
build-pipeline-compromiseai-platform-securityleaked-secret-api-keyidentity-authentication-vulnerability

Claude Code GitHub Action Flaws Exposed CI/CD Secrets and Enabled Repo Takeover

Supply Chain Risk · 4 sources · Updated 4mo ago · First seen Jun 4, 2026

Claude Code GitHub Action Flaws Exposed CI/CD Secrets and Enabled Repo Takeover

Researchers disclosed multiple security flaws in Anthropic’s Claude Code GitHub Action that could let attackers compromise public repositories and expose CI/CD secrets through a single malicious GitHub issue or other untrusted content. One issue, reported by RyotaK of GMO Flatt Security, stemmed from an authorization bypass that trusted any GitHub actor whose name ended in [bot], allowing attacker-controlled GitHub Apps to trigger workflows and inject malicious prompts. Anthropic said the bug could lead to disclosure of environment secrets, including credentials used to obtain OIDC tokens and Claude GitHub App installation tokens with write access, creating a path to repository takeover and broader supply-chain compromise.

Microsoft Threat Intelligence separately showed that Claude Code’s Read tool was not sandboxed like its Bash tool, enabling access to sensitive runner data such as /proc/self/environ and leakage of secrets including ANTHROPIC_API_KEY. In lab testing, Microsoft demonstrated prompt-injection attacks that bypassed model safeguards and GitHub secret scanning to exfiltrate credentials through logs, comments, or external channels. Anthropic fixed the authorization issue within days of disclosure and later added hardening in claude-code-action v1.0.94, while the /proc exposure was mitigated in Claude Code v2.1.128 by blocking access to sensitive procfs files; defenders were urged to treat AI-enabled CI/CD workflows processing untrusted issues, pull requests, and comments as high risk.

Why it matters

Impact assessment

Claude Code GitHub Action flaws exposed a high-risk path for public repository compromise, CI/CD secret leakage, and potential downstream supply-chain abuse. The most affected organizations are software teams using AI-enabled GitHub Actions that process untrusted issues, pull requests, or comments, especially workflows granting repository write permissions or access to cloud and third-party secrets.

The impact ranges from credential disclosure to repository takeover and malicious code or content insertion. Scope is potentially broad across public repositories using vulnerable Claude Code Action configurations, though exploitation depends on workflow design; the reporting includes lab-demonstrated exploitation and a credible single-issue attack path, but no confirmed large-scale in-the-wild campaign was cited.

Affected populations

  • Organizations using Anthropic Claude Code GitHub Action in CI/CD or repository automation.
  • Public repositories that allow workflows to process untrusted GitHub content.
  • Teams using AI agents for issue triage, PR review, slash commands, labeling, or automated code/documentation changes.
  • Repositories using permissive settings such as allowed_non_write_users: "*".

Severity and business risk

  • Secret exposure can include ANTHROPIC_API_KEY, GitHub GITHUB_TOKEN, OIDC-related credentials, cloud credentials, package publishing tokens, and third-party API keys.
  • Successful exploitation can enable write access to repository code, issues, pull requests, and workflows.
  • Repository takeover creates risk of malicious commits, workflow tampering, documentation-site XSS, and supply-chain compromise.
  • Public workflow summaries and logs can become exfiltration channels, increasing reputational and operational risk.

Scope and exploitation status

  • Exposure is not limited to Anthropic’s own repository; any public repo using the affected action and unsafe trust boundaries is at risk.
  • Microsoft documented prompt-injection exploitation in lab conditions.
  • RyotaK demonstrated a single malicious GitHub issue attack path against vulnerable public repositories.
  • The story references broader real-world prompt-injection abuse against AI-enabled CI/CD workflows, but does not provide confirmed mass exploitation of this specific flaw.
Does this reach your builds?Trace attribution and downstream blast radius.
Trace the chain
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

6 events · May 5, 2026 – Jun 5, 2026
  1. Jun 5, 20266mo ago

    Microsoft publishes lab findings on Claude Code CI/CD secret exposure

    Microsoft Threat Intelligence published research showing in lab conditions that prompt injection against Claude Code workflows could bypass model safeguards and GitHub secret scanning to leak CI/CD credentials. The company warned that AI workflows handling untrusted GitHub content and secrets should be treated as high risk.

    Securing CI/CD in an agentic world: Claude Code Github action case | Microsoft Security Blog
  2. Jun 4, 20266mo ago

    Researcher publicly discloses single-issue repository hijack vulnerability

    A public disclosure described how one malicious GitHub issue could hijack vulnerable public repositories using Anthropic's Claude Code GitHub Action. The write-up said Anthropic assigned the flaw a CVSS v4.0 score of 7.8 and paid a bug bounty.

    Claude Code GitHub Action Flaw Let One Malicious Issue Hijack Repositories
  3. Jun 4, 20266mo ago

    Anthropic fixes reported GitHub Action flaw within four days

    After receiving the January report, Anthropic fixed the authorization-bypass issue within four days and later added further hardening in claude-code-action v1.0.94. The bug could have enabled repository compromise and exposure of CI/CD secrets from a single malicious GitHub issue.

    Claude Code GitHub Action Flaw Let One Malicious Issue Hijack Repositories
  4. Jun 4, 20266mo ago

    Researcher reports Claude Code GitHub Action auth bypass to Anthropic

    RyotaK of GMO Flatt Security reported a vulnerability in Anthropic's Claude Code GitHub Action in January. The flaw trusted any GitHub actor whose name ended in "[bot]," allowing attacker-controlled GitHub Apps to trigger the action with malicious issue content.

    Claude Code GitHub Action Flaw Let One Malicious Issue Hijack Repositories
  5. Reported Jun 1, 20266mo ago

    Researcher says Claude Code workflow variants were exploited in the wild

    GMO Flatt Security's public write-up said variants of the Claude Code workflow misconfiguration issues had been actively exploited in the wild before publication. The article tied this claim to unsafe official workflow patterns such as overly broad trigger settings and secret-exposing automation paths.

    Poisoning Claude Code: One GitHub Issue to Break the Supply Chain - GMO Flatt Security Research
  6. May 5, 20267mo ago

    Anthropic mitigates Claude Code Read-tool secret exposure in v2.1.128

    On 2026-05-05, Anthropic mitigated a separate Claude Code issue by blocking access to sensitive /proc files in version 2.1.128. Microsoft said the unsandboxed Read tool could expose runner secrets such as ANTHROPIC_API_KEY when AI agents processed untrusted GitHub content.

    Securing CI/CD in an agentic world: Claude Code Github action case | Microsoft Security Blog
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

1 linked
Claude

Organizations

1 linked
Anthropic
Do you run this?See attribution and downstream blast radius, and whether this package or vendor reaches your builds.
Trace the Supply Chain
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.