- name
- portable-deployment-audit
- description
- Read-only security auditing for OpenClaw deployments, repositories, and local project directories. Scan an explicit target directory for exposed credentials, risky configuration, explicit port exposure hints, Dockerfile and compose issues, Git exposure, and Unix permission problems. Uses file inspection only. Use when reviewing a deployment, server checkout, workspace, or repo before release, after setup, during periodic hardening checks, or in CI.
Portable Deployment Audit
Run a read-only security review against a chosen directory.
Rules
- Treat this skill as read-only.
- Do not use it to modify files automatically.
- Pass
--target <dir>when auditing something other than the current directory. - Use
--format jsonfor machine-readable output; stdout will contain pure JSON only. - Use
--strictwhen you want a non-zero exit on HIGH findings in CI. - Use
--exclude-dirto skip bulky or irrelevant directories in mixed repos. - Use
--allow-portto suppress expected configured/published ports in local or staged environments. - This version uses file inspection only and does not invoke external binaries such as
git,ss, ornetstat. - Expect limited permission analysis on Windows; Unix mode-bit checks only run on Unix-like systems.
Commands
Quick audit of current directory
node skills/portable-deployment-audit/scripts/audit.cjs --target .Audit another directory
node skills/portable-deployment-audit/scripts/audit.cjs --target /path/to/projectJSON report
node skills/portable-deployment-audit/scripts/audit.cjs --target . --format json > audit-report.jsonCI-style run
node skills/portable-deployment-audit/scripts/audit.cjs --target . --format json --strictIgnore expected noise
node skills/portable-deployment-audit/scripts/audit.cjs --target . --exclude-dir vendor,tmp --allow-port 3000,8080Specific checks only
node skills/portable-deployment-audit/scripts/audit.cjs --target . --check credentials,configs
node skills/portable-deployment-audit/scripts/audit.cjs --target . --ports
node skills/portable-deployment-audit/scripts/audit.cjs --target . --dockerChecks
credentials: scan env/config/code files for likely secrets and hardcoded credentialsports: inspect explicit port exposure hints from config and compose files, respect--allow-port, and warn more strongly on commonly exposed service portsconfigs: flag risky debug logging, wildcard CORS, and obvious placeholder/default secretspermissions: inspect Unix mode bits on sensitive files; Windows reports limitations instead of guessingdocker: inspect Dockerfile and compose files for root/privileged runtime, host networking, published ports, missingHEALTHCHECK, and floating tagsgit: flag repository exposure indicators such as exposed.gitdirectories and missing.gitignore
Notes
--fixis intentionally disabled in this version.- Findings are advisory and should be reviewed before making changes.
- Text output includes short remediation recommendations derived from the findings.
- The script performs file inspection only; no shell commands or external binaries are executed.
- For automation, prefer
--format jsonand parse the structured report.