Convert more holiday shoppers with express checkout and buy now, pay later. Learn more

How do I respond if my store has been compromised?

If you think your site may have been compromised, it is important to act quickly. This page explains how to contain the problem, who to report it to, and how to get help.

How can I tell if my store has been compromised?

↑ Back to top

Signs include:

  • Your hosting provider or a security plugin you use has flagged a file on your site as infected and/or modified, or your host suspends your site for similar reasons.
  • Plugins, themes, or administrator accounts that you do not recognize.
  • Card fields in checkout that look different, appear twice, or ask for more than usual.
  • Customers say they saw a payment error and had to enter their card details again.
  • Customers tell you about fraud on their cards after buying from your store.
  • Your browser, a search engine, or your customers’ antivirus software warns people about your site, or visitors are sent to other sites.

Malicious code often hides from logged-in administrators, so your checkout might look normal to you. Check it in a private browser window while logged out.

What should I do first?

↑ Back to top
  1. Put your store into Coming soon mode under WooCommerce > Settings > Site visibility. This stops shoppers from submitting new orders while you deal with the problem, and it does not delete anything.
  2. Before you delete anything, keep copies of the infected files and your server logs, and ask your hosting provider to take a full backup of your site and keep their logs too. These may be needed to work out what happened and for how long. Write down what you noticed and when, and note each step you take.
  3. Remove the malicious code, along with any unfamiliar plugins, themes, or admin accounts. Your hosting provider may be able to help with this.
  4. Scan the computers you use for malware. Attackers sometimes steal passwords from the store owner’s own computer.
  5. Reset the password for every administrator on your site to a strong, unique value, and change your hosting account and FTP/SSH passwords. Ask your host or developer to reset your site’s WordPress security keys, which signs everyone out. Turn on two-step authentication for administrator accounts.
  6. Install a reputable security plugin and run a full scan to confirm the site is clean. Then check your checkout again in a private browser window while you’re logged out.
  7. Update WordPress, WooCommerce, and all your plugins and themes.
  8. When your site is clean, set Site visibility back to Live.

WordPress.org’s FAQ My site was hacked has more detail on cleaning up a site. If you are not comfortable doing these steps yourself, your hosting provider, developer, or a security professional can help.

Who do I report it to?

↑ Back to top

WooPayments is built in partnership with Stripe, which processes your payments and works with the card networks. If the malicious code could’ve captured your customers’ card details, or you aren’t sure, report the incident to Stripe support.

Contact Stripe as soon as you can, even if you are still cleaning up your site. If Stripe has already emailed you about it, please follow the steps in that email.

It helps to include:

  • Your store address and the email address on your WooPayments account.
  • When you think the malicious code was first active and when it was removed.
  • Roughly how many orders and customers may be affected.
  • What you have done so far to contain it.

Stripe may follow up with questions, a data compromise report to complete, or a request for proof of your PCI DSS compliance, such as a Self-Assessment Questionnaire (SAQ).

Do I need to tell my customers?

↑ Back to top

Depending on where your business and your customers are, you may need to notify a data protection regulator and the customers affected. The rules vary by country and region, so we recommend speaking with a legal adviser about what applies to you.

Some of these deadlines are short and start when you find out about the problem, not when cleanup is finished, so speak to an adviser early.

What about PCI compliance?

↑ Back to top

See Is WooPayments PCI Compliant? for what WooPayments covers.

For general guidance on keeping payments secure, see the PCI Security Standards Council’s Guide to Safe Payments.

Related Products

WooCommerce Subscriptions is a WooCommerce extension that lets customers subscribe to your products or...

Offer add-ons like gift wrapping, special messages or other special options for your products.

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.