Skip to main content
Menu
Advisories

Malicious code in @c1-ease/card (npm)

GHSA-J5H6-446W-9Q9CPublished Updated GitHubMalware

Description

Source: amazon-inspector (cf1ed7404d29e131f0f3008773ffedf222e2df2d27753bd0e35655762dfc5821)

The package publishes under the scoped name @c1-ease/card with no legitimate functionality: index.js exports a Proxy that returns a no-op function for any property access, allowing a victim build that resolves this public package instead of an internal @c1-ease/* dependency to continue without crashing. package.json declares a postinstall hook that runs node beacon.cjs, and the same beacon is invoked on require() of the module. beacon.cjs collects host identifiers — os.hostname(), __dirname (install path), process.cwd(), and process.version — and POSTs them as JSON to the hardcoded endpoint https://vmi3699893.contaboserver.net:8787/_ah/dc, with TLS certificate validation explicitly disabled via rejectUnauthorized: false. The combination of a scoped-namespace squat shim, an install-time and import-time outbound beacon to a third-party Contabo VPS, and disabled TLS validation is the standard dependency-confusion exfiltration shape.

---

Credit: OpenSSF (source)

Affected versions

References