-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Fri, 20 Jun 2003 17:38:38 -0400, Reuben D. Budiardja wrote:
> I am working to recover a server that's been hacked. The chkrootkit tool shows > that some binary (eg 'ls', 'ps', 'top') has been changed (infected) by the > hacker. > > I am trying to reinstall to from rpm packages using 'rpm -ivh --force' but rpm > complain cannot unlink those files. So as root I tried to remove it, and fail > also. I even get the 'rm' binary from another trusted machine and use that > binary in case the 'rm' in the machine has been compromised also. > > So, basically my question is, how do I remove those files ? or why can't I > remove it, eventhough I am root ? I tried to boot as single user and it > didn't help either. > > The permission of the file and directory are as follows (the files is in > directory /bin and /usr/bin): > > -rwxr-xr-x 1 root root 36692 Dec 13 2001 ls > -rwxr-xr-x 1 root root 32756 Dec 13 2001 ps > -rwxr-xr-x 1 root root 30640 Dec 13 2001 netstat > -rwxr-xr-x 1 root root 48856 Sep 25 1983 top - -snip- With "ls" you will fail to detect the hacker's changes. Use "lsattr" and read about it in "man lsattr". - -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE+83+T0iMVcrivHFQRAuZeAJ9C7TymRz1MZH1A+qZROPhQ27Ul/ACfaprZ 7HvHgFx+sGuR+dLsZ1JFVLE= =s6Db -----END PGP SIGNATURE----- -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
