appsec.fyi

Supply Chain — A Practical Guide

A curated AppSec resource library covering XSS, SQLi, SSRF, IDOR, RCE, XXE, OSINT, and more.

Supply Chain: A Practical Guide

Curated and synthesized by . Last updated 2026-09-01. Synthesized from 732 of 732 curated resources. Browse all 732 Supply Chain resources →

Problem Framing: The Shifting Sands of Trust

The notion of trust within the software development lifecycle has undergone a seismic shift. Historically, trust was placed implicitly in the integrity of developer tools, package managers, and open-source repositories. However, the proliferation of sophisticated supply chain attacks has eroded this trust, revealing how deeply ingrained vulnerabilities can be within the very foundations of software creation. These attacks are no longer fringe incidents; they represent a systemic failure mode where the complex interdependencies of modern development workflows are weaponized for widespread compromise [1]. The scale and speed of these attacks, often augmented by AI, demand a pragmatic, practitioner-focused approach to understanding and mitigating these risks.

At its core, the problem lies in the inherent trust assumptions made throughout the software supply chain. When a developer pulls a package from npm or PyPI, they implicitly trust that the code is free from malicious intent. When a CI/CD pipeline executes a build script, it trusts the integrity of that script. When an AI coding assistant suggests a dependency, the developer trusts its recommendation. These trust anchors are precisely what attackers exploit, turning common development practices into vectors for credential theft, system compromise, and the propagation of malware [1][2]. The sheer volume of open-source packages, coupled with the speed of development, creates an environment where manual verification is impossible, and automated systems are often outmaneuvered [3].

The attack surface has expanded dramatically beyond traditional code vulnerabilities. It now encompasses the entire software development lifecycle (SDLC) infrastructure, from developer workstations and IDE extensions to package repositories, CI/CD pipelines, and even the AI models that assist in coding [4]. The rapid adoption of AI coding assistants, for instance, introduces new pathways for attack, where prompt injection or malicious agent skills can lead to sensitive data exfiltration or code misinterpretation [5][6]. This multifaceted threat landscape necessitates a shift from purely code-centric security to a more holistic view that encompasses infrastructure, identity, and process integrity.

Core Mechanics: Exploiting Trust and Automation

Supply chain attacks exploit a fundamental truth: software is built from components, and the integrity of the final product depends on the integrity of those components and the processes that assemble them. Attackers leverage several core mechanics to compromise this chain:

Package Management Abuse

Package managers like npm, PyPI, and Cargo are prime targets. Attackers employ tactics such as:

CI/CD Pipeline Compromise

Continuous Integration/Continuous Deployment (CI/CD) pipelines are attractive targets due to their elevated privileges and access to production environments and sensitive credentials.

Developer Environment as an Attack Vector

The tools developers use daily are increasingly targeted.

AI Augmentation of Attacks

Artificial intelligence is not only a target but also a force multiplier for attackers.

Notable Techniques and Attack Vectors

Beyond the core mechanics, specific techniques have emerged or seen renewed prominence:

Wormable Malware and Self-Propagation

Malware like Shai-Hulud and its variants (Mini Shai-Hulud, SHA1-Hulud) are designed to self-propagate across package registries and developer environments [48][21][22][3][49][50]. They achieve this by stealing credentials (especially CI/CD tokens and cloud API keys), then using those credentials to publish trojanized versions of popular packages or to access private repositories. This propagation is often automated, allowing for rapid spread and significant impact [50]. Some variants even include destructive fallback routines, such as wiping the system if their access tokens are revoked [51][52][53].

Credential Harvesting and Exfiltration

Credential theft is a primary objective. Attackers target a wide array of secrets:

Exfiltration methods range from writing to public GitHub repositories [49][60][61] and using DNS TXT records [29] to leveraging cloud metadata endpoints, IPFS, or even encrypted blockchain transactions and public calendars for C2 infrastructure [62].

Exploiting Trusted Infrastructure and Metadata

Attackers actively abuse trust in established systems:

Code Obfuscation and Evasion

Malware often employs sophisticated techniques to evade static analysis and runtime detection.

AI-Specific Attack Vectors

The integration of AI introduces new attack surfaces:

Notable Techniques and Attack Campaigns

Several campaigns have significantly shaped the understanding of supply chain risks:

TeamPCP and the Shai-Hulud Worm

The TeamPCP actor group has been responsible for a series of high-impact supply chain attacks, notably the Shai-Hulud worm. This campaign compromised numerous npm and PyPI packages, stealing credentials from CI/CD environments and developer machines, and then using those credentials to spread further [48][21][3][51][50]. Notable targets included security scanners like Trivy, AI libraries like LiteLLM, and developer tools. The group has demonstrated sophisticated tradecraft, including the use of valid SLSA provenance for malicious packages [22][24][57][25] and the release of Shai-Hulud's source code, encouraging copycat attacks [53].

LiteLLM and Trivy Compromise

The compromise of Aqua Security's Trivy vulnerability scanner and the LiteLLM Python library highlighted how security tooling itself can become an attack vector. Trivy's GitHub Actions were compromised, allowing attackers to steal credentials and subsequently backdoor LiteLLM using Python's .pth file mechanism for stealthy persistence [16][23]. This attack potentially exposed credentials for thousands of organizations that utilized these tools [71].

Axios npm Package Compromise

The Axios npm package, a widely used HTTP client, was targeted by the North Korean-linked threat actor UNC1069 (Sapphire Sleet). The attack involved injecting a malicious dependency (plain-crypto-js) that acted as a cross-platform RAT, stealing credentials and potentially facilitating further lateral movement [72][73][74][75]. OpenAI also confirmed a certificate compromise related to this attack, impacting their macOS app signing workflow [76][77].

Miasma Campaign

The Miasma campaign, an evolution of Shai-Hulud, demonstrated advanced techniques for bypassing detection. It utilized the binding.gyp file to execute malicious code during the npm install process, circumventing traditional preinstall/postinstall script analysis [36][14]. Miasma also targeted @redhat-cloud-services npm packages, stealing OIDC tokens and other CI/CD secrets [57][78][52][79][80][15].

GlassWorm Attack

GlassWorm highlighted the threat from malicious IDE extensions and the Open VSX registry. Fake extensions impersonating trusted tools were distributed, delivering malware that used invisible Unicode characters for payload obfuscation, the Solana blockchain for C2, and Google Calendar for C2 communication [81][68]. This campaign demonstrated the growing reach of supply chain attacks into developer environments and the reliance on unconventional C2 infrastructure.

XZ Utils Backdoor (CVE-2024-3094)

The discovery of a backdoor in the XZ Utils compression library sent shockwaves through the open-source community [82][83][84]. This sophisticated attack targeted the build process, injecting malicious code into release tarballs while leaving the main branch untouched. The backdoor enabled SSH authentication bypass and remote code execution, highlighting the vulnerability of even deeply integrated, widely used open-source components and the potential for nation-state involvement.

Detection and Prevention: Building a Resilient Pipeline

Mitigating supply chain risks requires a layered, proactive approach focused on visibility, verification, and control:

Enhanced Visibility and Inventory

Strengthening Trust and Verification

Securing the Development Environment and CI/CD

Automated Detection and Response

Tooling for Supply Chain Security

A robust defense requires a combination of specialized tools:

Recent Developments and Evolving Threats

The threat landscape is constantly evolving, with attackers demonstrating remarkable adaptability:

AI as a Weapon and a Target

AI is increasingly being used to accelerate attacks, from identifying vulnerabilities and generating polymorphic malware to manipulating developers via AI coding assistants [40][42][43][65][35]. Conversely, AI itself is becoming a target, with attacks on AI agents, models, and their training data becoming more prevalent [45][6]. The concept of "slopsquatting," where attackers register domains that AI models might hallucinate, is a novel vector [45][65].

Automated and Wormable Malware

The trend towards self-propagating malware like Shai-Hulud and Miasma continues, with attackers leveraging stolen credentials to automatically infect new packages and systems [49][50][80][104]. The speed at which these worms can spread means that automated defenses and rapid threat intelligence are critical.

Exploitation of Implicit Trust and Legacy Systems

Attackers continue to exploit implicit trust in long-standing open-source projects (e.g., XZ Utils) and legacy systems or practices [82][84]. The compromise of dormant maintainer accounts on package registries (e.g., RubyGems) is another example of exploiting historical trust mechanisms [11].

Targeting of Developer Tools and IDEs

The focus on developer workstations as a primary attack surface is intensifying [29][105]. Malicious IDE extensions, AI coding assistant vulnerabilities, and compromise of local development tools are becoming commonplace [28][31][106].

Sophisticated Evasion Techniques

Attackers are employing increasingly advanced obfuscation, anti-analysis, and stealth techniques, including leveraging legitimate binaries for malicious purposes, using non-standard C2 channels (e.g., blockchain, public calendars), and embedding payloads in unexpected places like audio files or Unicode characters [13][66][62][68].

Where to Go Deeper

For practitioners seeking to deepen their understanding and practical skills in supply chain security:

Sources cited in this guide

  1. Supply Chain Attacks in Q4 2025: From Isolated Incidents to Systemic Failure Modes — sygnia.co
  2. Mercor Breach Linked to LiteLLM Attack Raises AI Supply Chain Security Concerns — techgenyz.com
  3. The State of Open Source Supply Chain Attacks — stepsecurity.io
  4. Introducing SITF: The First Threat Framework Dedicated to SDLC Infrastructure — wiz.io
  5. Active Exploitation Alert: Prompt Injection Vulnerability in GitHub Agentic Workflows Threatens Software Supply Chain Security — rescana.com
  6. OpenClaw’s Skill Marketplace and the Emerging AI Supply Chain Threat — unit42.paloaltonetworks.com
  7. Hackers Target Popular arrayref Rust Crate in Supply-Chain Attack — devops.com
  8. The Streak Continues: Four More Supply Chain Attacks Hit npm and PyPI — blog.gitguardian.com
  9. The mysterious supply chain concern of string-width-cjs npm package — snyk.io
  10. Malicious npm packages abuse dependency confusion to profile developer environments — microsoft.com
  11. SleeperGem Uses Three Malicious RubyGems Packages to Target Developer Machines — thehackernews.com
  12. npm Supply Chain Attack via Open Source maintainer compromise — snyk.io
  13. Connecting the Dots: Securing the Overlooked Corners of the Software Development Lifecycle (SDLC) Supply Chain — unit42.paloaltonetworks.com
  14. Node-gyp Supply Chain Compromise: A Self-Propagating npm Worm That Hides in binding.gyp — snyk.io
  15. 600000 Monthly Downloads Affected: Miasma Supply Chain Attack Is Back on npm — ox.security
  16. How a Poisoned Security Scanner Became the Key to Backdooring LiteLLM — snyk.io
  17. Malicious Release of elementary-data PyPI Package Steals Cloud Credentials from Data Engineers — snyk.io
  18. GitHub Updates actions/checkout to Block Common Pwn Request Attack Patterns — thehackernews.com
  19. Keeping Your GitHub Actions Secure Part 1: Preventing Pwn Requests — securitylab.github.com
  20. GitHub Actions Security Pt 1: Attacks & Defenses (Wiz) — wiz.io
  21. Two Australian Men Charged in TeamPCP Supply Chain Attacks — govinfosecurity.com
  22. Shai-Hulud was the best thing to happen to supply chain security — aikido.dev
  23. Trivy Compromised: Everything You Need to Know about the Latest Supply Chain Attack — wiz.io
  24. TanStack Npm Packages Compromised Inside The Mini Shai Hulud Supply Chain Attack — snyk.io
  25. The npm Threat Landscape: Attack Surface and Mitigations (Updated June 2) — unit42.paloaltonetworks.com
  26. How “Clinejection” Turned an AI Bot into a Supply Chain Attack — snyk.io
  27. Leaky Vessels: runC and BuildKit container escape vulnerabilities - everything you need to know — wiz.io
  28. TeamPCP Strikes (again): How a Trojan VS Code Extension Brought Down GitHub — ox.security
  29. GitHub breached via a malicious VS Code extension: why developer devices are the real target — aikido.dev
  30. The Worm That Keeps on Digging: TeamPCP Hits @antv in Latest Wave — wiz.io
  31. More fake extensions linked to GlassWorm found in Open VSX code marketplace — csoonline.com
  32. Wiz Red Agent Finds Its Way Into Snowflake’s Internal Jira Through a Flaw in a GitHub Copilot–Assisted PR — wiz.io
  33. s1ngularity: supply chain attack leaks secrets on GitHub: everything you need to know — wiz.io
  34. Claude Code GitHub Actions Flaw Created Supply Chain Attack Risk — esecurityplanet.com
  35. Et Tu Agent? Did You Install the Backdoor? — a16z.com
  36. Active Exploitation Alert: Miasma Malware Campaign Targets npm Packages and GitHub Actions in Major Supply Chain Attack — rescana.com
  37. lightning PyPI Compromise: A Bun-Based Credential Stealer in Python — snyk.io
  38. Mini Shai-Hulud Targets SAP npm Packages With a Bun-Based Secret Stealer — aikido.dev
  39. Closing the Blind Spot: Securing Personal Repositories in the Software Supply Chain — wiz.io
  40. Active Exploitation Alert: Critical Supply Chain Attack via 14 Trojanized npm Packages Drops RedC2 4.0 AI-Assisted Linux Backdoor — rescana.com
  41. How a Texas Student Blew the Whistle on a Rogue AI Supply Chain Hacking Attempt — carriermanagement.com
  42. The AI Supply Chain Is Your Latest Unguarded Attack Surface — bankinfosecurity.com
  43. Prompt Injection Model Poisoning and AI Supply Chain Attacks Explained — morphisec.com
  44. Trust No Skill: Integrity Verification for AI Agent Supply Chains — unit42.paloaltonetworks.com
  45. AI Supply Chain Security: How to Defend the AI Stack — cloudsek.com
  46. Hackers Poisoned 170 Popular npm and PyPI Packages in a 5-Hour Blitz TanStack Mistral AI UiPath Hit — europe-infos.fr
  47. Supply-Chain Attacks in an Era of Automation and Implicit Trust — darktrace.com
  48. Shai-Hulud hackers: two men charged over TeamPCP's global supply chain crime spree that hit OpenAI and thousands more — bitdefender.com
  49. Supply-chain malware is evolving into self-propagating worms — blog.barracuda.com
  50. Active Exploitation Alert: Shai-Hulud Supply Chain Attack Compromises 100 NPM and PyPI Packages with Self-Spreading Malware — rescana.com
  51. Shai-Hulud: Ongoing Package Supply Chain Worm Delivering Data-Stealing Malware — wiz.io
  52. Red Hat npm Packages Compromised to Spread a Credential-Stealing Worm — aikido.dev
  53. Mass Supply-Chain Attack Slams npm and PyPi Hits Mistral AI — bankinfosecurity.com
  54. Typosquatted npm packages used to steal cloud and CI/CD secrets — microsoft.com
  55. Two alleged TeamPCP hackers arrested over global supply chain attacks — helpnetsecurity.com
  56. Two alleged TeamPCP members arrested and charged after months of software supply-chain chaos — cyberscoop.com
  57. Miasma supply chain attack: malicious code found in @redhat-cloud-services npm packages — snyk.io
  58. Sophisticated Quasar Linux RAT Targets Software Developers — securityweek.com
  59. Dismantling a Critical Supply Chain Risk in VSCode Extension Marketplaces — wiz.io
  60. The @antv Ecosystem Was Compromised with Shai-Hulud Malware 300 Packages Affected — ox.security
  61. Shai-Hulud npm supply chain attack overview — reversinglabs.com
  62. TrapDoor Supply Chain Attack Actively Exploiting npm PyPI and CratesIO to Steal Developer Credentials in Crypto DeFi Solana and AI Sectors — rescana.com
  63. Signed Attested and Malicious: The Software Supply Chain Has a Deepfake Problem — devops.com
  64. Inside a Tor Backed Supply Chain Worm — cloudsek.com
  65. Supply-chain attacks take aim at your AI coding agents — csoonline.com
  66. Preinstall to persistence: Inside the Red Hat npm Miasma credential-stealing campaign — microsoft.com
  67. The Xcode Assassin Returns: A Deep Dive Into the Latest XCSSET Version — unit42.paloaltonetworks.com
  68. GlassWorm Supply Chain Cyber Attack Threatens Connected Cars — autoconnectedcar.com
  69. Securing the Agent Skill Ecosystem: How Snyk and Vercel Are Locking Down the New Software Supply Chain — snyk.io
  70. Two npm attacks in four days show crypto's weak point is the supply chain — startupfortune.com
  71. LiteLLM Supply-Chain Attack Exposed Credentials Across 2500 Organizations — esecurityplanet.com
  72. New Checkmarx supply-chain breach affects KICS analysis tool — bleepingcomputer.com
  73. DPRK Threat Actor Compromises Axios NPM Package — cloud.google.com
  74. Axios Compromise on npm Introduces Hidden Malicious Package — sonatype.com
  75. Supply chain blast: Top npm package backdoored to drop dirty RAT on dev machines — theregister.com
  76. OpenAI Revokes macOS App Certificate After Malicious Axios Supply Chain Incident — thehackernews.com
  77. OpenAI says no user data stolen after supply-chain hackers accessed employee devices — livemint.com
  78. Miasma: Supply Chain Attack Targeting RedHat npm Packages — wiz.io
  79. New Shai-Hulud Miasma Wave Hits Hundreds of npm Packages — sonatype.com
  80. Node-gyp Supply Chain Compromise — snyk.io
  81. GlassWorm Malware Takedown: Disruption of Developer Supply Chain Attacks Targeting VSCode npm Python and GitHub — rescana.com
  82. Backdoor in XZ Utils allows RCE: everything you need to know — wiz.io
  83. XZ Backdoor CVE-2024-3094 - JFrog — jfrog.com
  84. Predictions for Open Source Security in 2025 | OpenSSF — openssf.org
  85. SBOM Literature Review (arXiv) — arxiv.org
  86. SBOM + SLSA: Accelerating SBOM success with SLSA — slsa.dev
  87. Securing the Software Supply Chain: A Critical Priority for 2026 — ox.security
  88. Stop Treating Coding Agent Plugins Like Settings: Introducing Agent Plugins Repositories — jfrog.com
  89. Preventing Future Supply Chain Attacks: The OX Guide to Version Pinning Installation Cooldown and Defense in Depth — ox.security
  90. GitHub to Update npm to Thwart Software Supply Chain Attacks — infosecurity-magazine.com
  91. Why Your “Skill Scanner” Is Just False Security (and Maybe Malware) — snyk.io
  92. Supply Chain Security in CI: SBOMs, SLSA, and Sigstore — nathanberg.io
  93. GitHub announces npm security changes to tackle supply-chain attacks — bleepingcomputer.com
  94. What's Coming to Our GitHub Actions 2026 Security Roadmap — github.blog
  95. How Utility Warehouse Secured Its Software Supply Chain Across CI/CD NPM and Developer Machines with StepSecurity — stepsecurity.io
  96. Introducing Endpoint Protection: Security for Developer Devices — aikido.dev
  97. Ensuring comprehensive security testing in DevOps pipelines — snyk.io
  98. Cursor IDE Malware Extension Compromise in $500k Crypto Heist — snyk.io
  99. Weaponizing AI Coding Agents for Malware in the Nx Malicious Package Security Incident — snyk.io
  100. npm v12 delivers one of the biggest security improvements in years — aikido.dev
  101. Free Compromise Detection for GitHub Repos - Tracebit Community Edition — community.tracebit.com
  102. PyPI, npm, and the New Frontline of Software Supply Chain Attacks — rapidfort.com
  103. Secure at Inception: Introducing New Tools for Securing AI-Native Development — snyk.io
  104. CISA: Widespread Supply Chain Compromise Impacting npm Ecosystem — cisa.gov
  105. Developer Workstations Are Now Part of the Software Supply Chain — thehackernews.com
  106. s1ngularity: Nx supply chain attack leaks secrets — wiz.io
  107. A03 Software Supply Chain Failures - OWASP Top 10:2025 — owasp.org
  108. Disrupting supply chain attacks on NPM and GitHub Actions — github.blog
  109. Compromised GitHub action codfish/semantic-release-action steals CI/CD secrets — aikido.dev
  110. Axios npm Package Compromised: Supply Chain Attack Delivers Cross-Platform RAT — snyk.io
  111. Reconstructing the TJ Actions Changed Files GitHub Actions Compromise — snyk.io
  112. Maintainers of ESLint Prettier Plugin Attacked via npm Supply Chain Malware — snyk.io
  113. Zero-day Extensive NPM Package Compromise - Shai Hulud Supply Chain Attack — snyk.io
  114. Laravel Lang Supply Chain Advisory — snyk.io
  115. TanStack npm Packages Hit by Mini Shai-Hulud — snyk.io
  116. TeamPCP Credential Infostealer Chain Attack Reaches Python's LiteLLM — semgrep.dev
📚 This guide is synthesized from the full text of resources curated in the Supply Chain library, and refreshed as new material is added.