Skip to content
Cloud · Secret guide

Leaked Splunk Observability Token: what to do in the first hour

High severityDetected onlyLast verified · 5 min read

A Splunk Observability Cloud token is the credential that lets a collector, an application or a script talk to your Splunk Observability organization. Depending on its type, it can send metrics, traces and logs into the organization, or call the API to read and manage resources such as dashboards, detectors and teams. A leaked ingest token lets a stranger pollute your data and run up usage. A leaked API token can read your telemetry and change monitoring. Rotate it first, then check what was done with it.

Check your GitHub account for leaked secrets — free

Provider
Splunk Observability
Severity
High
Impact
SaaS account access and billing
Checked live by LeakWatch
No

What a Splunk Observability Token looks like

Splunk Observability access tokens are short strings of letters and digits, 22 characters long. They carry no prefix, which makes them hard to recognize on their own:

XXXXXXXXXXXXXXXXXXXXXX   Splunk Observability token (22 letters and digits, masked)

Because the value is anonymous, the surroundings tell you what it is: a variable such as SPLUNK_ACCESS_TOKEN, a collector configuration with an access_token field and a realm like us0 or eu0, or an HTTP header named X-SF-Token sent to an signalfx or Splunk Observability endpoint. Splunk Observability tokens come in kinds, such as ingest tokens for sending data, API tokens for reading and managing, and tokens for browser monitoring, and a given token is limited to its kind. Do not confuse it with a Splunk Enterprise or Splunk Cloud Platform HEC token, which is a UUID and belongs to a different product.

How Splunk Observability Tokens get leaked

  • Collector configuration. An OpenTelemetry Collector or Splunk distribution config file committed with the access token in plain text.
  • Kubernetes and Helm. Values files and manifests where the token is set directly instead of coming from a secret.
  • Container and server setup. Dockerfiles, compose files and install scripts that pass the token on the command line or as an environment variable.
  • Browser instrumentation. A token for real user monitoring is meant to be public in a page, but a token of a more powerful kind pasted there by mistake is not.
  • Support requests. A configuration shared in a forum or ticket with the token line unredacted.

What to do in the first hour

  1. Identify the token. Sign in to your Splunk Observability Cloud organization as an administrator and open the access tokens area in the settings. Find the token by name and, if you can, by the last characters of its value.
  2. Note its kind and limits. Ingest or API, which teams it is tied to, and its expiry date. This tells you what an attacker could do.
  3. Rotate the token. Splunk’s documentation describes rotation as creating a new secret and deactivating the previous one, with a grace period during which the old secret still works. If the token is abused, shorten that grace period so the old value stops working quickly, or create a new token and delete the exposed one outright.
  4. Update the collectors and applications with the new secret before the grace period ends, and confirm that data keeps arriving.
  5. Review activity. Look for unexpected data volume or sources in the usage views, and for changes to dashboards, detectors, integrations and tokens you did not make. If the token was an API token, assume that anything it could read was read.
  6. Check integrations. Notification integrations can hold credentials for Slack, PagerDuty or cloud accounts. Rotate those that an API token could have viewed or altered.
  7. Clean up the code and look for other secrets in the same files. See I accidentally pushed an API key to GitHub.

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

Not sure what else leaked? Run a free scan.

Revoke it at Splunk Observability

Organization access tokens are managed in the settings of your Splunk Observability Cloud organization, in the access tokens section, by a user with the administrator role. Splunk’s documentation describes rotating a token from its menu in that list, which issues a new secret and deactivates the old one after a grace period, and it also covers the API route. User API tokens, a separate kind tied to a person, are retrieved and managed from the user’s own settings. A person has not confirmed the exact menu wording for this guide, and the interface can change, so look for the page where access tokens are listed, and follow Splunk’s documentation.

How LeakWatch detects it

The rule is called Splunk Observability Token. Because the token has no prefix, the rule does not match a bare 22-character string: it looks for the word splunk, in any letter case, followed within about 40 characters by a whole word of exactly 22 letters and digits. A 22-character value without splunk close to it, or a value of another length, is not reported. That keeps false alerts down, but a token pasted far from the word can be missed, and a splunk line next to an unrelated 22-character identifier can be reported by mistake. The severity is high. This type is not checked live: LeakWatch does not send any request to Splunk with the value it found, so check in your organization whether the token is still active.

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

Is this the same as a Splunk HEC token?

No. A HEC token for Splunk Enterprise or Splunk Cloud Platform is a UUID and belongs to a different product. This guide covers Splunk Observability Cloud tokens, which are 22 characters long.

Does rotating the token stop the attacker immediately?

Not necessarily. Splunk documents a grace period during which the previous secret keeps working. If the token is being abused, shorten the period or delete the token, and accept a short interruption of your own data.

The token was an ingest token. Is it still serious?

Yes, in a smaller way. It cannot read your data, but it can send false data, trigger or hide alerts, and consume your usage allowance. Rotate it all the same.

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

LeakWatch is not affiliated with Splunk Observability.