Skip to content

The Router Prefix Blindspot (False Positives) for full_api_network_map #163

Closed

Description

@squid-protocol

Your regex captures the exact string inside the HTTP method decorator, but it completely misses class-level or router-level prefixes.

For example, in a standard Spring Boot application:

Java
@RequestMapping("/api/v1/users")
public class UserController {
@GetMapping("/profile")
public String getProfile() { ... }
}
Your regex (@GetMapping...) will capture the endpoint as GET /profile. However, the Swagger specification will list this endpoint as GET /api/v1/users/profile. Because you are doing a strict set difference (shadow_apis = physical_endpoints - approved_apis), this single endpoint will be flagged simultaneously as a Shadow API (GET /profile) and a Ghost API (GET /api/v1/users/profile).

Activity

  1. added
    component: shadow-api
    bug
    threat: false-positive
    priority: high
    on Jul 11, 2026
  2. added this to the v2.4.0 milestone on Jul 11, 2026
  3. added a commit that references this issue on Jul 20, 2026
    7dcfa0c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcomponent: shadow-apipriority: highthreat: false-positive

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions