{"id":31586,"date":"2020-03-16T13:22:21","date_gmt":"2020-03-16T18:22:21","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=31586"},"modified":"2022-06-03T03:33:06","modified_gmt":"2022-06-03T08:33:06","slug":"how-to-install-clamav-on-debian-9-and-scan-for-vulnerabilities","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-clamav-on-debian-9-and-scan-for-vulnerabilities\/","title":{"rendered":"How to Install ClamAV on Debian 9 and Scan For Vulnerabilities"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div>\r\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"742\" height=\"372\" class=\"wp-image-32471\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/03\/how-to-install-clamav-on-debian9-and-scan-for-vulnerabilities.jpg\" alt=\"\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/03\/how-to-install-clamav-on-debian9-and-scan-for-vulnerabilities.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/03\/how-to-install-clamav-on-debian9-and-scan-for-vulnerabilities-300x150.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/03\/how-to-install-clamav-on-debian9-and-scan-for-vulnerabilities-150x75.jpg 150w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/figure>\r\n\r\n\r\n\r\n<p>In this tutorial, we&#8217;ll be explaining how to install ClamAV on your <a href=\"https:\/\/www.rosehosting.com\/debian-hosting.html\">Debian 9 VPS<\/a>, as well as how to use it to check for and remove any malware or security vulnerabilities.<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"alignright\"><img decoding=\"async\" width=\"112\" height=\"105\" class=\"wp-image-32472\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/03\/setting-up-clamav-antivirus-security-software-on-debian9.jpg\" alt=\"\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<p class=\"page-header\"><strong>Clam AntiVirus (ClamAV)<\/strong> is an open-source anti-virus framework used by millions of people and companies all around the world, providing free malware protection by default for everyone. It is especially effective on email servers, as it works on just about all possible MTAs (postfix, exim, etc).\u00a0 It is easy to set up, customizable and has a reliable method of virus definition updates.<\/p>\r\n\r\n\r\n\r\n<p class=\"page-header\">ClamAV is written in C\/C++ and is currently maintained by Cisco Systems. It is licensed under GNU General Public License and at the time of writing this article, the latest stable version is currently 0.101.2. Let&#8217;s get started with the installation.<\/p>\r\n\r\n\r\n\r\n<p><!--more--><\/p>\r\n\r\n\r\n\r\n<p>First, let&#8217;s go over some of the most important features provided by ClamAV<b>:<\/b><\/p>\r\n\r\n\r\n\r\n<div class=\"col-lg-4 col-md-6 col-sm-6 col-xs-12\">\r\n<ul>\r\n<li>Powerful command-line based scanner<\/li>\r\n<li>On-Access Scanning capabilities<\/li>\r\n<li>Configurable background scanning behavior<\/li>\r\n<li>Provides milter interface for Sendmail service<\/li>\r\n<li>A robust, consistent, and reliable method of updating the virus definition database<\/li>\r\n<li>Ability to scan various archive file-formats including Zip, Rar, Tar, Gzip, Bzip, and others<\/li>\r\n<li>Ability to scan different mail file formats<\/li>\r\n<\/ul>\r\n<\/div>\r\n\r\n\r\n\r\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69ef58eadcb9e\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69ef58eadcb9e\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-clamav-on-debian-9-and-scan-for-vulnerabilities\/#Step-1-Checking-for-Updates-and-Dependencies\" >Step 1: Checking for Updates and Dependencies<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-clamav-on-debian-9-and-scan-for-vulnerabilities\/#Step-2-Installing-ClamAV\" >Step 2: Installing ClamAV\u00a0<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-clamav-on-debian-9-and-scan-for-vulnerabilities\/#Step-3-Configuring-ClamAV\" >Step 3: Configuring ClamAV\u00a0<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-clamav-on-debian-9-and-scan-for-vulnerabilities\/#Testing-ClamAV\" >Testing ClamAV\u00a0<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-clamav-on-debian-9-and-scan-for-vulnerabilities\/#Starting-a-scan-with-ClamAV\" >Starting a scan with ClamAV\u00a0<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\" id=\"h-step-1-checking-for-updates-and-dependencies\"><span class=\"ez-toc-section\" id=\"Step-1-Checking-for-Updates-and-Dependencies\"><\/span>Step 1: Checking for Updates and Dependencies<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>To begin with, <a href=\"https:\/\/www.rosehosting.com\/blog\/connect-to-your-linux-vps-via-ssh\/\">log in\u00a0to your Linux server via SSH<\/a> using your preferred terminal:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">ssh [username]@[server public IP address]<\/pre>\r\n\r\n\r\n\r\n<p>Modify the <strong><code>[username]<\/code><\/strong> variable with the account name of a root-privileged user found on the server (or the root user itself), and replace <code><strong>[server public IP address]<\/strong><\/code> variable with the IP address of your server.<\/p>\r\n\r\n\r\n\r\n<p>If your server does not use the default port number, you can add <strong><code>-p [port number]<\/code><\/strong> to the end of your command, and replace <strong>[port number]<\/strong> with your VPS&#8217;s port number. It is recommended to use the root account for this.<\/p>\r\n\r\n\r\n\r\n<p>After logging in, it is best to update Debian with the latest packages available for bug fixes and improvements.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">apt-get -y update\r\napt-get -y upgrade<\/pre>\r\n\r\n\r\n\r\n<p>It is also best to install basic Debian libraries and dependencies to avoid any missing library issues during the installation.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">apt-get install software-properties-common build-essential curl -y<\/pre>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id=\"h-step-2-installing-clamav\"><span class=\"ez-toc-section\" id=\"Step-2-Installing-ClamAV\"><\/span>Step 2: Installing <b>ClamAV\u00a0<\/b><span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>Installing the main package of ClamAV is very easy. To proceed, supply the following command:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">apt-get install clamav clamav-daemon<\/pre>\r\n\r\n\r\n\r\n<p>The <strong>clam<\/strong>AV package is the command-line based virus scanner, while the <strong>clamAV-daemon<\/strong> package is the on-access scanner, which runs in the background.<\/p>\r\n\r\n\r\n\r\n<p>After installation, an update of the virus definition database will automatically start. Basically, a <strong>freshclam <\/strong>command has been activated. You can watch the logs using:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">tail -f \/var\/log\/clamav\/freshclam.log<\/pre>\r\n\r\n\r\n\r\n<p>You should be able to see the following message as the update is in progress:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">Fri Aug 2 21:22:05 2019 -&gt; --------------------------------------\r\nFri Aug 2 21:22:05 2019 -&gt; freshclam daemon 0.100.3 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64)\r\nFri Aug 2 21:22:05 2019 -&gt; ClamAV update process started at Fri Aug 2 21:22:05 2019\r\nFri Aug 2 21:22:05 2019 -&gt; WARNING: Your ClamAV installation is OUTDATED!\r\nFri Aug 2 21:22:05 2019 -&gt; WARNING: Local version: 0.100.3 Recommended version: 0.101.2\r\nFri Aug 2 21:22:05 2019 -&gt; DON'T PANIC! Read https:\/\/www.clamav.net\/documents\/upgrading-clamav\r\nFri Aug 2 21:22:07 2019 -&gt; Downloading main.cvd [100%]\r\nFri Aug 2 21:22:20 2019 -&gt; main.cvd updated (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)\r\nCan't query main.58.93.1.0.6810DB54.ping.clamav.net\r\nFri Aug 2 21:22:58 2019 -&gt; Downloading daily.cvd [100%]\r\nFri Aug 2 21:23:27 2019 -&gt; daily.cvd updated (version: 25529, sigs: 1694663, f-level: 63, builder: raynman)\r\nCan't query daily.25529.93.1.0.6810DB54.ping.clamav.net\r\nFri Aug 2 21:24:04 2019 -&gt; Downloading bytecode.cvd [100%]\r\nFri Aug 2 21:24:05 2019 -&gt; bytecode.cvd updated (version: 330, sigs: 94, f-level: 63, builder: neo)\r\nCan't query bytecode.330.93.1.0.6810DB54.ping.clamav.net\r\nFri Aug 2 21:24:45 2019 -&gt; Database updated (6261006 signatures) from db.local.clamav.net (IP: 104.16.219.84)<\/pre>\r\n\r\n\r\n\r\n<p>The last line indicates that we are now using the latest virus definition database of ClamAV. The database files are saved in:<br \/><code>\/var\/lib\/clamav\/daily.cvd (daily update file for ClamAV virus databases)<br \/>\r\n\/var\/lib\/clamav\/main.cvd (main ClamAV virus database file)<br \/>\r\n\/var\/lib\/clamav\/bytecode.cvd (signatures to detect bytecode in files)<\/code><\/p>\r\n\r\n\r\n\r\n<p>Verify that the main ClamAV-freshclam service is running to make sure the virus definition database is always up-to-date:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">systemctl status clamav-freshclam<\/pre>\r\n\r\n\r\n\r\n<p>Almost the same output should appear:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">\u25cf clamav-freshclam.service - ClamAV virus database updater\r\nLoaded: loaded (\/lib\/systemd\/system\/clamav-freshclam.service; enabled; vendor\r\nActive: active (running) since Fri 2019-08-02 21:22:05 EDT; 44min ago<\/pre>\r\n\r\n\r\n\r\n<p>Finally, run the main ClamAV on-access scanner service and verify its status.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">systemctl start clamav-daemon\r\nsystemctl status clamav-daemon<\/pre>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">\u25cf clamav-daemon.service - Clam AntiVirus userspace daemon\r\nLoaded: loaded (\/lib\/systemd\/system\/clamav-daemon.service; enabled; vendor pr\r\nDrop-In: \/etc\/systemd\/system\/clamav-daemon.service.d\r\n\u2514\u2500extend.conf\r\nActive: active (running) since Fri 2019-08-02 22:09:56 EDT; 18min ago<\/pre>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id=\"h-step-3-configuring-clamav\"><span class=\"ez-toc-section\" id=\"Step-3-Configuring-ClamAV\"><\/span>Step 3: Configuring <b>ClamAV\u00a0<\/b><span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>By default, ClamAV&#8217;s configuration is already optimized for general use. If you want to adjust some settings for the on-access scanner service, you can check the file:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">nano \/etc\/clamav\/clamd.conf<\/pre>\r\n\r\n\r\n\r\n<p>Do not forget to restart the service after saving the modified file:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">systemctl restart clamav-daemon<\/pre>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id=\"h-testing-clamav\"><span class=\"ez-toc-section\" id=\"Testing-ClamAV\"><\/span>Testing <b>ClamAV\u00a0<\/b><span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>To test and verify our ClamAV installation, we can try to scan the EICAR test file (a harmless signature with no virus code). To start the sample scan, supply the following command:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">curl https:\/\/www.eicar.org\/download\/eicar.com.txt | clamscan -<\/pre>\r\n\r\n\r\n\r\n<p>The scan time will take some time and this is a normal behavior of ClamAV as it will need to read a number of signatures. The output should show:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">stdin: Eicar-Test-Signature FOUND\r\n----------- SCAN SUMMARY -----------\r\nKnown viruses: 6251170\r\nEngine version: 0.100.3\r\nScanned directories: 0\r\nScanned files: 1\r\nInfected files: 1\r\nData scanned: 0.00 MB\r\nData read: 0.00 MB (ratio 0.00:1)\r\nTime: 49.993 sec (0 m 49 s<\/pre>\r\n\r\n\r\n\r\n<p>Once it is detected, we can now confirm that our ClamAV installation is working.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id=\"h-starting-a-scan-with-clamav\"><span class=\"ez-toc-section\" id=\"Starting-a-scan-with-ClamAV\"><\/span><b>Starting a scan with ClamAV\u00a0<\/b><span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>There are many scan options available for a one-time scan which is handled by <strong>clamscan<\/strong>. To remove the infected file automatically, add to the option <code>--remove<\/code>. To move the file to a quarantine folder, use the <code>--move=\/dir<\/code> option. ClamAV also supports logging of the scan which you can enable by using the <code>-l \/path\/to\/file<\/code> option.<\/p>\r\n\r\n\r\n\r\n<p>To scan a file:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">clamscan \/opt\/testfile.zip<\/pre>\r\n\r\n\r\n\r\n<p>To scan a directory:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">clamscan --recursive --infected \/mydir<\/pre>\r\n\r\n\r\n\r\n<p>To scan larger files (ClamAV will not scan files larger than 20MB by default):<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">clamscan --max-filesize=2000M --max-scansize=2000M --recursive=yes --infected \/mydir<\/pre>\r\n\r\n\r\n\r\n<p>To learn more about the available options, check out ClamAV&#8217;s official OneTime scanning documentation.<\/p>\r\n\r\n\r\n\r\n<p><strong>That&#8217;s it! &#8211; <\/strong>you now have an active anti-virus in the background and an on-demand scanner for your Debian 9 server.<\/p>\r\n\r\n\r\n<hr class=\"wp-block-separator\" \/>\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"alignleft\"><img decoding=\"async\" width=\"112\" height=\"105\" class=\"wp-image-32473\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/03\/best-managed-antivirus-security-hardening-vps-support-by-admins-clamav-debian.jpg\" alt=\"\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<p>Of course, you don\u2019t have to <strong>install ClamAV <\/strong><strong>on Debian 9<\/strong> if you have a managed <a href=\"https:\/\/www.rosehosting.com\/debian-hosting.html\">Debian VPS<\/a> hosting plan with us. You can simply ask our support team to help out, after which they will install, set up, and do an initial scan for you, as well as perform other threat preventions if needed. They are available 24\/7 and will be able to help you with anything that you might need.<\/p>\r\n\r\n\r\n\r\n<p><span style=\"color: #ff0000;\"><strong>PS<\/strong><\/span>. If you enjoyed reading this blog post on how to install and scan vulnerabilities with ClamAV on Debian 9, feel free to share it on social networks using the shortcuts below, or simply leave a comment in the comments section. Thanks.<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we&#8217;ll be explaining how to install ClamAV on your Debian 9 VPS, as well as how to &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Install ClamAV on Debian 9 and Scan For Vulnerabilities\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-clamav-on-debian-9-and-scan-for-vulnerabilities\/#more-31586\" aria-label=\"Read more about How to Install ClamAV on Debian 9 and Scan For Vulnerabilities\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":32471,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1700,1703,13],"tags":[373,372,1822,1823],"class_list":["post-31586","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-debian","category-security","category-tutorials","tag-antivirus","tag-clamav","tag-clamd","tag-debian9","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Install ClamAV on Debian 9 and Scan For Vulnerabilities<\/title>\n<meta name=\"description\" content=\"Learn how to install ClamAV on Debian 9 and scan for vulnerabilities using this easy guide. Use ClamAV to scan for malicious files.\" \/>\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.rosehosting.com\/blog\/how-to-install-clamav-on-debian-9-and-scan-for-vulnerabilities\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install ClamAV on Debian 9 and Scan For Vulnerabilities\" \/>\n<meta property=\"og:description\" content=\"How to Install ClamAV on Debian 9 and Scan For Vulnerabilities | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-clamav-on-debian-9-and-scan-for-vulnerabilities\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2020-03-16T18:22:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-03T08:33:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/03\/how-to-install-clamav-on-debian9-and-scan-for-vulnerabilities.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"372\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-clamav-on-debian-9-and-scan-for-vulnerabilities\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-clamav-on-debian-9-and-scan-for-vulnerabilities\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Install ClamAV on Debian 9 and Scan For Vulnerabilities\",\"datePublished\":\"2020-03-16T18:22:21+00:00\",\"dateModified\":\"2022-06-03T08:33:06+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-clamav-on-debian-9-and-scan-for-vulnerabilities\\\/\"},\"wordCount\":823,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-clamav-on-debian-9-and-scan-for-vulnerabilities\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/03\\\/how-to-install-clamav-on-debian9-and-scan-for-vulnerabilities.jpg\",\"keywords\":[\"antivirus\",\"clamav\",\"clamd\",\"debian9\"],\"articleSection\":[\"Debian\",\"Security\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-clamav-on-debian-9-and-scan-for-vulnerabilities\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-clamav-on-debian-9-and-scan-for-vulnerabilities\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-clamav-on-debian-9-and-scan-for-vulnerabilities\\\/\",\"name\":\"How to Install ClamAV on Debian 9 and Scan For Vulnerabilities\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-clamav-on-debian-9-and-scan-for-vulnerabilities\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-clamav-on-debian-9-and-scan-for-vulnerabilities\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/03\\\/how-to-install-clamav-on-debian9-and-scan-for-vulnerabilities.jpg\",\"datePublished\":\"2020-03-16T18:22:21+00:00\",\"dateModified\":\"2022-06-03T08:33:06+00:00\",\"description\":\"Learn how to install ClamAV on Debian 9 and scan for vulnerabilities using this easy guide. Use ClamAV to scan for malicious files.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-clamav-on-debian-9-and-scan-for-vulnerabilities\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-clamav-on-debian-9-and-scan-for-vulnerabilities\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-clamav-on-debian-9-and-scan-for-vulnerabilities\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/03\\\/how-to-install-clamav-on-debian9-and-scan-for-vulnerabilities.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/03\\\/how-to-install-clamav-on-debian9-and-scan-for-vulnerabilities.jpg\",\"width\":742,\"height\":372},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-clamav-on-debian-9-and-scan-for-vulnerabilities\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install ClamAV on Debian 9 and Scan For Vulnerabilities\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Install ClamAV on Debian 9 and Scan For Vulnerabilities","description":"Learn how to install ClamAV on Debian 9 and scan for vulnerabilities using this easy guide. Use ClamAV to scan for malicious files.","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.rosehosting.com\/blog\/how-to-install-clamav-on-debian-9-and-scan-for-vulnerabilities\/","og_locale":"en_US","og_type":"article","og_title":"How to Install ClamAV on Debian 9 and Scan For Vulnerabilities","og_description":"How to Install ClamAV on Debian 9 and Scan For Vulnerabilities | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-clamav-on-debian-9-and-scan-for-vulnerabilities\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2020-03-16T18:22:21+00:00","article_modified_time":"2022-06-03T08:33:06+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/03\/how-to-install-clamav-on-debian9-and-scan-for-vulnerabilities.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-clamav-on-debian-9-and-scan-for-vulnerabilities\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-clamav-on-debian-9-and-scan-for-vulnerabilities\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Install ClamAV on Debian 9 and Scan For Vulnerabilities","datePublished":"2020-03-16T18:22:21+00:00","dateModified":"2022-06-03T08:33:06+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-clamav-on-debian-9-and-scan-for-vulnerabilities\/"},"wordCount":823,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-clamav-on-debian-9-and-scan-for-vulnerabilities\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/03\/how-to-install-clamav-on-debian9-and-scan-for-vulnerabilities.jpg","keywords":["antivirus","clamav","clamd","debian9"],"articleSection":["Debian","Security","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-clamav-on-debian-9-and-scan-for-vulnerabilities\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-clamav-on-debian-9-and-scan-for-vulnerabilities\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-clamav-on-debian-9-and-scan-for-vulnerabilities\/","name":"How to Install ClamAV on Debian 9 and Scan For Vulnerabilities","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-clamav-on-debian-9-and-scan-for-vulnerabilities\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-clamav-on-debian-9-and-scan-for-vulnerabilities\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/03\/how-to-install-clamav-on-debian9-and-scan-for-vulnerabilities.jpg","datePublished":"2020-03-16T18:22:21+00:00","dateModified":"2022-06-03T08:33:06+00:00","description":"Learn how to install ClamAV on Debian 9 and scan for vulnerabilities using this easy guide. Use ClamAV to scan for malicious files.","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-clamav-on-debian-9-and-scan-for-vulnerabilities\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-clamav-on-debian-9-and-scan-for-vulnerabilities\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-clamav-on-debian-9-and-scan-for-vulnerabilities\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/03\/how-to-install-clamav-on-debian9-and-scan-for-vulnerabilities.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/03\/how-to-install-clamav-on-debian9-and-scan-for-vulnerabilities.jpg","width":742,"height":372},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-clamav-on-debian-9-and-scan-for-vulnerabilities\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install ClamAV on Debian 9 and Scan For Vulnerabilities"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/31586","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=31586"}],"version-history":[{"count":3,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/31586\/revisions"}],"predecessor-version":[{"id":41013,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/31586\/revisions\/41013"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/32471"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=31586"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=31586"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=31586"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}