nicolo
(usa Ubuntu)
Enviado em 09/05/2014 - 11:44h
Solução
http://www.linuxquestions.org/questions/slackware-14/my-first-brush-with-linux-malware-4175501872/
Não sou fera como vocês, mas parece que já aconteceu e isso resolveu:
Immutable bit strikes again
The reason that you could not remove the file as root likely was that the hacker set the "immutable" bit on it. This is one of several additional permission bits outside of the normal *nix bits.
To see if the immutable bit is set on "foo" do:
lsattr foo
The "i" below indicates that the immutable bit is set:
----i---------- foo
Turn off the immutable bit as root thusly:
chattr -i foo
Then you can remove the file.
There are other solutions to prevent a brute-force attack against ssh passwords. The best is to use a private key for ssh access. You can generate one with:
ssh-keygen -b 1024 -t dsa [-C comment] -f outputfile
Then a read of "man ssh" shows how to use it.
Alternatively, use a password of at least 12 characters which cannot be guessed. E.g., don't use "root1234", "my favorite sports team", etc.
Using a private key (with a strong passphrase) or a strong password, it is safe to allow root access.