Shopify is a hosted platform. Shopify runs and patches the servers and the core software, so you have no PHP, plugins folder or server files to inspect. A compromise on Shopify usually comes through the parts you control: staff accounts, installed apps, theme code and third-party scripts. This guide shows where to look for each and what to do first.
Why compromise looks different on Shopify
On a self-hosted site, an attacker may drop files onto a server. On Shopify, the usual routes are a stolen staff login, an app with more access than it needs, or a script added to your theme or tracking setup. The checks below follow those routes.
Many signs also have harmless explanations. A colleague may have edited the theme, or an agency may have installed an app. Treat each sign as a question to answer, not proof of an attack.
Signs to look for
Work through these areas in order. Each one takes only a few minutes.
Staff accounts and permissions
Open the Users settings in your Shopify admin and review every staff account and collaborator account. Look for names you do not recognise, accounts for people who have left, and accounts with broader permissions than their job needs. An unfamiliar account with full permissions is one of the clearest warning signs.
Also look for sign-in alerts or security emails from Shopify that you did not expect, and for staff members who report being logged out or unable to sign in.
Apps you did not install
Check the list of installed apps and sales channels. Look for apps nobody remembers adding, apps from unfamiliar developers, and apps that request access to orders, customers or themes without a clear reason. An app you no longer use still holds its permissions until you remove it.
Changed theme code
In the theme editor, the code view lets you read your Liquid, JavaScript and CSS files. Look for:
- Script tags that load from domains you do not recognise.
- Long blocks of obfuscated or encoded JavaScript, especially near the end of
theme.liquidor in snippet files. - Edits dated when nobody on your team was working on the theme.
- Code that references payment forms, login forms or customer details but is not part of your theme.
If your theme shows saved versions, compare them with an earlier copy. If you keep a clean duplicate of your theme, compare the live theme against it.
Redirects and changed content
Review your URL redirects list. Unexpected redirects from product or collection pages to unknown domains are a strong sign of tampering. Also check whether product descriptions, page content or navigation links have been changed to point to other sites, and whether your domain settings still match what you set up.
Injected scripts and tracking pixels
Review the customer events and pixel settings, plus any tracking or marketing tags you have added. A script you did not add, or one that loads from an unknown host, can capture visitor data or redirect people. Browse your own storefront in a private window and note anything odd: pop-ups, fake notices, or pages that send you elsewhere.
Spam pages and search warnings
Search for your store name together with unrelated words such as pharmacy or casino terms, and see whether odd pages from your domain appear. In Google Search Console, check the Security issues and Manual actions reports, and review the pages that receive impressions. Warnings in the browser or in search results saying a site is deceptive or unsafe also deserve immediate attention. Because Shopify controls the platform, strange pages on your domain often come from redirects, apps or injected scripts rather than uploaded files.
Other signals
- Customers reporting unexpected charges, phishing-style emails that mention your store, or checkout behaving oddly.
- Changes to payout details, notification emails or store contact information that you did not make.
- Orders, discounts or gift cards you did not create.
How to confirm
Before you act, gather evidence so you can tell a real incident from a team change.
- Ask your team and any agency or freelancer whether they changed accounts, apps or code recently.
- Take screenshots of the user list, app list, redirects and any suspicious code before you change anything.
- Copy the suspicious code into a text file so you can show it to support or a developer.
- View your storefront in a private browser window and again on a mobile connection, since some injected scripts target only certain visitors.
- Check Search Console for security and indexing notices.
If an account, app or code block cannot be explained by anyone on your team, treat it as unauthorised.
First steps to take
Act in this order so you cut off access before you clean up.
- Secure the owner account. Change the password and make sure two-step authentication is on. Do the same for the email address tied to the account.
- Remove unknown or unneeded staff accounts. Reduce permissions for the rest to what each person needs, and require everyone to use two-step authentication.
- Uninstall unknown or unused apps. Then review which remaining apps can access your data, and update the sign-in details of any external services they connect to.
- Clean the theme. Remove injected code, or restore from a clean copy of the theme and re-apply your legitimate changes. Check every template and snippet, not only the main layout file.
- Delete bad redirects and pixels. Remove redirects you did not create and any custom pixel or tracking script you cannot account for.
- Contact Shopify support. Describe what you found and attach your screenshots. Support can advise on account-level problems you cannot see yourself.
- Change related credentials. Rotate passwords for your email, domain registrar, and any connected services, since an attacker with one set may have others.
If customer data or payment information may have been exposed, check the notification rules that apply where you and your customers are, and consider asking a qualified adviser before you publish any statement.
Reducing the chance of a repeat
- Give each person their own staff account, never a shared login.
- Review users and apps on a regular schedule, and after any staff or agency change.
- Keep a clean duplicate of your theme and make edits on a copy first.
- Install apps only from the Shopify App Store, and read what access they request.
- Watch Search Console for security notices.
For background on common web weaknesses, see the OWASP Top Ten. For Shopify specifics, the Shopify Help Center covers staff permissions and account security, and Shopify developer documentation covers themes and apps. The OWASP Top Ten explains the general risk categories behind injected scripts and weak access control.
Frequently asked questions
Can Shopify itself be hacked like a self-hosted site?
Shopify maintains the platform, so the problems store owners usually face come from accounts, apps, theme code or third-party scripts. That is why your checks should focus on those four areas.
Will deleting a suspicious app fix everything?
Not always. Removing the app stops its access, but code it added to your theme or settings may remain. Check your theme files, redirects and pixels after you remove it.
Should I restore my theme from an older version?
It can help if you know the older copy is clean. Compare it first, and re-apply only legitimate changes. Restoring does nothing about a stolen password or an app with access, so secure accounts and apps as well.