Skip to content
Cloud · Secret guide

Leaked Sumo Logic Access Key: what to do in the first hour

High severityDetected onlyLast verified · 5 min read

A Sumo Logic access key is a pair: an access ID and an access key, used together as the username and password of the Sumo Logic API. The pair acts with the permissions of the user who created it, so it can search your logs, read and change content, manage collectors and, for an administrator, change organization settings. Logs routinely contain tokens, personal data and internal addresses, which makes read access the main danger. The access ID alone is only an identifier, but the key half is a real secret. Delete the pair first, then check what it was used for.

Check your GitHub account for leaked secrets — free

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

What a Sumo Logic Access Key looks like

The two halves look different. The access ID starts with su followed by 12 letters and digits, 14 characters in all. The access key is 64 lowercase letters and digits:

suXXXXXXXXXXXX                                                                     access ID (14 characters, masked)
XXXXXXXXXXXXXXXX…XXXX                                                              access key (64 characters, masked)

They usually appear together, as SUMO_ACCESS_ID and SUMO_ACCESS_KEY (or similar variable names), in the basic authentication of a call to an api.*.sumologic.com endpoint, in collector installation scripts and in CI configuration. Neither half has a distinctive prefix beyond su, so a sibling of the pair is the best clue: if you find one, search for the other. Sumo Logic also uses installation tokens for collectors, which are a different secret.

How Sumo Logic Access Keys get leaked

  • Collector installation scripts. Scripts that register collectors with the access ID and key typed on the command line, committed with the rest of the provisioning code.
  • Terraform and automation. Provider blocks and CI variables holding the pair, in repositories or state files.
  • Environment files. SUMO_ACCESS_ID and SUMO_ACCESS_KEY in a .env or compose file that gets pushed.
  • Scripts that query logs. Reporting or backup scripts that call the search API with the pair inline.
  • Shared examples. Configuration pasted into tickets or forums with the pair left in.

What to do in the first hour

  1. Find the key. Sign in to Sumo Logic and open the area where access keys are listed. Individual users see their own keys under their preferences, and administrators with the right capability can see and manage the keys of other users in the organization’s security settings. Match the exposed pair by its access ID.
  2. Create a new key under an account with the least privilege that works. Prefer a dedicated service user over a personal account.
  3. Deploy the new pair to collectors, scripts and pipelines, and check that they still authenticate.
  4. Delete the exposed key. Sumo Logic can deactivate a key, which keeps its credentials but makes it useless, or delete it permanently. Deactivation is reversible, so for a leaked key, delete it once the replacement works. Then confirm that a call with the old pair is rejected.
  5. Review activity. Check the audit index and audit event logs available to your organization for searches, exports, content changes, new collectors or new access keys that you did not make. Look at the user who owned the key, because the key had that user’s permissions.
  6. Rotate what the logs revealed. If the key could search broadly, assume that secrets printed in logs were readable and rotate them.
  7. Clean up the code and check for neighbouring secrets. 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 Sumo Logic

Access keys are managed in your Sumo Logic account, after you sign in to the deployment that your organization uses. According to Sumo Logic’s documentation, a user manages personal keys from their preferences, where a key’s menu offers edit, activate or deactivate, and delete, and an administrator with the manage access keys capability can do the same for any key in the organization’s security settings. Sumo Logic runs several regional deployments, so sign in on the one you use. A person has not confirmed the exact menu wording for this guide, and the interface can change, so look for the page where access keys are listed, and follow Sumo Logic’s documentation.

How LeakWatch detects it

This guide covers two rules, one for each half of the pair. Both need the word sumo (written Sumo or SUMO, with that capitalization) in the same line as a variable name, followed by an assignment sign such as =, : or =>.

The rule called Sumologic Access Token captures a value of 64 lowercase letters and digits after that assignment. A string of another length, or one with no sumo name before it, is not reported. The severity is high.

The rule called Sumologic Access ID captures a value of su followed by 12 letters and digits after the same kind of assignment. The severity is medium, because an access ID alone does not authenticate anyone. Its main use is to find the matching key.

Neither type is checked live: LeakWatch does not send any request to Sumo Logic with the values it found, so verify in your account whether the pair 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 the access ID a secret?

It is an identifier, and on its own it cannot call the API. It is still worth treating as part of the leak, because it tells you which key to delete and shows that an attacker may have the matching key.

What is the difference between deactivating and deleting a key?

Deactivating keeps the key in your list but stops it from working, and you can turn it back on. Deleting removes it for good. For a leaked key, delete it as soon as the replacement works.

Does Sumo Logic remove unused keys on its own?

Its documentation says that keys not used for a period of time can be deactivated automatically by default. Do not rely on that: a leaked key that is used by an attacker stays active.

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

LeakWatch is not affiliated with Sumologic.