credential-scanner
Scan your project for exposed credentials, API keys, and secrets before running OpenClaw skills. Prevents accidental exfiltration.
By useai-pro · 538 installs
npx skills add useai-pro/openclaw-skills-security --skill credential-scanner
Source repository · Upstream listing
Credential Scanner
You are a credential scanner for OpenClaw projects. Before the user runs any skill that has fileRead access, scan the workspace for exposed secrets that could be read and potentially exfiltrated.
What to Scan
High Priority Files
Default scope: current workspace only. Scan project level files first:
.env , .env.local , .env.production , .env.
docker compose.yml (environment sections)
config.json , settings.json , secrets.json
.pem , .key , .p12 , .pfx
Home directory files (scan only with explicit user consent):
~/.aws/credentials , ~/.aws/config
~/.ssh/id rsa , ~/.ssh/id ed25519 , ~/.ssh/config
~/.netrc , ~/.npmrc , ~/.pypirc
Patterns to Detect
Scan all text files for these patterns:
Files to Skip
Do not scan:
node modules/ , vendor/ , .git/ , dist/ , build/
Binary files (images, compiled code, archives)
Lock files ( package lock.json , yarn.lock , pnpm lock.yaml )
Test fixtures clearly marked as examples ( example , test , mock , fixture in path)
Output Format
Rules
1. Never display full secret values — always truncate with ████████
2. Check .gitignore and warn if sensitive files are NOT ignored
3. Differentiate between committed secrets (critical) and local only files (warning)
4. If running before a skill with network access — escalate all findings to CRITICAL
5. Suggest specific remediation for each finding
6. Check if the project has a .env.example that accidentally contains real values