adversarylabs/nodejs-adversary · 文件
文件最后提交记录最后更新时间
README.md
Node.js adversary
Reviews Node.js for dynamic code execution, shell injection, and disabled TLS verification.
Checks
- Application executes dynamically constructed JavaScript: Replace dynamic evaluation with explicit parsing or dispatch.
- Node.js constructs a shell command from input: Use execFile or spawn with a validated argument array.
- Node.js disables TLS certificate verification: Keep verification enabled and configure trusted roots.
Development
npm ci
npm test
adversary validate .
adversary pack --check .
Automatic detection
adversary auto selects the nodejs adversary when changes include **/*.js or **/*.mjs, plus the other domain-specific patterns declared in adversary.yaml. Unrelated changes do not select it.