Purchase Linux CDs / DVDs / Flash Drives at OSDisc.com

Welcome to Our Community

While Linux.org has been around for a while, we recently changed management and had to purge most of the content (including users). If you signed up before April 23rd, 2017 please sign up again. Thanks!

  1. More ways to get the info! - we shoot all of our new original content out as well as random messages on Twitter and our newsletter!. Twitter | Newsletter
    Dismiss Notice

Checking for damage with rootkit hunter

Discussion in 'Linux Advanced Tutorials' started by Rob, Jul 10, 2013.

  1. Rob

    Rob Administrator
    Staff Member

    Oct 27, 2011
    Likes Received:
    Damage Checking and Control with RootKit Hunter

    Hopefully, between good administration and maintenance practices, an effective firewall and a solid intrusion detection system you shouldn't have any problem with break-ins. But the world being what it is, even the unlikely can happen. To periodically check to see if all your security measures are holding up, a tool that checks for a compromised system is also a must have. One of the better tools to do this is called 'RootKit Hunter'.

    RookHit Hunter is a command-line utility that will search your machine for malicious binaries - also known as 'rootkits' - which will let the bad guys (or gals) get 'root' on your machine. As you now now, with root privileges, your machine is theirs. You have been '0wn3d' as they say in cracker land. RootKit Hunter is available at:http://www.rootkit.nl/projects/rootkit_hunter.html

    Installation is easy. Just unpack the tarball and run the install script provided. To run the utility, just do the following:
    rkhunter -c --createlogfile
    This will check everything and create a log file in /var/log/ called rkhunter.log
    Essentially, the utility has two main functions. One is to look for rootkits (logically) on the system. The other is to check binaries and other files for evidence of tampering and vulnerabilities. It will even inform you about bad practices. For example, if it finds that your SSH configuration file allows root logins, it will warn you. It will also track down suspicious looking dot files and tell you about those.

    The tool is interactive, meaning that by default, you need to push enter after the phases of checking are completed. However, you can run it from a cron job and disable this interactive mode.

    (Log in to hide this advertisement)

    The best way to approach using this is to install it and use it directly after a clean install of the entire operating system. Then use it periodically. It's a good idea to run it right before you update your system after security alerts. When you run it subsequently, you should be on the alert for false positive, as rootkit hunter makes hash checks of your binaries. A systems update could theoretically set off an alert as the checksums on the binaries should change.
    ROY likes this.
  2. PawankB

    PawankB New Member

    Jan 20, 2019
    Likes Received:
    Great tutorial, Thanks!

Share This Page