self-v8@8.5.9
AI Security Review
scanned 3d ago · by lpm-firewall-aiThe exported check() function harvests tokens from the caller's source and sends the containing configuration to a hard-coded Discord recipient. This is credential exfiltration even though the function runs only when called.
Decision evidence
public snapshot- The package exports a check() function that reads the caller's source file from process.argv[1].
- check() extracts a CONFIG object and values from its tokens array, then logs into each token to validate it.
- The function uses a hard-coded Discord bot token and recipient ID, then sends the extracted configuration and validation report to that recipient.
- The manifest has no install hook; the credential theft runs when check() is called.
- The package has no install lifecycle scripts.
- The malicious behavior is in an exported function rather than code that runs automatically on import.
Source & flagged code
5 flaggedThe package exports a check() function that reads the caller's source file from process.argv[1].
index.jsView on unpkg · L11check() extracts a CONFIG object and values from its tokens array, then logs into each token to validate it.
index.jsView on unpkg · L16Findings
Affected versions and remediation
This report applies to self-v8@8.5.9.
See all versions of self-v8 for other recorded verdicts.
- Avoid installing self-v8@8.5.9. 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: .
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.