All Topics
All Topics
Technology
Technology
AI
AI
Business
Business
Entertainment
Entertainment
News
News
Programming
Programming
Security
Security
Science
Science
Design
Design
Environment
Environment
Finance
Finance
Crypto
Crypto
Politics
Politics
Sports
Sports
Education
Education
Gaming
Gaming
Art
Art
Music
Music
Health
Health
Books
Books
Food
Food
Travel
Travel
Personal
Personal
Bluesky
Twitter

Microsoft discovers prompt injection vulnerability in Claude Code GitHub Action exposing CI/CD secrets

By

Microsoft Defender Security Research Team, Dor Edry, Amit Eliahu

21d ago· 10 min readenInsight

Summary

Microsoft Threat Intelligence discovered a prompt injection vulnerability in Anthropic's Claude Code GitHub Action that could expose CI/CD workflow secrets. The vulnerability allowed AI agents processing untrusted GitHub content (issue bodies, PR descriptions, comments) to access /proc/self/environ via the Read tool, which was not sandboxed like subprocess execution paths. This could leak the ANTHROPIC_API_KEY and other credentials available to the runner. The article covers the attack chain, responsible disclosure process, Anthropic's mitigation, and guidance for securing AI-powered CI/CD workflows.

Source

bskyMicrosoft discovers prompt injection vulnerability in Claude Code GitHub Action exposing CI/CD secretsmicrosoft.com

Key quotes

· 3 pulled
Microsoft Threat Intelligence discovered that Anthropic's Claude Code GitHub Action could expose CI/CD workflow secrets when AI agents process untrusted GitHub content, including issue bodies, pull request descriptions, and comments.
While Claude Code Action supported environment scrubbing for subprocess execution paths such as Bash, the Read tool was not subject to the same sandboxing model.
It was eventually authorized to access /proc/self/environ, reading the workflow's ANTHROPIC_API_KEY and potentially other credentials available to the runner.
Snippet from the RSS feed
Microsoft Threat Intelligence identified a prompt injection pathway in Claude Code GitHub Action that allowed access to workflow secrets under specific conditions. This research examines the attack chain, responsible disclosure process, Anthropic's mitiga

You might also wanna read

Comments

Sign in to join the conversation.

No comments yet. Be the first.