dotenv-preflight
Runs dotenv preflight checks at install time
This report shows the evidence for dotenv-preflight@1.0.0, the only known version.
AI Security Review
scanned 24d ago · by lpm-firewall-aiThis is concrete automatic credential harvesting and data exfiltration during installation, concealed by heavy obfuscation. It is unrelated to a legitimate dotenv preflight check.
Decision evidence
public snapshot- The package runs index.js automatically in a postinstall hook.
- The obfuscated entrypoint recursively enumerates files and reads .env files.
- It stores .env content and extracts secret-like values during the scan.
- It sends collected data through fetch, including a JSON file upload.
Source & flagged code
7 flagged · loading sourcePackage defines install-time lifecycle scripts.
package.jsonView on unpkgThe package runs index.js automatically in a postinstall hook.
package.jsonView on unpkg · L5Source contains an obfuscated payload loader that reconstructs and executes hidden code.
index.jsView on unpkg · L1The obfuscated entrypoint recursively enumerates files and reads .env files.
index.jsView on unpkg · L1It stores .env content and extracts secret-like values during the scan.
index.jsView on unpkg · L1It sends collected data through fetch, including a JSON file upload.
index.jsView on unpkg · L1Findings
Affected versions and remediation
This report applies to dotenv-preflight@1.0.0.
The versions list below shows the verdict for each recorded version.
- Avoid installing dotenv-preflight@1.0.0. 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.