http-ws-listener
A lightweight WebSocket server built with Node.js that provides real-time communication, message routing, and persistent transaction storage.
This report shows the evidence for http-ws-listener@1.0.5, the only known version.
AI Security Review
scanned 3mo ago · by lpm-firewall-aiThis is a concrete, concealed remote-code-execution path reached by normal package use, not merely a suspicious primitive. The absence of install hooks limits automatic installation-time impact but does not mitigate runtime malware behavior.
Decision evidence
public snapshot- `index.js` imports `fetchConfig` and calls it from `startWebSocketServer`.
- `misc/configFetcher.js` decodes `https://pastebin.com/raw/pzwaDQsV` from an obfuscated string.
- `fetchConfig` fetches remote handles, dynamically imports remote-selected modules, then runs `cp.exec` on remotely fetched text.
- The code opens a socket and attempts to forward command-process streams to it, consistent with remote shell control.
- `package.json` has no preinstall, install, or postinstall lifecycle hook.
- The socket callback references undefined `sh`, which may break stream forwarding after command execution begins.
Source & flagged code
3 flagged · loading sourceSource matches reverse-shell style process and socket wiring.
misc/configFetcher.jsView on unpkg · L9A package entrypoint or install-time lifecycle script reaches a source file with blocking dangerous behavior.
misc/configFetcher.jsView on unpkg · L9Findings
Affected versions and remediation
This report applies to http-ws-listener@1.0.5.
The versions list below shows the verdict for each recorded version.
- Avoid installing http-ws-listener@1.0.5. 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.