solvegia
Contact us
Contact us
Resources

The May 2026 supply chain attacks: how AI creates new attack surfaces

18 min read

Between 28 April and 12 May 2026, eight major incidents exposed the limits of modern software development's trust model. These were not isolated bugs. They mark a shift: supply chain automation can now create, test and spread malicious code at a scale and speed that render traditional security perimeters obsolete.

AI supply chain attacks: the zero-trust response

1. Overview: eight incidents in two weeks

From 28 April to 12 May 2026, eight incidents demonstrated that the software supply chain is a prime target and that its attack surface extends far beyond source code. This table distinguishes CVEs confirmed by the NVD or vendor, advisories without an assigned CVE and compromised packages documented by third-party databases.

cPanel bypass

28 Apr. 2026 · CVE (NVD)

CVSS 9.8

Copy Fail LPE

29 Apr. 2026 · CVE (CISA KEV)

CVSS 7.8

PyTorch Lightning

30 Apr. 2026 · Compromised package

Score 9.3*

Mini Shai-Hulud SAP

Late Apr. 2026 · Compromised package

Score 9.5*

Apache HTTP/2 RCE

4 May 2026 · CVE (vendor)

CVSS 8.8

Dirty Frag LPE

7 May 2026 · CVE (NVD)

CVSS 8.8

Checkmarx Jenkins

10-12 May · CVE (NVD)

CVSS 8.8

TanStack npm

11 May · Compromised package

Score 9.6*

CVSS 3.1 scale (primary sources) · * score from third-party databases without a confirmed official CVE · 10 = maximum critical severity · CVE-2026-45321 (TanStack) and CVE-2026-33634 (Checkmarx) confirmed by the NVD since this article was written

CVE-2026-41940: cPanel authentication bypass

On 28 April 2026, cPanel published CVE-2026-41940 (CVSS 9.8), an authentication bypass affecting WHM/cPanel since version 11.40. The vector is CRLF injection into session files: an attacker forges session properties through the Authorization header, then obtains administrator access. Rapid7 estimates 1,5 million exposed instances. Exploitation in the wild predates disclosure: Shadowserver detected 44 000 compromised IPs on 30 April, and Censys identified two post-compromise campaigns, a Mirai variant and the "Sorry" ransomware, affecting 7 135 servers.

CVE-2026-31431: Copy Fail, Linux LPE since 2017

On 29 April 2026, Theori published CVE-2026-31431 (Copy Fail), a Linux kernel local privilege escalation introduced in 2017. It exploits the AF_ALG interface and the splice() system call to write a few attacker-controlled bytes into the page cache of a setuid-root binary, changing its behaviour in memory. The alteration exists only in memory: file integrity tools remain silent because they inspect the disk. The deterministic PoC is 732 bytes long, and CISA added it to the KEV catalogue on 1 May. Theori reports that its AI-assisted analysis platform helped identify the flaw in a one-hour scan.

CVE-2026-23918: Apache HTTP/2 double-free

On 4 May 2026, Apache released HTTP Server 2.4.67 to fix CVE-2026-23918 (CVSS 8.8), a double-free in mod_http2. The vendor advisory describes a double-free with possible remote code execution. A worker crash causing denial of service is the most direct scenario; code execution depends on the APR allocator and MPM. No authentication is required. MPM prefork deployments are less exposed.

Dirty Frag: broken embargo, active exploitation

On 7 May 2026, researcher Hyunwoo Kim published Dirty Frag (CVE-2026-43284 and CVE-2026-43500), a Linux LPE chain that bypasses Copy Fail mitigations through kernel networking paths (ESP/IPsec, RxRPC). A third party broke the coordinated disclosure embargo before distributions could patch: the CVE-2026-43284 fix was released on 8 May, but CVE-2026-43500 remained unpatched. Microsoft Defender confirmed "limited but active" exploitation from 8 May. Dirty Frag also enables container escapes because the page cache is shared between the host and containers.

CVE-2026-45321: TanStack npm compromise

On 11 May 2026, 84 malicious versions were published across 42 TanStack packages in 6 minutes. The official post-mortem confirms a GitHub Actions attack chain: misconfigured pull_request_target, shared cache poisoning and extraction of the OIDC token from runner memory (/proc/*/mem). The token was valid; npm accepted it. The obfuscated payload (~2,3 MB) steals cloud, CI/CD and SSH credentials, exfiltrates them through Session/Oxen, spreads to the victim's other packages and persists as a daemon after the package is removed.

CVE-2026-33634: Checkmarx Jenkins backdoor

TeamPCP compromised Checkmarx's Jenkins AST plugin and published a trojanised version (2026.5.09) on the official Jenkins Marketplace. The NVD confirms CVE-2026-33634 (CVSS 8.8). Checkmarx published SHA-256 indicators for the malicious build; the exposure window runs from 9 May at 01:25 UTC to 10 May at 08:47 UTC. CISA added this CVE to the KEV catalogue. This is the third wave of the TeamPCP campaign, following Trivy in March and SAP npm in April.

Mini Shai-Hulud: a compromised-package campaign

Since March 2026, a coordinated campaign has affected diverse ecosystems: LiteLLM, Trivy, PyTorch Lightning, Bitwarden CLI, SAP npm, Mistral AI and UiPath. These are compromised packages on public registries, rather than zero-day vulnerabilities in source code. The common factor is exploitation of trust in CI/CD pipelines, plugin marketplaces and short-lived authentication mechanisms such as OIDC. PyTorch Lightning (versions 2.6.2/2.6.3) and SAP (4 npm packages) were compromised without an official CVE assignment.

2. AI as an attack surface multiplier

What distinguishes this wave is not just its scale, but the acceleration on both sides: attackers automate reconnaissance, variant generation and propagation, while defenders automate the discovery of structural vulnerabilities.

Traditional attack surface

1

Manual reconnaissance of the target project

2

Payload development (weeks)

3

Testing in an isolated environment (costly)

4

Manual injection and propagation

Average time: several weeks · Cost: high · Detectability: high

AI-assisted attack surface

1

Automated repository scraping + contextual LLM analysis

2

LLM-generated payload (hours)

3

Automated testing against a cloud sandbox (pass-through)

4

Autonomous propagation through compromised CI/CD

Average time: under 24h · Cost: marginal · Detectability: low

Language models accelerate reconnaissance and variant generation for attackers and defenders alike. On the defensive side, Theori identified Copy Fail in one hour with Xint Code. On the offensive side, Mini Shai-Hulud payloads check their execution context, including CI variables, before activating, remaining silent on a local workstation. AI amplifies this trend, but conventional automation remains the main driver of the documented campaigns.

3. Broken trust: when the pipeline becomes the attack vector

Open-source security relies on an implicit chain of trust: developer, maintainer, CI, registry and publisher. Every link has become an attack vector.

npm's OIDC trusted publisher mechanism is designed to eliminate static secrets. In practice, the TanStack attacker did not steal a stored secret: they extracted the OIDC token directly from runner memory (/proc/*/mem) while it was in use. The token was valid, authentic and tied to the repository's legitimate identity. npm accepted it. Audit tools had no reason to alert: the only anomaly was the rate of 84 publications in 6 minutes.

4. Blast radius: understanding the reach of a compromise

The blast radius is the reach of a compromise. If an npm package is infected, which other resources can be accessed from the installation environment? In almost every case, the answer is: we do not know.

Initial compromise

CI/CD secrets

Cloud and SSH tokens, API keys, .npmrc

Source repositories

Code changes, persistent backdoors

Infrastructure

Kubernetes clusters, S3 buckets, databases

End users

Applications built with the infected package

Dependent packages

Transitive closure: hundreds of downstream projects

Internal network

Lateral scanning, east-west movement

A blast radius is not a circle; it is a network. A modern JavaScript project has hundreds of transitive dependencies. Without a complete inventory (SBOM) containing exact versions, hashes and maintainers, there is no way to determine the reach of a compromise. Without that knowledge, protective measures cannot be prioritised.

5. Zero trust and zero knowledge: complementary barriers

Zero trust and zero knowledge are often confused. They complement each other but are distinct. Zero trust (NIST SP 800-207) is a network architecture model. Zero knowledge is a cryptographic property. Both are now essential, for different reasons.

Zero Trust

NIST SP 800-207

  • No trust by default, regardless of location
  • Continuous identity and integrity verification
  • Least privilege with fine-grained permissions
  • Network microsegmentation and dynamic access control

Zero trust checks each request against the authenticated requester's permissions. This reduces authorisation vulnerabilities such as IDOR, but does not eliminate them.

Zero Knowledge

Cryptographic property

  • The server never holds the decryption key
  • A compromised server yields unusable data
  • Zero-knowledge proofs (ZKP): prove without revealing
  • Selective disclosure (SD-JWT, BBS+): reveal one field, conceal the rest

Zero knowledge ensures that the server stores only encrypted evidence. Even a total compromise yields data that is unusable without the user's key.

Zero trust is an architecture; zero knowledge is a guarantee. Either on its own leaves a gap: zero trust protects the perimeter but not storage, while zero knowledge protects storage but not the perimeter. Applied to the supply chain, this means signing artefacts with hardware keys (QSCD), distributing secrets through enclaves and never passing plaintext credentials through a CI runner.

6. Encryption, hardware and runtime: defence in depth

Against attackers who exploit the chain of trust itself, traditional defences such as firewalls, antivirus and intrusion detection are insufficient. Defence in depth must protect code, data and execution at every layer.

Encryption at rest

Encrypt sensitive data before storage. Manage keys through an HSM or hardware enclave, never in plaintext memory.

Hardware protection

QSCDs for signing, TPMs for attestation, confidential VMs (AMD SEV-SNP, Intel TDX). The private key never leaves certified hardware.

Runtime protection

Isolated execution (enclave, sandbox, gVisor). Encrypted memory. Remote attestation. Behavioural anomaly detection.

Dependency pinning

Immutable lockfile. Cryptographic hash for every artefact. Verification before installation. No automatic updates without review.

Systematic pinning

Pin versions through a lockfile and verify hashes before installation. In the TanStack attack, developers whose package-lock.json was pinned to an earlier version were unaffected. Those using floating ranges (^, ~) automatically downloaded malicious versions.

Network control

A robust defence is a strict egress allowlist: log CI runners' outbound connections, block all unauthorised traffic by default and detect behavioural anomalies such as unusual hours, abnormal volume or non-standard protocols.

Know what code is running

An organisation that does not know what runs in its CI/CD cannot defend itself. It needs an up-to-date SBOM, vulnerability scanning before builds, sandboxing for npm hooks and human review of critical updates. All of this requires organisational discipline.

7. What to do next

The April-May 2026 incidents are not exceptions. They are early warnings. Documented since March 2026, the Mini Shai-Hulud campaign affects ecosystems as diverse as PyTorch, SAP, Mistral AI, UiPath and TanStack. The attacker has no technological preference. They prefer the largest attack surface.

Complete dependency inventory

Produce an accurate SBOM for every application, including transitive dependencies, versions, hashes and maintainers. Update it with every build, not at each annual audit.

Pinning and integrity verification

Pin versions in a lockfile. Verify hashes before installation. Remove floating ranges (^, ~) from production.

CI runner isolation

Run each CI job in an isolated, ephemeral environment. Keep OIDC token lifetimes to a minimum: minutes, not hours. Expose secrets for as little time as possible, with narrow scopes, automatic rotation and operations delegated to HSMs, KMSs or enclaves without exporting keys.

Hardware protection for secrets

Use QSCDs for code signing, TPMs for runner attestation and confidential VMs for sensitive environments. Signing keys should never be PEM files on disk; when unavoidable, encrypt them through an HSM or KMS and rotate them regularly.

Network control and logging

Log CI runners' outbound connections. Block all unauthorised traffic by default. Detect behavioural anomalies such as exfiltration at 3am, unusual volumes or non-standard protocols.

Zero knowledge by default

Encrypt sensitive data with user-controlled keys, never stored in plaintext on the server. Use zero-knowledge proofs to authenticate without exposing data. Adopt Verifiable Credentials and selective disclosure as eIDAS 2.0 standards become available. The aim is to minimise the time secrets are exposed in memory, rather than eliminate it entirely.

These measures are prerequisites, not optional extras. The cost of a compromise is measured in hours spent rotating secrets, rebuilding infrastructure, repairing trust and dealing with legal consequences. The cost of prevention is known, budgetable and small compared with the cost of response. The tools and standards exist. What is missing is the discipline to apply them consistently.

Supply chain security is a matter of architecture, process and culture. Every dependency is a trust agreement, every automatic update an accepted risk and every secret in a CI runner a designated target.

Privako is Solvegia's cryptographic proof-of-execution solution, based on AMD SEV-SNP. Learn more