# Leaked Shopify Shared Secret? Rotate It, Check HMAC

> Shopify shared secret exposed on GitHub? Rotate it, check forged webhooks and app installs, and handle store data. Step-by-step guide.

Source: https://leakwatch.net/secrets/shopify-shared-secret

---

[LeakWatch](/)

[Product](/product)[Live feed](/leaks)[Guides](/secrets)[Blog](/blog)[Free scan](/)

1.  [Home](/)
2.  [Secrets](/secrets)
3.  Shopify Shared Secret

Payments · Secret guide

# Leaked Shopify Shared Secret: what to do in the first hour

High severityDetected onlyLast verified October 30, 2026 · 4 min read

A Shopify shared secret, also known as an app’s API secret key or client secret, is the credential an app uses to prove its identity to Shopify. It is used to verify that webhook calls and installation requests really come from Shopify, because those requests are signed with an HMAC computed from it. It is not an Admin API access token and cannot read orders on its own. Its danger is different: someone who holds it can forge signed requests, so your app trusts fake webhooks or install callbacks, and in some flows can exchange authorization codes for tokens. Rotate it first, then check what your app accepted.

[Check your GitHub account for leaked secrets — free](/)

Provider

Shopify

Severity

High

Impact

Source code and build access

Checked live by LeakWatch

No

## What a Shopify shared secret looks like

A shared secret starts with `shpss_` followed by 32 hexadecimal characters:

```text
shpss_…XXXX   Shopify shared secret (masked, 32 hexadecimal characters after the prefix)
```

Do not confuse it with the neighbouring Shopify values. Admin API access tokens start with `shpat_`, and custom-app tokens with `shpca_` or `shppa_`. The app’s **API key** (client ID) is a public identifier and is not sensitive. The shared secret is called `SHOPIFY_API_SECRET`, `SHOPIFY_SHARED_SECRET` or `SHOPIFY_CLIENT_SECRET` in most projects, and appears in the code that verifies the `X-Shopify-Hmac-Sha256` header of incoming webhooks.

## How Shopify shared secrets get leaked

-   **App templates.** An app built from a starter template and committed with its `.env` file, where the secret sits next to the API key.
-   **Environment files.** `SHOPIFY_API_SECRET` in a `.env`, a compose file or a hosting configuration pushed to a repository.
-   **Webhook handlers.** Verification code written with the secret typed into the source to make a quick test work.
-   **Configuration files.** App configuration committed with credentials during a deployment setup, or copied into a public example.
-   **Support threads and screenshots.** The app’s credentials page captured with the secret visible, or pasted into an issue when asking why HMAC verification fails.

## What to do in the first hour

1.  **Open the app’s credentials** in the Shopify Partner Dashboard or the Dev Dashboard, whichever you used to create it (see the link below). Match the exposed secret by its first and last characters.
2.  **Rotate the secret.** Shopify supports rotating the client secret and revoking the old one. Rotation also affects the access tokens tied to it, so plan the refresh for every installed store before you start.
3.  **Deploy the new secret** to your server or secret store, and send a test webhook to confirm that verification passes.
4.  **Review what your app accepted.** Look in your logs for webhook or install calls received since the exposure that did not come from Shopify, such as unexpected shop domains or odd payloads.
5.  **Check app data.** Review recent changes your app made on stores and any data it exported on the basis of webhook calls.
6.  **Check other credentials.** If an Admin API access token was in the same file, treat it as leaked too and follow the [Shopify access token](/secrets/shopify-access-token) guide.
7.  **Clean up the code**, and move secrets to a secret manager. See [I accidentally pushed an API key to GitHub](/blog/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 Shopify

The shared secret is managed on the credentials page of the app, in the dashboard where it was created, after you sign in. Shopify’s documentation on rotating and revoking client credentials describes the process, and notes that revoking a secret also removes the access tokens associated with it. A person has not confirmed the exact menu wording for this guide, and the dashboard can change, so if what you see differs, look for the section of the app settings where the client secret is shown, and follow Shopify’s documentation.

## How LeakWatch detects it

The rule is called Shopify Shared Secret. It recognizes the lowercase prefix `shpss_` followed by exactly 32 hexadecimal characters, in either letter case, and it needs no variable name nearby. A different prefix, such as `shpat_`, or a body that is not 32 hexadecimal characters is not reported by this rule. The severity is **high**. This type is not checked live: LeakWatch does not send any request to Shopify with the value it found.

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

Can someone read my store orders with the shared secret?

Not by itself, because it is not an access token. It lets a holder forge signed requests and, in some flows, obtain tokens. Treat it as high risk and rotate it.

Is the API key in the same file also a secret?

No, the API key (client ID) is a public identifier. Only the secret needs to be rotated, though the file should still be cleaned.

Will rotating the secret break my installed stores?

It can force every store to refresh its token. Prepare the deployment first, then rotate, and test on one store.

## Related

-   [Shopify Access Token](/secrets/shopify-access-token)
-   [Shopify Custom App Access Token](/secrets/shopify-custom-app-access-token)
-   [Square Access Token](/secrets/square-access-token)
-   [I accidentally pushed an API key to GitHub](/blog/i-accidentally-pushed-an-api-key-to-github)
-   [Which vendors leak most this week](/leaks/trends)
-   [All secret guides](/secrets)

[Get alerted next time a secret leaks — create a free account](/)

LeakWatch is not affiliated with Shopify.

![Gabriel Diyan, founder of LeakWatch](/brand/Photo-Gabriel-Diyan.webp)

Gabriel Diyan (0xCr0c0)

Cybersecurity student, founder of LeakWatch. I built and run the scanner described here — the detection patterns, the false-positive classifier and the provider validators are mine. [More about who I am](/about).

[GitHub](https://github.com/Leakwatch-Scan) · [X](https://x.com/LeakwatchScan) · [LinkedIn](https://www.linkedin.com/in/gabriel-diyan-80a378375) · [GitHub (personal)](https://github.com/crocogab)

LeakWatch

Secrets leak into public commits every minute. This watches the forges for yours. Built and run by [Gabriel Diyan](/about), a cybersecurity student — [why LeakWatch exists](/about).

Scan

-   [Product](/product)
-   [Live feed](/leaks)
-   [Trends](/leaks/trends)
-   [API docs](/docs)
-   [CI/CD](/docs?tab=ci)

Read

-   [Blog](/blog)
-   [Secret guides](/secrets)
-   [Changelog](/changelog)
-   [About](/about)

Verify

-   [Security](/security)
-   [Privacy](/privacy)
-   [Terms](/terms)
-   [Legal](/legal)
-   [Contact](/contact)
-   [Status](https://status.leakwatch.net)

© 2026 LeakWatch

[GitHub](https://github.com/Leakwatch-Scan)[X](https://x.com/LeakwatchScan)
