pkgscan.dev · Documentation

How pkgscan detects malicious packages

Every pkgscan result is the output of several independent engines, not one vendor's opinion. Each engine gets the artifact in the form it accepts, reports its own verdict and evidence, and pkgscan shows all of them side by side. The aggregate line is a summary of that evidence — not a replacement for it.

Updated 2026-11-05

The engines

EngineClassMethodNeeds
ArgusMalwareContent analysis built from live campaignsArtifact bytes
SkillSpectorMalwareAgent-skill and prompt-injection analysisSkill files in the archive
GuardDogHeuristicStatic rules for install hooks, obfuscation, credential accessBytes + supported ecosystem
OSVVulnerabilityAdvisory matching by PURLPackage identity
GrypeVulnerabilityCVE matching against baked advisory databasesBytes or versioned PURL
deps.devVulnerability + advisoriesGoogle Open Source Insights metadataPackage identity

Malware findings are not vulnerability findings

A vulnerability engine returns the same block value when it finds a known CVE as a malware engine does when it finds a backdoor. Treating those as the same thing produces misleading pages and bad decisions. pkgscan only calls an artifact flagged as malicious when a malware engine flags it, or when the findings contain a published malware advisory (MAL-…). Everything else is reported as security issues, with the engine and the finding shown.

How the aggregate verdict is built

Why heuristics get their own lane

GuardDog is useful precisely because it is aggressive: it notices install hooks, base64-decoding, and environment reads. That aggressiveness also fires on legitimate minified bundles and vendored dependencies. pkgscan therefore reports GuardDog as a heuristic source and does not let a GuardDog-only hit become the malware verdict on its own. The provider comparison lays out that split for every engine.

What to do with a flagged result

If a report says flagged as malicious, do not install the artifact. If it is already installed, remove that version and rotate any credentials or tokens it could read: install scripts run with your user's permissions, so a package or extension can read environment variables, shell profiles, and cloud credentials before you notice it. For a VS Code extension, the removal guide walks through uninstalling it and checking what it left behind.

If a report says suspicious, no malware engine flagged the artifact. Review the engine findings named on the report and check for a patched version before installing. A suspicious verdict is a reason to look, not proof of malware.

What pkgscan does not do

Deeper detail: extension scanning, the provider comparison.

How verdict corrections work

Every public report has two community controls. Not malware records a false-positive report; Confirm threat records a confirmation. Both are stored against the scan with an anonymous tag — you do not need an account — and the confirmation shows that tag so you can refer to the exact report later. They do not change the verdict automatically: the report keeps showing what the engines returned. To pursue a correction, email [email protected] with the tag from the confirmation and a link to the report.

A rescan can also change a report. If a package or extension was updated after the flagged version, scan the version you intend to install instead of relying on the older report.

Check a package or file now: scan it on pkgscan.dev.