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
| Engine | Class | Method | Needs |
|---|---|---|---|
| Argus | Malware | Content analysis built from live campaigns | Artifact bytes |
| SkillSpector | Malware | Agent-skill and prompt-injection analysis | Skill files in the archive |
| GuardDog | Heuristic | Static rules for install hooks, obfuscation, credential access | Bytes + supported ecosystem |
| OSV | Vulnerability | Advisory matching by PURL | Package identity |
| Grype | Vulnerability | CVE matching against baked advisory databases | Bytes or versioned PURL |
| deps.dev | Vulnerability + advisories | Google Open Source Insights metadata | Package 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
- Each engine runs independently and returns a verdict, a finding count, and evidence.
- The summary distinguishes malware flags from issue flags, and says how many engines actually completed.
- An engine that does not support the input is shown as unsupported, not as clean. A clean result from four engines is weaker evidence than a clean result from six.
- Nothing is hidden from anonymous readers: every engine and every finding is public, with or without an account.
- Argus is a generalist engine: it scans any artifact pkgscan receives, including npm, PyPI, extensions, Cargo, Go and agent-skill files. SkillSpector adds skill-specific categories on top.
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
- It does not detonate packages today: the active engines read bytes and do not observe runtime behavior or network traffic.
- It does not resolve and scan your full dependency graph; it scans the package you submit.
- It does not prove an artifact is safe. A clean scan reduces risk; it does not eliminate it.
- It does not replace a registry-side gate. Argus can run at publish time inside a registry; pkgscan is the consumer-side check.
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.