{"id":1121,"date":"2017-02-19T13:41:07","date_gmt":"2017-02-19T18:41:07","guid":{"rendered":"http:\/\/easy-admin.ca\/?p=1121"},"modified":"2017-02-19T13:41:07","modified_gmt":"2017-02-19T18:41:07","slug":"install-chkrootkit-on-centos","status":"publish","type":"post","link":"https:\/\/easy-admin.ca\/index.php\/2017\/02\/19\/install-chkrootkit-on-centos\/","title":{"rendered":"Install chkrootkit on CentOS"},"content":{"rendered":"<p><strong>What is chkrootkit and the steps to Install chkrootkit<\/strong><\/p>\n<p>The chkrootkit is a security scanner to check if the system is infected with the \u2018rootkit\u2019.<span id=\"more-1635\"><\/span> A rootkit is a malicious software which is capable of having administrator-level access to a computer or network. The rootkit allows the hackers to take the control of a system without the user knowing it. This means that the rootkit is capable of executing files and changing system configurations on the target machine and many more which can be done only as the super user of the Linux machine.<\/p>\n<p>Please note that scanning for rootkits will not stop all attacks, it is not an active defense. If your server has been compromised then a scan will not stop the rootkit.<\/p>\n<h2>Install chkrootkit<\/h2>\n<p>The following steps will help you to install chkrootkit on CentOS.<\/p>\n<pre> \r\ncd \/usr\/local\/src\r\nwget ftp:\/\/ftp.pangeia.com.br\/pub\/seg\/pac\/chkrootkit.tar.gz\r\ntar xvf chkrootkit.tar.gz\r\ncd chkrootkit-*\r\nmake sense\r\n<\/pre>\n<p>Now, you can run the chkrootkit to scan the server. Please note that the present working directory should be \u201c\/usr\/local\/src\/chkrootkit-0.50\u201d.<\/p>\n<pre> \r\n.\/chkrootkit\r\n<\/pre>\n<p><strong>Daily scan report script<\/strong><\/p>\n<p>Create a file named scan.sh<\/p>\n<pre> \r\nvim \/etc\/cron.daily\/chkrootkit.sh\r\n<\/pre>\n<pre> \r\n#!\/bin\/bash\r\ncd \/usr\/local\/src\/chkrootkit-*\/ ; .\/chkrootkit |grep -v not| \/bin\/mail -s 'CHROOTKIT Scan Result' your@email.com\r\n<\/pre>\n<p>Make it executable<\/p>\n<pre> \r\nchmod +x \/etc\/cron.daily\/chkrootkit.sh\r\n<\/pre>\n<p>The script will email your daily scan report. Also the above steps can also be used to install chkrootkit on cPanel server. Also, please keep this in mind that, using chkrootkit, you can\u2019t remove and found 100% rootkits. You can secure your server from rootkits by ensuring that all applications and softwares are up-to-date and the system kept patched against all known vulnerabilities.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is chkrootkit and the steps to Install chkrootkit The chkrootkit is a security scanner to check if the system is infected with the \u2018rootkit\u2019. A rootkit is a malicious software which is capable of having administrator-level access to a computer or network. The rootkit allows the hackers to take the control of a system &hellip; <a href=\"https:\/\/easy-admin.ca\/index.php\/2017\/02\/19\/install-chkrootkit-on-centos\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Install chkrootkit on CentOS<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Install chkrootkit on CentOS - HP Server","description":"What is chkrootkit and the steps to Install chkrootkit The chkrootkit is a security scanner to check if the system is infected with the \u2018rootkit\u2019. A rootkit is"},"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1121","post","type-post","status-publish","format-standard","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/posts\/1121","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/comments?post=1121"}],"version-history":[{"count":0,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/posts\/1121\/revisions"}],"wp:attachment":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/media?parent=1121"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/categories?post=1121"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/tags?post=1121"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}