Skip to content
MediumNewsLLM-specific

Securing CI/CD in an agentic world: Claude Code Github action case

Published
Record updated
View JSON

Summary

Microsoft Threat Intelligence found that Anthropic's Claude Code GitHub Action could expose CI/CD workflow secrets when the agent processed untrusted GitHub content such as issue bodies, pull request descriptions, and comments. The Read tool was not subject to the same sandboxing as Bash, and it could be authorized to read /proc/self/environ, exposing the workflow's ANTHROPIC_API_KEY and possibly other runner credentials.

Mitigation

Following responsible disclosure, Anthropic mitigated the issue in Claude Code version 2.1.128 by blocking access to sensitive /proc files. Microsoft advises defenders to treat AI workflows that process untrusted GitHub content as high-risk when they also have access to secrets, file-read tools, or external communication channels.