client-spa-endpoints

Extract API endpoints, hostnames, and routes from JavaScript bundles via static analysis.

Updated Jul 30, 2026
One-click install
npx skills add https://github.com/salmanabdurrahman/pi-pentest-agent --skill client-spa-endpoints
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: client-spa-endpoints
Source: https://github.com/salmanabdurrahman/pi-pentest-agent/tree/main/skills/client-spa-endpoints
Command: npx skills add https://github.com/salmanabdurrahman/pi-pentest-agent --skill client-spa-endpoints

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill solves the challenge of identifying hidden API endpoints, internal hostnames, and application routes within complex client-side JavaScript bundles without triggering active security alerts or requiring intrusive crawling.

Core Features & Use Cases

  • Static Analysis: Extracts API paths, GraphQL queries, and WebSocket URLs directly from JS bundles and source maps.
  • Infrastructure Mapping: Identifies internal hostnames, cloud metadata endpoints, and private IP references often leaked in frontend configurations.
  • Use Case: During a security assessment of a React-based web application, use this skill to map out the entire API surface and identify potential admin routes or debug endpoints before performing any active testing.

Quick Start

Use the client-spa-endpoints skill to analyze the downloaded JavaScript bundles in the current directory and extract all discovered API paths and internal hostnames.

Frequently Asked Questions about client-spa-endpoints

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

FAQPage Schema
How do I extract API endpoints from JavaScript bundles during a pentest?

You extract API endpoints from JavaScript bundles by performing static analysis on downloaded JS files and source maps. This passive reconnaissance technique parses framework manifests to identify hidden application routes and infrastructure references without active probing.

What is passive reconnaissance of SPA routes and why use it for security assessments?

Passive reconnaissance of SPA routes maps an application's attack surface by statically parsing JavaScript bundles. It is used to identify internal hostnames, private IPs, and API paths without triggering active security alerts or requiring intrusive crawling.

Can I discover hidden admin routes and debug endpoints from React source maps?

Yes, you can discover hidden admin routes and debug endpoints from React source maps. By extracting route definitions and leaked frontend configurations directly from the JS artifacts, you map the entire API surface before performing any active testing.

How do I find internal hostnames and cloud metadata endpoints leaked in frontend code?

You find internal hostnames and cloud metadata endpoints by applying static analysis to client-side JavaScript bundles. This infrastructure mapping identifies private IP references and cloud configurations often leaked in frontend code during reconnaissance.

What are the limitations of static analysis for API discovery in single page applications?

A limitation of static analysis for API discovery in single page applications is that it only extracts endpoints present in the downloaded JS bundles and source maps. It requires these artifacts to be accessible and does not evaluate dynamic runtime behavior or active server responses.