A suite of Node.js-based command-line security auditing tools designed to help developers identify vulnerabilities, hardcoded secrets, misconfigurations, and weak TLS setups before code goes to production.
Scans directories recursively to detect high-entropy strings, credential structures, private keys, and API tokens.
- Checks performed:
- AWS Access/Secret Key signatures
- Slack Webhook URLs
- Private Keys (RSA, PEM, SSH)
- Generic high-entropy strings (looks like JWTs or database passwords)
- Database connection strings (MongoDB, PostgreSQL)
- Usage:
node secrets-scanner.js <path-to-directory-or-file>
Validates a target Dockerfile for security anti-patterns and misconfigurations.
- Checks performed:
- Root execution (
USER rootor missing non-root user configuration) - Unpinned base image versions (e.g.
FROM node:latestorFROM ubuntu) - Hardcoded passwords, secrets, or environment keys (
ENV DB_PASSWORD=...) - Package manager cache bloat (e.g. running
apt-get installwithout cleaning/deleting caches) - Dangerous commands (e.g. using
curlorwgetpiping directly tosh, or installing SSH daemons)
- Root execution (
- Usage:
node docker-linter.js <path-to-Dockerfile>
Validates AWS IAM policy JSON documents to flag broad access and potential privilege escalation vulnerabilities.
- Checks performed:
- Wildcard action-resource assignments (
Effect: Allow,Action: *,Resource: *) - Wildcard operations on broad services (e.g.,
s3:*on*) - Privilege escalation hazards (e.g., actions like
iam:CreateAccessKey,iam:PutUserPolicy, oriam:AttachUserPolicy) - Insecure service assumptions (e.g., open principal trust relations)
- Wildcard action-resource assignments (
- Usage:
node iam-auditor.js <path-to-policy.json>
Queries a public target domain over HTTPS to evaluate TLS certificate life and HTTP security header hardening.
- Checks performed:
- SSL/TLS Certificate Expiry (calculates days remaining, flags if expired or expiring within 30 days)
- Security Headers presence and strength:
Strict-Transport-Security(HSTS)Content-Security-Policy(CSP)X-Frame-Options(Clickjacking prevention)X-Content-Type-Options(MIME sniffing prevention)Referrer-Policy(Leak prevention)
- Usage:
node security-header-checker.js <domain-name-without-http> # Example: node security-header-checker.js github.com