Why a Hacked Site Gets Reinfected After You Clean It
· 8 min read

You find the shell, delete it, and scan again: all clear. Three days later, the same customer opens a ticket about the same redirect. It is tempting to call it bad luck, or a new attack.
Usually it is neither. The first cleanup removed what was visible and left behind whatever put it there. The malware samples below, taken from real sites, show how that happens and why the order of your cleanup matters.