2fasecretkey
Fast, minimal two-factor auth helper for Node.js — HMAC-based OTP with zero dependencies
This report shows the evidence for 2fasecretkey@1.1.4. 3 of 3 known versions are blocked or flagged. See all versions.
AI Security Review
scanned 2mo ago · by lpm-firewall-aiThe package contains an automatic install-time remote payload loader that executes unaudited code from a hard-coded endpoint. This is concrete malware behavior, regardless of the benign-looking API files.
Decision evidence
public snapshot- The postinstall hook downloads JavaScript from a hard-coded IP address, saves it in the temporary directory, and executes it during installation.
- The hook suppresses errors, making the remote payload execution silent if it fails.
- The declared TOTP entrypoint imports a missing local module, while the install hook is fully functional.
- The visible runtime entrypoint only exposes TOTP helper functions and contains no network or file operations.
- No credential harvesting, agent configuration mutation, or destructive action is present in the packaged source files.
Source & flagged code
4 flagged · loading sourceInstall-time lifecycle script matches a deterministic static-gate block pattern.
package.jsonView on unpkgPackage defines install-time lifecycle scripts.
package.jsonView on unpkgThe postinstall hook downloads JavaScript from a hard-coded IP address, saves it in the temporary directory, and executes it during installation.
Findings
Affected versions and remediation
This report applies to 2fasecretkey@1.1.4.
The versions list below shows the verdict for each recorded version.
- Avoid installing 2fasecretkey@1.1.4. 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.