{"id":9635,"date":"2020-06-09T05:31:13","date_gmt":"2020-06-09T05:31:13","guid":{"rendered":"https:\/\/www.milesweb.in\/hosting-faqs\/?p=9635"},"modified":"2022-02-18T16:16:00","modified_gmt":"2022-02-18T10:46:00","slug":"how-to-install-chkrootkit-security-scanner-on-ubuntu-18-04","status":"publish","type":"post","link":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-chkrootkit-security-scanner-on-ubuntu-18-04\/","title":{"rendered":"How To Install Chkrootkit Security Scanner On Ubuntu 18.04"},"content":{"rendered":"<h2>Brief About Chkrootkit<\/h2>\n<p>Chkrootkit is also known as Check Rootkit. It is a common Unix-based security scanner that allows you to detect rootkits on your system. Chkrootkit consists of a shell script that looks after various security issues and system binaries for rootkit modification.<\/p>\n<p>This tutorial explains how to install and configure Chkrootkit on MilesWeb Cloud Elastic Compute Service (ECS) Ubuntu 18.04 server.<\/p>\n<h2>Prerequisites<\/h2>\n<ul>\n<li>MilesWeb Cloud Instance with Ubuntu 18.04 installed.<\/li>\n<li>Your instance needs to have a root password.<\/li>\n<\/ul>\n<p>First of all, create a new ECS instance and connect to your instance as the root user.<\/p>\n<p>If you don&#8217;t know how to do it, let the MilesWeb <a href=\"https:\/\/my.milesweb.com\/clientarea.php\" target=\"_blank\" rel=\"noopener\">support team<\/a> help you with it.<\/p>\n<p>After it, log into your Ubuntu 18.04 instance and run the following command.<\/p>\n<pre class=\"trim-whitespace:false lang:default decode:true \">apt-get update -y<\/pre>\n<p>This command will update your base system with the latest available packages.<\/p>\n<h2>Install Chkrootkit<\/h2>\n<p>Remember by default, Chkrootkit is available in the Ubuntu 18.04 default repository. So, to install it just run the below command :<\/p>\n<pre class=\"trim-whitespace:false lang:default decode:true \">apt-get install chkrootkit -y<\/pre>\n<p>Once the installation is done, you can check the version of Chkrootkit using following command :<\/p>\n<pre class=\"trim-whitespace:false lang:default decode:true \">chkrootkit -V<\/pre>\n<p>Output will be :<\/p>\n<pre class=\"trim-whitespace:false lang:default decode:true \">chkrootkit version 0.52<\/pre>\n<p>To list out the options available with Chkrootkit use the following command :<\/p>\n<pre class=\"trim-whitespace:false lang:default decode:true \">chkrootkit -h<\/pre>\n<p>Run the following command to list all the available tests with Chkrootkit :<\/p>\n<pre class=\"trim-whitespace:false lang:default decode:true \">chkrootkit -l<\/pre>\n<h2>Use Chkrootkit<\/h2>\n<p>Now, run the following command to run the Chkrootkit test :<\/p>\n<pre class=\"trim-whitespace:false lang:default decode:true \">chkrootkit<\/pre>\n<p>The output will be as shown below. If any of the output shows as infected, then you will need to check :<\/p>\n<pre class=\"trim-whitespace:false lang:default decode:true \">ROOTDIR is `\/'\nChecking `amd'... not found\nChecking `basename'... not infected\nChecking `biff'... not found\nChecking `chfn'... not infected\nChecking `chsh'... not infected\nChecking `cron'... not infected\nChecking `crontab'... not infected\nChecking `date'... not infected\nChecking `du'... not infected\nChecking `dirname'... not infected\nChecking `echo'... not infected\nChecking `egrep'... not infected\nChecking `env'... not infected\nChecking `find'... not infected\nChecking `fingerd'... not found\nChecking `gpm'... not found\nChecking `grep'... not infected\nChecking `hdparm'... not infected\nChecking `su'... not infected\nChecking `ifconfig'... not infected\nChecking `inetd'... not infected\nChecking `inetdconf'... not found\nChecking `identd'... not found\nChecking `init'... not infected\nChecking `killall'... not infected\nChecking `ldsopreload'... not infected\nChecking `login'... not infected\nChecking `ls'... not infected\nChecking `lsof'... not infected\nChecking `mail'... not found\nChecking `mingetty'... not found\nChecking `netstat'... not infected\nChecking `named'... not found\nChecking `passwd'... not infected\nChecking `pidof'... not infected\nChecking `pop2'... not found\nChecking `pop3'... not found\nChecking `ps'... not infected\nChecking `pstree'... not infected\nChecking `rpcinfo'... not found\nChecking `rlogind'... not found\nChecking `rshd'... not found\nChecking `slogin'... not infected\nChecking `sendmail'... not found\nChecking `sshd'... not infected\nChecking `syslogd'... not tested\nChecking `tar'... not infected\nChecking `tcpd'... INFECTED\nChecking `tcpdump'... not infected\nChecking `top'... not infected\nChecking `telnetd'... not found\nChecking `timed'... not found\nChecking `traceroute'... not found\nChecking `vdir'... not infected\nChecking `w'... not infected\nChecking `write'... not infected<\/pre>\n<p>To list the output message with only &#8216;infected&#8217; status, run Chkrootkit with -q option :<\/p>\n<pre class=\"trim-whitespace:false lang:default decode:true \">chkrootkit -q<\/pre>\n<p>Output :<\/p>\n<pre class=\"trim-whitespace:false lang:default decode:true \">Checking `tcpd'... INFECTED\n\n\/usr\/lib\/jvm\/.java-1.11.0-openjdk-amd64.jinfo \/lib\/modules\/4.15.0-20-generic\/vdso\/.build-id\n\/lib\/modules\/4.15.0-20-generic\/vdso\/.build-id\nnot tested\nenp0s3: PACKET SNIFFER(\/lib\/systemd\/systemd-networkd[643])\nnot tested<\/pre>\n<p>Run the following command to check all the files under the specified directory :<\/p>\n<pre class=\"trim-whitespace:false lang:default decode:true \">chkrootkit -r \/opt<\/pre>\n<h2>Enable the Schedule Check<\/h2>\n<p>Chkrootkit consists of a default crontab configuration file. The daily checkup can be enabled by <strong><em>\/etc\/chkrootkit.conf file.<\/em><\/strong><\/p>\n<pre class=\"trim-whitespace:false lang:default decode:true \">nano \/etc\/chkrootkit.conf<\/pre>\n<p>Now, change this line from &#8211;<\/p>\n<pre class=\"trim-whitespace:false lang:default decode:true \">RUN_DAILY=\"false\"<\/pre>\n<p>to &#8211;<\/p>\n<pre class=\"trim-whitespace:false lang:default decode:true \">RUN_DAILY=\"true\"<\/pre>\n<p>Once you are done with all the processes, Save and Close the file.<\/p>\n<p>That&#8217;s it!<\/p>\n<p>This way you can successfully install and use Chkrootkit on Ubuntu 18.04 server. It also enables you to easily find any infected files on your system using Chkrootkit.<\/p>\n<p><strong>Also Read :<\/strong><\/p>\n<p><a href=\"https:\/\/www.milesweb.in\/hosting-faqs\/installing-pip-on-ubuntu-18-04\/\" target=\"_blank\" rel=\"noopener\"><strong>Installing PIP on Ubuntu 18.04<\/strong><\/a><\/p>\n<p><a href=\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-the-latest-mysql-on-ubuntu-18-04\/\" target=\"_blank\" rel=\"noopener\"><strong>How To Install the Latest MySQL on Ubuntu<\/strong> <strong>18.04?<\/strong><\/a><\/p>\n<p><a href=\"https:\/\/www.milesweb.in\/hosting-faqs\/install-postgresql-on-ubuntu-18-04\/\" target=\"_blank\" rel=\"noopener\"><strong>Discover the Steps to Install PostgreSQL on Ubuntu 18.04<\/strong><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Brief About Chkrootkit Chkrootkit is also known as Check Rootkit. It is a common Unix-based security scanner that allows you to detect rootkits on your system. Chkrootkit consists of a shell script that looks after various security issues and system binaries for rootkit modification. This tutorial explains how to install and configure Chkrootkit on MilesWeb [&hellip;]<\/p>\n","protected":false},"author":18,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[1487,925],"class_list":["post-9635","post","type-post","status-publish","format-standard","placeholder-for-hentry","category-web-hosting-faq","tag-chkrootkit-security-scanner","tag-ubuntu-18-04"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How To Install Chkrootkit Security Scanner On Ubuntu 18.04 - Web Hosting FAQs by MilesWeb<\/title>\n<meta name=\"description\" content=\"This article contains steps and commands needed to install the Chkrootkit security scanner on Ubuntu 18.04.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-chkrootkit-security-scanner-on-ubuntu-18-04\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Install Chkrootkit Security Scanner On Ubuntu 18.04 - Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"og:description\" content=\"This article contains steps and commands needed to install the Chkrootkit security scanner on Ubuntu 18.04.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-chkrootkit-security-scanner-on-ubuntu-18-04\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2020-06-09T05:31:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-02-18T10:46:00+00:00\" \/>\n<meta name=\"author\" content=\"Sonam Wagh\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sonam Wagh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-chkrootkit-security-scanner-on-ubuntu-18-04\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-chkrootkit-security-scanner-on-ubuntu-18-04\/\"},\"author\":{\"name\":\"Sonam Wagh\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/dc645d02823c86e07e53798ebe02c6f4\"},\"headline\":\"How To Install Chkrootkit Security Scanner On Ubuntu 18.04\",\"datePublished\":\"2020-06-09T05:31:13+00:00\",\"dateModified\":\"2022-02-18T10:46:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-chkrootkit-security-scanner-on-ubuntu-18-04\/\"},\"wordCount\":365,\"commentCount\":0,\"keywords\":[\"Chkrootkit security scanner\",\"Ubuntu 18.04\"],\"articleSection\":[\"Web Hosting FAQ\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-chkrootkit-security-scanner-on-ubuntu-18-04\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-chkrootkit-security-scanner-on-ubuntu-18-04\/\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-chkrootkit-security-scanner-on-ubuntu-18-04\/\",\"name\":\"How To Install Chkrootkit Security Scanner On Ubuntu 18.04 - Web Hosting FAQs by MilesWeb\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#website\"},\"datePublished\":\"2020-06-09T05:31:13+00:00\",\"dateModified\":\"2022-02-18T10:46:00+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/dc645d02823c86e07e53798ebe02c6f4\"},\"description\":\"This article contains steps and commands needed to install the Chkrootkit security scanner on Ubuntu 18.04.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-chkrootkit-security-scanner-on-ubuntu-18-04\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-chkrootkit-security-scanner-on-ubuntu-18-04\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-chkrootkit-security-scanner-on-ubuntu-18-04\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.in\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Install Chkrootkit Security Scanner On Ubuntu 18.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#website\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.in\/hosting-faqs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/dc645d02823c86e07e53798ebe02c6f4\",\"name\":\"Sonam Wagh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/12\/Sonam-Wagh-150x150.jpg\",\"contentUrl\":\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/12\/Sonam-Wagh-150x150.jpg\",\"caption\":\"Sonam Wagh\"},\"description\":\"With an interest in doing something creative daily, Sonam works as a Digital Marketing Executive. She likes to write technical blogs related to web hosting, digital marketing, and other IT topics. She also likes to spend her leisure time on social media to find different strategies for client engagement.\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/author\/sonam\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Install Chkrootkit Security Scanner On Ubuntu 18.04 - Web Hosting FAQs by MilesWeb","description":"This article contains steps and commands needed to install the Chkrootkit security scanner on Ubuntu 18.04.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-chkrootkit-security-scanner-on-ubuntu-18-04\/","og_locale":"en_US","og_type":"article","og_title":"How To Install Chkrootkit Security Scanner On Ubuntu 18.04 - Web Hosting FAQs by MilesWeb","og_description":"This article contains steps and commands needed to install the Chkrootkit security scanner on Ubuntu 18.04.","og_url":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-chkrootkit-security-scanner-on-ubuntu-18-04\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2020-06-09T05:31:13+00:00","article_modified_time":"2022-02-18T10:46:00+00:00","author":"Sonam Wagh","twitter_misc":{"Written by":"Sonam Wagh","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-chkrootkit-security-scanner-on-ubuntu-18-04\/#article","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-chkrootkit-security-scanner-on-ubuntu-18-04\/"},"author":{"name":"Sonam Wagh","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/dc645d02823c86e07e53798ebe02c6f4"},"headline":"How To Install Chkrootkit Security Scanner On Ubuntu 18.04","datePublished":"2020-06-09T05:31:13+00:00","dateModified":"2022-02-18T10:46:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-chkrootkit-security-scanner-on-ubuntu-18-04\/"},"wordCount":365,"commentCount":0,"keywords":["Chkrootkit security scanner","Ubuntu 18.04"],"articleSection":["Web Hosting FAQ"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-chkrootkit-security-scanner-on-ubuntu-18-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-chkrootkit-security-scanner-on-ubuntu-18-04\/","url":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-chkrootkit-security-scanner-on-ubuntu-18-04\/","name":"How To Install Chkrootkit Security Scanner On Ubuntu 18.04 - Web Hosting FAQs by MilesWeb","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website"},"datePublished":"2020-06-09T05:31:13+00:00","dateModified":"2022-02-18T10:46:00+00:00","author":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/dc645d02823c86e07e53798ebe02c6f4"},"description":"This article contains steps and commands needed to install the Chkrootkit security scanner on Ubuntu 18.04.","breadcrumb":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-chkrootkit-security-scanner-on-ubuntu-18-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-chkrootkit-security-scanner-on-ubuntu-18-04\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-chkrootkit-security-scanner-on-ubuntu-18-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.in\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"How To Install Chkrootkit Security Scanner On Ubuntu 18.04"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.in\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.in\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/dc645d02823c86e07e53798ebe02c6f4","name":"Sonam Wagh","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/12\/Sonam-Wagh-150x150.jpg","contentUrl":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/12\/Sonam-Wagh-150x150.jpg","caption":"Sonam Wagh"},"description":"With an interest in doing something creative daily, Sonam works as a Digital Marketing Executive. She likes to write technical blogs related to web hosting, digital marketing, and other IT topics. She also likes to spend her leisure time on social media to find different strategies for client engagement.","url":"https:\/\/www.milesweb.in\/hosting-faqs\/author\/sonam\/"}]}},"_links":{"self":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/9635","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=9635"}],"version-history":[{"count":2,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/9635\/revisions"}],"predecessor-version":[{"id":16124,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/9635\/revisions\/16124"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=9635"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=9635"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=9635"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}