In this article we document the complete detection and cleanup process for this infection on Joomla sites running SP Page Builder 6.6.1 or earlier versions: how to identify webshells, remove persistent backdoors injected into .htaccess and .user.ini, revoke unauthorized SSH access, clear malicious crontabs, and permanently close the vulnerability by updating to SP Page Builder 6.6.2.
1. Confirm your site is actually infected
Check all `.htaccess` files for `auto_prepend_file`
Check all `.user.ini` files for `auto_prepend_file`
Open the referenced file — if it contains `shell_exec`, `exec`, `system` it is a webshell
2. Stop persistence first
Check and clear Cron Jobs in cPanel
Find and delete `/home/user/authorized_keys` if it exists, or check `.ssh/authorized_keys`
Search for hidden PHP files in `/images/`, `/media/`, `/tmp/` (we used FileZilla to detect these files)
3. Remove malicious files
Delete all webshells and their folders
Remove the `auto_prepend_file` line from `.htaccess` and `.user.ini`
Check `templates/***/index.php` — remove malicious `@include_once` at the top of the file
Check `configuration.php` — remove malicious `@include_once` at the top of the file
4. Clean Joomla
Delete Super Administrator accounts with `@secure.local` emails
Check installed extensions in the database for unrecognized components
Review recently modified content
5. Revoke compromised access
Change cPanel password
Change all database passwords or database user passwords
Update `configuration.php` with the new database credentials and users
Change Joomla administrator passwords
Enable 2FA on the Joomla administrator panel if possible
6. Close the vulnerability
Update SP Page Builder to 6.6.2
Verify version in database: `SELECT element, JSON_UNQUOTE(JSON_EXTRACT(manifest_cache, '$.version')) as version FROM prefix_extensions WHERE element = 'com_sppagebuilder';`
Update third-party extensions weekly. This attack was possible because of an outdated extension, not the Joomla core. A single vulnerable extension is enough to compromise an entire hosting account and all sites within it.
Contact us by calling or messaging on WhatsApp at +57 3332423060 if you need assistance with this vulnerability. We are here to help, we speak english.