Security foundations Attack surface 2 min read

What is an attack surface?

Your service has one public page. Its route list also shows a webhook and an admin screen. Which of those does your team need to protect?

  1. Read the route list as incoming requests

    Start with what can interact with the service. The public page accepts browser requests, the webhook accepts events from a partner, and the admin screen accepts requests from staff. Each is an entry point with its own intended callers.

    The public page, webhook, and admin screen are different entry points into the same service. Public pageWebhookAdmin screenSame service

    In short The entry points include more than the page people see.

  2. Decide what each caller should reach

    For each route, record who should reach it and how the service checks that. Keep the public page public, verify webhook requests as coming from the partner, and restrict admin access to authorized staff. Remove any route the team no longer needs.

    In short Keep required entry points and verify their access rules.

Where this example stops

An HTTP route list covers only part of the surface. Add other ways the service exchanges data, such as file imports and message consumers, when reviewing the whole system.

Keep this

Inventory what can interact with your service.

For each entry point, know who needs it and where the access check happens.

Sources

Last reviewed 21 November 2026.

Next byte · Security foundations What are secure defaults?