Security

AI GitHub Actions Secret Exposure in Claude Code

3 min read

Summary

Microsoft Threat Intelligence found that Anthropic’s Claude Code GitHub Action could expose CI/CD secrets when AI agents process untrusted GitHub content such as issues, pull requests, and comments. Anthropic fixed the issue in Claude Code 2.1.128, but the research highlights broader risks for any AI-enabled workflow with access to secrets, file reads, or outbound communication.

Need help with Security?Talk to an Expert

Introduction

AI-powered GitHub Actions can speed up issue triage, pull request reviews, and repository automation. But Microsoft’s latest research shows that when these workflows process untrusted content and also have access to secrets or powerful tools, they can become a new attack path inside CI/CD pipelines.

What Microsoft found

Microsoft Threat Intelligence discovered a flaw in Anthropic’s Claude Code GitHub Action that could allow secrets in the runner environment to be exposed.

Key findings include:

  • Untrusted GitHub content can influence the AI agent: issue bodies, PR descriptions, and comments may contain prompt injection payloads.
  • Sandboxing was inconsistent: Bash subprocesses used environment scrubbing protections, but the Read tool did not follow the same isolation model.
  • Sensitive files could be accessed: the agent could read /proc/self/environ, exposing values such as ANTHROPIC_API_KEY and potentially other credentials available to the workflow runner.
  • The issue is fixed: Anthropic mitigated the vulnerability in Claude Code version 2.1.128 by blocking access to sensitive /proc files.

Why this matters for defenders

This research is bigger than a single product bug. Microsoft also observed prompt injection attempts in public repositories using AI-assisted GitHub workflows from multiple vendors.

The core risk is the same across many implementations:

  • User-controlled GitHub content is embedded into an LLM prompt.
  • The model output is treated as actionable.
  • The agent runs in CI/CD with access to repository data, tokens, API keys, or file-read capabilities.

In one example, Microsoft described how an attacker could hide instructions in issue content to steer an AI bot into modifying documentation and creating a pull request containing malicious HTML. That creates potential for supply-chain compromise, XSS, or secret access depending on tool permissions.

Impact on IT and security teams

For administrators and security teams, this means AI-enabled workflow automation should be treated as a high-risk integration when it combines:

  • Untrusted external input
  • Secret access
  • File read/write tools
  • GitHub API permissions
  • External network communication

Traditional CI/CD workflows were designed for deterministic tasks. AI agents introduce a decision-making layer that expands the attack surface and shifts prompt construction, tool access, and runtime isolation into the security boundary.

  • Update Claude Code to version 2.1.128 or later.
  • Review GitHub Actions that process issues, PRs, or comments with AI agents.
  • Limit secret exposure in workflows triggered by untrusted users.
  • Restrict tool permissions for AI actions, especially file-read, write, shell, and PR creation capabilities.
  • Separate trust boundaries so public-facing automation does not share runners or credentials with sensitive deployment workflows.

Organizations adopting agentic DevOps workflows should assume prompt injection is a realistic threat and design controls accordingly.

Need help with Security?

Our experts can help you implement and optimize your Microsoft solutions.

Talk to an Expert

Stay updated on Microsoft technologies

GitHub ActionsCI/CDprompt injectionsecrets managementAI security

Related Posts

Security

Microsoft Digital Defense Report 2026: Key Security Insights

Microsoft's 2026 Digital Defense Report highlights how AI and growing system interconnectedness are reshaping both cyberattacks and defense strategies. The report emphasizes that organizations must secure AI, identities, data, and cloud environments together while improving signal correlation across tools to detect modern threats faster.

Security

Government Cyber Risk in 2026: Microsoft’s 5 Priorities

Microsoft says government agencies were the most targeted sector in 2026, accounting for 27% of observed cyber threat activity. The company urges public-sector leaders to focus on five resilience priorities, including faster response, AI security, bidirectional information sharing, and planning for incidents that spread across suppliers and essential services.

Security

Microsoft Ignite 2026 Security Guide: Key Sessions

Microsoft has published its security guide for Microsoft Ignite 2026, highlighting AI-first security themes, a dedicated Security Pre-Day, and technical sessions focused on securing identities, data, devices, clouds, and AI agents. For IT and security teams, the event offers an early look at Microsoft’s roadmap and practical guidance for building an AI-ready security strategy.

Security

CVE-2026-73570: Zimbra Mail Server Exploitation

Microsoft is tracking active exploitation of CVE-2026-73570, an unauthenticated command injection flaw affecting internet-facing Zimbra mail servers with the optional zimbra-snmp package installed and SNMP notifications enabled. The issue can lead to web shell deployment, privilege escalation, mailbox data theft, and persistent remote access, making immediate patching and configuration review critical for administrators.

Security

Phishing Abuses RMM Tools for Persistent Access

Microsoft security researchers observed phishing campaigns in July 2026 that used a legitimate MSP360 RMM installer disguised as meeting invites, PDF updates, and other lures to gain remote access. Attackers then deployed ConnectWise ScreenConnect for redundant persistence, highlighting the need for tighter controls on remote management tools and better detection of unapproved RMM activity.

Security

Azure DevOps Attack Path Exposed in New DART Report

Microsoft’s latest DART cyberattack report shows how a single compromised identity was used to access Azure DevOps, alter pipelines, and harvest Kubernetes credentials. The case highlights how tightly connected identity, DevOps, and cloud environments can let attackers move far beyond source code, making stronger identity and pipeline controls essential.