Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

credential-scanner

bởi nirwandogra

Coding Agents & IDEs
414Lượt tải do clawskills.sh công bố
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

Scans files, repos, and directories for leaked secrets — API keys, tokens, passwords, connection strings, private.

Mô tả

Kỹ năng này làm gì

Scans files, directories, and repos for accidentally leaked secrets and credentials. Detects 40+ patterns including AWS keys, database connection strings, private keys, and tokens from major cloud and SaaS providers. Outputs findings as a Markdown report or JSON with severity ratings and remediation steps.

Covers 40+ provider-specific patterns in a single no-dependency Python script, avoiding the need to install and configure heavier tools like truffleHog or gitleaks.

Khi nào nên dùng

  • Audit a repo before pushing to GitHub
  • Check config files for hardcoded database passwords
  • Find exposed API keys before open-sourcing a project
  • Run a pre-commit security check on changed files
  • Scan a cloned repo for credentials left by a previous developer

Quy trình ví dụ

ĐẦU VÀO

User asks: 'Scan this project for leaked secrets before I publish it'

AGENT
  1. 1

    Run secret_scanner.py on the project directory

  2. 2

    Parse results grouped by severity level

  3. 3

    Identify critical findings such as AWS keys or private keys

  4. 4

    List each finding with file path, line number, and pattern matched

  5. 5

    Provide remediation steps for each detected secret

ĐẦU RA

Markdown report listing 3 findings: one Critical (AWS Secret Key in .env), one High (GitHub PAT in config.yml), one Low (placeholder password= in README comment), each with rotation and removal guidance

Cài đặt

clawhub install nirwandogra/credential-scanner

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết