Advisory

MAL-2026-1327

Also known as: GHSA-j542-xg84-95px

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

Summary

Malicious code in filter-imports (npm)

Details

The package 'filter-imports' is part of the PhantomRaven supply chain attack campaign (Wave 4). It uses a Remote Dynamic Dependency (RDD) technique: the published package appears benign but includes a URL-based dependency in package.json pointing to an attacker-controlled C2 server (npm.artifactsnpm.com). During npm install, npm automatically fetches a malicious tarball from the C2. The tarball preinstall hook executes a 259-line payload that harvests developer emails from .gitconfig, .npmrc, and environment variables; collects CI/CD tokens from GitHub Actions, GitLab CI, Jenkins, and CircleCI; fingerprints the host system; and exfiltrates all data to http://npm.artifactsnpm.com/npm.php via redundant HTTP GET, POST, and WebSocket channels with no visible terminal output. The campaign was first disclosed by Koi Security in October 2025 (Wave 1) and extended across Waves 2-4 between November 2025 and February 2026. Full analysis: https://www.endorlabs.com/learn/return-of-phantomraven

Any developer or CI/CD system that installed this package should be considered compromised. All secrets, tokens, and credentials accessible from that environment should be rotated immediately from a separate, unaffected machine.

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

Source: amazon-inspector (af91e96f3e3e13924a3b768387b6562c76edf886e90526b14843084dfca83677)
The package filter-imports was found to contain malicious code.

Source: ghsa-malware (a4e874a4a0c768fc14ad3fdadda8a7816bcc0c1b437c0fcc3ae11c3b42c1f5b6)
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.

Severity

Not rated by the source.

Dates

Published
2026-03-11 06:17 UTC
Modified
2026-04-28 05:06 UTC

Affected packages and fixes

filter-imports

npm · All systems

Affected

  • introduced 0 (semver)
  • introduced 8.0.3 (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