Your CI/CD Pipeline Has Three New Attack Vectors — and They All Exploit AI Tool Trust
Three Attacks, One Pattern: AI Tools as Privilege Escalation Paths
This week produced an unusual convergence: three independent supply chain attacks all exploiting the trust boundary between AI developer tools and CI/CD secrets. Taken individually, each is concerning. Together, they reveal a new attack surface category that most teams haven't modeled.
Any workflow where an LLM processes untrusted input and has access to secrets is a prompt injection → credential exfiltration → supply chain compromise waiting to happen.
1. The Shai-Hulud NPM Worm (Active Campaign)
A self-propagating NPM worm is actively targeting CI pipelines and AI coding assistants. The attack chain: malicious packages harvest secrets from CI environments (npm tokens, cloud credentials, deployment keys), then use those credentials to publish themselves into other packages and spread across projects. The dormant wipe mechanism means the attacker can sit quietly for weeks harvesting every secret that flows through your CI system, then trigger destructive payloads across every infected project simultaneously. Multiple independent threat intelligence sources confirm this campaign is active now. The AI coding tool vector is particularly insidious — tools like Copilot and Cursor that suggest package imports can launder a malicious package through a trusted interface.
2. The Cline Supply Chain Compromise (Demonstrated)
Cline CLI — an open-source AI coding assistant with 5M+ installations — was compromised via prompt injection in its Claude-powered issue triage workflow. An attacker injected prompts through GitHub issues that were processed by the AI triage system, exposing production credentials. After the researcher spent over a month trying to contact Cline developers with zero response, a compromised Cline CLI 2.3.0 was published that silently installed OpenClaw (described by Cisco Talos as a 'security nightmare'). It was live for 8 hours. The post-incident fix: OIDC provenance via GitHub Actions.
3. RoguePilot: Copilot Token Exfiltration (Demonstrated)
An attacker creates a GitHub issue containing hidden prompt injection. When a developer opens Codespaces with Copilot enabled, Copilot ingests the issue content as context. The injected prompt instructs Copilot to exfiltrate the GITHUB_TOKEN — which typically has write access to the repo, can push commits, merge PRs, and access other private repos in the org.
Also on the .NET Side
Four malicious NuGet packages persisted in the official repository for over 18 months with 4,500+ downloads, deploying proxies on developer machines, exfiltrating ASP.NET identity data, and injecting backdoors into locally-built applications.
The Architectural Lesson
All four attacks share one root cause: AI-automated workflows operating in privileged contexts while processing untrusted input. Your defense is layered:
- Use
npm ci(notnpm install) in every CI pipeline — enforces exact lockfile resolution - Run
npm auditas a blocking CI gate - Restrict network egress from build environments
- Migrate publishing to OIDC provenance via GitHub Actions (keyless signing)
- Disable auto-install and auto-dependency-addition in AI coding tools
- Audit Copilot's access to issue content in Codespaces environments
What to do
Run `npm audit` across all projects and diff lockfiles against last known-good state today
Migrate npm/PyPI/container registry publishing to OIDC provenance via GitHub Actions by end of sprint
Restrict Copilot's access to issue content in Codespaces environments this week
Audit .NET dependency trees for the four malicious NuGet packages identified by Socket Security