Skip to content
Back to skills

Majiayu000 Claude Skill Registry Skills Development Secret Scanner

ASecurity

Scans git repositories for hardcoded secrets, credentials, and API keys using Gitleaks. Returns findings with severity, location, and remediation steps. Use when user asks to "scan for secrets", "detect credentials", "find API keys", "check for leaks", "シークレット検出", "認証情報スキャン".

  • 4 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 12, 2026
developmentgobashdockerawsgitapi

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 12, 2026

npx -y skills add aibot88/sec_skill_store --skill majiayu000-claude-skill-registry-skills-development-secret-scanner --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Majiayu000 Claude Skill Registry Skills Development Secret Scanner?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Majiayu000 Claude Skill Registry Skills Development Secret Scanner
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aibot88-majiayu000-claude-skill-registry-skills-developmen-fd99b6ca/badge)](https://www.skillsdirectory.com/skills/aibot88-majiayu000-claude-skill-registry-skills-developmen-fd99b6ca)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: secret-scanner
description: Scans git repositories for hardcoded secrets, credentials, and API keys using Gitleaks. Returns findings with severity, location, and remediation steps. Use when user asks to "scan for secrets", "detect credentials", "find API keys", "check for leaks", "シークレット検出", "認証情報スキャン".
---

# Secret Scanner

Wrapper for Gitleaks to detect hardcoded secrets in git repositories.

## Prerequisites

Gitleaks must be installed:
```bash
# macOS
brew install gitleaks

# Go
go install github.com/gitleaks/gitleaks/v8@latest

# Docker
docker pull zricethezav/gitleaks
```

## Usage

```bash
# Scan current directory
npx secret-scanner .

# Scan with JSON output
npx secret-scanner . --json

# Scan specific path
npx secret-scanner /path/to/repo

# Check if gitleaks is installed
npx secret-scanner --check
```

## Output Format

```json
{
  "tool": "gitleaks",
  "scanPath": ".",
  "findings": [
    {
      "id": "aws-access-key-id",
      "severity": "critical",
      "description": "AWS Access Key ID detected",
      "file": "config.js",
      "line": 15,
      "secret": "AKIA***REDACTED***",
      "commit": "abc1234",
      "author": "developer@example.com",
      "date": "2024-01-15T10:30:00Z"
    }
  ],
  "summary": {
    "total": 1,
    "critical": 1,
    "high": 0,
    "medium": 0,
    "low": 0
  }
}
```

## Exit Codes

- `0`: No secrets found
- `1`: Secrets detected
- `2`: Tool not installed or error

## Severity Mapping

| Gitleaks Rule | Severity |
|---------------|----------|
| aws-access-key-id | critical |
| private-key | critical |
| password | high |
| api-key | high |
| token | medium |
| generic-credential | low |

## CWE Coverage

- CWE-798: Use of Hard-coded Credentials
- CWE-259: Use of Hard-coded Password
- CWE-321: Use of Hard-coded Cryptographic Key
- CWE-312: Cleartext Storage of Sensitive Information

Files in this skill

  • SKILL.md1.9 KB
  • source.json1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.