# The API Secret Sprawl

- Canonical: https://escape.tech/the-api-secret-sprawl-2024

How we discovered over 18,000 API secret tokens by analyzing 1 million domains on the web

[Read our report](https://escape.tech/_wf/26857953.fs1.hubspotusercontent-eu1.net/hubfs/26857953/State%20of%20API%20Security%202024%20-%20API%20Secret%20Sprawl.pdf)

[Read our report](https://escape.tech/_wf/26857953.fs1.hubspotusercontent-eu1.net/hubfs/26857953/State%20of%20API%20Security%202024%20-%20API%20Secret%20Sprawl.pdf)

7.7K secrets

are classified

as highly critical

$20M

could have been accessed in stripe tokens

## Our methodology: focus on real world scenarios

Escape’s web crawler analyzed applications in their actual usage scenarios, examining everything from APIs to frontends, including elements that run in the background like JavaScript.\
\
This approach shows how and where API secret keys and tokens are exposed in real-world settings, not only in code repositories.

Our data collection process was a significant undertaking, both in terms of scale and technical complexity. To manage this, we deployed our containerized web spider on a Kubernetes cluster. The cluster was capable of scaling up to **150 concurrent worker instances**.\
‍\
The collection spanned over 69 hours, with our system analyzing an average of 4 domains per second.

In total, our process led us to visit **189,466,870 URLs.** This extensive coverage was key to ensuring that our analysis was as thorough and inclusive as possible.\
\
By examining such a large number of URLs, we were able to gain deep insights into the current state of secret sprawl across a wide spectrum of the internet.

Discover our findings

## Including OpenAI and Javascript packing trends

[Read our report](https://escape.tech/_wf/26857953.fs1.hubspotusercontent-eu1.net/hubfs/26857953/State%20of%20API%20Security%202024%20-%20API%20Secret%20Sprawl.pdf)

[Read our report](https://escape.tech/_wf/26857953.fs1.hubspotusercontent-eu1.net/hubfs/26857953/State%20of%20API%20Security%202024%20-%20API%20Secret%20Sprawl.pdf)
