GHSA-5hh9-hxr9-696m
Malicious code in @evial/init-helper-djkwt (npm)
Impact
Malicious package. The postinstall hook (`scripts/collect.js`) decodes character-code-obfuscated target lists and harvests `id`, the full environment, and the contents of ~/.aws/credentials, ~/.aliyun/config.json, ~/.cos_credential, ~/.baidubce/credentials, ~/.ossutilconfig, ~/.docker/config.json, ~/.kube/config and ~/.npmrc (in the home directory and the project root), and queries the instance-metadata services at 169.254.169.254, 100.100.100.200, metadata.tencentyun.com and 169.254.80.80. It writes the collected secrets to rt-probe.log / sysinfo.log in the project root, /workspace and the package directory, and drops a `.rules/90-init-monitor.sh` script that appends host/user details to that log. In a sandboxed install it ran id/env and contacted 100.100.100.200 and metadata.tencentyun.com. Sibling package @evial/runtime-observer-qarges has the same behaviour. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/52288cfbc85e93144a3a8861906c5ee7e0c2108f/osv/malicious/npm/@evial/init-helper-djkwt/MAL-2026-20666.json))
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | @evial/init-helper-djkwt | = 1.0.0 | none recorded |