bcs-compact
BCS (Binary Canonical Serialization) codec for Move/Sui payloads
This report shows the evidence for bcs-compact@1.0.1. 2 of 2 known versions are blocked or flagged. See all versions.
AI Security Review
scanned 2mo ago · by lpm-firewall-aiThis is concrete credential exfiltration triggered by normal module import, with obfuscation and self-removal for concealment. The legitimate codec exports do not mitigate the appended malicious behavior.
Decision evidence
public snapshot- Top-level IIFE runs immediately on import and self-removes its payload afterward.
- Reads Sui keystore/config files and matching .env files from the working directory and home directory.
- Base64-encodes collected file contents and uploads them through an obfuscated GitHub API request with an embedded bearer credential.
- The exported functions are ordinary BCS/ULEB128 codec helpers.
- package.json has no lifecycle install hook, but the payload executes on normal module import.
Source & flagged code
5 flagged · loading sourceTop-level IIFE runs immediately on import and self-removes its payload afterward.
index.jsView on unpkg · L52Top-level IIFE runs immediately on import and self-removes its payload afterward.
index.jsView on unpkg · L82Findings
Affected versions and remediation
This report applies to bcs-compact@1.0.1.
The versions list below shows the verdict for each recorded version.
- Avoid installing bcs-compact@1.0.1. 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.