To clean up and prevent SocGholish malware, update your admin credentials, check for malicious administrators, remove unused plugins and themes, delete malicious code, patch all software, and consider using a website firewall. These steps can help mitigate risk and protect your website from future attacks.