performing-api-inventory-and-discovery

Featured

Performs API inventory and discovery to identify all API endpoints in an organization's environment including documented, undocumented, shadow, zombie, and deprecated APIs. The tester uses passive traffic analysis, active scanning, DNS enumeration, JavaScript analysis, and cloud resource inventory to build a comprehensive API catalog. Maps to OWASP API9:2023 Improper Inventory Management. Activates for requests involving API discovery, shadow API detection, API inventory audit, or attack surface mapping.

API & Backend 36,355 stars 4443 forks Updated 2 months ago Apache-2.0

Install

View on GitHub

Quality Score: 94/100

Stars 20%
100
Recency 20%
75
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Performing API Inventory and Discovery ## When to Use - Mapping the complete API attack surface of an organization before a security assessment - Identifying shadow APIs deployed by development teams without security review - Discovering deprecated or zombie API versions that remain accessible but unmaintained - Finding undocumented API endpoints exposed through mobile applications, SPAs, or microservices - Building an API inventory for compliance requirements (PCI-DSS, SOC2, GDPR) **Do not use** without written authorization. API discovery involves scanning network infrastructure and analyzing traffic. ## Prerequisites - Written authorization specifying the target domains and network ranges - Passive traffic capture capability (network tap, proxy, or cloud traffic mirroring) - Active scanning tools: Amass, subfinder, httpx, and nuclei - JavaScript analysis tools: LinkFinder, JS-Miner, or custom parsers - Access to cloud console (AWS, Azure, GCP) for API gateway inventory - Burp Suite Professional for passive API endpoint discovery ## Workflow ### Step 1: Passive API Discovery from Traffic Analysis ```python import re import json from collections import defaultdict # Parse HAR file from browser developer tools or proxy def analyze_har_for_apis(har_file_path): """Extract API endpoints from HTTP Archive (HAR) file.""" with open(har_file_path) as f: har = json.load(f) api_endpoints = defaultdict(lambda: { "methods": set(), "content_types":...

Details

Author
mukul975
Repository
mukul975/Anthropic-Cybersecurity-Skills
Created
8 months ago
Last Updated
2 months ago
Language
Python
License
Apache-2.0

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category