Malicious code in chai-as-serialized (npm)
-= Per source details. Do not edit below this line.=-
The package's main entry (index.js) spawns a detached node child process running lib/initializeCaller.js as a side effect of invoking the exported middleware factory. lib/initializeCaller.js constructs a fake process.env object whose fields hold base64 blobs; DEV_API_KEY decodes to https://tomato-brunhilda-40.tiiny.site/index.json and DEV_SECRET_KEY/DEV_SECRET_VALUE decode to an x-secret-key request header. The script fetches the JSON body from that anonymous host and executes it via new Function.constructor("require", response)(require), granting the remote host arbitrary code execution with require access in the installer/consumer's Node process. The package name mimics chai-as-promised and the README is copied from pino (pino badges, pino narrative, keywords fast,logger,stream,json), while the shipped code has no relation to either — the impersonation is a lure to attract installs to a remote-code-execution dropper. Base64-encoding of the C2 URL and header, disguised as environment-variable configuration, confirms hostile intent.
왜 이 VPI인가 (설명가능 · 실험적)
VPI 산정 기준
| 영향도(기본값(정보 없음)) | 55.00 |
| 악용 신호(추가 악용신호 없음) | ×1.00 |
| VPI | 55.00 |
VPI 공식 vpi-v1 기준