npm package intelligence

vitest — deep security report

ShadowCanopy's full breakdown of vitest on npm: verdict, AI analysis, dependency chain, network behavior, prebuilds, and obfuscated code.

Safe to use
Deep-scanned by ShadowCanopy — no threats found in its code, dependencies, or network behavior.
Scanned 9/19/2026
Approvedvitest@5.0.1View on registry ↗latest: 5.0.1

All flagged chunks are legitimate bundled/minified code from vitest and its deps (acorn parser, snapshot utilities, pretty-format, vm runners). Unicode ranges, Function() usage, fetch/import, and '8.6.1.5' are normal (identifier tables, safe eval, RPC/module loading, spec reference). No malicious behavior.

Protect your projects free

AI breakdown

Plain-English summary of what this package does and how it behaves.

Vitest is a testing framework powered by Vite, providing CLI and APIs for running JavaScript/TypeScript tests. It includes build scripts using rollup and depends on libraries such as chai, tinyexec, and es-module-lexer. The package ships prebuilt dist files and a bin entry for the vitest command.

Capabilities

  • Provides CLI entrypoint for tests
  • Includes build and dev scripts using rollup
  • Depends on testing utilities like chai and tinybench

Data access

  • Filesystem (via test runner and config loading)
  • None observed beyond standard Node.js test execution

Network

  • No network access observed

Static findings flag obfuscated files and potential remote execution patterns, common in minified dist bundles; the package is a widely used legitimate testing tool with no install-time scripts or evident malicious behavior in the manifest.

Dependency & execution chain

Every package this one pulls in, colored by verdict. Expand to walk the tree.

23 packages14 direct
vitest@5.0.122 findings
chai@6.2.22 findings
obug@3.0.0
std-env@4.2.0
tinyexec@1.3.1
picomatch@4.0.72 findings
tinybench@6.2.0
tinyglobby@0.2.17
magic-string@1.4.12 findings
@vitest/mocker@5.0.12 findings
es-module-lexer@3.0.212 findings

Obfuscated / hidden code

Encoded payloads decoded statically (without executing them) so you can see what they resolve to.

Obfuscated source filedist/chunks/acorn.C1kjbUFw.js

Multiple obfuscation patterns in dist/chunks/acorn.C1kjbUFw.js

Obfuscated source filepackage/dist/chunks/acorn.C1kjbUFw.js

Multiple obfuscation patterns in package/dist/chunks/acorn.C1kjbUFw.js

Security findings (22)

Static analysis rule matches, with the exact code that triggered them.

mediumObfuscated source fileATK-023dist/chunks/acorn.C1kjbUFw.js

Multiple obfuscation patterns in dist/chunks/acorn.C1kjbUFw.js

mediumObfuscated source fileATK-023package/dist/chunks/acorn.C1kjbUFw.js

Multiple obfuscation patterns in package/dist/chunks/acorn.C1kjbUFw.js

mediumObfuscated source fileATK-023dist/chunks/index.M2dsQ_UQ.js

Multiple obfuscation patterns in dist/chunks/index.M2dsQ_UQ.js

mediumObfuscated source fileATK-023package/dist/chunks/index.M2dsQ_UQ.js

Multiple obfuscation patterns in package/dist/chunks/index.M2dsQ_UQ.js

mediumObfuscated source fileATK-023dist/chunks/index.m3L2HgmY.js

Multiple obfuscation patterns in dist/chunks/index.m3L2HgmY.js

mediumObfuscated source fileATK-023package/dist/chunks/index.m3L2HgmY.js

Multiple obfuscation patterns in package/dist/chunks/index.m3L2HgmY.js

mediumObfuscated source fileATK-023dist/chunks/run.C5UmxDPh.js

Multiple obfuscation patterns in dist/chunks/run.C5UmxDPh.js

mediumObfuscated source fileATK-023package/dist/chunks/run.C5UmxDPh.js

Multiple obfuscation patterns in package/dist/chunks/run.C5UmxDPh.js

criticalRuntime remote code executionATK-025dist/chunks/index.D4dXTzh9.js

File dist/chunks/index.D4dXTzh9.js fetches data over the network and passes it to a code-execution sink (eval/Function/vm) — remote code can run after install.

highDynamic module load with remote sourceATK-027dist/chunks/index.D4dXTzh9.js

File dist/chunks/index.D4dXTzh9.js builds a dynamic import/require argument alongside network access — possible remote module loading.

criticalRuntime remote code executionATK-025package/dist/chunks/index.D4dXTzh9.js

File package/dist/chunks/index.D4dXTzh9.js fetches data over the network and passes it to a code-execution sink (eval/Function/vm) — remote code can run after install.

highDynamic module load with remote sourceATK-027package/dist/chunks/index.D4dXTzh9.js

File package/dist/chunks/index.D4dXTzh9.js builds a dynamic import/require argument alongside network access — possible remote module loading.

highHardcoded public IP in network codeATK-028dist/chunks/index.m3L2HgmY.js

File dist/chunks/index.m3L2HgmY.js contains a hardcoded public IP (8.6.1.5) used in network code — review for hidden exfiltration or C2 endpoints.

highHardcoded public IP in network codeATK-028package/dist/chunks/index.m3L2HgmY.js

File package/dist/chunks/index.m3L2HgmY.js contains a hardcoded public IP (8.6.1.5) used in network code — review for hidden exfiltration or C2 endpoints.

highDynamic module load with remote sourceATK-027dist/chunks/init.3UJvPvQg.js

File dist/chunks/init.3UJvPvQg.js builds a dynamic import/require argument alongside network access — possible remote module loading.

highDynamic module load with remote sourceATK-027package/dist/chunks/init.3UJvPvQg.js

File package/dist/chunks/init.3UJvPvQg.js builds a dynamic import/require argument alongside network access — possible remote module loading.

criticalRuntime remote code executionATK-025dist/chunks/vm.W4G5WMTl.js

File dist/chunks/vm.W4G5WMTl.js fetches data over the network and passes it to a code-execution sink (eval/Function/vm) — remote code can run after install.

highDecoded payload executedATK-026dist/chunks/vm.W4G5WMTl.js

File dist/chunks/vm.W4G5WMTl.js decodes a base64/hex blob and passes it to an execution sink — a common way to hide a malicious payload.

highDynamic module load with remote sourceATK-027dist/chunks/vm.W4G5WMTl.js

File dist/chunks/vm.W4G5WMTl.js builds a dynamic import/require argument alongside network access — possible remote module loading.

criticalRuntime remote code executionATK-025package/dist/chunks/vm.W4G5WMTl.js

File package/dist/chunks/vm.W4G5WMTl.js fetches data over the network and passes it to a code-execution sink (eval/Function/vm) — remote code can run after install.

highDecoded payload executedATK-026package/dist/chunks/vm.W4G5WMTl.js

File package/dist/chunks/vm.W4G5WMTl.js decodes a base64/hex blob and passes it to an execution sink — a common way to hide a malicious payload.

highDynamic module load with remote sourceATK-027package/dist/chunks/vm.W4G5WMTl.js

File package/dist/chunks/vm.W4G5WMTl.js builds a dynamic import/require argument alongside network access — possible remote module loading.

Package metadata

LicenseMIT

Next generation testing framework powered by Vite

Homepage ↗Repository ↗

Files in package (204)

dist/config.cjspackage/dist/config.cjsindex.cjspackage/index.cjssuppress-warnings.cjspackage/suppress-warnings.cjsindex.d.ctspackage/index.d.ctsdist/chunks/acorn.C1kjbUFw.jspackage/dist/chunks/acorn.C1kjbUFw.jsdist/chunks/base.Cc3oda2V.jspackage/dist/chunks/base.Cc3oda2V.jsdist/browser.jspackage/dist/browser.jsdist/chunks/cac.fSuRXrAx.jspackage/dist/chunks/cac.fSuRXrAx.jsdist/chunks/cli-api.DcLieX4F.jspackage/dist/chunks/cli-api.DcLieX4F.jsdist/cli.jspackage/dist/cli.jsdist/config.jspackage/dist/config.jsdist/chunks/console.B09ye7y0.jspackage/dist/chunks/console.B09ye7y0.jsdist/chunks/constants.-juJ8b_4.jspackage/dist/chunks/constants.-juJ8b_4.jsbrowser/context.jspackage/browser/context.jsdist/chunks/coverage.AipniaqB.jspackage/dist/chunks/coverage.AipniaqB.jsdist/chunks/coverage.CX7NN5s7.jspackage/dist/chunks/coverage.CX7NN5s7.jsdist/chunks/creator.BEj8pIIH.jspackage/dist/chunks/creator.BEj8pIIH.jsdist/chunks/defaults.D2ip7f-X.jspackage/dist/chunks/defaults.D2ip7f-X.jsdist/chunks/display.pkpxlVcY.jspackage/dist/chunks/display.pkpxlVcY.jsdist/chunks/doctor.DR3u0Z_G.jspackage/dist/chunks/doctor.DR3u0Z_G.js

How ShadowCanopy checks npm packages

ShadowCanopy blocks every dependency by default and only lets through what it can verify — against live malicious-package advisories, an AI behavior scan, and a byte-for-byte hash check. It protects installs across npm, PyPI, crates.io, pkg.go.dev, RubyGems, Maven Central, NuGet, Packagist, Hex, pub.dev, Swift Package Manager.

Protect your projects freeSee what's being blocked

This report reflects ShadowCanopy's threat intelligence at page load and is informational, not a warranty. Canonical URL: https://shadowcanopy.dev/packages/npm/vitest