Skip to content
Databases & keys · Secret guide

Leaked urlscan.io API key: what to do in the first hour

Medium severityDetected onlyLast verified · 4 min read

A urlscan.io API key lets whoever holds it submit URLs for scanning and read results under your account. Scans can be public or private, and private scan results can include page content, screenshots and the URLs your team investigated. A leaked key therefore exposes what your security team has been looking at, and it can be used to consume your scan quota. Revoke the key first, then review the scans attached to the account.

Check your GitHub account for leaked secrets — free

Provider
URLScan.io
Severity
Medium
Impact
SaaS account access and billing
Checked live by LeakWatch
No

What a urlscan.io API key looks like

urlscan.io API keys are 36-character strings of lowercase letters, digits and hyphens, in a shape that resembles an identifier. There is no distinctive prefix, so the word urlscan placed near the value is what identifies it in a file, a script or a log:

<36 characters of lowercase letters, digits and hyphens>   urlscan.io API key (masked)

Keys are sent in a request header with each API call. Security tooling often stores them in a configuration file or an environment variable, and that is where they tend to be copied from.

How urlscan.io API keys get leaked

  • Security automation committed to a repository. A script that submits suspicious URLs from an alert pipeline, with the key written inline.
  • Shared configuration. A connector for a security platform that keeps the key in a shared file or a team document.
  • Shared snippets. A sample posted in a forum, a blog or a support thread with the real key left in place of the placeholder.
  • CI logs. A step that prints the request it sends, including the header.
  • Browser extensions and tools. A key entered into a third-party tool that stores it in a file or a sync service.

What to do in the first hour

  1. Revoke the key. Open the account settings, go to the Settings and API page, find the API keys section and delete the key that leaked. Create a replacement for the tools that still need one.
  2. Update the integrations with the new key and test one submission.
  3. Review your scans. Look at the scans submitted with the account since the exposure. Check for URLs you did not submit, and for private results that others might have accessed through a shared link.
  4. Check for sensitive content. Private scans can include page content and screenshots from internal or customer systems. Decide whether any of it needs to be handled as an incident.
  5. Check the quota. An unexpected drop in remaining scans is a sign that the key was used.
  6. Clean the repository. Remove the value from files and history, and check logs. See I accidentally pushed an API key to GitHub.

Not sure what else leaked from the same automation? Run a free scan.

Not sure what else leaked? Run a free scan.

Revoke it at URLScan

Open the account settings on the URLScan site, go to the Settings and API page and delete the API key that leaked. Public descriptions of this page mention creating keys in an API keys section, but none of the sources reviewed here confirmed how to revoke one, so the label may differ from what this guide describes. Check the live page, and if the option is not visible, contact URLScan support. Create the replacement before you remove the old one from production tools.

How LeakWatch detects it

The rule is called “URLScan.io API Key”. It looks for the word urlscan within about 40 characters of a 36-character run of lowercase letters, digits and hyphens, with word boundaries around the value. The word is required, so an unlabelled value of that shape is not reported. The severity is medium. This type is not checked live: LeakWatch does not call urlscan.io with the value it finds.

LeakWatch detects this format but does not check it live: it can tell you the key is exposed, not whether it still works. Assume it does until you have revoked it.

FAQ

Are scan results public?

Public scans are visible to everyone. Private scans are visible to your account. Check which scans are private before you assume they are safe.

Can a key read private scans?

A key acts for the account that created it, so it can read the results that account can see. Review what the account holds.

Does a leaked key cost money?

It can use up your scan quota, and the plan may limit it. The main concern is what the scans reveal, not the cost.

Get alerted next time a secret leaks — create a free account

LeakWatch is not affiliated with URLScan.io.