credential-scanner

Scans project workspaces for exposed credentials, API keys and secrets using regex checks and skip rules.

Updated Mar 15, 2026
One-click install
npx skills add https://github.com/wongdean/knowledge-base --skill credential-scanner-wongdean
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: credential-scanner
Source: https://github.com/wongdean/knowledge-base/tree/main/backups/openclaw-config/20260315_232439/workspace-skills/openclaw-skills-security/skills/credential-scanner
Command: npx skills add https://github.com/wongdean/knowledge-base --skill credential-scanner-wongdean

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents accidental exposure and exfiltration of sensitive credentials, API keys, and secrets within your project workspace before other skills with file-read access are executed.

Core Features & Use Cases

  • Proactive Secret Scanning: Scans project files and optionally home directory files for common secret patterns.
  • Pattern Detection: Identifies various types of secrets including API keys, private keys, database URLs, and generic password patterns.
  • Configurable Scope: Allows scanning of project-level files and can be extended to home directory files with explicit consent.
  • Use Case: Before running a new, untrusted skill that requires file read access, use this credential scanner to ensure no sensitive information like API keys or passwords are inadvertently exposed or leaked.

Quick Start

Scan the current workspace for exposed secrets before running any other skills.

Frequently Asked Questions about credential-scanner

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scan my project workspace for exposed API keys and secrets?

To scan for exposed API keys and secrets, run this credential scanner in your project directory. It uses path-aware regex checks to identify sensitive patterns in files like .env and docker-compose.yml, providing a sanitized report with masked output and remediation suggestions.

Why should I scan for credentials before running an untrusted skill with file-read access?

Scanning for credentials prevents accidental exfiltration of sensitive information by other skills. It identifies and masks exposed API keys, private keys, and database URLs in your workspace, ensuring untrusted skills cannot inadvertently access or leak your secrets.

Can I scan my home directory files for secrets instead of just the project workspace?

Yes, you can scan home directory files for exposed secrets. The scanner extends its scope beyond the project workspace to target common secret patterns in home directory files, but requires explicit consent before performing this broader scan.

What types of secrets and credentials can a workspace scanner detect?

A workspace scanner detects common secret patterns including API keys, private keys, database URLs, and generic password patterns. It targets sensitive information in configuration files like .env, docker-compose.yml, and private key files to prevent accidental exposure.

Does the credential scanner modify my files or just report the exposed secrets?

The credential scanner only reports exposed secrets and does not modify your files. It provides a sanitized report with masked output and remediation suggestions, allowing you to manually secure any detected credentials before running other skills.

How does path-aware regex scanning work for detecting secrets in a project?

Path-aware regex scanning works by applying skip rules and pattern checks to specific file paths in your project. It targets known secret-hiding files like .env and docker-compose.yml, efficiently detecting exposed credentials while skipping irrelevant paths.