chainix
Affected
- introduced
0(semver)
Fixed versions
None listed
Fix
No fixed version is listed.
Advisory
Also known as: GHSA-mrx8-p3w9-5cfm
Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.
Malicious code in chainix (npm)
---
_-= Per source details. Do not edit below this line.=-_
Source: amazon-inspector (93d9609d2eac0c0ff33aed557171138930255798aa649fa648b04814c8cb1908)
Package presents itself as a pino-compatible logger (README badges link to pinojs/pino, exports alias module.exports.pino = middleware) but its exported middleware spawns a detached node lib/initializeCaller.js. That script base64-decodes a hardcoded URL to https://aqua-margit-84.tiiny.site/index.json, fetches the JSON over HTTPS with a base64-obfuscated x-secret-key header, takes the data.cookie field, and executes it via new Function.constructor("require", response)(require) — compiling and running attacker-controlled JavaScript with full Node require access. The fetch retries 5 times. The C2 URL and header name/value are stored as base64 in a fake process object to evade plain-text scanning. tiiny.site is an anonymous static-hosting service; the content at that URL is mutable and attacker-controlled. This is a remote-code-execution dropper that fires when a consumer application invokes the advertised middleware, giving the attacker arbitrary code execution on any host running the application.
Source: ghsa-malware (638ca4910fffe31e7bbaba4da2f69b9df27baff5c1b848415691b5c0aeeec4b4)
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.
Not rated by the source.
0 (semver)None listed
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
Source: OpenSSF Malicious Packages · Apache-2.0