secret-scanning
/secret-scanning
Wykrywa zaszyte sekrety w kodzie, historii gita, logach CI i obrazach kontenerów narzędziami gitleaks i TruffleHog.
- Autor
- kaandgnsh ↗
- Repozytorium
- Claude-Blue ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 01.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 5
Brak sygnałów. Repozytorium zmienione 01.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Wykrywa zaszyte sekrety w kodzie, historii gita, logach CI i obrazach kontenerów narzędziami gitleaks i TruffleHog.
Oryginalny opis (EN)
Detect hard-coded secrets in code, Git history, CI logs, container images and file shares with gitleaks, TruffleHog, GitHub secret scanning and push protection — tuning, verification of live secrets, baselines and pre-commit/CI integration. Use when setting up secret detection, scanning a repository or organization, or triaging secret-scanning alerts.
Jak działa
- Tools
- Triage
- Coverage beyond Git
- Metrics
- Related skills
- References
Podgląd SKILL.md
---
name: secret-scanning
description: Detect hard-coded secrets in code, Git history, CI logs, container images and file shares with gitleaks, TruffleHog, GitHub secret scanning and push protection — tuning, verification of live secrets, baselines and pre-commit/CI integration. Use when setting up secret detection, scanning a repository or organization, or triaging secret-scanning alerts.
license: MIT
metadata:
category: secrets-management
version: "2.0.0"
verification: documented
---
# Secret Scanning
## Tools
```sh
gitleaks git -v --report-format sarif --report-path gitleaks.sarif . # full history (gitleaks v8.19+ subcommands; older: gitleaks detect)
gitleaks dir ./config # files without git
trufflehog git file://. --results=verified,unknown # verifies credentials against providers
trufflehog github --org=my-org --results=verified # org-wide (needs token)
trufflehog docker --image ghcr.io/org/app:1.4.2
```
Pre-commit hook (`.pre-commit-config.yaml`):
```yaml
repos:
- repo: https://github.com/gitleaks/gitleaks
rev: v8.24.0
hooks:
- id: gitleaks
```
GitHub: enable secret scanning + **push protection** org-wide; add custom patterns for internal token formats; validity checks for supported partners.
## Triage
1. **Live?** Verified/valid secrets are P1 → `secret-leak-response`.
2. **Real or test?** Example keys (`AKIAIOSFODNN7EXAMPLE`), fixtures, placeholders → allowlist precisely (`.gitleaks.toml` `[allowlist]` with paths/regexes, or `# gitleaks:allow` inline).
3. **Where else?** If it's in history, it's in every clone and fork.
4. **Owner** from `git log -S'<fragment>' --all` / blame.
## Coverage beyond Git
CI logs and artifacts, container image layers, IaC state files (`terraform.tfstate` often holds plaintext secrets), wikis/Confluence, Slack/Teams exports, S3 buckets, endpoint config files (`.env`, `.npmrc`, `.aws/credentials`).
## Metrics
New secrets per month, mean time to revoke, push-protection bypasses (review each), repos without scanning.
## Related skills
`secret-leak-response`, `ci-secret-review`, `source-control-hardening`, `release-gate`
## References
- gitleaks: https://github.com/gitleaks/gitleaks
- TruffleHog: https://github.com/trufflesecurity/trufflehog
- GitHub secret scanning: https://docs.github.com/en/code-security/secret-scanning/introduction/about-secret-scanning
- GitHub push protection: https://docs.github.com/en/code-security/secret-scanning/introduction/about-push-protection
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · kaandgnsh/Claude-Blue | 100 | MIT |
| github/awesome-copilot | 100 | MIT |
| PracticalSwan/agent-skills | 100 | MIT |
| Fazerdino1/gravity-bridge | 100 | MIT |
| Amey-Thakur/AI-SKILLS | 90 | MIT |
Migawka bazy z 13.11.2026 · wersja paczki 254af0af5a1f (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 2 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100gitleaks-scanning
Wdraża skanowanie sekretów w commitach i CI przez gitleaks i TruffleHog, z regułami, wyjątkami i bazą wyjściową dla istniejących wycieków. - 100git-security-checks
Waliduje bezpieczeństwo przed commitem i wykrywa sekrety przez gitleaks, w tym konfigurację pliku .gitleaks.toml i hooka pre-commit. - 100secret-detection-git-leaks-trufflehog
Skanuje repozytoria i historię gita w poszukiwaniu odsłoniętych kluczy API i haseł narzędziem Gitleaks. - 90security-secrets-management
Zarządza sekretami: skanowanie przed commitem, centralne przechowywanie w Vault lub menedżerach chmury, polityki rotacji i wzorce zapobiegania wyciekom. - 100secrets-management
Znajduje zaszyte sekrety w kodzie, planuje rotację po wycieku i przenosi sekrety do Vault, AWS, GCP lub Azure. - 100private-secret-scanning
Uruchamia lokalne skany Gitleaks dla zmian staged, zakresów push i pełnej historii w prywatnych repozytoriach z zaciemnionymi raportami, aby blokować zacommitowane sekrety.