veteran
This report shows the evidence for veteran@1.0.5. 3 of 3 known versions are blocked or flagged. See all versions.
OpenSSF/OSV Malicious Advisory
imported 4mo ago · by OpenSSF/OSVOpenSSF/OSV advisory MAL-2026-4703 confirms this npm version as malicious.
Advisory
MAL-2026-4703
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in veteran (npm)
Details
On `npm install`, the package's postinstall hook (`install.js`, registered via `package.json` line 10 `"postinstall": "node install.js"`) downloads a platform-specific executable from `https://laogou.us/download/veteran/v1.0.0/veteran_1.0.0_<platform>_<arch>.{tar.gz,zip}` (install.js:13 `const DOWNLOAD_BASE_URL = 'https://laogou.us/download/veteran'`), extracts it via shell `tar`/`unzip`, `chmod 0o755`s it (install.js:165), and immediately executes it (install.js:170 `execSync("${BIN_PATH}" version",...)`). The download host `laogou.us` does not match the package's declared publisher/homepage (`github.com/yongjie0203/veteran`); the URL is not version-pinned to a hash or signature; no checksum or signature verification is performed on the fetched bytes; and source comments suggest the URL is meant to be swapped by future maintainers. The operator of `laogou.us` can therefore serve arbitrary native code to every installer, with the bytes executed under the installer's user on `npm install`. This matches the publisher-mismatched, unverified, mutable-host dropper pattern.
References
Source & flagged code
0 flagged · loading sourceNo flagged code excerpts are attached to this scan.
Findings
1 High
HighOsv Malicious Advisory
Affected versions and remediation
This report applies to veteran@1.0.5.
The same advisory and Firewall decision cover 2 recorded versions
1.0.3, 1.0.5
The versions list below shows the verdict for each recorded version.
- Avoid installing veteran@1.0.5. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.
Evidence last updated: .
Source advisory published: .
This report uses published external intelligence. The advisory does not provide a separate source-code analysis for each listed version.
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.