Every modern web application is, at its core, a collection of APIs. Developers document the obvious ones, ship them through gateways, and apply authentication. The problem is the long tail — internal endpoints, debug routes, legacy versions, mobile-only paths and admin tools that nobody on the security team has ever seen.
Why hidden endpoints matter
They are almost always weaker. They were not built with the public threat model in mind. They may skip rate limiting, accept old authentication schemes, or expose far more data than the polished public route. From an attacker's perspective, these are the first thing to look for.
Where they leak
- JavaScript bundles. Webpack chunks, source maps and inline configuration constants regularly leak full API paths and even API keys.
- Mobile applications. Reverse-engineering APKs or intercepting traffic surfaces routes that the web UI does not call.
- Robots and sitemap files. Operators sometimes accidentally list admin or staging routes.
- API documentation. Swagger, GraphQL introspection and Postman collections left public.
- Old subdomains. Staging and dev environments often share APIs with production.
How we surface them
A typical reconnaissance pass on a target combines:
- Passive sources — certificate transparency, archived versions, search engine dorks.
- Active subdomain enumeration and DNS brute-forcing.
- Wordlist-driven directory and parameter discovery against discovered hosts.
- Manual review of every JavaScript file referenced by the application.
- Disabling GraphQL introspection checks and probing for legacy
/v1or/internalroutes.
What to fix on the defensive side
- Treat every endpoint as public — apply authentication and authorization uniformly.
- Disable GraphQL introspection in production.
- Strip source maps from production builds.
- Centralize API exposure behind a gateway so nothing accidentally ships unreviewed.
- Set up alerting on any 4xx anomaly on internal routes — attackers always poke before they break in.
Want a hands-on review of your stack?
Tell us about your application and we will scope a focused security engagement.