Skip to main content

API scanning

The API scan (API_SCAN, Premium plan) reads your API's definition and sends crafted requests to every operation it describes: injections, broken input validation, information leaks, server errors.

What SecUp needs​

In Targets → (target) → Scan settings → API, give at least one definition:

SettingFormat
OpenAPI / Swagger URLhttps://api.example.dz/openapi.json (OpenAPI 2 or 3, JSON or YAML)
GraphQL endpointhttps://api.example.dz/graphql (introspection must be enabled)
GraphQL schema URLA schema file, when introspection is disabled
SOAP WSDL URLhttps://api.example.dz/service?wsdl
Host overridehost[:port], when the definition names another server (for example a staging host)

Combine it with authenticated scanning so the calls are made as a logged-in client; otherwise only public operations are tested.

Tuning​

The same scan settings apply to web and API scans:

  • Threads per host: 1 to 20 (default 4). Lower it for fragile services.
  • Delay between requests: 0 to 10,000 ms. Raise it if rate limits or a firewall interfere.
  • Exclusions: up to 20 regular expressions for URLs to leave alone.

Reading the results​

Each finding names the operation (method and path), the parameter and the request that triggered it. An API scan is active: it sends real requests that can create or change data, so point it at a test environment when you can.