Safeguard
Security Guides•

Do staging and beta API hosts need vulnerability scanning too?

Yes. Forgotten staging and beta hosts can run the same API without the same protections. What to inventory, what to scan and when to take them down.

Safeguard Security Team
3 min read

Yes. Staging, beta and old version hosts often run the same API with weaker protections, and attackers find them with ordinary reconnaissance. Inventory every host with its environment and audience, scan the ones that are reachable, and retire the ones nobody uses.

What OWASP says

In API9:2023, OWASP describes attackers gaining access through old API versions or forgotten endpoints that remain running, unpatched and protected by weaker security. It adds that microservices and cloud deployments make unnecessary API hosts common, and that basic reconnaissance such as DNS enumeration can reveal them.

Its first example scenario is worth remembering. Rate limiting for password reset tokens was enforced in a separate component, not in the API itself. A researcher found a beta host running the same API without that protection and brute forced a six digit token to reset any user's password.

The lesson is simple: a protection that lives next to the API, not inside it, may not exist on the host you forgot.

What to list for each host

  1. Hostname and address.
  2. Environment: production, staging, beta, test.
  3. Intended audience: public, partner, internal.
  4. API version and retirement date.
  5. Whether real data is present.
  6. Owner.

OWASP's prevention list asks for the same: environment, intended audience and version, and it advises applying external API security protections to all exposed versions, not just production.

What to scan

Host typeScan for
Reachable from the internetFull API scan, authentication and rate limit checks
Partner facingSame, with the partner's credentials
Internal onlyDependency and configuration scan

Compare findings between production and non production. A control missing on staging but present on production is a strong signal that the control lives in front of the API.

Data in non production

OWASP advises avoiding production data in non production environments, and applying the same controls if it cannot be avoided. Ask the owner directly whether a staging database was copied from production.

Take them down

If a host has no owner and no traffic, retire it in stages. If it must stay, put it behind authentication and a network allow list.

Try it yourself

Click through it at your own pace, or open it full screen. Look at what an API scan reports for a single host.

Quick check

Is a staging host a risk if it has fake data?

It can still be a path to production through shared credentials, and it may expose weaknesses in the same code. Treat it as in scope.

How do I find hosts I do not know about?

Compare DNS records, gateway config and cloud listings against your inventory, and investigate the differences.

Safeguard includes API security scanning and asset discovery, and you can run a free scan.

Sources

Last reviewed: 19 October 2026.

Never miss an update

Weekly insights on software supply chain security, delivered to your inbox.

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.