Back to Feed
Supply ChainApr 30, 2026

SAP NPM Packages Targeted in Supply Chain Attack

Four SAP NPM packages compromised in supply chain attack delivering credential-stealing malware.

Summary

Four SAP NPM packages (mbt, @cap-js/db-service, @cap-js/postgres, @cap-js/sqlite) totaling 500,000+ weekly downloads were injected with malicious preinstall scripts on April 29. The campaign, called Mini Shai-Hulud, fetches and executes a Bun binary that steals credentials, cloud secrets, and GitHub/NPM tokens, then propagates via GitHub Actions. Security researchers attribute the attack to TeamPCP based on shared RSA encryption keys.

Full text

Four SAP NPM packages have been injected with malicious code as part of a new supply chain attack, security researchers warn. The campaign, referred to as Mini Shai-Hulud, is targeting packages linked to the SAP Cloud Application Programming (CAP) ecosystem and SAP cloud deployment workflows. On April 29, four package versions were flagged as malicious, namely npm mbt 1.2.48, npm @cap-js/db-service 2.10.1, npm @cap-js/postgres 2.2.2, and npm @cap-js/sqlite 2.2.2. With over 500,000 combined weekly downloads, these packages are SAP’s Cloud MTA Build Tool for building Multi-Target Application archives, and database service packages for CAP software. These packages, Socket reports, were injected with a preinstall script working as a runtime bootstrapper. When executed, the script fetches a Bun ZIP from a GitHub repository, extracts it, and executes the included Bun binary. According to Onapsis, the malicious package versions were available for 2-4 hours. They have since been unpublished and clean versions have been released to supersede them.Advertisement. Scroll to continue reading. The malicious code delivered through the compromised packages is an information stealer that targets local credentials, GitHub and NPM tokens, and AWS, Azure, GCP, GitHub Action, Kubernetes, and other cloud secrets. The malware exfiltrates them through public GitHub repositories that have the hardcoded description “A Mini Shai-Hulud has Appeared”. The malware also includes a propagation mechanism. According to Aikido, the threat checks for GitHub Actions release workflows and then modifies package tarballs to add the payload, modify their versions, repackage them, and use stolen GitHub Actions tokens to publish them. SAP’s NPM ecosystem was likely hit through a compromised NPM token that was exposed to pull request builds via CircleCI, Aikido says. As Onapsis underlines, the Mini Shai-Hulud supply chain attack represents a major threat to developers and organizations that use SAP CAP, which is the framework for S/4HANA extensions, Fiori app backends, MTAs, and integration flows. “Any SAP customer with JavaScript development may be pulling @sap/* and @cap-js/* packages into their build pipelines, frequently with loose version ranges and lots of transitive dependencies,” Onapsis notes. All organizations using SAP Business Technology Platform workflows, SAP CAP, or MTA-based deployment pipelines should check if they installed the malicious package versions during the exposure window. Based on technical overlaps and operational patterns, cybersecurity firm Wiz attributes the incident to the notorious TeamPCP hacking group that claimed several supply chain attacks over the past months. “This assessment is due to a shared RSA public key used to encrypt the exfiltrated secrets. This means that the same private key would decrypt the payloads, limiting the accessibility of the exfiltrated data to TeamPCP,” Wiz notes. Related: Critical Gemini CLI Flaw Enabled Host Code Execution, Supply Chain Attacks Related: Checkmarx Confirms Data Stolen in Supply Chain Attack Related: Bitwarden NPM Package Hit in Supply Chain Attack Related: Mercor Hit by LiteLLM Supply Chain Attack Written By Ionut Arghire Ionut Arghire is an international correspondent for SecurityWeek. More from Ionut Arghire Critical cPanel & WHM Vulnerability Exploited as Zero-Day for Months‘Copy Fail’ Logic Flaw in Linux Kernel Enables System TakeoverFresh LiteLLM Vulnerability Exploited Shortly After DisclosureCheckmarx Confirms Data Stolen in Supply Chain AttackIranian Cyber Group Handala Targets US Troops in BahrainChrome 147, Firefox 150 Security Updates Rolling OutAlleged Chinese State Hacker Extradited to USDozens of Open VSX Extension Clones Linked to GlassWorm Malware Latest News Cisco Releases Open Source Tool for AI Model Provenance Hugging Face, ClawHub Abused for Malware DistributionFBI Warns of Surge in Hacker-Enabled Cargo Theft1,800 Hit in Mini Shai-Hulud Attack on SAP, Lightning, IntercomAnthropic Unveils Claude Security to Counter AI-Powered Exploit SurgeAI Fuels ‘Industrial’ Cybercrime as Time-to-Exploit Shrinks to HoursSonicWall Urges Immediate Patching of Firewall VulnerabilitiesCritical Gemini CLI Flaw Enabled Host Code Execution, Supply Chain Attacks Trending Daily Briefing Newsletter Subscribe to the SecurityWeek Email Briefing to stay informed on the latest threats, trends, and technology, along with insightful columns from industry experts. Webinar: A Step-by-Step Approach to AI Governance April 28, 2026 With "Shadow AI" usage becoming prevalent in organizations, learn how to balance the need for rapid experimentation with the rigorous controls required for enterprise-grade deployment. Register Virtual Event: Threat Detection and Incident Response Summit May 20, 2026 Delve into big-picture strategies to reduce attack surfaces, improve patch management, conduct post-incident forensics, and tools and tricks needed in a modern organization. Register People on the MoveAutoNation has appointed Brian Fricke as Chief Information Security Officer.Varun Kohli has joined GetReal Security as Chief Marketing Officer.MongoDB has appointed Doug Bowers as Chief Information Security Officer.More People On The MoveExpert Insights The Mythos Moment: Enterprises Must Fight Agents with Agents Only with the right platform and an agentic, AI-driven defense, will enterprises be able to protect themselves in the agentic era. (Etay Maor) Why Cybersecurity Must Rethink Defense in the Age of Autonomous Agents From autonomous code generation to decision-making systems that initiate actions without human intervention, the industry is entering a new phase. (Torsten George) Government Can’t Win the Cyber War Without the Private Sector Securing national resilience now depends on faster, deeper partnerships with the private sector. (Steve Durbin) The Hidden ROI of Visibility: Better Decisions, Better Behavior, Better Security Beyond monitoring and compliance, visibility acts as a powerful deterrent, shaping user behavior, improving collaboration, and enabling more accurate, data-driven security decisions. (Joshua Goldfarb) The New Rules of Engagement: Matching Agentic Attack Speed The cybersecurity response to AI-enabled nation-state threats cannot be incremental. It must be architectural. (Nadir Izrael) Flipboard Reddit Whatsapp Whatsapp Email

Indicators of Compromise

  • malware — Mini Shai-Hulud
  • malware — TeamPCP

Entities

SAP (vendor)SAP Cloud Application Programming (CAP) (product)npm mbt 1.2.48 (product)@cap-js/db-service 2.10.1 (product)@cap-js/postgres 2.2.2 (product)@cap-js/sqlite 2.2.2 (product)