You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
security/leaked-secrets: Shopify platform tokens (wallet JWTs, Shop sessions JWT, portable-wallets key) flagged on 37% of Shopify stores #1287
security/leaked-secrets flags tokens that Shopify itself puts on every storefront. So on most Shopify stores, a merchant who did nothing wrong gets a leaked-secret finding.
In a ~38k-site batch on v0.0.141, 37% of real Shopify stores got a leaked-secrets flag (36,000 non-Shopify sites: about 5%). Of the 213 flags on 77 stores, nearly all were Shopify's platform tokens:
per-request payment-wallet token. Payload claims: iat, merchantId, merchantOrigin; carries expiresAt. Re-fetching returns a different token every time (all 115 "not present" on re-fetch).
Shopify's own wallet bundle, identical on every store
other /cdn/shopifycloud/… bundles (8)
Generic API Key Assignment
Shopify platform code
Separately, Shopify App Store listing pages (apps.shopify.com/<app>) carry a public api-key attribute that was flagged about 500 times across launches that point at their App Store listing.
Acceptance Criteria
JWTs whose decoded payload is the Shopify wallet shape (merchantId + merchantOrigin) or the Shop sessions client shape (client_id + unique_id, shopifyinc.com/sessions context) are classed public-by-design and not reported (fixtures from a storefront page).
Assignments inside scripts served from /cdn/shopifycloud/ (Shopify's platform bundles, same bytes on every store) are not reported. A test pins portable-wallets. (amended 2026-11-01: this covers an apiKey assignment in scripts served from cdn.shopify.com/shopifycloud/ and from /cdn/shopifycloud/ on a *.myshopify.com host, which are the hosts where the path proves the bytes are Shopify's; a store on a custom domain serving the same path is not skipped, so a real secret there still reports; documented in the rule docs.)
The api-key attribute on apps.shopify.com listing pages is not reported.
A real secret on a Shopify store (e.g. an Admin API shpat_ token or a third-party sk_live_ in a theme asset under /cdn/shop/) is still reported (fixture).
The rule docs list Shopify platform tokens under public-by-design.
Note on the Shopify Admin token criterion: a bare shpat_, shpca_, shppa_ or shpss_ token (32 hex) has no detector on main today (it is only reported under a generic key name). The detector arrives in the stack's #1318 (#1309), so this criterion is satisfied by the stack rather than by #1300 alone.
Amended the /cdn/shopifycloud/ criterion to the shipped behaviour: an apiKey assignment in scripts served from cdn.shopify.com/shopifycloud/, or from /cdn/shopifycloud/ on a *.myshopify.com host, is skipped. A path alone is not enough on a custom domain: the rule docs and a test say so. All criteria are now met on v0.0.158 (wallet and Shop sessions JWTs public, apps.shopify.com, shpat_/shpca_/shppa_/shpss_ and a third-party sk_live_ still reported, docs). Release: https://github.com/squirrelscan/squirrelscan/releases/tag/v0.0.158
Activity
fix(rules): parse the Shopify sessions URL instead of matching its ho…
fix(rules): public beacon JWTs match only their own claims; privilege…
fix(rules): typesense key must be inside the typesense object; differ…
feat(rules): leaked-secrets public tier: Shopify platform tokens, bea…
fix(rules): public tier needs positive evidence: no name-based search…
feat(rules): leaked-secrets public tier: Shopify platform tokens, bea…
fix(rules): public tier needs positive evidence: no name-based search…
feat(rules): leaked-secrets public tier: Shopify platform tokens, bea…
fix(rules): public tier needs positive evidence: no name-based search…
fix(rules): the Shopify bundle skip needs a Shopify host, not mention…
feat(rules): leaked-secrets public tier: Shopify platform tokens, bea…
feat(rules): leaked-secrets public tier: Shopify platform tokens, bea…
feat(rules): leaked-secrets public tier: Shopify platform tokens, bea…
nc9 commentedon Nov 1, 2026
Note on the Shopify Admin token criterion: a bare
shpat_,shpca_,shppa_orshpss_token (32 hex) has no detector on main today (it is only reported under a generic key name). The detector arrives in the stack's #1318 (#1309), so this criterion is satisfied by the stack rather than by #1300 alone.nik
feat(rules): leaked-secrets public tier: Shopify platform tokens, bea…
feat(rules): leaked-secrets public tier: Shopify platform tokens, bea…
feat(rules): leaked-secrets public tier: Shopify platform tokens, bea…
feat(rules): leaked-secrets public tier: Shopify platform tokens, bea…
feat(rules): leaked-secrets public tier: Shopify platform tokens, bea…
feat(rules): leaked-secrets public tier: Shopify platform tokens, bea…
feat(rules): leaked-secrets public tier: Shopify platform tokens, bea…
nc9 commentedon Nov 1, 2026
Amended the
/cdn/shopifycloud/criterion to the shipped behaviour: anapiKeyassignment in scripts served fromcdn.shopify.com/shopifycloud/, or from/cdn/shopifycloud/on a*.myshopify.comhost, is skipped. A path alone is not enough on a custom domain: the rule docs and a test say so. All criteria are now met on v0.0.158 (wallet and Shop sessions JWTs public, apps.shopify.com,shpat_/shpca_/shppa_/shpss_and a third-partysk_live_still reported, docs). Release: https://github.com/squirrelscan/squirrelscan/releases/tag/v0.0.158nik