Blockchain-Hosted Redirect Malware on a Finance Website
A mortgage broking firm's website kept redirecting visitors to malicious sites, and earlier clean-ups by the previous provider never lasted. The investigation traced it to a stolen administrator login and five stacked infections, including redirect malware that read its instructions from a cryptocurrency blockchain. The site was forensically cleaned, rebuilt from verified sources on a new server and hardened.
Visitors were being redirected to unrelated, suspicious pages. The previous provider tried several fixes, including reinstalling plugins, and each time the problem returned. Shortly afterwards the website went completely offline.
The site had been compromised for about six weeks. The attacker was logging in as a real administrator account using a stolen password, with around 130 successful logins in the final week, each from a different IP address, all with the same outdated browser fingerprint. There was no exploit or brute-force attack, which is why earlier clean-ups failed. The attacker simply logged back in and reinfected the site.
Seven separate malicious payloads were found:
- A heavily obfuscated redirect loader appended to a premium page-builder file, so it ran on every page. It read its redirect instructions from a smart contract on a public blockchain, so the destination could be changed at any time without touching the site.
- A script that intercepted cryptocurrency wallet transactions in visitors' browsers and removed malware planted by rival attackers.
- A backdoor plugin disguised as a performance module. It copied itself into the must-use plugins folder, kept an encoded copy of its own code in the database, and ran scheduled tasks to reinstall itself and contact three command servers.
- The same dropper plugin uploaded five times under harmless-sounding names, hidden from the plugins list, injecting a second blockchain-based redirect for logged-out visitors.
- A hidden off-screen frame added to a reviews plugin by a second, unrelated attacker.
- 128 casino and betting articles in several languages, plus an earlier deleted wave, which the SEO plugin had automatically submitted to search engines.
- A cloaking component that showed casino links only to search-engine crawlers, so the owner saw a normal site while search engines saw spam.
A pirated licence activator for a security plugin was also found, quietly excluding itself from that plugin's malware scans.
A full copy of the site and database was analysed offline, with a timeline of every file and database change and every component compared against official sources.
Every malicious file, hidden plugin, backdoor copy and uploaded malware archive was removed. WordPress core and every free plugin and theme were replaced with fresh official copies, and the injected code was surgically removed from the premium page builder. The database was cleaned of the spam posts, the backdoor's stored copy, the cloaking settings, the malicious scheduled tasks and the poisoned security-plugin data. The compromised administrator accounts were locked and every user was logged out.
The site was then rebuilt on a brand-new managed hosting account with a new database, new credentials and new security keys. The login page was moved to a custom address, common attack points were blocked, code execution was blocked in the uploads folder, dashboard file editing was disabled and PHP was upgraded. The DNS switch was coordinated with the client's IT provider without touching business email, and server-level page caching and SSL were set up. The site moved onto ongoing managed hosting and maintenance.
Before the DNS switch, WordPress core and all free plugins and themes were verified against official checksums. Every page was checked for injected scripts and hidden frames, search-engine crawlers were confirmed to receive the same pages as visitors, every spam URL returned not found, outbound server connections went only to legitimate services, and a full re-scan for every indicator found came back clean. Time to first byte fell to about 1.1 seconds from about 1.9 seconds, and there has been no recurrence since go-live.
Anonymised historical recovery completed by the team behind Dr Web. Scope and findings vary by website.
Get My Website Checked