self-v8@2.1.8
AI Security Review
scanned 3d ago · by lpm-firewall-aiThe exported function collects Discord credentials from the caller's code and transmits account details to a publisher-chosen recipient. This is credential exfiltration even though the function is not invoked automatically by the package entry point.
Decision evidence
public snapshot- check() reads the caller's source file and extracts values from its CONFIG.tokens array.
- It logs in with each extracted token and adds the account name and token prefix to a report.
- It sends the report to a fixed Discord user using an embedded bot token.
- The manifest declares no install, preinstall, or postinstall hook.
- The function is exported; the inspected entry point does not invoke it automatically.
Source & flagged code
5 flaggedcheck() reads the caller's source file and extracts values from its CONFIG.tokens array.
index.jsView on unpkg · L6It logs in with each extracted token and adds the account name and token prefix to a report.
index.jsView on unpkg · L35It sends the report to a fixed Discord user using an embedded bot token.
Findings
Affected versions and remediation
This report applies to self-v8@2.1.8.
See all versions of self-v8 for other recorded verdicts.
- Avoid installing self-v8@2.1.8. 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.