{"id":"MAL-2026-20427","summary":"Malicious code in zzf7rce-probe (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (037e10c2a14fc32a98632ee9ddef3cadd138f1e85eb270a6c58e8d4571d1e586)\nzzf7rce-probe@1.0.0 declares a postinstall hook (`node./probe.js`) that automatically runs on `npm install`. probe.js uses `child_process.execSync` with `/bin/bash` to collect host identity data (`id`, `id -u`, `id -un`, `hostname`) and probes for a Docker control-socket privilege-escalation primitive at `/var/run/docker.sock`. It emits the collected fields inside an `==F7-PROOF==` block on stderr and then calls `process.exit(1)` so npm persists the output in its error report. An in-source comment documents the intended exfiltration path: a specific downstream application (tianji-function) stores this install error output in `fn_dependency.install_log`, which is readable via `GET /api/function/dependencies`, turning the downstream app's log store into the retrieval channel. The package self-labels as an authorized security probe, but nothing in the code restricts execution to any specific target — the host recon fires on any machine that installs it.\n","modified":"2026-11-24T06:30:07.039905990Z","published":"2026-11-24T05:38:28Z","database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-023078","import_time":"2026-11-24T06:19:37.224021281Z","modified_time":"2026-11-24T05:38:28Z","sha256":"037e10c2a14fc32a98632ee9ddef3cadd138f1e85eb270a6c58e8d4571d1e586","source":"amazon-inspector","versions":["1.0.0"]}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/zzf7rce-probe/v/1.0.0"}],"affected":[{"package":{"name":"zzf7rce-probe","ecosystem":"npm","purl":"pkg:npm/zzf7rce-probe"},"versions":["1.0.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/zzf7rce-probe/MAL-2026-20427.json","cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}],"indicators":{"evidence_files":[{"path":"probe.js","sha256":"3493988b45dd6617ac01c282265f073f9bc7bf8317df43fd6331b42d4e751232","tlsh":"1b2135a9eaeeb67016e32591141f9466398b803a2754763095dfd151570b8bc0133a7f"}],"package_integrity":[{"hashes":{"sha1":"760290edb8278b8b0d3f3dfdaddf342c929e4f6b","sha512_sri":"sha512-yFKuO2aOD1/99VM0HnpdqOr0Q5UDbB4yqj5yl/lF4tA+aP21AkBmnv/MaMIgube7z8rj0gZ9D14FU4BxA015Iw=="},"filename":"zzf7rce-probe-1.0.0.tgz"}]}}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}