SourceMap Autopilot
A Burp Suite extension that automatically detects, downloads, and analyzes JavaScript source maps to extract hidden API endpoints, secrets, and security-relevant intelligence from web applications.
Features
- Automatic source map detection — Intercepts HTTP traffic and identifies
.map files from sourceMappingURL directives, X-SourceMap headers, and inline data URIs.
- Multi-threaded downloading — Configurable thread pool with per-request timeout to prevent thread starvation from slow servers.
- Endpoint extraction — Detects API routes from
fetch(), axios, XMLHttpRequest, Angular $http/HttpClient, AWS Amplify, template literals, and generic /api/ and /v{n}/ path patterns with confidence scoring (HIGH/MEDIUM/LOW).
- Secret detection — Finds hardcoded API keys, tokens, credentials, AWS keys, JWTs, and other sensitive data in source files.
- Code intelligence — Extracts internal URLs, staging/dev environments, GraphQL endpoints, Webpack chunk mappings, and other recon-relevant information.
- Endpoint probing — Sends real HTTP requests through Burp to verify which discovered endpoints are alive, with status code and response size tracking.
- IDOR testing — Automated detection of Insecure Direct Object Reference vulnerabilities by swapping user IDs in path segments and query parameters, then comparing responses.
- Burp integration — Adds discovered endpoints to Burp's site map, creates audit issues for alive endpoints and IDOR findings, and supports Send to Repeater/Intruder.
- Source tree viewer — Browse the original source file tree reconstructed from the source map.
- Report generation — Export findings for documentation.
Installation
Requirements
- Burp Suite Professional or Community (2024+)
- Java 17+
Build from source
git clone https://github.com/devploit/SourceMap-Autopilot.git
cd SourceMap-Autopilot
./gradlew shadowJar
The extension JAR will be at build/libs/sourcemap-autopilot-1.0.0.jar.
Load in Burp Suite
- Open Burp Suite
- Go to Extensions > Installed > Add
- Select Extension type: Java
- Select the JAR file:
build/libs/sourcemap-autopilot-1.0.0.jar
- Click Next
Usage
Once loaded, SourceMap Autopilot runs automatically:
- Browse normally — The extension monitors all HTTP traffic passing through Burp and detects source map references.
- Check the SourceMap Autopilot tab — View detected source maps, extracted endpoints, secrets, and intelligence.
- Probe endpoints — Click "Probe All" to verify which endpoints respond with 2xx status codes.
- Test for IDOR — Select endpoints with ID parameters and run IDOR tests with a custom test user ID.
- Send to Repeater/Intruder — Right-click any endpoint for further manual testing.
Scanning existing traffic
Click Scan Proxy History to analyze previously captured traffic for source maps that were missed before the extension was loaded.
Settings
| Setting |
Default |
Description |
| Extension enabled |
true |
Master toggle for the extension |
| Auto-download .map files |
true |
Automatically download detected source maps |
| Auto-add endpoints to sitemap |
true |
Add discovered endpoints to Burp's site map |
| Only process in-scope URLs |
true |
Restrict processing to Burp's target scope |
| Max download threads |
3 |
Concurrent source map downloads (1-10) |
| Download timeout (seconds) |
30 |
Per-request timeout for downloads (5-120) |
| URL exclusions |
empty |
Regex patterns to exclude URLs (one per line) |
Architecture
src/main/java/com/sourcemapautopilot/
├── SourceMapAutopilot.java # Extension entry point, wiring
├── downloader/
│ └── SourceMapDownloader.java # Async download with timeout + dedup
├── parser/
│ └── SourceMapParser.java # Source map JSON parsing
├── extractor/
│ ├── EndpointExtractor.java # Orchestrates all extractors
│ ├── ApiRouteExtractor.java # fetch/axios/XHR/Angular/Amplify patterns
│ ├── RouterExtractor.java # React Router, Express, Next.js routes
│ ├── GraphQLExtractor.java # GraphQL queries, mutations, schemas
│ ├── SecretExtractor.java # API keys, tokens, credentials
│ ├── CodeIntelExtractor.java # Internal URLs, staging envs, config
│ ├── WebpackChunkExtractor.java # Webpack chunk mappings
│ └── BaseUrlExtractor.java # Base URL detection for resolving paths
├── handler/
│ └── ProxyResponseHandler.java # HTTP traffic interception
├── probe/
│ └── EndpointProber.java # Live endpoint probing + IDOR testing
├── model/
│ ├── SourceMapData.java # Source map data container
│ ├── DiscoveredEndpoint.java # Endpoint with confidence + probe results
│ ├── DiscoveredSecret.java # Secret finding
│ └── DiscoveredIntel.java # Code intelligence finding
├── sitemap/
│ └── SiteMapIntegrator.java # Burp site map + issue integration
├── report/
│ └── ReportGenerator.java # Export findings
├── ui/
│ ├── AutopilotTab.java # Main extension tab
│ ├── EndpointTablePanel.java # Endpoints table with probing
│ ├── SecretTablePanel.java # Secrets table
│ ├── IntelTablePanel.java # Code intel table
│ ├── SourceTreePanel.java # Source file tree viewer
│ ├── SourceMapTableModel.java # Source maps table model
│ ├── SettingsPanel.java # Configuration panel
│ └── ContextMenuProvider.java # Right-click context menu
└── util/
└── JwtDecoder.java # JWT token decoding
Extracted patterns
API endpoints (with confidence levels)
| Pattern |
Confidence |
Example |
fetch('/api/...') |
HIGH |
fetch('/api/users/me') |
axios.get('/...') |
HIGH |
axios.post('/api/auth/login') |
XMLHttpRequest.open() |
HIGH |
.open('GET', '/api/data') |
Angular $http / HttpClient |
HIGH |
this.http.get('/api/items') |
AWS Amplify get/post/put/del |
HIGH |
get({ path: '/api/feed' }) |
| WebSocket URLs |
HIGH |
new WebSocket('wss://...') |
| Template literals with HTTP context |
MEDIUM |
fetch(`/api/orders/${id}`) |
Absolute URLs with /api/ |
MEDIUM |
'https://api.example.com/api/v1/users' |
Generic /api/... paths |
LOW |
'/api/payments/checkout' |
Versioned /v{n}/... paths |
LOW |
'/v2/billing/invoices' |
False positive reduction
LOW confidence patterns are filtered against:
- Static file extensions —
.js, .css, .png, .jpg, .html, .json, .pdf, .zip, .webp, and 20+ more
- Static directory paths —
/static/, /assets/, /images/, /fonts/, /dist/, /build/, /_next/static/
- Comment lines — Lines starting with
//, /*, *, # are excluded
IDOR detection
The IDOR testing engine detects and tests:
- Path segment IDs —
/users/123/profile, /orders/abc-def/details
- Query parameter IDs —
?userId=123, ?account_id=abc
- Template placeholders —
/{param}/, /:id/, ${userId}
- Resource patterns — users, accounts, profiles, orders, invoices, documents, files, projects, teams, organizations
- Response comparison — 15% body size threshold to detect identical responses indicating unauthorized access
Disclaimer
This tool is intended for authorized security testing only. Always ensure you have explicit permission before testing any target. The authors are not responsible for any misuse or damage caused by this tool.
License
MIT