Our principle at AHA Factory is simple: a website should not get hacked in the first place.
That is why we hide the login on our clients’ websites, make two-factor authentication mandatory, keep the number of administrators small, and more.
Even so, there is no such thing as one hundred percent security. And some companies only come to us once their website has already been hacked.
Over the past few months, we have cleaned up several hacked WordPress websites. One thing became clear: the attacks have changed. And so has the question of how to restore a hacked website properly.
This article is for business owners, managing directors and anyone responsible for a WordPress website. It shows how to recognise a hack, why a backup is often not a sufficient solution and which paths lead to a clean website.
The short answer up front: if your website has been hacked, it is better not to restore a backup straight away. Secure the current state, change all passwords and make sure the web space is thoroughly cleaned before you rebuild.
Table of Contents
- Warning signs: how to tell your website has been hacked
- Causes: why websites get hacked
- Hackers are more patient today
- The consequences of a hack for businesses
- Types of malware infection
- The backup problem
- When the server itself is the problem
- Three paths to a clean website
- Clean means: provably clean
- Website hacked: a step-by-step guide
- Clean it up yourself or hire professionals?
- After the cleanup: how to keep your website secure
- An emergency plan for when it happens
- Frequently asked questions
Warning Signs: How to Tell Your Website Has Been Hacked

Many hacks go unnoticed for a long time. To the owner, the website looks perfectly normal. Yet it is infected, which means risks both now and in the future.
The following signs are the most important warning signals of a website hack.
Browser warnings and alerts: Chrome, Firefox and other browsers warn visitors about pages with malware. Instead of your website, visitors then see a red warning page.
For businesses, this is a double blow. Visitors leave, and trust suffers.
Redirects to third-party sites: Hidden redirects are a common pattern. Visitors coming from Google search end up on spam pages, fake shops or pages with viruses.
Anyone typing in the address directly, on the other hand, sees the normal website. That is exactly why this kind of hacking is often noticed so late.
Spam content and foreign pages in Google’s index: Spam links in your content are another sign of a hack. Hackers also like to create their own pages on hacked websites. They advertise medication, gambling or counterfeit brand goods.
A Google search for site:your-domain.com shows which pages are indexed. If content appears there that you do not recognise, that is a clear sign.
Unknown user accounts: New administrators that nobody created are one of the clearest warning signals.
In one case, we found 33 unauthorised administrator accounts on a single WordPress website.
Spam emails and suspicious email accounts: Sometimes the server is misused to send spam. One indication: emails from your domain suddenly land in recipients’ spam folders.
Also check whether new email accounts have been created that nobody knows about.
Slow loading times and high server load: Malware consumes resources. A website that becomes slow for no obvious reason should be checked.
Messages in Google Search Console: Google detects many hacks and reports them in Search Console under “Security issues”. You should take these messages seriously.
Causes: Why Websites Get Hacked
Most attacks are not personal. Bots scan the internet automatically for vulnerabilities.
According to W3Techs, WordPress runs on more than 40 percent of all websites worldwide. That makes the CMS particularly attractive to hackers. A single vulnerability affects a huge number of sites at once.
Outdated software and security vulnerabilities: Outdated software is the most common entry point. This applies to the WordPress core, to plugins and themes and to the PHP version on the server.
On one hacked website we took over, plugins were still at their 2016 versions. Every one of them was an open door.
Weak or reused passwords: Short passwords can often be cracked in seconds with brute-force attacks. Bots automatically try thousands of combinations. We recommend at least 16 characters and a separate password for every login.
Pirated premium plugins: Free copies of premium plugins are tempting. But they often contain hidden code that later gives hackers access.
Unused plugins and too many administrators: Every installed plugin is potential code for attackers, even when it is deactivated. Every additional administrator is another access point that needs protecting.
Insecure hosting environments: The server plays a role too. Old PHP versions, a missing firewall and weak separation between customer accounts increase the risk of attacks. Hackers deliberately exploit insecure hosting environments like these.
Phishing and stolen login details: Not every attack starts on the server. A fake login email is enough, and access data ends up with the attackers.
Insecure programming: Custom-built functions that do not properly validate input open the door to SQL injection and cross-site scripting (XSS). Attackers can use these to read data or inject code.
Hackers Are More Patient Today
In the past, a website hack was usually visible right away. A defaced homepage, spam links, a warning from Google.
Today it often works differently. Attackers install a backdoor and otherwise leave the website alone.
The access is then sold on. The actual damage happens weeks or months later.
On top of that comes speed. In July 2026, WordPress released an emergency update for two security vulnerabilities in the core of the system.
According to the security provider MalCare, attacks targeting them rose from around 15,000 to more than 900,000 per day within three weeks. The attackers kept changing their methods to get around filters. (Source: MalCare)
If you are a few weeks behind on updates, you are quickly caught up in a wave like this.
The Consequences of a Hack for Businesses
A website hack is not just a technical problem. The consequences affect the entire business.
Loss of rankings and visibility: Google downgrades hacked sites or flags them in the search results. Spam pages in the index also dilute your own content.
It can take weeks for rankings to recover after the cleanup.
Loss of trust: Visitors who are warned about your website often do not come back. Customers who were redirected to a fake shop via your site associate that with your name.
Risks to data and email: Hackers can access form data, customer data and login details. If the server is misused for spam, your own emails end up in recipients’ spam folders.
Time and effort: The longer an infection goes unnoticed, the more complex the cleanup becomes. Acting early saves time and money in almost every case.
Types of Malware Infection
Not all malware is the same. Depending on the type of infection, what the malware does and what the cleanup looks like will differ.
- Hijacking and redirects: Malicious code is inserted into files or the database and redirects visitors to other sites.
- Spam pages: Hackers generate thousands of pages with spam content. A well-known example is the Japanese keyword hack with pages in Asian characters.
- Backdoors: Hidden backdoors secure hackers’ access, even after a password change.
- Defacing: The website is visibly altered and displays the attackers’ messages.
- Cryptojacking: Code in the browser uses visitors’ computing power to mine cryptocurrencies.
- Ransomware: Data is encrypted, and the attackers demand a ransom.
In practice, we often see several types at once. A backdoor secures access, while redirects or spam earn the attackers money.
The Backup Problem

The first reaction to a hack is almost always: restore a backup. That is the right move if the backup is clean.
Today, that is often no longer the case.
Case study, backdoor in the backup: An event website was flagged as infected at the end of August. The backdoor had demonstrably been there since February.
It was well disguised as harmless program code from a well-known shop plugin. Inconspicuous to anyone not looking closely.
All the backups still available already contained the backdoor. The first restore therefore promptly put it straight back on the server.
A restore does not delete anything: There is another detail many people do not know: a restore overwrites files, but it does not delete any.
Whatever the attacker placed there additionally stays put. The website looks clean afterwards, but it is not.
Clean backups are often too old: And even if a clean backup exists, it may be six months old.
All content, pages and changes created on the website since then would be lost.
When the Server Itself Is the Problem
A second case shows how deep a website hack can go. On a company website, the client only reported that the site was not loading properly.
In fact, it had been compromised for years. Anyone typing in the address directly saw the normal website. Anyone coming from Google landed in a third-party online shop.
We found 33 unauthorised administrator accounts and four disguised malicious plugins. The server had been misused to send spam.
After all files had been completely deleted, one malicious file kept reappearing. With its original date from 2022.
Something on the server kept restoring it, and the host could not get it under control.
The consequence: a move to a new host and a rebuild on a fresh, clean server.
Because we had fully documented the old website beforehand, the rebuild took hours, not weeks.
Three Paths to a Clean Website

There is no single right solution. Which path fits depends on how deep the malware infection goes and which backups exist.
Path 1: Remove the WordPress Malware in a Targeted Way
The malicious code is found and removed, and the website stays as it is. This is the classic malware cleanup.
It works when the infection can be clearly contained. To be honest, that has become the exception recently.
Path 2: Backup as a Blueprint, Rebuild on Clean Ground
This is the path we take most often. The backup is not used for restoring, but as a blueprint.
It tells us exactly what was on the website: design, pages, content, images, forms, features.
Then the server is completely cleaned and the website is rebuilt one to one. No lengthy briefings, and the client does not have to explain everything again.
Path 3: Complete Rebuild
If there is no backup and the website has been destroyed, we rebuild it according to the client’s requirements.
This is often also an opportunity to do things better than before.
The Rule for All Three Paths
First, everything has to be provably clean. Then the building starts.
Anyone who rebuilds on an infected server is affected again from day one.
Clean Means: Provably Clean
A malware scan alone is not enough. We have seen a scanner cut the malicious code out of a file.
But the empty shell stayed in place and continued to be loaded with every page view.
What We Check During a Malware Cleanup
We check on several levels: files, database, user accounts, scheduled tasks and server configuration.
We compare the WordPress core with the original WordPress files. We look for code in places where it does not belong, for example PHP files in the uploads folder.
And we test whether anything comes back after the cleanup.
Where available, we also analyse the server’s log files. They help to identify how the attackers got in. Many hosts only keep logs for a few days, however, so the original access cannot always be reconstructed.
The Report at the End
At the end, there is a report. What was found, what was removed and what could not be checked.
For this, we use our own tools and testing routines that we have built up over many cases. This experience makes the difference between “looks clean” and “is clean”.
Website Hacked: A Step-by-Step Guide

If your website has been hacked, every day counts. At the same time, hasty measures often do more damage than the hack itself.
This step-by-step guide shows the most important measures in the right order.
Step 1: Do Not Rush to Restore
Do not restore a backup straight away. An infected backup makes the situation worse, and traces are lost.
Step 2: Secure the Current State
Back up the hacked website completely, meaning files and database. This copy serves as evidence and as a blueprint for the rebuild.
Step 3: Take the Website Offline
A maintenance mode protects visitors from malware and redirects. In severe cases, it is safer to take the site offline completely.
Step 4: Change All Passwords
Change all passwords related to the website: WordPress, hosting, FTP, database and email.
Step 5: Check User Accounts
Check whether unknown user accounts have been created. Unknown administrators are removed.
Step 6: Malware Scan and Cleanup
A malware scan with a security plugin or the host’s scanner gives you a first overview. The actual cleanup, however, takes more than a plugin.
Step 7: Notify Google
After the cleanup, request a review in Google Search Console. Only then will the warnings disappear from Google and the browser.
Step 8: Clarify Data Protection
If personal data may have been affected, a reporting obligation under Art. 33 GDPR may apply. The deadline is 72 hours. Clarify this early with your data protection officer.
Clean It Up Yourself or Hire Professionals?
Many guides online describe how to remove WordPress malware yourself. For simple cases, that can work.
With a deep infection, however, website owners quickly reach their limits. Three questions help with the assessment:
- Do you know for certain since when the website has been hacked and which backups are clean?
- Do you have access to the server, database and all files, not just the WordPress backend?
- Can you prove that nothing comes back after the cleanup?
If any of these questions remains open, professional support is worthwhile. A half-done cleanup is dangerous because it creates a false sense of security.
This may also be where we at AHA Factory come in. We take over the entire malware cleanup or support your team with specific steps. Together, we work out which approach makes sense.
Feel free to send us a short email at hallo@ahafactory.de or book an appointment directly via our website.
After the Cleanup: How to Keep Your Website Secure
A cleaned website is only as secure as the measures taken afterwards. For our client websites, these include:
- a hidden login that cannot be reached at the well-known default address
- two-factor authentication for all administrators
- as few administrators as necessary
- regular, controlled updates for WordPress, plugins and themes
- no unused plugins and themes on the server
- a security plugin with a firewall that blocks suspicious requests
- backups stored outside the server, with a provably clean starting point
- new access details for everything connected to the website
- permissions based on the principle: everyone gets only as much access as necessary
Sensitive data such as form submissions or customer data belongs only where it is really needed. Secure configurations and clear permissions protect it.
An Emergency Plan for When It Happens
Very few businesses have an emergency plan for their website. Yet in an emergency, it saves valuable time.
A good emergency plan answers four questions:
- Who is responsible internally and who needs to be informed?
- Where are the access details for hosting, domain and WordPress?
- Where are the backups, and how old is the oldest one?
- Which service provider takes care of the cleanup?
A single sheet of paper is enough. What matters is that it exists before the website gets hacked.
Frequently Asked Questions
How can I tell that my website has been hacked?
Typical signs are browser warnings, redirects to other sites, unknown user accounts, spam pages in Google’s index and messages in Google Search Console.
Some hacks, however, show no signs for a long time. Regular checks are therefore a good idea.
What should I do if my WordPress website has been hacked?
Stay calm and do not restore a backup straight away. Secure the current state, change all passwords and get professional help before you rebuild.
Can I simply restore a backup after a hack?
Only if you are sure the backup is clean. Many backdoors sit unnoticed on the server for months and are therefore included in the backups as well.
In addition, a restore does not delete any extra files the attackers placed.
Is a security plugin enough to remove malware?
A security plugin is a good starting point for the scan. For a thorough cleanup, it is often not enough.
Scanners detect known patterns. Well-disguised code or manipulations outside WordPress can easily go undetected.
How long does a malware cleanup take?
That depends on the infection. A contained infection can sometimes be cleaned up within a few hours.
A deep infection that requires a rebuild takes longer, especially if the server itself is affected.
Do I have to report a hack?
If personal data may have been affected, you may be obliged to notify the data protection authority. The deadline is 72 hours after becoming aware of it.
It is best to clarify with your data protection officer whether a report is necessary.
How do I protect my website from being hacked again?
The most important measures are regular updates, a hidden login, two-factor authentication, strong passwords, few administrators and clean backups stored outside the server.
Are emails also affected after a website hack?
That is possible. If email accounts are hosted with the same provider, their passwords should also be changed.
If the server was misused for spam, your domain’s reputation may suffer. This affects the delivery of your own emails.
Conclusion
A hack is frustrating. But it can be fixed.
What matters is assessing the situation correctly and choosing the right path: removing the malware in a targeted way, rebuilding based on the backup or starting over completely.
If your website is affected or you want to make sure it never gets that far, get in touch. We will look at your situation and find the solution that fits.

