hunt-spa-api

Extract API endpoints, methods, and parameters from SPA JavaScript bundles and network traffic.

10|3|Updated Aug 10, 2026
One-click install
npx skills add https://github.com/baiqigo/baiqi-redteam-lab --skill hunt-spa-api-baiqigo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hunt-spa-api
Source: https://github.com/baiqigo/baiqi-redteam-lab/tree/main/.agents/skills/hunt-spa-api
Command: npx skills add https://github.com/baiqigo/baiqi-redteam-lab --skill hunt-spa-api-baiqigo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Modern single-page applications hide their real API surface inside JavaScript bundles, source maps, and dynamic XHR/fetch calls, making it hard for authorized security testers to build an accurate endpoint inventory without noisy or out-of-scope scanning. ## Core Features & Use Cases - Evidence-Gated Endpoint Discovery: Extracts endpoints, HTTP methods, parameters, and identity context from in-scope JS bundles, source maps, and Swagger/OpenAPI specs, then confirms each finding against live browser traffic. - Scope and Authorization Controls: Enforces an engagement gate requiring declared authorization, locked scope, and baseline host/identity/path state before any probing begins. - False-Positive Filtering: Treats string matches, dead code, stale source maps, and third-party hosts as invalid, and routes version-drift findings to shadow-API analysis. - Use Case: During an authorized web assessment, point the workflow at a target SPA to produce a validated endpoint/method/parameter/auth graph from its bundles and observed browser traffic, without crawling third parties or using discovered credentials. ## Quick Start Use hunt-spa-api to map the real API endpoints of the authorized target SPA from its JavaScript bundles and browser network traffic.

Frequently Asked Questions about hunt-spa-api

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find hidden API endpoints in a single-page application?

Extract endpoint paths, methods, and parameters from the application's JavaScript bundles and source maps, then confirm each candidate with a real browser request observed in network traffic. This skill automates that read-only extraction and validation loop within an authorized scope.

How to map an SPA attack surface during an authorized pentest?

Start by establishing a browser session and Burp traffic baseline, then separate first-party API calls from CDN, analytics, and third-party SDK hosts. The workflow builds an endpoint/method/parameter/auth graph from bundles and live traffic while keeping only minimal evidence.

Can source maps be used to discover API routes?

Yes, in-scope source maps often reveal original module structure and API call sites that minified bundles obscure. However, stale or historical source maps are treated as invalid evidence unless confirmed against current browser traffic.

What are the limitations of bundle-based API discovery?

String matches and dead code in bundles produce false positives, and the workflow will not use discovered keys or tokens, crawl third parties, or expand scope. WAF blocks, captchas, and timeouts are recorded as inconclusive rather than exploited.

Does this approach work without authorization for the target?

No, the engagement gate requires declared authorization, a locked scope, and an established baseline before any probing. It only uses owned accounts, test data, and approved request rates, and stops immediately on out-of-scope or irreversible actions.