spectral-core@3.0.12
OpenSSF/OSV Malicious Advisory
imported 6d ago · by OpenSSF/OSVOpenSSF/OSV advisory MAL-2026-18377 confirms this npm version as malicious.
Advisory
MAL-2026-18377
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in spectral-core (npm)
Details
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.
Independent scan evidence
public snapshotBehavioral surface
Trivial
Source & flagged code
2 flaggedbinding.gypView file
•path = binding.gyp
kind = build_helper
sizeBytes = 1695
magicHex = [redacted]
Medium
package.jsonView file
•scripts registry_only=install
Critical
Manifest Confusion
Tarball package.json differs from the npm registry version manifest for scripts or dependency sets.
package.jsonView on unpkgFindings
1 Critical1 Medium
CriticalManifest Confusionpackage.json
MediumShips Build Helperbinding.gyp
Affected versions and remediation
This report applies to spectral-core@3.0.12.
See all versions of spectral-core for other recorded verdicts.
- Avoid installing spectral-core@3.0.12. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.
Evidence last updated: .
Source advisory published: .
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.