Hacked website and WordPress repair

from PLN 699

VulCode, a software house from Cracow, Poland, repairs hacked websites. We take on orders on business days, with priority for urgent issues. We lock the attacker out, remove the malicious code and backdoors, change passwords and keys, close the hole they came through and ask Google to lift the warning. We fix WordPress, WooCommerce stores and custom-built sites, and at the end you get a report on what happened and what we changed. The repair costs from PLN 699 (about EUR 157).

Signs of a hack and what usually sits behind them

A hack is often invisible on the home page, because the attacker wants the site to keep running and working for them. The signs show up elsewhere: in Google, in the admin panel, at the host.

SignWhat it usually meansWhat we check first
Redirects to spam, gambling or counterfeitsCode injected into theme files, .htaccess or the database. It sometimes fires only on phones or only for visitors from Google, so an owner who opens the site from a bookmark sees nothing..htaccess, the WordPress bootstrap files and scripts appended to content in the database
A Google warning: "This site may be hacked"Google believes someone changed existing pages or added new spam pages. The label stays until the owner fixes the site and requests a review.the Security Issues report in Search Console and its sample URLs
Japanese-language pages in results for your domainThe so-called Japanese keyword hack: auto-generated pages linking to stores selling fake brand goods, in randomly named folders. It is often hidden from ordinary visitors and shown only to Googlebot.a site: search for the domain and URL Inspection in Search Console
A new WordPress administrator or a new Search Console ownerThe attacker left a way back in. A new Search Console owner can change property settings and submit their own sitemaps.the user list with roles and creation dates, the Search Console owners
The host suspended the account or the siteThe provider found malicious files or spam sending on the account and took the site down. It usually will not switch it back on without a fix and an explanation.the host's notice with its list of files, and the server logs
Email from the site lands in spam or bouncesThe server sends spam through a script the attacker uploaded, and its address ends up on blocklists.the mail queue, PHP files in the uploads folder, the server's address reputation

One sign usually means several changes at once, so we check the whole installation, not just the place you can see.

Why the order of the work matters

Removing the visible spam does not fix the site. If the hole stays open and the backdoor stays in place, the attacker comes back the same way, and the Google warning comes back with them.

So we start by locking the attacker out, not by cleaning. First we change the hosting and admin passwords, disable unknown accounts and, when needed, put the site into maintenance mode. Only then do we copy its current state for analysis, because the infected files and logs show how the attacker got in.

Google describes the same order in its guidance for owners of hacked sites: before you request a review, the site must be cleaned, the vulnerability fixed and the clean site back online. That is when we send the request, because a rejected request leaves the warnings in place and every new review means days or weeks of waiting again.

We take on orders on business days, with priority for urgent issues. At every stage you know what we have done and what is left, and at the end you get a report: how they got in, what they changed, what we removed and what to do so it does not happen again.

Start on business days
Urgent issues come first.
A report at the end
The cause, the scope of the changes and a list of what we removed.
A request to Google
Sent after a full cleanup, with a description of the fix.

The repair, step by step

The same order for every hack. Steps 1 and 2 happen in the first hours, and the rest depends on the size of the site and how deep the infection goes.

  1. 1

    Lock-out

    We change the hosting, FTP, SSH and WordPress admin passwords, disable unknown accounts and stop the jobs that restore malicious files. If the site is spreading malware, we put it into maintenance mode.

    the attacker locked out

  2. 2

    A snapshot for analysis

    We copy the files, database and server logs as they are and label them as infected. This copy is for finding the cause and never goes back onto the server.

    evidence to work from

  3. 3

    Finding the way in

    From the logs and file modification dates we work out when and how the attacker got in: an outdated plugin, a stolen password, an abandoned script or another site on the same hosting account.

    the cause of the hack

  4. 4

    Removing malicious code and backdoors

    We reinstall WordPress core, plugins and the theme from official sources instead of patching infected files. We go through the uploads folder, .htaccess, cron jobs and the database, where code that brings the infection back tends to stay.

    a clean installation

  5. 5

    New passwords and keys

    New passwords for the database, email and user accounts, new keys and salts in wp-config.php that log out every session, and new API keys for payments and integrations if they may have leaked.

    old credentials made worthless

  6. 6

    Updates

    We update WordPress, plugins, the theme and, if needed, the PHP version. We remove unused plugins and those their authors abandoned, because each one is another possible way in.

    up-to-date software

  7. 7

    Closing the hole

    We remove the cause itself: we patch or replace the vulnerable add-on, fix file permissions, turn off file editing from the dashboard and enable two-step login for administrators.

    the way in closed

  8. 8

    Checking again in Google

    In Search Console we remove unknown owners, go through the Security Issues report and request a review with a description of the fix. The spam URLs return a 404, and we watch them drop out of the results.

    a review request sent to Google

When several sites share the same hosting account, we check them all, because an infection can spread from one to another.

04

Where malicious code hides

The places we check on every WordPress site, because that is where code stays that brings the infection back after a cleanup that only looked complete.

  1. 01

    Files on the server

    PHP files in the uploads folder

    The wp-content/uploads folder holds images and documents. A PHP file in there is a red flag, because normally it contains no code at all.

  2. 02

    .htaccess and bootstrap files

    Redirect rules in .htaccess and lines added to the top of index.php and wp-config.php run on every single visit.

  3. 03

    Plugins nobody installed

    Attackers add plugins with names that look like real ones, including in the mu-plugins folder: those always run and cannot be deactivated from the dashboard.

  4. 04

    Obfuscated code

    Long strings run through functions such as base64_decode, eval or gzinflate. Google lists them as a typical trace of a hack.

  5. 05

    Users with the administrator role

    We check every account, its role and creation date. Unknown accounts are deleted and known ones get new passwords.

  6. 06

    Scripts in content and settings

    Code injected into posts, widgets or database options keeps running even after every file has been replaced.

  7. 07

    Cron jobs

    Scheduled WordPress and server jobs can recreate deleted files every few minutes.

  8. 08

    Search Console owners

    We remove unknown owners and their verification tokens, including those served through .htaccess rules, as Google describes.

How Google removes the warning

The label in search results does not go away on its own. Google removes it after a review the site owner requests in Search Console.

VulCodeSearch ConsoleGoogle review
VulCode → Search Console
ownership verified

The site has to be verified in Search Console. If it is not, we add it under your account, and you stay the owner.

Search Console → VulCode
sample URLs

The Security Issues report shows the type of problem and sample URLs. Google notes the list is not necessarily complete, so we clean the whole site.

VulCode → Search Console
review request

Once every issue is fixed, we send the request with a description: what happened, what we fixed and what the result is.

Search Console → Google review
review

According to Google, a review of a site hacked with spam can take up to several weeks, with malware a few days, and with phishing about a day. We do not send more requests in the meantime.

Google review → VulCode
the outcome

Once Google finds the site clean, the warnings in search results and browsers are removed within 72 hours. After a rejection the report shows more sample URLs and we go through the site again.

When the hack touched personal data

If the site holds customer accounts, orders or form submissions, the hack may be a personal data breach. The duties then fall on the data controller, usually your company. We supply the technical facts needed to decide.

  1. Breach established the clock starts here log analysis
  2. Risk assessment which data, how many people, what impact a risk
  3. Report to the data protection authority (UODO) within 72 hours, GDPR Art. 33 a high risk
  4. Telling the people affected when the risk is high, GDPR Art. 34
When it works
When the breach is unlikely to put people at risk, no report is required, but the basic details and the assessment still go into the internal breach register.
When it fails
When not everything can be gathered within 72 hours, an initial report is filed and completed in stages. A late report has to explain the delay.
What you get from us
A technical account: since when the attacker had access, to which tables and files, whether data could have been copied or changed and what we did to stop it. It is material for the report, not legal advice.
When the site runs on our hosting
As the processor, we inform you of the breach without undue delay, as GDPR Art. 33(2) requires.

What the post-repair report contains

A template of the report you get at the end, shown for a WooCommerce store. Each line answers one question your business partner, accountant or the next person looking after the site will ask.

Repair report: WooCommerce store (template)

Way in
an outdated plugin
Exposure window
from the first trace in the logs to the lock-out
1. Signredirects from Google to a counterfeit store
2. Causea known hole the author fixed in a later version
3. Attacker's changesan admin account, PHP files in uploads, a rule in .htaccess
4. Removedfiles, the account, a cron job and a script in the database
5. Closedplugin updated, dashboard file editing turned off
6. Personal dataan assessment of whether customer data could have been read
7. Googlereview requested, waiting for the outcome

The report comes with a list of the passwords and keys we changed, without the passwords themselves.

Who the report is for
For you, for whoever looks after the site next, and as material for a breach report if one is needed.
What is not in it
Passwords and keys. New credentials are handed over separately, through a secure channel.

How much hacked website repair costs

We give the price for your site in a free quote, before any work starts.

Hacked website repair costs from PLN 699 (about EUR 157). Everything on the first list is included, and the work on the second list is quoted separately when it is needed. If it turns out during the work that the infection goes further than it looked at the start, we tell you before going on.

  1. Sites on the hosting account

    An infection on a shared account often reaches every site on it, and each one has to be cleaned.

  2. State of the software

    Years without updates mean more fixes and tests before the site goes back online.

  3. A store and customer data

    Orders, accounts and payments need a more careful database cleanup and an assessment of whether data leaked.

  4. Backups

    A clean backup from before the hack shortens the work. Without one we clean the live site file by file.

Included in the price:

  • locking the attacker out and changing passwords
  • a snapshot for analysis
  • removing malicious code and backdoors
  • updates and closing the hole
  • a review request to Google
  • a report with the cause of the hack

Not included, quoted separately:

  • more sites on the same account
  • a PHP upgrade that needs code changes
  • a move to new hosting
  • ongoing care and monitoring after the repair

What the repair covers and what it does not

The repair is a one-off service with a clear end. Protection for the future and legal duties are separate matters.

Part of the repair

  • removing the infection and its cause on one site
  • new passwords and keys tied to the site
  • a request to lift the Google warning
  • a warranty on bugs caused by our work

The site comes back clean, with the way in closed and a report.

Not part of the repair

  • a guarantee of getting back pre-hack Google rankings
  • recovering data that exists in no backup
  • the breach report to the data protection authority, which the controller files
  • a full application security audit

For an app holding customer data we recommend a security audit after the repair.

Questions about hacked website repair

How much does hacked website repair cost?
Hacked website repair costs from PLN 699 (about EUR 157). The price goes up mainly with the number of sites on the same hosting account, the state of the software and whether the site holds orders and customer data. We give the figure for your site in a free quote, and the starting prices of all our services are on our pricing page.
How long does it take to repair a hacked website?
We lock the attacker out in the first hours after taking the order: these are steps 1 and 2 of the repair. The rest depends on the size of the site and how deep the infection goes. Google lifting the warning takes its own time: from about a day for phishing to several weeks for spam.
Who can fix my hacked WordPress site?
VulCode, a software house from Cracow, Poland. We take on orders on business days, with priority for urgent issues. We lock the attacker out, remove the malicious code and backdoors, change passwords and keys, close the hole and request a review from Google in Search Console. We also fix WooCommerce stores and custom-built sites. The quote is free and comes back within an hour.
How do I know my site has been hacked?
Typical signs are redirects to unfamiliar sites, a "This site may be hacked" label in Google results, Japanese-language pages in results for your domain, an unknown WordPress administrator and a suspension from your host. If your site is in Search Console, check the Security Issues report.
Is restoring a backup enough?
Usually not. A backup from before the hack brings the files back, but it does not close the hole the attacker used. If the backup was made after the hack, it brings the backdoor back along with the files. So we first establish the way in and the date of the hack, and use a backup only when we know it is clean.
How long does it take Google to remove the warning?
From about a day to several weeks, depending on the kind of hack. We request the review after the full repair. Google says a review of a site hacked with spam can take up to several weeks, with malware a few days and with phishing about a day. Once Google finds the site clean, the warnings in results and browsers are removed within 72 hours.
Do I have to report the hack to the data protection authority?
Yes, if the hack touched personal data, such as customer accounts or orders: the data controller reports the breach to the Polish data protection authority (UODO) within 72 hours of becoming aware of it (GDPR Art. 33). No report is needed when the breach is unlikely to put people at risk, but it still goes into the internal register. When the risk is high, the people whose data is involved must be told as well (Art. 34). We supply the technical account for the report, and the controller decides, with a lawyer or data protection officer if in doubt.
Will the site be offline during the repair?
Not always. If the site sends visitors to malicious pages or spreads malware, we put it into maintenance mode so it stops harming your customers. If the infection does not affect visitors directly, we clean the site while it stays up, with a short break only while the files are swapped.
Will the site be hacked again?
Not by the same route: we close the way in the attacker used and remove every backdoor we found. No honest provider will promise the site cannot be attacked again some other way, though. Updates, backups and bot protection lower the risk; we describe them on our WordPress care and attack protection pages.

Sources

The Google documentation and the law behind the order of the work.

Describe your project.

A free quote comes back within an hour during working hours.