Overview:
Security-compromised cPanel accounts can be very time-consuming and difficult to resolve and often require security expertise to resolve the issue along with web design to correct any impacts on your site, hence why we recommend cleaning them up.
Method:
Perform ImmunifyAV Scan (Completed from WHM).
Understanding which files are infected and when they became infected is the starting point.
Assess recovery from backup.
This is the best way to recover from any compromise as long as you have back ups that predate the security compromise.
Check files from ImmunifyAV Scan.
Remove each of the infected files or clean them up if possible.
This can be very difficult and may mean that your site no longer works if critical files to the operation of your site are removed.
Update cPanel/Wordpress Passwords.
Update all plugins/themes.
Use Sucuri free scan for further investigation and a secondary review point.
https://sitecheck.sucuri.net/ gives you an alternative scan assessment point to ensure that the site is most likely to be clean.
Use Sucuri paid scan and investigation to resolve fully.