AI Risk Wire

Cases › security breach › LR-2026-0578

Claude Code GitHub Action prompt-injection flaw could expose GitHub credentials

Preliminary Why: 1 report: Decrypt · subject to change · 1 independent report

Status: fix reported

Severity minor
Reported 6 Jun 2026
Developer and model Anthropic
Agent tool Claude Code GitHub Action
Industry software development

No source states: loss or records, could do, deployer.

Anthropic's Claude Code GitHub Action, an AI coding agent that reviews GitHub issues and pull requests, was found by Microsoft researchers to be open to prompt injection. Malicious instructions hidden in GitHub content could make the agent read sensitive credentials and alter them to evade safeguards and secret scanning, after which an attacker could reconstruct and exfiltrate them. Microsoft tested the attack in a workflow it created and disclosed the issue through HackerOne on April 29. Anthropic patched the flaw on May 5 with Claude Code version 2.1.128. Microsoft's blog post warned that AI coding agents in CI/CD workflows may create new security risks.

What happened

1 · What it was doingAnthropic's Claude Code GitHub Action, an AI coding agent, processed GitHub issues, pull requests and comments that Microsoft researchers tested.
2 · What went wrongMalicious instructions hidden in GitHub content led the agent to read sensitive credentials and alter them to evade safeguards and secret scanning.
3 · What it reached or didMicrosoft said an attacker could then rebuild the credential and send it out through several channels.
4 · How it was caughtMicrosoft researchers found the flaw and disclosed it to Anthropic through HackerOne.

What was done

Fix reported

“Anthropic patched the flaw on May 5 with Claude Code version 2.1.128”

Vulnerability scanning of AI components

Same developer, same risk, after the fix: LR-2026-0086 · LR-2026-0089

Risks

Read from the sources; not yet reviewed by a person.

Controls

Infrastructure / target

Not effective (bypassed) Secrets scanning

Control failure chain

L1 · Model Not stated in sourcesAnthropic
L2 · Harness Not stated in sourcesClaude Code GitHub Action
L3 · Application Not stated in sourcesDeployer not named
L4 · Infrastructure / target Not effective (bypassed)Organisation hit

L1 · ModelAnthropicModel provider

No source mentions a control at this layer.

Model version not linked to a model card.

L2 · HarnessClaude Code GitHub ActionAgent framework vendor

No source mentions a control at this layer.

Other controls for this risk at this layer, not mentioned in the sources: Outside content treated as data, not instructions, Prompt-injection detection, Confirmation after untrusted input, Validation of tool inputs and outputs, Tool allow-list.

L3 · ApplicationDeployer not namedDeployer

No source mentions a control at this layer.

Other controls for this risk at this layer, not mentioned in the sources: Human approval for high-impact actions, Least-privilege access for the agent, Segmentation of agent components, Alerts on unusual tool use.

L4 · Infrastructure / targetOrganisation hit

Not effective (bypassed)Secrets scanning“The prompt injection attack tricked Claude into reading sensitive credentials and altering them to evade both Claude's safeguards and GitHub's secret-scanning tools.”Decrypt

EffectiveNot effectiveNot effective (bypassed)Did not existNot stated in sourcesNot yet checkedAttacker's ownOrder: model · harness · application · target

Controls for this risk: result in this incident

ControlPart of the systemResult
Tool allow-listL2 HarnessNot stated in sources
Confirmation after untrusted inputL2 HarnessNot stated in sources
Outside content treated as data, not instructionsL2 HarnessNot stated in sources
Prompt-injection detectionL2 HarnessNot stated in sources
Validation of tool inputs and outputsL2 HarnessNot stated in sources
Least-privilege access for the agentL3 ApplicationNot stated in sources
Human approval for high-impact actionsL3 ApplicationNot stated in sources
Segmentation of agent componentsL3 ApplicationNot stated in sources
Alerts on unusual tool useL3 ApplicationNot stated in sources
Secrets scanningL4 Infrastructure / targetNot effective (bypassed)

Similar incidents

All cases of this kind ›

Evidence

No source states: when it happened, when it was found, how many records were exposed, the direct loss, a count of the other parties affected, any court case, what was done.

Show the full account: 2 items from the primary sources

What happened, in order

  1. April 29 Microsoft disclosed the vulnerability to Anthropic through HackerOne.
  2. May 5 Anthropic patched the flaw with Claude Code version 2.1.128.
Show every field, with its source and grade

The AI system

Developer
Anthropic
C one secondary source states it
Software around the model
Claude Code GitHub Action
C one secondary source states it

What happened

Earliest source we hold
2026-06-06
D inferred by us from the described behaviour, reason shown
What set it off
hidden instructions in its input
C one secondary source states it
Who caught it
an outside party
C one secondary source states it
Cause
hostile input carried instructions
C one secondary source states it
What was done
Anthropic patched the flaw on May 5 with Claude Code version 2.1.128
C one secondary source states it
What went wrong
security breach
C one secondary source states it
AI agent
an AI agent acted
C one secondary source states it
primary risk
RK01
D inferred by us from the described behaviour, reason shown
secondary risks
RK03
D inferred by us from the described behaviour, reason shown
control chain
layer: L4; party: target; party name: GitHub; control id: J7; outcome: got around; quote: The prompt injection attack tricked Claude into reading sensitive credentials and altering them to evade both Claude's safeguards and GitHub's secret-scanning tools.; source index: 0
C one secondary source states it

Impact

Severity
minor
D inferred by us from the described behaviour, reason shown

Context

Industry
software development
C one secondary source states it

Notes on gaps

Year 2026 for dates taken from the source publication date header. The environment-variable scrubbing mitigation was reported active during tests but the source does not say whether it held, so it is not listed. The advice remediation is Microsoft's statement, not an action taken by a party.

LR-2026-0578 · version 1 · published 2026-11-01 after automatic checks; not yet checked field by field by a person · JSON