credential-exposure-map
Map all credentials your OpenClaw agent can access. Scans env vars, config, memory, skills, MCP servers, git history. Generates exposure report with risk scoring. Activate when use…
Thomaszhou
@thomaszhou22
Install
$ openclaw skills install @thomaszhou22/credential-exposure-mapCredential Exposure Map
See every credential your agent can touch. Score the blast radius. Shrink the attack surface.
When to Activate
- User says: "credential audit", "exposure map", "security audit"
- User says: "what can my agent access", "credential scan"
- User says: "credential cleanup", "redact credentials"
Do NOT activate for normal work conversations.
Audit Flow
When user asks for a credential audit or exposure map:
- Run the scanner:
python3 skills/credential-exposure-map/scripts/scan_exposure.py
-
Present the output in a clean format:
- Summary: total findings, risk distribution
- Credential Inventory: table with preview, risk level, source, location
- Skill Capability Matrix: which skills have exec/read/network/write
- Top recommendations for reducing exposure
-
Highlight CRITICAL findings prominently.
Recommendation Generation
After presenting the scan, offer specific recommendations:
- CRITICAL credentials in env: "Move to secrets vault or remove from agent context"
- Credentials in MEMORY.md: "These persist across sessions. Consider redacting."
- Skills with full exec+network: "Review if this skill needs both capabilities"
- Secrets in git history: "Use git filter-branch or BFG to scrub history"
- MCP servers with auth: "Verify each MCP server's permission scope"
Output Format
Summary
Scan Complete: X finding(s)
Risk: N Critical | N High | N Medium | N Low
Credential Inventory
Table showing each credential with:
- Preview (first 8 chars + ***)
- Risk level (CRITICAL/HIGH/MEDIUM/LOW)
- Source (env/config/memory/skill/mcp/git)
- Location (file:line or config path)
Skill Capability Matrix
Table showing each installed skill with exec/read/network/write permissions and risk score.
Security Considerations
- NEVER output full credential values. Always mask as
first8chars*** - Report is saved to
~/.openclaw/credential-exposure-report.jsonwith 600 permissions - Scan is read-only, does not modify any files
- Skill capability inference is conservative (assumes exec = full filesystem access)
Detection Coverage
| Source | What It Finds |
|---|---|
| Environment variables | API keys, tokens, passwords in process.env |
| openclaw.json | Provider keys, webhook secrets, MCP auth |
| .env files | Any .env in workspace or ~/.openclaw |
| MEMORY.md / memory/*.md | Credentials written into agent memory |
| memory/*.json | Credential caches, state files with tokens |
| Installed skills | Skills with exec, read, or network capabilities |
| MCP server config | Connected services with auth scope |
| Git history | Secrets committed in last 50 commits |
Top skills in this category
Skill Vetter
@spclaudehomeSecurity-first skill vetting for AI agents. Use before installing any skill from ClawdHub, GitHub, or other sources. Checks for red flags, permission scope, and suspicious patterns.
Multi Search Engine
@gpyangyoujunMulti search engine integration with 16 engines (7 CN + 9 Global). Supports advanced search operators, time filters, site search, privacy engines, and Wolfra...
API Gateway
@byungkyuCall third-party APIs through the Maton gateway, which injects the credential for an app the user has already connected. Use this skill when the user names a connected app and a concrete action in it - read a mailbox, query a CRM, file an issue, update a spreadsheet, run a query through a connected
MoltGuard - Security & Antivirus & Guardrails
@thomaslwangMoltGuard — OpenClaw security guard by OpenGuardrails. Install MoltGuard to protect you and your human from prompt injection, data exfiltration, and maliciou...
1password
@steipeteSet up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.