بنقرة واحدة
api-portal-discovery
Discovers public API portals, developer docs, and OpenAPI/Swagger endpoints
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Discovers public API portals, developer docs, and OpenAPI/Swagger endpoints
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Systematic IDOR / BOLA hunting methodology. Use when testing any endpoint that accepts an ID, UUID, slug, filename, or reference to a user-owned object.
SQL injection hunting methodology across error-based, union, blind boolean, and time-based variants. Use when testing any input that might reach a database.
SSRF hunting methodology with OOB detection via interactsh, cloud metadata targets, and blind SSRF techniques. Use on any feature that accepts a URL, hostname, or external reference.
XSS hunting methodology — reflected, stored, and DOM — with context-aware payloads. Use when testing any input that could reach a browser.
OWASP Top 10 (2021) and API Top 10 (2023) quick reference with attack patterns, test ideas, and CWE mappings. Load when hunting, code-reviewing for security, or writing bug bounty reports.
Bug bounty report generation — structure, triager-friendly writing, CVSS scoring, and chain reporting. Use when finalizing a finding for submission.
| name | api-portal-discovery |
| description | Discovers public API portals, developer docs, and OpenAPI/Swagger endpoints |
| tools | Bash, WebFetch |
| model | inherit |
| hooks | {"PreToolUse":[{"matcher":"WebFetch","hooks":[{"type":"command","command":"../../../hooks/skills/pre_network_skill_hook.sh"},{"type":"command","command":"../../../hooks/skills/pre_rate_limit_hook.sh"}]}],"PostToolUse":[{"matcher":"WebFetch","hooks":[{"type":"command","command":"../../../hooks/skills/post_skill_logging_hook.sh"}]}]} |
Discover public API portals, developer documentation, and OpenAPI/Swagger specification endpoints for a given domain.
Test common API-related subdomains.
Subdomain Wordlist:
api, developer, developers, dev, docs, documentation,
api-docs, apidocs, api-portal, portal, integrate,
sandbox, public-api, open, openapi, swagger,
rest, graphql, gql, v1, v2, v3
Process:
Example:
Domain: example.com
Test: api.example.com, developers.example.com, docs.example.com, ...
Check for OpenAPI/Swagger specification files.
Common Paths:
/openapi.json
/openapi.yaml
/swagger.json
/swagger.yaml
/api-docs
/api-docs.json
/v1/openapi.json
/v2/openapi.json
/v3/openapi.json
/docs/openapi.json
/api/openapi.json
/.well-known/openapi.json
/specification/openapi.json
Process:
OpenAPI Validation:
{
"openapi": "3.0.0", // or "swagger": "2.0"
"info": {
"title": "string",
"version": "string"
},
"paths": {...}
}
Test for GraphQL endpoints.
Common GraphQL Paths:
/graphql
/gql
/api/graphql
/v1/graphql
/query
Detection Method:
Introspection Query:
{
__schema {
types {
name
}
}
}
Extract API paths from robots.txt.
Process:
API Path Patterns in robots.txt:
Disallow: /api/
Disallow: /v1/
Disallow: /internal/
Allow: /api/public/
Sitemap: https://example.com/api-sitemap.xml
Analyze discovered developer portals for tech signals.
Signals to Extract:
{
"skill": "api_portal_discovery",
"domain": "string",
"results": {
"api_subdomains": [
{
"subdomain": "api.example.com",
"status_code": 200,
"redirect_to": null,
"has_openapi": true,
"has_graphql": false
}
],
"openapi_specs": [
{
"url": "https://api.example.com/openapi.json",
"version": "3.0.0",
"title": "Example API",
"api_version": "1.0.0",
"endpoints_count": 45,
"auth_methods": ["oauth2", "apiKey"]
}
],
"graphql_endpoints": [
{
"url": "https://api.example.com/graphql",
"introspection_enabled": true,
"types_count": 120
}
],
"developer_portals": [
{
"url": "https://developers.example.com",
"title": "Example Developer Portal",
"sdks_mentioned": ["JavaScript", "Python", "Ruby"],
"auth_methods": ["OAuth 2.0", "API Key"]
}
],
"robots_txt_findings": {
"api_paths_disallowed": ["/api/internal/"],
"api_paths_allowed": ["/api/public/"],
"sitemaps": ["https://example.com/sitemap.xml"]
}
},
"evidence": [
{
"type": "api_endpoint",
"url": "string",
"response_code": "number",
"timestamp": "ISO-8601"
},
{
"type": "openapi_spec",
"url": "string",
"version": "string"
}
]
}
| Signal | Technology Indication |
|---|---|
| /swagger-ui/ path | Swagger UI (Java common) |
| /redoc path | ReDoc documentation |
| GraphQL introspection | GraphQL server |
| x-api-key header | Custom auth system |
| OAuth 2.0 in spec | OAuth provider integration |
| /v1/, /v2/ versioning | REST API maturity |