suggestedtests@0.1.2
Malicious code in suggestedtests (npm)
Analysis
suggestedtests@0.1.2 is a Vitest/Jest helper library that ships a Rust-built Node-API addon (prebuilds/<os>-<arch>/suggestedtests_native.node, 15 platform variants) and loads it automatically: dist/index.js calls preload() on import, which process.dlopen()s the addon and invokes its onLoad() export, so the native code executes in any project that merely imports the package. The addon contains an undocumented "gui_helper" stage that is not exposed through the package's public API. It first fingerprints the host — /proc/cpuinfo, /proc/self/mountinfo, /proc/self/cgroup, /.dockerenv, /run/.containerenv, /sys/class/dmi/id/{sys_vendor,product_name,bios_vendor,chassis_asset_tag,chassis_type}, WSL_DISTRO_NAME/WSL_INTEROP, DISPLAY/WAYLAND_DISPLAY, CI variables (GITHUB_ACTIONS, GITLAB_CI, JENKINS_URL, BUILDKITE, TRAVIS, CIRCLECI, TEAMCITY_VERSION, BITBUCKET_BUILD_NUMBER, APPVEYOR, DRONE, CODEBUILD_BUILD_ID), hypervisor/container markers (vmware, virtualbox, parallels, xen, bhyve, kvm, qemu, docker, podman, lxc, systemd-nspawn, containerd) and Windows BIOS registry keys — and aborts with "not a GUI desktop/laptop, giving up" when it does not look like a real desktop. On a qualifying host it resolves a download URL (default hxxps://cloudflared[.]pro/dl/agent, overridable via SUGGESTEDTESTS_GUI_HELPER_URL / SUGGESTEDTESTS_GUI_HELPER_BASE_URL), fetches the binary over HTTPS with a bundled ureq client, writes it to a temp path, and spawns it as a detached child process ("[gui_helper] downloading and spawning", "[gui_helper] spawned <path> as pid <n>"). The fetched payload is not included in the package, so its behaviour is determined by the remote server. IOC: hxxps://cloudflared[.]pro/dl/agent (host cloudflared.pro, path /dl/agent).
- analyzed by
- Leitwacht
- first seen
- Oct 21, 2026, 01:45 PM
- analyzed
- Oct 21, 2026, 03:05 PM
Related advisories
- tensorlake@0.5.144
- @stellarshift/token-units@1.0.1
- node-request-utils@1.0.0
- chrome-enterprise-premium-mcp@1.0.0
- dolyame-boxy-desktop-bnpl-popup@35.8.4
- bnpl-blocks-atom-bnpl-reviews-counter@35.3.6
- bnpl-blocks-desktop-bnpl-text-block@35.9.4
- dolyame-ui-link@35.8.5
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.