Check Your Server Security
Your server is compromised, and you do not even realize it happened since the actions made by attacker do not affect your server functionality? Sadly to say, it is a fact, and yes, you may never find that your machine was compromised. Get the creeps?
For sure, it is good from time to time to check your server security, to see if any strange activities/processes are in your system. Check if your server resources are affected.
~ You could check CPU usage by issuing top command. Look for applications/scripts that consume your CPU. ~ Check for strange processes with ps -awux command. ~ Check your /tmp directory and also your /var/tmp directory for scripts/binaries copied there. ~ When a server is compromised, sometimes the attacker uses it to host an IRC bot (like psybnc or eggdrop) that connects to port 6667. You could check if any of your applications connect to that port with sockstat: #sockstat | grep 6667 ~ If there is not much traffic on your server, you could use netstat command to see if suspect connections are made: #netstat –a ~ At a regular period of times, install and run a rootkit finder application (for example /usr/ports/security/rkhunter). ~ Check your open ports with nmap. See if you have other open ports than the ones you use for your running services.
Feel much better now?
|