payloads-api-key-leaks
БесплатноБез исполняемых скриптовНе проверенAPI keys and tokens are forms of authentication commonly used to manage permissions and access to both public and private services. Leaking these sensitive…
от smartworldarafath★ 68 звёзд на GitHubОб этом скилле
API Key Leak Detection Payloads
Source: PayloadsAllTheThings/API Key Leaks Category:
payloads-web| Skill ID:payloads-api-key-leaks
Overview
API key leak discovery patterns, dorks, and exploitation techniques for exposed credentials.
This skill integrates the full PayloadsAllTheThings (PATT) payload library for the API Key Leak Detection Payloads domain into the REA_Skill framework. Use it during authorized penetration testing, bug bounty research, security audits, and CTF challenges.
Workflow
1. Recon & Identification
- Identify the target technology stack and injection points
- Enumerate endpoints, parameters, and input vectors
- Determine applicable payload categories from the reference below
2. Payload Selection
- Browse the PATT payload library for the attack class
- Select encoding-appropriate payloads for the target environment
- Consider WAF bypass variants and obfuscation techniques
3. Exploitation (Authorized Only)
- Test payloads in order: passive → active → escalation
- Document every payload tested and its response
- Capture PoC evidence (screenshots, HTTP logs, curl output)
4. Verification & Reporting
- Confirm the vulnerability with a clean minimal PoC
- Map findings to CVE/CWE where applicable
- Report with remediation recommendations and code fixes
Full PATT Reference
API Key and Token Leaks
API keys and tokens are forms of authentication commonly used to manage permissions and access to both public and private services. Leaking these sensitive pieces of data can lead to unauthorized access, compromised security, and potential data breaches.
Summary
Tools
aquasecurity/trivy - General purpose vulnerability and misconfiguration scanner which also searches for API keys/secrets.
blacklanternsecurity/badsecrets - A library for detecting known or weak secrets on across many platforms.
irsdl/crapsecrets - A library for detecting known secrets across many web frameworks.
d0ge/sign-saboteur - SignSaboteur is a Burp Suite extension for editing, signing, verifying various signed web tokens.
mazen160/secrets-patterns-db - Secrets Patterns DB: The largest open-source Database for detecting secrets, API keys, passwords, tokens, and more.
momenbasel/KeyFinder - is a tool that let you find keys while surfing the web.
streaak/keyhacks - is a repository which shows quick ways in which API keys leaked by a bug bounty program can be checked to see if they're valid.
trufflesecurity/truffleHog - Find credentials all over the place.
projectdiscovery/nuclei-templates - Use these templates to test an API token against many API service endpoints.
nuclei -t token-spray/ -var token=token_list.txt
Methodology
- API Keys: Unique identifiers used to authenticate requests associated with your project or application.
- Tokens: Security tokens (like OAuth tokens) that grant access to protected resources.
Common Causes of Leaks
Hardcoding in Source Code: Developers may unintentionally leave API keys or tokens directly in the source code.
# Example of hardcoded API key api_key = "1234567890abcdef"Public Repositories: Accidentally committing sensitive keys and tokens to publicly accessible version control systems like GitHub.
## Scan a Github Organization docker run --rm -it -v "$PWD:/pwd" trufflesecurity/trufflehog:latest github --org=trufflesecurity ## Scan a GitHub Repository, its Issues and Pull Requests docker run --rm -it -v "$PWD:/pwd" trufflesecurity/trufflehog:latest github --repo https://github.com/trufflesecurity/test_keys --issue-comments --pr-commentsHardcoding in Docker Images: API keys and credentials might be hardcoded in Docker images hosted on DockerHub or private registries.
# Scan a Docker image for verified secrets docker run --rm -it -v "$PWD:/pwd" trufflesecurity/trufflehog:latest docker --image trufflesecurity/secretsLogs and Debug Information: Keys and tokens might be inadvertently logged or printed during debugging processes.
Configuration Files: Including keys and tokens in publicly acce
Установить payloads-api-key-leaks в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл payloads-api-key-leaks?
API keys and tokens are forms of authentication commonly used to manage permissions and access to both public and private services. Leaking these sensitive pieces of data can lead to unauthorized access, compromised security, and potential data breaches. - - General purpose vulnerability and misconfiguration scanner which also searches for API keys/secrets. - A library for detecting known or weak...
Как установить скилл payloads-api-key-leaks?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл payloads-api-key-leaks запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic