Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
Malicious package

spectral-corenpm

Advisory published Updated

spectral-core is a confirmed malicious npm package (MAL-2026-18377) that steals credentials and exfiltrates sensitive data (malicious versions 3.0.2, 3.0.3, 3.0.4…). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in spectral-core (npm)

MAL-2026-18377
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall spectral-core

What this malware does

The tarball ships only package.json and binding.gyp (plus a markdown file), with gypfile: true set in package.json so npm invokes node-gyp rebuild on install. binding.gyp declares a 'none'-type target with no native source files; its sole purpose is an inline action that runs node -e with an embedded script. At install time that script reads /proc/1/environ and /proc/self/environ (container/pod entrypoint environment variables, which routinely contain CI/CD secrets and cloud credentials), collects DNS/socket/ARP/route reconnaissance output, queries the AWS EC2 instance metadata service at 169.254.169.254 for user-data and meta-data, and POSTs the collected data to the hardcoded collector https://webhook.site/d6092bdc-05c0-45da-a280-c343ea6d6156. The package exposes no library functionality — main: index.js is declared but index.js is not shipped — so the binding.gyp exists solely as a vehicle for install-time code execution and credential exfiltration. The name resembles the legitimate @stoplight/spectral-core project but the shipped contents are unrelated to it.

Malicious versions

10 flagged
3.0.23.0.33.0.43.0.53.0.63.0.73.0.93.0.103.0.113.0.12

Indicators of compromise (SHA-256)

451c36f03e81be0ff6c85334587d7ff401de1e5134e179557ec4bc454cd7ba76
54cb50bba7e6f19319df8f23816710ec57a29dc6d69025f3b9c5ddf71f01325c
79c6086910623ed4eed9f7bb0f1305df0cacd70ab45112d52a295b47a9d9eb5a
8b8de448b1a3fae15b672af020951d2cc5556f943bb2a302f4ccb23ffde8aaa1
baeee5e622f864693e676d6fc1c780c842218a5b7a6d06bedce5d732ea40629a
cd35974c3234a6dad4309c3401da17d4fbf5fbf8465bd4f351be966f9500aa09
de6a163084b23d2a75e3512f9cbe77045ba53182d1e08752c00a0d886e2cd62f
e06fe8f5e55d720c49a2919236fdc93fd33d62a937078c83060ee251bae4cbe4
fdc14a289befd2f77d2b9d8084d7a8f1db9a8de799407a2f12b338d4101d0272
d87e383d290979921fc31446bf3aa12ceb70744065334b1ea0eeda11dd4c979f

Detection & response playbook

Credential / info stealer
  1. Find it

    Search your lockfiles and build artifacts for spectral-core (10 malicious versions).

  2. If you installed it — respond

    spectral-core is built to steal secrets, so assume every credential the build or runtime could read is compromised. Remove it from your project and lockfile, then rotate ALL exposed secrets — npm/registry tokens, cloud keys, CI/CD secrets, SSH keys, and any .env values — from a known-clean machine. Audit logs for unauthorized use of those credentials.

  3. Did it already run?

    If spectral-core was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.

Frequently asked questions

No. spectral-core on npm has been identified as a malicious package (versions 3.0.2, 3.0.3, 3.0.4, 3.0.5, 3.0.6, 3.0.7, 3.0.9, 3.0.10, and 2 more flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

IN-MAL-2026-022409IN-MAL-2026-022413IN-MAL-2026-022407IN-MAL-2026-022411IN-MAL-2026-022415IN-MAL-2026-022406IN-MAL-2026-022408IN-MAL-2026-022412IN-MAL-2026-022405IN-MAL-2026-022410

References

Credits

  • Amazon Inspector · finder

Detect & block this

O3 blocks spectral-core-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.

Explore