Skip to main content

Surface Code Discovery

New in APIsec Surface

See every way into your APIs from the code, then prove which ones an attacker can reach.

  1. Business logic risks, found in codeMissing auth checks and risky data flows that scanners miss
  2. Risks traced to endpointsWhich vulnerable dependencies an attacker can reach
  3. Exploited liveAn APIsec scan of the running API confirms or clears each one
  4. Fix what's confirmedEach confirmed exploit names the endpoint to fix

Surface Code Discovery finds the APIs in your source code, registers them as APIsec applications, and keeps them current as the code changes. You don't need an existing OpenAPI specification. It also traces vulnerable dependencies to the endpoints that reach them. APIsec reports each of these as a predicted exploit: a vulnerability the code suggests is reachable, which an APIsec scan of the running API then confirms or clears.

Discovery runs on your own CI runner with the apisec-surface CLI from PyPI. The CLI analyzes the code on the runner and sends the results to APIsec, where further analysis, including AI verification, runs.

What you get​

  • Your endpoints, registered and kept current, with no spec to write: APIsec publishes the OpenAPI specification.
  • Vulnerable dependencies traced to the endpoints that reach them, as predicted exploits.
  • Committed secrets and other code findings, verified by AI analysis in APIsec.

Ways to run​

ScopeGuide
One repository, in GitHub ActionsRun Surface Code Discovery in GitHub Actions
One repository, in Azure PipelinesRun Surface Code Discovery in Azure Pipelines
Every repository in a GitHub organizationSurface Discovery for GitHub
One repository, from your machineRun the Surface CLI

Each guide needs an APIsec Personal Access Token and your APIsec registration code.

Supported frameworks​

LanguageFrameworks
JavaSpring Boot, Micronaut, JAX-RS, Servlet. Kotlin source files are not analyzed.
PythonFastAPI, Flask, Django
JavaScript and TypeScriptExpress, Fastify, Koa, NestJS, Firebase Cloud Functions
C#ASP.NET Core, ASP.NET (.NET Framework), gRPC, WCF, Web Forms
RubyRails, Sinatra, Grape, Hanami, Padrino, Roda
GoGin

GraphQL APIs are detected in Java, Python, JavaScript, and Ruby.

note

Code Bolt is now Surface Code Discovery, and the Code Bolt GitHub Action is retired. To move a workflow off it, see Migrate from the Code Bolt GitHub Action.