
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Scan JS/TS code for suspicious remote imports and network interactions (potential malware indicators).
Scan JS/TS code for suspicious remote imports and network interactions (potential malware indicators).
npm install -g scan-mal
scan-mal [path|glob] [--json] [--ext=js,ts,jsx,tsx] [--allow-domain=domain1,domain2]
# examples
scan-mal ./src
scan-mal "**/*.js" --json
scan-mal ./src --ext=js,ts --allow-domain=yourdomain.com,cdn.yourdomain.com
Defaults:
NO_COLOR=1 to disable)Exit codes:
import/require/dynamic import() from URLsfetch, axios, XMLHttpRequest, WebSocket, navigator.sendBeacondocument.createElement('script'|'img'|'iframe')element.setAttribute('src'|'href'|'action', 'http(s)://...')element.src|href|action = 'http(s)://...'document.write('<script src=...>')eval(...), new Function(...)atob(...) or Buffer.from(..., 'base64') combined with eval/FunctionSeverity model:
http/ws = HIGH, https/wss = MEDIUMAllowlist:
--allow-domain=domain1,domain2 to skip known-safe hosts (match exact host or subdomains).Pretty (default): grouped by file, colored severities, line:column, with details.
JSON (--json):
{
"issues": [
{
"kind": "network-fetch",
"severity": "high",
"detail": "fetch to http://bad.site/api",
"location": { "file": "/abs/path/file.js", "line": 10, "column": 3 }
}
]
}
node_modules, .git, common build dirs, and does not follow symlinks.Install from npm:
npm install -g scan-mal
FAQs
Scan JS/TS code for suspicious remote imports and network interactions (potential malware indicators).
We found that scan-mal demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.