self-v8@8.1.9
AI Security Review
scanned 3d ago · by lpm-firewall-aiThe function collects Discord credentials from the calling program and transmits the containing configuration to a hard-coded Discord account. This is concrete credential exfiltration, even though the flow requires an explicit call to check().
Decision evidence
public snapshot- The exported check() reads the source file named by process.argv[1].
- It searches that file for a CONFIG object and extracts long strings from its tokens array.
- It logs into each extracted token using a Discord selfbot client.
- It uses a hard-coded Discord bot token and fetches a fixed user account.
- It sends the caller's CONFIG data to that account.
- The package manifest declares no install, preinstall, or postinstall hook.
- The check() function is exported but is not invoked at module top level, so the theft flow requires a caller to invoke it.
Source & flagged code
7 flaggedThe exported check() reads the source file named by process.argv[1].
index.jsView on unpkg · L11It searches that file for a CONFIG object and extracts long strings from its tokens array.
index.jsView on unpkg · L21It searches that file for a CONFIG object and extracts long strings from its tokens array.
index.jsView on unpkg · L27Findings
Affected versions and remediation
This report applies to self-v8@8.1.9.
See all versions of self-v8 for other recorded verdicts.
- Avoid installing self-v8@8.1.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.