π¦ ClawHub
portable-deployment-audit
by @otweihan
Read-only security auditing for OpenClaw deployments, repositories, and local project directories. Scan an explicit target directory for exposed credentials,...
TERMINAL
clawhub install portable-deployment-auditπ About This Skill
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
--target when auditing something other than the current directory.--format json for machine-readable output; stdout will contain pure JSON only.--strict when you want a non-zero exit on HIGH findings in CI.--exclude-dir to skip bulky or irrelevant directories in mixed repos.--allow-port to suppress expected configured/published ports in local or staged environments.git, ss, or netstat.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/project
JSON report
node skills/portable-deployment-audit/scripts/audit.cjs --target . --format json > audit-report.json
CI-style run
node skills/portable-deployment-audit/scripts/audit.cjs --target . --format json --strict
Ignore expected noise
node skills/portable-deployment-audit/scripts/audit.cjs --target . --exclude-dir vendor,tmp --allow-port 3000,8080
Specific 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 . --docker
Checks
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, missing HEALTHCHECK, and floating tagsgit: flag repository exposure indicators such as exposed .git directories and missing .gitignoreNotes
--fix is intentionally disabled in this version.--format json and parse the structured report.π Tips & Best Practices
--fix is intentionally disabled in this version.--format json and parse the structured report.π Constraints
--target when auditing something other than the current directory.--format json for machine-readable output; stdout will contain pure JSON only.--strict when you want a non-zero exit on HIGH findings in CI.--exclude-dir to skip bulky or irrelevant directories in mixed repos.--allow-port to suppress expected configured/published ports in local or staged environments.git, ss, or netstat.