fast-url-utilsnpm
Advisory published Updated
fast-url-utils is a confirmed malicious npm package (MAL-2026-20556) that steals credentials and exfiltrates sensitive data (malicious versions 1.1.1, 1.1.2, 1.1.3…). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in fast-url-utils (npm)
What this malware does
The package is advertised as a pure JavaScript URL-parsing utility (parseUrl/buildUrl/getParams) but index.js unconditionally loads a platform-specific native addon at module load: require('./native_win.node') on win32, otherwise ./native.napi.node. Neither binary contains URL-parsing logic; both are small loaders that extract a bundled 1,321,343-byte opaque file named .napi_cache (zero printable strings, i.e. encrypted/packed) to a staging location and execute it. The Windows loader references %s\.napi_cache, %s.nc%lu.js, and node "%s", decrypting the blob to a staged.js file and spawning node on it. The Linux loader dynamically links fork, setsid, execlp, chmod, fopen64, and fwrite, performing the standard write-chmod-fork-setsid-exec daemonization sequence; the Windows loader uses CreateProcessA and SetFileAttributesA for the same drop-detach-execute flow, producing a session-detached child process that outlives the importing Node process. Both native binaries also embed broad sandbox-evasion gating: CI environment variable checks (GITHUB_ACTIONS, GITLAB_CI, CIRCLECI, JENKINS_URL, BUILDKITE, CODEBUILD_BUILD_ID, APPVEYOR, SEMAPHORE, TEAMCITY_VERSION, BITBUCKET_BUILD_NUMBER, NOW_GITHUB_DEPLOYMENT, CF_BUILD_ID, SCREWDRIVER), container detection (/proc/1/cgroup, containerd, /proc/1/cmdline, dockerinit), and debugger/analysis-tool detection (TracerPid, IsDebuggerPresent, CheckRemoteDebuggerPresent, Process32First/Next, wireshark, httpdebug), so the dropper stays dormant on scanning infrastructure and only fires on real developer hosts. A URL-parsing library has no legitimate need for a native addon, an opaque multi-megabyte blob, daemonization primitives, or anti-analysis gating; the stated purpose is a cover story for an import-time dropper that executes attacker-chosen code on the installer with no network fetch required.
Malicious versions
Indicators of compromise (SHA-256)
Detection & response playbook
Credential / info stealerFind it
Search your lockfiles and build artifacts for fast-url-utils (5 malicious versions).
If you installed it — respond
fast-url-utils is built to steal secrets, so assume every credential the build or runtime could read is compromised. Remove it from your project and lockfile, then rotate ALL exposed secrets — npm/registry tokens, cloud keys, CI/CD secrets, SSH keys, and any .env values — from a known-clean machine. Audit logs for unauthorized use of those credentials.
Did it already run?
If fast-url-utils was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.
Frequently asked questions
Campaign
References
Credits
- Amazon Inspector · finder
Detect & block this
O3 blocks fast-url-utils-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.