Shopify App Security Requirements: What Changed

Shopify's new app security protections change what merchants and app owners must verify before launch. Here is the practical checklist, plus common failures.

Shopify App Security Requirements: What Changed

Shopify app security requirements are the minimum controls your app must meet before merchants install it and keep it installed. Shopify's new app security protections raise that bar: tighter review of what an app asks for, stricter handling of merchant data, and less tolerance for apps that request broad scopes they never use. If you own a custom or private app, the practical question is simple: can you prove, in a review, exactly what your app reads, writes, stores and for how long?

This guide covers what changed, the requirements every custom Shopify app should meet, a pre-launch checklist, the failures we see most often, and how to close gaps without a rebuild. If you would rather have someone audit the app against these points, our Shopify app development team does exactly that.

What Shopify's new app security protections actually change

Nothing about good engineering is new. What changed is enforcement and visibility. Three shifts matter for anyone building on Shopify.

1. Scope justification is now part of the product

An app that asks for read_all_orders or full customer access needs a reason that survives scrutiny. Reviewers and merchants both look at the scope list and ask why. Apps that request scopes "just in case" get flagged, and merchants increasingly uninstall over it. The fix is boring and effective: request the minimum, request it at the moment it is needed, and document why each scope exists.

2. Protected customer data requires a declared purpose

Customer data is treated as protected by default. You need to state what you collect, why, where it is stored, who can see it, and when it is deleted. That declaration is not paperwork to fill in at the end — it should match what your code actually does. If your database keeps full order payloads for debugging, your declaration is already wrong.

3. Webhook and token handling is assumed, not assumed away

HMAC verification on webhooks, token encryption at rest, and no tokens in client-side code are baseline expectations. An app that skips them is not "non-compliant" in an abstract sense — it is one leaked token away from exposing a merchant's orders.

The security requirements every custom Shopify app must meet

Treat this as the definition of done. It applies to public apps, custom apps, and private apps built for a single merchant.

Authentication and sessions

  • OAuth flow completed correctly, with state validation to prevent CSRF.
  • Session tokens verified on every request, not just at install.
  • Offline and online access tokens used for the right jobs — offline for background jobs, online for user-context actions.
  • No tokens, API secrets or admin keys in front-end bundles, mobile apps or logs.

Webhooks

  • HMAC verified against the raw request body before parsing.
  • Idempotent handlers, because Shopify retries.
  • Fast acknowledgement, then queue the work — do not do heavy processing inside the webhook response window.
  • Mandatory compliance webhooks (customers/data_request, customers/redact, shop/redact) implemented and tested.

Data handling

  • Data minimisation: store what you need, not the whole payload.
  • Encryption at rest for tokens and personal data; encryption in transit everywhere.
  • A documented retention period and a working deletion path.
  • Access controls on your own database and admin tooling — most breaches are internal or misconfigured, not exotic.

Scopes and permissions

  • Minimum scopes, requested incrementally where possible.
  • A written justification per scope, kept with the app documentation.
  • A review step before anything is written back to the store.

Checklist: scopes, webhooks, token storage and data handling

Use this before you submit for review or hand the app to a merchant.

Area Check Pass criteria
Scopes Minimum set requested Every scope has a written reason
Scopes Incremental auth where possible New scopes requested only when a feature needs them
Webhooks HMAC verified on raw body Invalid signatures rejected with 401
Webhooks Idempotency Duplicate delivery does not duplicate records
Webhooks Compliance topics All three implemented and tested
Tokens Storage Encrypted at rest, never in logs or client code
Tokens Rotation Refresh handled without downtime
Data Minimisation Only required fields persisted
Data Retention Documented period and automated deletion
Data Access Least-privilege access to production data
Writes Review step Merchant approves changes before they go live
Ops Monitoring Failed auth and webhook errors alerted

If you cannot tick a row, you have a known gap. Known gaps are fine; undocumented ones are not.

Hand holding a smartphone with a shopping app open

Common failures we see in pre-launch security reviews

These come up again and again in reviews of apps built in-house or by teams without Shopify-specific experience.

Tokens in the wrong place

API tokens in a React bundle, in a mobile app, or written to application logs. It happens because it is convenient during development and nobody removes it. Assume any secret shipped to a client is public.

Webhooks trusted without verification

An endpoint that accepts any POST and parses it. That endpoint will eventually receive forged requests, and it will act on them.

Over-scoped installs

An app that needs to read products also asks for orders, customers and discounts. Merchants notice. Reviewers notice more.

No deletion path for protected data

Data arrives, gets stored, and never leaves. When a merchant uninstalls or a customer requests erasure, there is no mechanism. This is the most common reason an otherwise working app fails a data-handling review.

Writes without a review step

Bulk edits pushed straight to the live store with no preview. One bad rule and a merchant's catalogue is wrong. Our own products follow the opposite pattern — AI proposes, the merchant approves — and it is the right default for any app that writes to a store.

How to fix gaps without rebuilding your app

Most of these are contained changes, not rewrites. A realistic sequence:

  1. Inventory secrets. Grep the codebase, the front-end bundles and the logs for tokens and keys. Rotate anything that has ever been exposed.
  2. Add verification at the edges. HMAC checks on webhooks, session verification on every request. This is usually a middleware change, not a redesign.
  3. Trim scopes. Remove unused scopes, add a justification document, and move optional scopes to incremental requests.
  4. Encrypt and minimise. Encrypt token storage, drop fields you do not use, and set a retention period.
  5. Build the deletion path. Implement the compliance webhooks and test them with real payloads.
  6. Add the review step. Preview-then-approve for any write to the store.
  7. Monitor. Alert on failed signature checks and auth errors so the next gap surfaces before a merchant finds it.

Steps 1–3 typically take days, not months. Steps 4–6 depend on how much data your app already stores.

When to bring in a Shopify app development partner

Bring in outside help when the app works but you cannot prove it is safe — when the review questions arrive and the answers live in one developer's head. Also when you are building a new app and want the security model designed in from the first commit rather than retrofitted after a rejection.

A good partner does three things: audits the app against the checklist above, fixes the gaps in your existing codebase rather than replacing it, and leaves documentation you can hand to a reviewer or a merchant's CTO. That is the shape of our Shopify app work — custom private and public apps, store automation and integrations, built to pass review the first time.

If you are evaluating apps as a merchant rather than building one, use the same checklist in reverse. Ask for the scope list, ask how customer data is stored and deleted, and ask whether writes require your approval. The answers tell you more than any feature list.

Related reading

FAQ

Frequently asked questions

What are the Shopify app security requirements?

The core requirements are: correct OAuth with session verification, HMAC-verified webhooks, encrypted token storage with no secrets in client code, minimum scopes with a stated purpose, a declared and enforced approach to protected customer data (including retention and deletion), and implemented compliance webhooks for data request and redaction.

Do private or custom Shopify apps need to meet the same requirements?

Yes in practice. A custom app built for one merchant may skip the public App Store review, but it still handles that merchant's customer and order data. The same controls — minimum scopes, verified webhooks, encrypted tokens, a deletion path — apply, and merchants increasingly ask for them contractually.

What are the mandatory compliance webhooks?

Three topics must be handled: customers/data_request, customers/redact and shop/redact. They let Shopify notify your app when a customer exercises a data right or a merchant uninstalls. Each needs a working handler that actually retrieves or deletes the relevant data, not just an endpoint that returns 200.

How do I reduce the scopes my app requests?

Start from the feature list and map each feature to the single scope it needs. Remove anything requested "for later". Where a feature is optional, request that scope incrementally when the merchant enables it. Then write a one-line justification per scope and keep it with your app documentation.

Can security gaps be fixed without rebuilding the app?

Usually yes. Adding HMAC verification, session checks, token encryption, scope trimming and compliance webhook handlers are contained changes to middleware and data access layers. A full rebuild is only needed when the data model itself stores far more than it should or the architecture exposes secrets to the client.

How long does a pre-launch security review take?

For a typical small or mid-sized app, an audit against the checklist plus fixes for the common gaps is usually a matter of days to a few weeks, depending on how much data the app already stores and whether a deletion path has to be built from scratch.

Building or fixing a Shopify app?

Send us the app or the idea. We will audit it against these security requirements, fix the gaps in your existing codebase, and document what a reviewer or merchant CTO will ask about.