This scenario is a composite, built from WordPress and WooCommerce incidents of the kind we see regularly, not a single client. At 11:40 on a Friday night, the operations lead of a mid-sized Indian skincare brand noticed an administrator login from a country the brand did not sell to, and an order export running far faster than usual. The store had around 80,000 registered customers and took payments through a gateway's hosted checkout. What happened over the next 90 minutes, and the weeks after, shows how a WordPress incident should be handled.
The competing pressures
Three things were true at once. The compromise was live, and nobody knew yet what else the attacker could reach. Locking everything down hard could take the storefront offline on a weekend, costing real revenue. And the reporting clocks had started: CERT-In's directions require specified incidents to be reported within six hours, and customer personal data was clearly involved. Good incident response balances all three rather than picking one.
Minutes 0 to 30: contain without destroying evidence
The first steps aimed to stop the attacker without wiping the traces needed later.
- Took a full snapshot of the server and database before changing anything.
- Disabled the suspicious admin account and forced logout of all sessions by rotating WordPress salts.
- Reset passwords for every administrator, the hosting panel, the database and SFTP, and turned on two-factor authentication for all admins.
- Put the store into maintenance mode for checkout only, keeping product pages live.
- Blocked the attacker's IP ranges at the CDN and turned on stricter web application firewall rules.
Minutes 30 to 90: scope the damage
With the attacker locked out, the team worked out what had happened. Web server and WordPress activity logs showed the admin account had been created two days earlier through a known vulnerability in an outdated plugin that handled product imports. The attacker had installed a small web shell in the uploads folder, exported customer names, emails, phone numbers and addresses, and was starting a second export when they were noticed.
Because card payments went through the gateway's hosted checkout, no card numbers had ever been stored on the site, and checks of the checkout pages found no injected script. That narrowed the incident to personal data.
The team also checked whether the attacker had touched anything beyond the site: the hosting account, the email service used for order notifications and the shared drive where the agency kept credentials. Nothing else was affected, but that check is what allowed the brand to tell customers the scope with confidence.
Reporting duties in India
The brand reported the incident to CERT-In within the six-hour window, using the details known at the time and updating later. Its counsel reviewed obligations under the Digital Personal Data Protection Act and its Rules, which add notification to the Data Protection Board and to affected customers as their phased obligations take effect. Customers were told what data was taken, that no payment card data was involved, and to be wary of phishing using their details. Clear, early communication reduced complaints and support load.
The clean-up
Updating the plugin was not enough, because the attacker had planted a backdoor. The team rebuilt the site from a clean copy of WordPress core, a reviewed theme and fresh plugin downloads, restored only the database content after checking it for injected users and options, and moved media files across after scanning them. All keys and API credentials, including the payment gateway, email service and courier integrations, were rotated.
The lasting fixes
Over the following three weeks the brand made changes that would have stopped or caught the attack earlier.
- Automatic updates for plugins and themes, and removal of eleven inactive plugins.
- Two-factor authentication and named accounts for every admin, including agency staff.
- PHP execution blocked in the uploads folder, and file editing disabled in the dashboard.
- Alerts on new admin accounts and large customer exports.
- Off-server daily backups with a tested restore.
- A managed detection service watching the server and WordPress logs out of hours.
Lessons for other WordPress stores
An outdated plugin was the way in, as it is in most WordPress compromises. Keeping card data out of the site through the gateway's hosted checkout turned a potential card breach into a smaller personal data incident. And a snapshot before any clean-up made the investigation and the reporting possible. Our guide to WordPress theme and plugin vulnerabilities covers prevention in more detail.
If you are dealing with a live incident, our incident response team can help contain it and handle the reporting. For prevention, run our free website vulnerability scanner, and see our ecommerce page for ongoing support.
Frequently asked questions
Our WordPress site has been hacked. What do we do first?
Do we have to report it in India?
Isn't updating the vulnerable plugin enough?
How does a WooCommerce store avoid leaking card data?
Get help with a live incident
We contain WordPress and WooCommerce compromises, preserve evidence, handle CERT-In reporting and rebuild the site clean.

