How to Remove Malware from a Hacked phpBB or Forum Site
Forums like phpBB are common targets because they have many user accounts and public posting. A compromise often shows up as spam posts, injected redirects, or malicious files. Cleaning a forum means removing the malware, clearing the spam, securing accounts, and patching whatever let it in.
Step 1: Secure access
Change your forum admin, cPanel, database and FTP passwords. Take a full backup before you begin.
Step 2: Find and remove malicious files
Run a malware scan and check for recently modified files, unfamiliar PHP in upload and cache folders, and webshells. Restore a clean pre-infection backup, or remove malicious files and replace the forum's core files with official copies of your version.
Step 3: Clear spam and injected content
Spam bots may have created posts, accounts and signatures loaded with links. Remove spam accounts, delete their posts, and check the database for injected content and redirects.
Step 4: Secure user accounts
If the user database may have been accessed, require password resets and review admin and moderator accounts for unauthorised additions. Strengthen registration defences (such as captcha and approval) to reduce spam bots.
Step 5: Patch and harden
Update the forum software and any extensions or mods, since outdated forum software is a frequent entry point, then follow the hardening checklist.
Frequently asked questions
My forum is full of spam posts — is that a hack?
It may be spam bots rather than a deep compromise, but heavy spam can accompany or lead to one. Clean the spam, tighten registration, and scan for malicious files to be sure.
Should users change their passwords?
If the database may have been accessed, yes — require resets and consider forcing them. Never store or handle passwords insecurely when rebuilding.
How do I stop the spam returning?
Add captcha, enable account approval or email verification, and keep the forum software updated. Blocking known bad IPs and bad bots helps too.
Was this article helpful?