Ask HN: How do/would you deal with your website being hacked?
Additionally, is this something you prepare for, as part of a disaster recovery plan so to speak and what is your plan of action should an attack be carried out?
Additionally, is this something you prepare for, as part of a disaster recovery plan so to speak and what is your plan of action should an attack be carried out?
If your site was only defaced, you need to patch or reconfigure your web stack so it doesn't happen again. And restore your content from known good backups.
If the OS was compromised, you must format and reinstall everything. This is because 'root kits' may be undetectable once they are installed by attackers.
Depending on the risk to other systems, if the OS is not open source I always format and reinstall.
If not, how do you know if backdoors were installed, if the databases were modified, if local (known or unknown) exploits were used to gain root or if private ssh keys were stolen or used to gain access to other servers?