I have a fairly busy webserver, with a secured /tmp directory:
CODE
/usr/tmpDSK /tmp ext3 loop,rw,noexec,nosuid,nodev 0 0
/tmp /var/tmp ext3 rw,noexec,nosuid,nodev,bind 0 0
/tmp /var/tmp ext3 rw,noexec,nosuid,nodev,bind 0 0
however once in a while (becoming more frequently) a script seems to get itself running and typically connects as an icrd and runs some inane command which uses up the CPU.
After I find this I always run the rootkit scans and ls -la the /tmp directories. I often find a dirctory with some scripts in and so I delete them and then grep through domlogs looking for one of the following:
wget, LWP or Simple (and not 404)
Now, wget is pretty secure:
CODE
-r-x------ 1 root wheel 205876 Oct 20 2005 /usr/bin/wget*
But today a command was running, from perl:
CODE
sh -i
This was connected on ircd but I can't find anything on the server that indicates how the script was running. I updated phpBB, which was running 2.0.18 and will see if that stops the problem but does anyone have any tips on trying to stop this sort of breach occurring?
Should I be more worried other than the annoyance of these scripts if my /tmp dir is secured?
Is it possible to firewall off ircd outbound connections?
Any ideas would be gratefully received!