WordPress · Drupal · Site Maintenance · Technical SEO · Editorial Policy

How to Check a Shopify Site for Backdoors and Unauthorised Access

Shopify is a hosted platform. Shopify runs the servers and patches the core, so there is no PHP, no file system and no core update for you to manage. A store is rarely compromised by a classic server backdoor. The realistic risks sit in the parts you control: who can log in, which apps hold permissions, which tokens exist, and what code runs in your theme and checkout flow.

This guide walks through those areas in a sensible order, then covers removal and credential rotation.

What a backdoor looks like on Shopify

On a hosted platform, unauthorised access means someone keeps a way back in after you think they are gone. In practice that is one of five things:

  • A staff or collaborator account you do not recognise, or a legitimate one with more permissions than it needs.
  • An installed app, or a custom app, holding API access you no longer use.
  • An Admin API or Storefront API token that was copied somewhere and never revoked.
  • A webhook that sends order or customer data to an address you do not control.
  • Extra JavaScript or Liquid in the theme, or a tracking script added through settings, that loads code from another domain.

Work through each one rather than hunting for a single culprit. Attackers who gain a foothold often leave more than one.

Start with people: staff accounts and permissions

Open Settings and go to the users or staff section of your admin. Compare every entry against the people who genuinely work on the store today. Check the following:

  • Names and email addresses you cannot match to a person, including lookalike addresses on a slightly different domain.
  • Former employees, freelancers and agencies whose access was never removed.
  • Staff with full permissions who only need access to orders or products. Shopify lets you grant access by area, so give each person the least they need.
  • Collaborator accounts. Agencies can request collaborator access, and each request you approved stays active until you remove it.

Confirm that two-step authentication is switched on for every staff account, starting with the store owner. Shopify documents staff accounts and their permissions in its help centre at help.shopify.com. What each plan allows, including the number of staff accounts, depends on your Shopify plan.

Review installed apps and custom apps

Go to Settings, then Apps and sales channels. Every app listed can read or change data according to the permissions you approved at install. For each one, ask three questions:

  1. Do you still use it? If not, uninstall it.
  2. Does it ask for access that its job does not need, such as customer data for a simple banner app?
  3. Do you trust the developer? Check the listing in the Shopify App Store and the developer’s own site.

Uninstalling an app revokes its access to the store. It does not always remove code it added to your theme, so check the theme as well (covered below).

Also look for custom apps, which are created inside your own admin or through a developer. A custom app is the easiest place for an unnoticed credential to live, because it issues its own Admin API access token. Open each custom app, review the API scopes it was given, and delete any you did not create or no longer need.

Check API tokens, webhooks and automations

Tokens are the quiet backdoor. Someone who copied an Admin API access token keeps access even after you change staff passwords, until that token is revoked or the app is deleted. For every custom app you keep, rotate the token. Developer documentation for how apps authenticate is at shopify.dev.

Then check where your store sends data:

  • Webhooks. Look under the notifications area of settings for webhook subscriptions. Any endpoint you do not recognise, particularly one for orders or customers, should be deleted. Apps can also register webhooks through the API, so a missing entry in the admin does not prove there are none. Uninstalling the app that owns them is the reliable fix.
  • Shopify Flow. If you use it, open each workflow and read what it triggers and where it sends data.
  • Email and notification settings. Confirm the sender address and the staff notification recipients are yours.

Inspect theme code and added scripts

The theme is where injected code usually lives. Go to Online Store, then Themes, and choose the option to edit code. Duplicate the live theme first so you have a rollback copy.

Look at these files and areas:

  • theme.liquid, where scripts loaded on every page are placed. Read every script tag and note its source domain.
  • Snippets and sections you did not create, and assets with vague or random names.
  • Inline JavaScript that decodes strings, builds script elements dynamically or sends form data to an external address.
  • Code that behaves differently for logged-in or checkout pages.

Compare the live theme against a clean copy from your theme vendor, or against an older version you trust. A file comparison tool makes unexpected differences easy to spot.

Separately, review tracking pixels and scripts configured through your store settings, such as customer events. Anything that loads third-party code on your checkout path deserves close attention, because it can read what customers type. Remove any pixel you cannot tie to a marketing or analytics tool you chose.

Remove access and rotate credentials in order

Order matters. If you change a password first, an attacker holding a live token or an extra staff account can simply continue. Use this sequence:

  1. Take a copy of the theme and note what you find, so you can explain what changed.
  2. Remove unknown staff and collaborator accounts and downgrade excessive permissions.
  3. Uninstall apps you do not use and delete unneeded custom apps.
  4. Rotate or delete API tokens and delete unrecognised webhooks.
  5. Clean the theme code and remove unknown scripts and pixels.
  6. Change the passwords of every remaining staff account, starting with the owner, and make sure two-step authentication is on.
  7. Change the password on the email account used as the store owner login, and on any other service that shares a password with it.

Also rotate credentials held outside Shopify that touch the store, such as keys used by shipping, accounting or marketing tools connected to it.

Keep it checked

Put a short review in your calendar and repeat it whenever staff or agencies change. Read an app’s requested permissions before approving it, and remove access the day a contractor finishes. The OWASP project publishes general guidance on access control and injection risks at owasp.org, which helps when you brief a developer on theme code reviews.

Frequently asked questions

Can a Shopify store be infected the way a self-hosted site is?

Not at the server level, because Shopify manages the platform. Problems come from accounts, apps, tokens and code you or your team added, which is why the checks above focus on them.

Does uninstalling an app remove everything it added?

Uninstalling removes the app’s API access, but code it placed in your theme may remain. Search the theme for leftover snippets and scripts from that app and delete them after taking a backup.

Should you contact Shopify if you find something unexpected?

If you suspect a wider compromise, or cannot remove an account or app yourself, contact Shopify Support through your admin. Keep your notes on what you found and when, as that speeds up the conversation.

We use essential cookies to make this site work and remember your preferences. We do not use advertising or analytics cookies. Privacy Policy. Cookie Policy.