Przejdź do treści
Biblioteka skilli
Bezpieczeństwo · Przegląd i audyt

secret-scan

/secret-scan

Skanuje repozytoria GitHub i lokalny kod w poszukiwaniu odsłoniętych sekretów i danych wrażliwych, z triażem wyników.

Repozytorium
skills ↗
Licencja
Apache-2.0
Ostatnia zmiana repozytorium
14.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
4
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
2
Przestarzałość

Brak sygnałów. Repozytorium zmienione 14.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

Co robi i kiedy

Skanuje repozytoria GitHub i lokalny kod w poszukiwaniu odsłoniętych sekretów i danych wrażliwych, z triażem wyników.

Oryginalny opis (EN)

Scan repositories and codebases for exposed secrets, credentials, and sensitive data. Use for GitHub repo/org/user scans, local code scans, and secret-discovery triage with optional command execution.

Jak działa

  1. Input Parsing
  2. Execution Policy
  3. Tool Preference
  4. Workflow
  5. Command Patterns
  6. Triage Rules
  7. Output Format
  8. Quality Rules
Sekcje z nagłówków SKILL.md, w oryginale · 153 linii, 450 słów
Podgląd SKILL.md
---
name: secret-scan
description: Scan repositories and codebases for exposed secrets, credentials, and sensitive data. Use for GitHub repo/org/user scans, local code scans, and secret-discovery triage with optional command execution.
metadata:
  author: "GhostWorks"
---

# Secret Scan

Identify exposed secrets and sensitive material in approved targets.

## Input Parsing

Accept input as: `ACTION TARGET [MODE]`

Actions:
- `repo <owner/repo>`
- `org <org-name>`
- `user <username>`
- `dork <search phrase>`
- `local <path>`

Modes:
- `plan`: recommendations + command set only
- `execute` (default, preferred): run commands and report evidence

If mode is omitted, default to `execute`.

Examples:
- `$secret-scan repo owner/repo`
- `$secret-scan org acme-corp execute`
- `$secret-scan local ./src execute`
- `$secret-scan dork "Acme Corp"`

## Execution Policy

- Always generate a plan first.
- In `execute` mode, run routine in-scope command batches autonomously.
- Request approval only for OPSEC-dangerous command batches.
- Only scan authorized targets provided by the user.
- Capture exact commands and key output evidence in the report.

## Tool Preference

1. `trufflehog` (preferred)
2. `gitleaks`
3. manual grep-based fallback

Check availability:

```bash
which trufflehog
which gitleaks
which gh
```

## Workflow

1. Create output directory:
   - `mkdir -p recon/secret-scan/`
2. Build a target-specific command plan.
3. In `execute` mode:
   - run routine in-scope commands autonomously,
   - request approval only for OPSEC-dangerous steps,
   - collect outputs and triage.
4. Produce findings with severity and confidence labels.
5. Save report to:
   - `recon/secret-scan/<target-slug>-report.md`

## Command Patterns

### repo

```bash
# Preferred
trufflehog github --repo=https://github.com/<owner/repo> --only-verified --json

# Alternative
git clone --mirror https://github.com/<owner/repo> /tmp/secret-scan-target
gitleaks detect --source /tmp/secret-scan-target --report-format json --report-path recon/secret-scan/gitleaks.json
```

### org

```bash
gh repo list <org> --public --limit 200 --json name,url,pushedAt
trufflehog github --org=<org> --only-verified --json
```

### user

```bash
gh repo list <user> --public --limit 100 --json name,url,pushedAt
```

### dork

```bash
gh search code "<query>" --limit 20 --json repository,path,textMatches
```

### local

```bash
trufflehog filesystem <path> --json
# or
gitleaks detect --source <path> --report-format json --report-path recon/secret-scan/gitleaks-local.json
```

### manual fallback patterns

```bash
grep -RInE 'AKIA[0-9A-Z]{16}|BEGIN [A-Z ]*PRIVATE KEY|api[_-]?key|token|password\\s*[:=]' <path>
grep -RInE 'mongodb(\\+srv)?://|postgres(ql)?://|mysql://|redis://|amqp://' <path>
```

## Triage Rules

- Confirm whether value appears live/real vs placeholder/test string.
- Prioritize:
  1. active credentials and tokens,
  2. private keys/certs,
  3. database connection strings,
  4. internal endpoints and sensitive config.
- Avoid publishing raw secret values in final report unless explicitly required; use redaction where possible.

## Output Format

```markdown
# Secret Scan Report ? <target>
## Action: <repo|org|user|dork|local>
## Mode: <plan|execute>

## Executive Summary
- High-level findings and risk.

## Commands
- exact command
- execution status

## Findings
- secret type
- location (file/path/repo + line)
- confidence
- impact
- recommended response (rotate/revoke/remove/history rewrite)

## Next Steps
1. immediate containment
2. cleanup and hardening
3. verification rerun
```

## Quality Rules

- Keep findings evidence-based and reproducible.
- Separate confirmed secrets from unverified candidates.
- Include exact commands and output snippets for all executed steps.
Pliki w paczce (4)
  • SKILL.md 4 KB
  • agents/openai.yaml 1 KB
  • assets/icon.png 1 KB
  • assets/icon.svg 1 KB

Wersje

RepozytoriumWynikLicencja
Ta strona · specterops/skills100Apache-2.0
Vulnetix/pix-ai-coding-assistant100Apache-2.0
NexaiGuy/nex-ai-skills100MIT

Migawka bazy z 13.11.2026 · wersja paczki 45c793fd0cc7 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 5 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100repo-security-scan
    Skanuje repozytorium pod kątem wrażliwych informacji i podatności bezpieczeństwa, w tym audyt bezpieczeństwa i przeszukanie historii pod kątem sekretów.
  • 100secret-detection-git-leaks-trufflehog
    Skanuje repozytoria i historię gita w poszukiwaniu odsłoniętych kluczy API i haseł narzędziem Gitleaks.
  • 90esp32-secret-scan-firmware-repo
    Skanuje repozytorium firmware ESP32 w poszukiwaniu zapisanych sekretów, takich jak hasła i klucze, zanim kod trafi do wspólnego repozytorium.
  • 100safe-repo
    Skanuje repozytorium w poszukiwaniu zatwierdzonych sekretów i danych wrażliwych, także w zakresie zmian gałęzi, aby sprawdzić, że nie trafiły do niego poświadczenia ani dane firmy.
  • 100trove-secret-scan
    Skanuje pliki pod kątem przypadkowo dodanych sekretów, kluczy API i danych logowania oraz podpowiada naprawę.
  • 100secret-guard
    Skanuje repozytorium i ustawienia Claude Code w poszukiwaniu zapisanych sekretów i sprawdza, czy plik ustawień lokalnych jest wyłączony z gita.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.