Cordyceps Awakens: The Silent CI/CD Supply Chain Threat Putting Microsoft, Google, Apache, and Cloudflare at Risk + Video

Listen to this Post

Featured ImageIntroduction: A New Breed of Supply Chain Attack Emerges

The open-source ecosystem has long been the foundation of modern software development. Every day, millions of developers rely on automated CI/CD pipelines to test, build, and deploy code at unprecedented speed. These systems are designed to improve efficiency, but what happens when the automation itself becomes the attack surface?

A groundbreaking security investigation by Novee has uncovered a massive class of CI/CD vulnerabilities collectively known as Cordyceps, named after the infamous parasitic fungus that hijacks and controls its hosts. Much like its biological counterpart, Cordyceps silently infiltrates trusted workflows, manipulates security assumptions, and grants attackers control over systems that were never intended to be exposed.

The research examined approximately 30,000 repositories across npm, PyPI, crates.io, and Go ecosystems, revealing a disturbing reality: some of the world’s most respected technology organizations, including Microsoft, Google, Apache, Cloudflare, and the Python Software Foundation, contained exploitable CI/CD attack chains capable of compromising critical infrastructure.

The Discovery That Shook the Open-Source World

Unlike conventional vulnerabilities that exist inside software code, Cordyceps lives between the connections of trusted systems. The weakness is not found in GitHub itself, nor in a specific application. Instead, it emerges from how automated workflows interact with one another.

Researchers identified dangerous combinations of command injection flaws, broken authentication mechanisms, poisoned build artifacts, and privilege escalation pathways that can be chained together to create devastating attacks.

What makes Cordyceps particularly alarming is its accessibility. Attackers do not require sophisticated infrastructure, insider access, or expensive tools. In many documented cases, a simple free GitHub account is sufficient to initiate attacks capable of compromising high-value environments.

Why Traditional Security Reviews Miss These Threats

Most security scanners analyze individual workflow files independently. If each step appears harmless, the workflow is often considered safe.

Cordyceps changes that assumption completely.

A low-privilege workflow may generate output that is later consumed by a high-privilege workflow. Once that privileged workflow executes, it can authenticate to cloud environments using tokens carrying extensive permissions.

Viewed separately, every workflow looks legitimate. Viewed together, they create a hidden pathway leading directly to critical infrastructure.

This trust-chain problem explains why many organizations failed to detect these weaknesses despite extensive security programs and regular audits.

Hundreds of Vulnerable Repositories Identified

During the investigation, researchers scanned nearly 30,000 repositories and identified 654 potentially vulnerable targets through automated analysis.

More than 300 repositories were subsequently confirmed as fully exploitable.

These findings suggest that insecure workflow patterns are not isolated incidents but widespread design flaws replicated across the open-source ecosystem.

The scale of exposure indicates that thousands of additional repositories may still contain similar vulnerabilities waiting to be discovered.

Microsoft Azure Sentinel: From Pull Request to Persistent Access

One of the most striking discoveries involved Microsoft Azure Sentinel.

Researchers demonstrated that an attacker could submit a pull request comment that executed arbitrary code within Microsoft’s CI infrastructure. The attack allowed theft of a non-expiring GitHub App credential and ultimately granted persistent write access to security detection content distributed to customer environments.

The implications are severe. Security products are trusted to detect attacks, but compromised update mechanisms could potentially introduce malicious content into systems relying on those detections.

This case highlights how seemingly harmless community contributions can become entry points into highly sensitive infrastructure.

Google’s AI Agent Development Kit Exposed

Researchers also uncovered a critical attack path within Google’s AI Agent Development Kit.

A single pull request was reportedly sufficient to obtain authenticated control over the associated Google Cloud project. The compromised permissions reached the role of roles/owner, which represents the highest privilege level available within Google Cloud Platform.

At this level, attackers could theoretically manage infrastructure, alter security configurations, create service accounts, and gain broad administrative control over cloud resources.

The finding demonstrates how workflow vulnerabilities can rapidly escalate into complete cloud environment compromise.

Apache Doris: Multiple Paths to Exploitation

Apache Doris presented two independent attack chains.

The first enabled extraction of hardcoded CI credentials through pull request interactions. The second allowed theft of tokens possessing extensive permissions across GitHub Actions, repository content, and package management systems.

The existence of multiple exploitation routes within the same project reinforces a critical lesson: organizations often focus on individual weaknesses while overlooking the broader trust relationships connecting automated systems.

When attackers discover several pathways leading to privileged assets, defense becomes exponentially more difficult.

Cloudflare Workers SDK and Command Injection Risks

Cloudflare’s Workers SDK was found vulnerable through an unexpected mechanism.

Researchers showed that a specially crafted branch name could trigger arbitrary command execution on CI runners.

This type of vulnerability is particularly dangerous because branch names are often treated as harmless metadata. Developers rarely consider them hostile input.

Cordyceps demonstrates that virtually any user-controlled data entering CI/CD workflows must be considered potentially malicious.

Python Black Formatter and Downstream Supply Chain Risks

The widely used Black Python formatter, downloaded approximately 130 million times every month, was also affected.

Researchers reported that any pull request could potentially steal the project’s automation token. With that token, attackers could forge approvals and establish a pathway toward poisoning official Docker container images distributed downstream.

The danger extends far beyond a single repository.

Compromising trusted development tools creates opportunities to affect countless organizations that rely on them as dependencies.

This is the essence of a supply chain attack: compromising one trusted component to reach thousands or millions of downstream targets.

AI Coding Assistants Are Making the Problem Worse

One of the most concerning aspects of the Cordyceps research involves artificial intelligence.

AI coding assistants are increasingly generating GitHub Actions workflows, CI/CD configurations, and deployment pipelines automatically.

Unfortunately, these systems often reproduce insecure examples found in public repositories.

As developers continue adopting AI-generated infrastructure code, vulnerable workflow patterns may spread faster than security teams can identify and fix them.

The result is a potential amplification effect where a single insecure pattern propagates across millions of repositories worldwide.

The Hidden Cost of Automation

Organizations frequently view CI/CD systems as operational tools rather than security-sensitive assets.

This mindset creates dangerous blind spots.

Automation pipelines now hold cloud credentials, signing keys, deployment permissions, container publishing rights, and repository administration capabilities.

In many environments, CI/CD infrastructure possesses more privileges than individual employees.

When attackers compromise these workflows, they effectively inherit the authority of the entire software delivery process.

Deep Analysis: Investigating CI/CD Exposure Through Security Auditing

Security teams should begin treating CI/CD configurations with the same rigor applied to production applications.

Useful Linux-based review commands include:

Search for dangerous shell interpolation

grep -R "\${{" .github/workflows/

Locate GitHub Actions workflows

find . -name ".yml" -path "/.github/workflows/"

Detect hardcoded secrets

grep -Ri token\|secret\|password\|apikey .

Review workflow permissions

grep -R "permissions:" .github/workflows/

Identify workflow_run triggers

grep -R "workflow_run" .github/workflows/

Audit pull_request_target usage

grep -R "pull_request_target" .github/workflows/

Find shell execution points

grep -R "run:" .github/workflows/

Review environment variables

grep -R "env:" .github/workflows/

Analyze reusable workflows

grep -R "uses:" .github/workflows/

Examine artifact transfers

grep -R "upload-artifact|download-artifact" .github/workflows/

These commands provide a starting point for identifying risky trust relationships, privilege escalation opportunities, and user-controlled inputs that may enable Cordyceps-style attacks.

What Undercode Say:

The Cordyceps disclosure represents a fundamental shift in how the industry must think about software supply chain security.

For years, organizations concentrated on vulnerable packages, outdated libraries, and dependency confusion attacks.

Cordyceps reveals that the workflows orchestrating software delivery can be equally dangerous.

The most important lesson is that trust boundaries inside CI/CD systems are often undocumented.

Many engineering teams inherit workflows created years ago.

Developers modify pipelines incrementally without understanding the full security implications.

Over time, privilege chains become increasingly complex.

Small workflow changes accumulate.

Permissions expand.

Automation grows.

Eventually nobody fully understands the complete execution path.

Attackers thrive in these environments.

What makes Cordyceps particularly effective is its ability to exploit assumptions rather than software bugs.

The workflows function exactly as designed.

The design itself becomes the vulnerability.

This distinction is crucial.

Traditional vulnerability management programs are optimized to find coding errors.

They are less effective at discovering flawed trust relationships.

The research also highlights a dangerous dependency on automation.

Organizations often grant CI systems broad cloud privileges because it simplifies deployment.

Convenience gradually replaces security discipline.

Once privileged credentials enter automated workflows, every connected process becomes part of the attack surface.

Another major concern is the role of AI-generated infrastructure code.

As large language models become common development assistants, insecure workflow examples can spread rapidly.

Developers frequently trust generated configurations without comprehensive security reviews.

This creates a multiplier effect.

One insecure pattern can appear across thousands of projects within weeks.

The open-source ecosystem is particularly vulnerable because reusable templates are widely copied.

A flawed workflow published today could influence countless repositories tomorrow.

The long-term solution requires workflow threat modeling.

Every trust boundary must be documented.

Every privilege escalation path must be justified.

Every automation token should be considered a high-value asset.

Security teams should begin auditing CI/CD pipelines with the same intensity applied to production applications and cloud infrastructure.

Cordyceps is not merely another vulnerability disclosure.

It is evidence that software delivery pipelines have become one of the most attractive targets in modern cybersecurity.

✅ Researchers reported scanning approximately 30,000 repositories across multiple ecosystems and identified hundreds of potentially exploitable repositories.

✅ The vulnerabilities primarily involve CI/CD workflow design patterns, including privilege escalation, command injection opportunities, and unsafe trust relationships rather than flaws in GitHub itself.

✅ The affected projects named in the research include major open-source and enterprise ecosystems, demonstrating that even mature organizations can overlook workflow-level security weaknesses.

Prediction

(+1) Organizations will begin performing dedicated CI/CD security audits, leading to stronger workflow isolation, reduced privilege levels, and more secure software delivery pipelines. 🚀

(+1) Security vendors will develop specialized tools capable of mapping trust relationships across workflows, cloud environments, and repositories automatically. 🔐

(-1) AI-generated workflow templates may continue spreading insecure patterns faster than security teams can identify them, creating new supply chain risks over the coming years. ⚠️

(-1) Attackers will increasingly target automation infrastructure because CI/CD systems often possess privileged access to source code, cloud platforms, deployment pipelines, and production environments. 📉

▶️ Related Video (76% Match):

🕵️‍📝Let’s dive deep and fact‑check.

🎓 Live Courses & Certifications:

Join Undercode Academy for Verified Certifications

🚀 Request a Custom Project:

Secure, high-velocity infrastructure and disruptive technological engineering. Contact our engineering team for high-tier development and proprietary systems:
[email protected]
💎 Smart Architecture | 🛡️ Secure by Design | ⭐ Trusted by Thousands

References:

Reported By: cyberpress.org
Extra Source Hub (Possible Sources for article):
https://www.medium.com
Wikipedia
OpenAi & Undercode AI

Image Source:

Unsplash
Undercode AI DI v2

🔐JOIN OUR CYBER WORLD [ CVE News • HackMonitor • UndercodeNews ]

💬 Whatsapp | 💬 Telegram

📢 Follow UndercodeNews & Stay Tuned:

𝕏 formerly Twitter 🐦 | @ Threads | 🔗 Linkedin | 🦋BlueSky | 🐘Mastodon | 📺Youtube