Summary
Togoder Security scanned the npm package which@7.0.0 on Oct 6, 2026. An AI review of 2 source files produced no findings. No malicious behavior, install-time payloads, credential theft or exfiltration were identified.
Findings
No findings. The reviewer saw nothing malicious or risky in this version.
Files reviewed
| File | Verdict | What the reviewer saw |
|---|---|---|
| bin/which.js | safe | The file is a standard CLI wrapper for the 'which' library that parses arguments and calls which.sync without any malicious patterns such as data exfiltration, credential harvesting, obfuscation, or process spawning. |
| lib/index.js | safe | No malicious patterns detected; the code is the well-known 'which' package, which safely locates executable files without any exfiltration, process spawning, or obfuscation. |
Affected version ranges
None of the 3 scanned versions of which are flagged high or critical. The latest scanned version, 7.0.0, is clean. Only versions we have scanned are listed; unscanned versions between them are not covered.
| Versions | Verdict | Count | Range | Top findings |
|---|---|---|---|---|
| 6.0.1 – 7.0.0 | No issues | 2 | >=6.0.1 <=7.0.0 | |
| 4.0.0 – 6.0.0 | Not scanned | 3 | >=4.0.0 <=6.0.0 | |
| 2.0.2 | No issues | 1 | 2.0.2 | |
| 1.3.1 | Not scanned | 1 | 1.3.1 |
Full list, including published versions not scanned yet: version ranges API.
Scanned versions of which
Frequently asked questions
Is which safe to use?
Our AI source review of which@7.0.0 found no malicious code: no install-time payloads, credential theft, exfiltration, obfuscated loaders or backdoors.
Does which contain malware?
No malware was identified in which@7.0.0 when Togoder Security scanned it on Oct 6, 2026. A new version can still introduce malicious code, so scan the exact versions in your lockfile.
How was which checked?
Togoder Security downloaded the published npm package and had an AI model read its 2 source files, looking for install scripts, credential access, network exfiltration, obfuscation, backdoors and crypto-wallet theft. The results are cached by file hash and shown here.
How do I scan which together with the rest of my dependencies?
Upload your lockfile at https://security.togoder.click/scan or call the API documented at https://security.togoder.click/api-docs. Files that have already been scanned, like the ones in which@7.0.0, cost nothing.