Case study · Another Lahore engineering firm · 27 Nov 2026
A hacked website the host’s scan called clean, cleaned and hardened in one day.
Google had flagged the firm’s website for “links to harmful downloads”. Visitors on Windows were shown a fake verification page that told them to paste a command into their computer. The hosting company’s malware scan said everything was clean. Here is what we found, what we did, and what we left with the owner.
What the scan checked
Where the harmful code was
What we found.
- A scrambled 91 KB script inside a page-builder block on the homepage. It lived in the website’s database, which is why a scan of the files saw nothing.
- The script did not hold the fake page itself. It fetched it at visit time from a public blockchain test network, a known pattern that security researchers call EtherHiding. The attacker could change the fake page without touching the site again.
- It sat in exactly three database rows, added on 13 November by someone logged in as the site’s only admin. That points to a stolen password or session, not a hacked file.
- The core website files matched the official copies, and 18 of the 25 plugins matched theirs.
- Weak spots an attacker could use next: an add-on that accepted file uploads from anyone, old plugins with known holes, a settings file anyone on the server could change, old copies of the whole site downloadable from the web, and a server access key nobody could name.
- The server kept no visitor logs, so we could not trace where the attacker came from. We say so rather than guess.
One day, in order.
- 13 Nov
Someone logged in as the site’s only admin adds the harmful script to the homepage. It stays live for two weeks.
- 27 Nov, 15:10
We find the script from outside, without logging in, and work out how it hides.
- 15:30
Read-only server check with the owner’s permission. Full backups taken before any change.
- 15:52
Clean-up done and checked: no trace of the script on any key page.
- 16:05 to 17:00
Security and speed work: software, settings, images and fonts.
- 17:48
Google asked to review the site, after a final round of checks.
What we did.
Clean-up
- Backed up the database and files first, so nothing could be lost.
- Removed the script from the page and its saved revision, cleared the builder’s cache and scanned again for any other copy.
- Ended every login session and replaced the site’s security keys.
- Closed the open upload weakness. The upload address now refuses requests.
- Moved old site copies and backups out of public reach. Nothing was deleted.
- Installed a security plugin, ready for two-step sign-in.
Security and speed
- Secure connection everywhere: 510 old “http” entries in the database rewritten.
- Eleven unused plugins switched off and set aside, not deleted; the rest updated.
- Server software moved from PHP 7.4 to 8.3, with every key page checked after.
- Browser security headers on; scripts blocked in the uploads folder; sensitive files blocked from the web; code editing in the admin switched off.
- 4,940 images given lighter copies: 52 MB saved, one sample photo from 576 KB to 332 KB.
- Fonts served by the site itself, and browser caching switched on.
Before and after, measured the same day.
| What we checked | Before | After |
|---|---|---|
| Harmful script on the homepage | Present | Removed |
| Upload weakness anyone could use without logging in | Open | Closed |
| Server software (PHP) | 7.4, no longer supported | 8.3 |
| Plugins | 25 installed | 15 active, updated |
| Secure connection (https) | Mixed | Everywhere |
| Images | Original files only | 4,940 lighter copies, 52 MB saved |
| Homepage code | 202 KB | 140 KB |
| Fonts | Loaded from Google’s servers | Served by the site itself |
Independent check: Sucuri SiteCheck found no malware. Key pages fetched as a Windows visitor arriving from Google showed no trace of the script.
What stayed with the owner.
Some steps only the owner can take. Until they are done, we do not call a website secured, and we put that in writing.
- New passwords, set from a clean computer.
- Two-step sign-in for the admin account.
- Confirming one login session we could not match to the team, and the unnamed server key.
- Clearing the host’s page cache after changes.
- Email storage at 232 of 250 GB: close to the hosting limit.
Three things worth checking on your own site.
Ask what “clean” covered
Many host scans check files only. This attack lived in the database.
Count your admins
A single admin login without two-step sign-in was used to get in here.
Look for old copies
Zip files and old folders on the public web hand attackers a map of your site.
The free health check covers what can be seen from outside. See what it covers.
Start with a free health check of your website.
Book a 30-minute call and put your website address in the booking note. We check the site before we talk and walk you through what we found, whether or not you hire us.