2 ms·
> "So we’ll just delete these files, kill the running process, and be done with it, right?" No, no, no, never! You can poke around the server to figure out how
by viraptor 11y ago
> "So we’ll just delete these files, kill the running process, and be done with it, right?"
No, no, no, never! You can poke around the server to figure out how you got attacked, but afterwards the only way to recover is to rebuild from scratch. Someone had root on the system. For all you know, you're currently running a recompiled version of kernel/init, which will recreate all the original scripts when you're not looking.
> Lessons Learned
I'd also add: learn about Apparmor / Selinux and use them in production. Even if redis was running as root, you could still prevent most of the attack (no file writing, no execution, etc.)