Hi,
Thanks for your question.
The safest way to handle a compromised backup is to avoid restoring it directly on your live site. Instead, work in a local or staging environment first.
You can then:
- Scan files using tools like ClamAV or your hosting security scanner
- Check for suspicious code (e.g. eval(base64_decode(...))) and unknown .php files
- Review the database for spam links or unknown admin users
- Replace Joomla core files with a fresh copy
- Remove and reinstall extensions from trusted sources only
Before going live:
- Update everything
- Change all passwords
- Run a final scan
⚠️ Most importantly, make sure you fix the root cause (vulnerable extension, weak password, etc.), otherwise the site may get infected again.
Regards,