secrets-scan
/secrets-scan
Wykrywa zaszyte poświadczenia, klucze API i tokeny w kodzie i plikach konfiguracji przed scaleniem lub przy audycie repozytorium.
- Autor
- owasp ↗
- Repozytorium
- secure-agent-playbook ↗
- Licencja
- CC-BY-4.0
- Ostatnia zmiana repozytorium
- 15.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 15.10.2026, bez odwołań do wycofanych modeli i API.
CC-BY-4.0, otwarta.
Co robi i kiedy
Wykrywa zaszyte poświadczenia, klucze API i tokeny w kodzie i plikach konfiguracji przed scaleniem lub przy audycie repozytorium.
Oryginalny opis (EN)
Detect hardcoded credentials, API keys, tokens, and secrets in source code and configuration files. Use when reviewing code for leaked secrets before commit/merge, auditing a repository for credential exposure, or setting up secret detection.
Jak działa
- Steps
- Output
- OWASP References
Podgląd SKILL.md
--- name: secrets-scan description: Detect hardcoded credentials, API keys, tokens, and secrets in source code and configuration files. Use when reviewing code for leaked secrets before commit/merge, auditing a repository for credential exposure, or setting up secret detection. license: CC-BY-4.0 --- # Secrets Scan Detect hardcoded secrets by following the full procedure in `plays/secrets-scan.md`. ## Steps 1. **Run Automated Scanner** — Use available tools in preference order: - `trufflehog filesystem --directory=<path> --json` (recommended) - `trufflehog git file://<repo> --json` (includes git history) - `gitleaks detect --source=<path> --report-format=json` - `detect-secrets scan <path> --all-files` - If no scanner available, proceed with manual pattern analysis. 2. **Manual Pattern Analysis** — Search for high-confidence patterns: - AWS keys (`AKIA...`), OpenAI (`sk-...`), Anthropic (`sk-ant-...`), GitHub (`ghp_...`), Slack (`xoxb-...`), Stripe (`sk_live_...`), SendGrid (`SG.`) - Connection strings with embedded passwords (`://user:pass@host`) - Private keys (PEM headers), JWT secrets, database credentials - High-risk files: `.env`, `docker-compose*.yml`, `*.tfvars`, `terraform.tfstate`, `kubeconfig`, `.npmrc`, `.pypirc` 3. **Contextual Analysis** — For each detection: Is it real (not a placeholder/test fixture)? Is it active? What's the blast radius (service, permissions, prod vs dev, exposure duration)? 4. **Check Preventive Controls** — Verify: `.gitignore` covers sensitive files, pre-commit hooks for secret scanning, CI pipeline scanning, secrets management documentation. **Important**: Never include actual secret values in findings. Show redacted versions only (e.g., `AKIA****EXAMPLE`). Active production secrets require immediate rotation. ## Output Scan summary, findings using `templates/finding.md`, preventive controls checklist, and immediate rotation actions if needed. ## OWASP References - A07:2021: Identification and Authentication Failures - CWE-798: Use of Hard-coded Credentials - CWE-312: Cleartext Storage of Sensitive Information
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · owasp/secure-agent-playbook | 100 | CC-BY-4.0 |
| karix-ai/security-skills | 100 | MIT |
Migawka bazy z 13.11.2026 · wersja paczki d9fc80004c4a (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100secrets-detector
Wykrywa zaszyte sekrety, klucze API i hasła w kodzie źródłowym, na przykład przed commitem. - 100scanning-for-secrets
Wykrywa ujawnione sekrety, klucze API i poświadczenia w kodzie przy audycie wycieków. - 100scanning-for-secrets
Wykrywa ujawnione sekrety, klucze API i poświadczenia w kodzie przy audycie wycieków. - 100secrets
Wyszukuje zaszyte hasła, klucze API, pliki .env w commitach i wyciek tokenów, także w historii gita. - 90memstack-security-secrets-scanner
Wykrywa w kodzie źródłowym zaszyte klucze, dane logowania i wyciekłe sekrety, bez analizy zależności i polityk RLS. - 100sh-kb-secrets
Pomaga znaleźć klucze API, hasła i tokeny zapisane w kodzie, konfiguracji lub logach, wg CWE-798 i OWASP A05.