We had an intrusion into our server over the weekend and I'm trying to trace the tracks of the intruder. It seems they ran a perl script, causing a www-data process called init
to run at 100%. Unfortunately I don't have perl expertise, so I have no clue what this is doing:
6 my $processo =("atd","sendmail: accepting connections","rpc.idmapd","syslogd -m 0","/sbin/udevd -d","/sbin/init");
# ...
24 use IO::Socket;
25 use Socket;
26 use IO::Select;
27 chdir("/tmp");
28 $servidor="$ARGV[0]" if $ARGV[0];
29 $0="$processo"."\0"x16;;
30 my $pid=fork;
31 exit if $pid;
It seems to me the instruction in line 29 is intended to hide the process somehow. What does it do exactly?
init [3]
would it be possible that this is it? I'm not sure about the$processo
variable and how it influences$0
. – Pyrone