Hello!
I need some advices. Previously I found strange processes that run under some of my client. The processes are look like this :
I ran lsof -p PID to find out more about this process. But it executes /usr/bin/perl like this :
I've tried to scan using Clamav and quarantine all malware that I found. But the process is coming back again, then I look into cron of the user. I found this cron :
I deleted the cron, but it came back again.
Some people gave me advices to track down the mailicious file using the start time of the process and search it in domlogs. It worked, but not for a long time.
So my questions are does anyone experience this?
How to stop this from happening? Please give me advice to prevent this.
Thank you for the help!
I need some advices. Previously I found strange processes that run under some of my client. The processes are look like this :
Code:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
2801299 $USER 20 0 143780 5284 1168 S 1,6 0,0 2:51.33 sendmail
3300210 $USER 20 0 143792 5324 1196 S 1,6 0,0 1:12.80 postfix
3769754 $USER 20 0 45488 8060 676 S 1,6 0,0 0:00.89 sendmail
2305990 $USER 20 0 143792 5316 1196 S 0,8 0,0 4:33.10 sendmail
2305991 $USER 20 0 143780 5284 1168 S 0,8 0,0 4:33.17 sendmail
2815191 $USER 20 0 143780 5284 1168 S 0,8 0,0 2:48.08 postfix
3276506 $USER 20 0 143780 5284 1168 S 0,8 0,0 1:16.48 postfix
3276507 $USER 20 0 143792 5316 1196 S 0,8 0,0 1:16.47 postfix
3300213 $USER 20 0 143792 5324 1196 S 0,8 0,0 1:12.76 postfix
2801300 $USER 20 0 143780 5288 1168 S 0,0 0,0 2:51.34 sendmail
2815192 $USER 20 0 143780 5284 1168 S 0,0 0,0 2:48.15 postfix
Code:
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
postfix 2815192 $USER cwd DIR 253,0 4096 3295856 /
postfix 2815192 $USER rtd DIR 253,0 4096 3295856 /
postfix 2815192 $USER txt REG 253,0 11408 3312043 /usr/bin/perl
postfix 2815192 $USER mem REG 253,0 86888 4194377 /usr/lib64/perl5/auto/POSIX/POSIX.so
postfix 2815192 $USER mem REG 253,0 19520 4194342 /usr/lib64/perl5/auto/Fcntl/Fcntl.so
postfix 2815192 $USER mem REG 253,0 4489097 /usr/local/lib64/perl5/auto/Socket/Socket.so (path inode=26488125)
postfix 2815192 $USER mem REG 253,0 19808 4194359 /usr/lib64/perl5/auto/IO/IO.so
postfix 2815192 $USER mem REG 253,0 106070960 3553880 /usr/lib/locale/locale-archive
postfix 2815192 $USER mem REG 253,0 11384 3303184 /lib64/libfreebl3.so
postfix 2815192 $USER mem REG 253,0 2127336 3279802 /lib64/libc-2.17.so
postfix 2815192 $USER mem REG 253,0 144792 3277399 /lib64/libpthread-2.17.so
postfix 2815192 $USER mem REG 253,0 14872 3287679 /lib64/libutil-2.17.so
postfix 2815192 $USER mem REG 253,0 41080 3287651 /lib64/libcrypt-2.17.so
postfix 2815192 $USER mem REG 253,0 1139680 3287655 /lib64/libm-2.17.so
postfix 2815192 $USER mem REG 253,0 19776 3287653 /lib64/libdl-2.17.so
postfix 2815192 $USER mem REG 253,0 113600 3287657 /lib64/libnsl-2.17.so
postfix 2815192 $USER mem REG 253,0 111096 3287673 /lib64/libresolv-2.17.so
postfix 2815192 $USER mem REG 253,0 1647272 4065914 /usr/lib64/perl5/CORE/libperl.so
postfix 2815192 $USER mem REG 253,0 164608 3287602 /lib64/ld-2.17.so
postfix 2815192 $USER 0r CHR 1,3 0t0 3312383 /dev/null
postfix 2815192 $USER 1w CHR 1,3 0t0 3312383 /dev/null
postfix 2815192 $USER 2w CHR 1,3 0t0 3312383 /dev/null
postfix 2815192 $USER 3u IPv4 723790372 0t0 TCP my.server.hostname.com:37160->77.72.83.84:tacnews (SYN_SENT)
Code:
*/10 * * * * perl /var/tmp/RICPHngaO >/dev/null 2>&1
Some people gave me advices to track down the mailicious file using the start time of the process and search it in domlogs. It worked, but not for a long time.
So my questions are does anyone experience this?
How to stop this from happening? Please give me advice to prevent this.
Thank you for the help!