Advisory

MAL-2026-6949

Also known as: GHSA-hvxm-858v-vhw9

Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.

Summary

Malicious code in vps-adapter-core (npm)

Details

The package 'vps-adapter-core' is a purpose-built malware package published by the npm account 'srm0rgan' ([email protected]) as part of a coordinated campaign of fake 'Paperclip' VPS-maintenance adapters (siblings: paperclip2, vps-maintenance, vps-maintenance-paperclip-adapter, paperclip-host-utils). Every published version (1.0.0, 1.0.1, 1.0.2) declares a postinstall script (node postinstall.js) that npm runs automatically during npm install, while index.js is a benign stub (init()/status()) that serves only as cover.

The postinstall payload performs four malicious actions with best-effort error suppression:

  1. SSH backdoor: appends the attacker's ed25519 public key (comment eni@lo, AAAAC3NzaC1lZDI1NTE5AAAAIDGA+v9tfK8YVeZejZN2y99mNvefRmQx99lJtjKjIAK2) to ~/.ssh/authorized_keys, granting the operator persistent remote SSH access.
  1. Cron persistence: writes /etc/cron.d/eni-persist containing per-minute (* * * * * root) and @reboot entries that open bash reverse shells to 185.112.147.174 across ports 7007, 443, 80, 8080, 4444, 5555, 1337, and 9001 via /dev/tcp.
  1. Credential exfiltration: spawns a detached bash pipeline that dumps host identity, bash history, and a broad sweep of secrets — AWS/Azure/GCP/OCI credentials, kubeconfig, Docker config, git/pip/npm/netrc credentials, .env files, SSH private keys (id_rsa/id_ed25519/id_ecdsa/id_github/id_deploy_key), /etc/shadow, and /etc/passwd — plus a filesystem search for files matching 'maid' and for database files, then pipes the collected data to 185.112.147.174 over /dev/tcp across the same eight ports.
  1. Interactive reverse shells: spawns detached interactive bash reverse shells to the same host/ports.

A keepAlive() timer re-runs the credential dump and reverse-shell spawns every 30 seconds, and a cleanNpmStains() routine deletes npm cache traces of the sibling campaign packages to hinder detection. Any developer workstation or CI job that runs npm install vps-adapter-core must be considered fully compromised; all credentials and SSH keys reachable from that host should be rotated from a separate, clean machine, and /etc/cron.d/eni-persist and the attacker key in authorized_keys removed.

---
_-= Per source details. Do not edit below this line.=-_

Source: amazon-inspector (721f18c9af5bbc2ee66386230d6d7c389cf862f4e5982c65a6368117a05b2f93)
On npm install, the package's declared postinstall script (postinstall.js) executes an end-to-end host takeover against the installing user: (1) appends a hardcoded attacker ssh-ed25519 key ('eni@lo') to ~/.ssh/authorized_keys, granting persistent SSH access; (2) writes /etc/cron.d/eni-persist to re-open reverse bash shells to 185.112.147.174 every minute and at @reboot across ports 7007, 443, 80, 8080, 4444, 5555, 1337, 9001; (3) immediately spawns interactive bash -i reverse shells to the same IP/ports via /dev/tcp and keeps them alive with a 30-second setInterval; (4) reads and exfiltrates classic installer secrets and root-only files (~/.aws/credentials, ~/.ssh/id_*, ~/.kube/config, ~/.docker/config.json, ~/.npmrc, ~/.git-credentials, ~/.netrc, /etc/shadow, /etc/passwd, shell history) over raw TCP to the same attacker IP; (5) removes sibling directories under ~/.paperclip/adapter-plugins/node_modules matching related adapter/helper names, consistent with removing competing implants from the same campaign. Any developer or CI system that installs this package is fully compromised at install time.

Source: ghsa-malware (9d8b04479e04cd28084836c7eb146dae23c03b7b318a98e415adce6433acadf3)
Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Source: ossf-package-analysis (30e5ecc5aff58afdc90139a153ca99fa5266a698f7af82695f7235d1e9b919da)
The OpenSSF Package Analysis project identified 'vps-adapter-core' @ 1.0.2 (npm) as malicious.

It is considered malicious because:

  • The package executes one or more commands associated with malicious behavior.

Severity

Not rated by the source.

Dates

Published
2026-07-07 00:00 UTC
Modified
2026-07-15 06:04 UTC

Affected packages and fixes

vps-adapter-core

npm · All systems

Affected

  • introduced 0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: OpenSSF Malicious Packages · Apache-2.0

Sources & licences