{"id":47272,"date":"2026-06-27T22:44:56","date_gmt":"2026-06-27T13:44:56","guid":{"rendered":"https:\/\/raybeam.jp\/docs\/initial-server-setup\/how-to-install-and-configure-clamav-to-scan-your-server-regularly-for-malware\/"},"modified":"2026-06-27T22:45:23","modified_gmt":"2026-06-27T13:45:23","slug":"how-to-install-and-configure-clamav-to-scan-your-server-regularly-for-malware","status":"publish","type":"docs","link":"https:\/\/raybeam.jp\/ko\/docs\/initial-server-setup\/how-to-install-and-configure-clamav-to-scan-your-server-regularly-for-malware\/","title":{"rendered":"\uc11c\ubc84\uc5d0\uc11c \uba40\uc6e8\uc5b4\ub97c \uc815\uae30\uc801\uc73c\ub85c \uac80\uc0ac\ud558\ub3c4\ub85d ClamAV\ub97c \uc124\uce58 \ubc0f \uad6c\uc131\ud558\ub294 \ubc29\ubc95"},"content":{"rendered":"<p class=\"is-style-text-annotation is-style-text-annotation--1 wp-block-paragraph\">\uc774 \ubb38\uc11c\uc5d0\uc11c\ub294 Ubuntu \uc11c\ubc84 20.04 \ub610\ub294 24.04\ub97c \uc0ac\uc6a9\ud55c\ub2e4\uace0 \uac00\uc815\ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<h2 id=\"motivation\" class=\"wp-block-heading\">\ub3d9\uae30 \ubd80\uc5ec<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\ub9ac\uc18c\uc2a4\ub97c \uc801\uac8c \uc0ac\uc6a9\ud558\uba74\uc11c \uc11c\ubc84\uc5d0\uc11c \uc9c1\uc811 \uc815\uae30\uc801\uc73c\ub85c \ubc14\uc774\ub7ec\uc2a4\uc640 \uba40\uc6e8\uc5b4\ub97c \uac80\uc0ac\ud558\uc138\uc694.<\/p>\n\n\n\n<h2 id=\"alternatives\" class=\"wp-block-heading\">\ub300\uc548<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.rfxn.com\/projects\/linux-malware-detect\/\">LMD(\ub9d0\ub370\ud2b8)<\/a> \uc11c\ubc84 \ub610\ub294 \uc6cc\ub4dc\ud504\ub808\uc2a4 \ud50c\ub7ec\uadf8\uc778 <a href=\"https:\/\/www.wordfence.com\/\">\uc6cc\ub4dc\ud39c\uc2a4<\/a> \uadf8\ub9ac\uace0 <a href=\"https:\/\/nintechnet.com\/ninjascanner\/\">\ub2cc\uc790 \uc2a4\uce90\ub108<\/a> \ub294 \uc88b\uc740 \uc635\uc158\uc785\ub2c8\ub2e4.<\/p>\n\n\n\n<h2 id=\"install-clamav\" class=\"wp-block-heading\">ClamAV \uc124\uce58<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">ClamAV\ub294 WordOps Stack\uc758 \uc77c\ubd80\uc774\uba70 \ud568\uaed8 \uc124\uce58\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4(\ub450 \uac1c\uc758 \ucd94\uac00 \ud328\ud0a4\uc9c0\ub3c4 \uc124\uce58\ud574\uc57c \ud568):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wo \uc2a4\ud0dd \uc124\uce58 --clamav\nsudo apt install clamav-daemon clamdscan -y<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">APT\ub97c \uc0ac\uc6a9\ud558\uc5ec Ubuntu\uc5d0 \uc124\uce58\ud560 \uc218\ub3c4 \uc788\uc2b5\ub2c8\ub2e4:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt \uc5c5\ub370\uc774\ud2b8\nsudo apt install clamav clamav-daemon clamdscan -y<\/code><\/pre>\n\n\n\n<h2 id=\"add-custom-database-signatures\" class=\"wp-block-heading\">\uc0ac\uc6a9\uc790 \uc9c0\uc815 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc11c\uba85 \ucd94\uac00<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\ub9ec\uc6e8\uc5b4 \ubc0f \ubc14\uc774\ub7ec\uc2a4 \ud0d0\uc9c0 \uae30\ub2a5\uc744 \uac15\ud654\ud558\uae30 \uc704\ud574 \ub2e4\uc74c\uc5d0\uc11c \uc81c\uacf5\ud558\ub294 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc11c\uba85\uc744 \uc120\ud0dd\uc801\uc73c\ub85c \ud1b5\ud569\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. <a href=\"https:\/\/www.rfxn.com\/projects\/linux-malware-detect\/\">RFXN\uc758 Linux \uba40\uc6e8\uc5b4 \ud0d0\uc9c0(LMD)<\/a>\ub97c \ucd94\uac00\ud569\ub2c8\ub2e4. \uc758 \ub05d\uc5d0 \ub2e4\uc74c \uad6c\uc131\uc744 \ucd94\uac00\ud569\ub2c8\ub2e4.<em> <code class=\"\">\/etc\/clamav\/freshclam.conf<\/code><\/em> file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>DatabaseCustomURL https:\/\/www.rfxn.com\/downloads\/rfxn.ndb\nDatabaseCustomURL https:\/\/www.rfxn.com\/downloads\/rfxn.hdb\nDatabaseCustomURL https:\/\/www.rfxn.com\/downloads\/rfxn.yara<\/code><\/pre>\n\n\n\n<h2 id=\"perform-a-full-scan-of-your-files\" class=\"wp-block-heading\">\ud30c\uc77c \uc804\uccb4 \uc2a4\uce94 \uc218\ud589<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\uc774\uc81c \uc2e4\ud589\ud558\uae30 \uc804\uc5d0 \ubc14\uc774\ub7ec\uc2a4 \ub370\uc774\ud130\ubca0\uc774\uc2a4\ub97c \uc218\ub3d9\uc73c\ub85c \uc5c5\ub370\uc774\ud2b8\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. <em>\ud074\ub77c\ub9c8\ube0c-\ud504\ub808\uc2dc\ud074\ub7a8<\/em> \uc11c\ube44\uc2a4\ub97c \uc218\ub3d9\uc73c\ub85c \uc2e4\ud589\ud560 \uc218 \uc788\ub3c4\ub85d):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl stop clamav-freshclam.service\nsudo freshclam<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\uadf8\ub9ac\uace0 \uc0ac\uc774\ud2b8 \ub514\ub809\ud130\ub9ac\uc5d0\uc11c \uc804\uccb4 \uac80\uc0ac\ub97c \uc2e4\ud589\ud558\uc138\uc694:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo clamscan -r \/var\/www<\/code><\/pre>\n\n\n\n<h2 id=\"enable-clamav-as-a-service-and-schedule-a-cron-job\" class=\"wp-block-heading\">ClamAV\ub97c \uc11c\ube44\uc2a4\ub85c \ud65c\uc131\ud654\ud558\uace0 \ud06c\ub860 \uc791\uc5c5 \uc608\uc57d\ud558\uae30<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\ub3c5\ub9bd \uc2e4\ud589\ud615 \uba85\ub839\uc744 \uc0ac\uc6a9\ud558\uc5ec ClamAV\ub97c \uc2e4\ud589\ud558\ub294 \ubc29\ubc95\uc740 \ub450 \uac00\uc9c0\uac00 \uc788\uc2b5\ub2c8\ub2e4. <em>\ud074\ub7a8\uc2a4\uce94<\/em> \ub610\ub294 \ub300\uc548\uc73c\ub85c <em>\ud074\ub7a8\ub4dc\uc2a4\uce94<\/em>\ub97c \uc0ac\uc6a9\ud558\uba74 \uc11c\ube44\uc2a4 \ub370\ubaac\uc5d0 \uc561\uc138\uc2a4\ud558\uace0 \ubc14\uc774\ub7ec\uc2a4 \ub370\uc774\ud130\ubca0\uc774\uc2a4\ub97c \uba54\ubaa8\ub9ac\uc5d0 \uc9c1\uc811 \uc800\uc7a5\ud558\uc5ec \ud6e8\uc52c \ub354 \ub098\uc740 \uc131\ub2a5\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. \ub2e4\uc74c\uc744 \uc0ac\uc6a9\ud558\uc5ec \ud544\uc694\ud55c \ub370\ubaac\uc744 \uc2dc\uc791\ud558\uace0 \ud65c\uc131\ud654\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl start clamav-freshclam.service\nsudo systemctl clamav-freshclam.service \ud65c\uc131\ud654\nsudo systemctl clamav-daemon.service \uc2dc\uc791\nsudo systemctl clamav-daemon.service \ud65c\uc131\ud654<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\ub2e4\uc74c \uba85\ub839\uc740 \uc9c0\ub09c 25\uc2dc\uac04 \uc774\ub0b4\uc5d0 \uc0c8\ub85c \ub9cc\ub4e4\uac70\ub098 \uc218\uc815\ud55c \ud30c\uc77c\ub9cc \uc2a4\uce94\ud558\ub3c4\ub85d \uc124\uacc4\ub418\uc5c8\uc2b5\ub2c8\ub2e4. sudo \ud06c\ub860\ud0ed\uc5d0 \uc124\uce58\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ub610\ud55c \ucc98\uc74c\uc5d0 \uc774\uba54\uc77c\uc744 \uad6c\uc131\ud558\uc5ec \uac01 \uc2a4\uce94 \ud6c4 \uc54c\ub9bc\uc744 \ubc1b\ub3c4\ub85d \uc124\uc815\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>MAILTO=\"<span \n                data-original-string='m0NnGtb8Hui0bA3OzlRRnw==a66EaY+ASmlPB1PbNwlmyXPIiLeeBvIf0mYvGlswiXxcfU='\n                class='apbct-email-encoder'\n                title='\uc774 \uc5f0\ub77d\ucc98\ub294 \ud074\ub9b0\ud1a1\uc758 \uc2a4\ud338 \ubc29\uc9c0 \uae30\ub2a5\uc73c\ub85c \uc778\ucf54\ub529\ub418\uc5c8\uc2b5\ub2c8\ub2e4. \ub514\ucf54\ub529\ud558\ub824\uba74 \ud074\ub9ad\ud558\uc138\uc694. \ub514\ucf54\ub529\uc744 \uc644\ub8cc\ud558\ub824\uba74 \ube0c\ub77c\uc6b0\uc800\uc5d0\uc11c JavaScript\uac00 \ud65c\uc131\ud654\ub418\uc5b4 \uc788\ub294\uc9c0 \ud655\uc778\ud558\uc138\uc694.'>al<span class=\"apbct-blur\">****<\/span>@<span class=\"apbct-blur\">*****<\/span>le.com<\/span>\"\n0 2 * * * find \/var\/www -type f -mmin -1500 -print0 | xargs -0 clamdscan --fdpass --multiscan --infected<\/code><\/pre>\n\n\n\n<div class=\"wp-block-group is-style-default has-small-font-size has-global-padding is-layout-constrained wp-block-group-is-layout-constrained\">\n<p class=\"wp-block-paragraph\">\ub9ac\uc18c\uc2a4:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.liquidweb.com\/blog\/linux-malware-detect-ubuntu-20-04\/\">https:\/\/www.liquidweb.com\/blog\/linux-malware-detect-ubuntu-20-04\/<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/malware.expert\/howto\/extending-clamav-signatures-with-rfxn-database-for-php-malwares\">https:\/\/malware.expert\/howto\/extending-clamav-signatures-with-rfxn-database-for-php-malwares<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/tcpip.wtf\/en\/clamav-scan-only-new-modified-files.htm\">https:\/\/tcpip.wtf\/en\/clamav-scan-only-new-modified-files.htm<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/radeksprta.eu\/posts\/automatic-clamav-scans-with-email-notifications\/\">https:\/\/radeksprta.eu\/posts\/automatic-clamav-scans-with-email-notifications\/<\/a><\/li>\n<\/ul>\n<\/div>","protected":false},"featured_media":0,"parent":47233,"menu_order":1,"comment_status":"open","ping_status":"closed","template":"","meta":{"pmpro_default_level":"","nav_title":"","positive":"","negative":"","footnotes":""},"docs_category":[],"class_list":["post-47272","docs","type-docs","status-publish","hentry","pmpro-has-access"],"_links":{"self":[{"href":"https:\/\/raybeam.jp\/ko\/wp-json\/wp\/v2\/docs\/47272","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/raybeam.jp\/ko\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/raybeam.jp\/ko\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/raybeam.jp\/ko\/wp-json\/wp\/v2\/comments?post=47272"}],"version-history":[{"count":1,"href":"https:\/\/raybeam.jp\/ko\/wp-json\/wp\/v2\/docs\/47272\/revisions"}],"predecessor-version":[{"id":47273,"href":"https:\/\/raybeam.jp\/ko\/wp-json\/wp\/v2\/docs\/47272\/revisions\/47273"}],"up":[{"embeddable":true,"href":"https:\/\/raybeam.jp\/ko\/wp-json\/wp\/v2\/docs\/47233"}],"wp:attachment":[{"href":"https:\/\/raybeam.jp\/ko\/wp-json\/wp\/v2\/media?parent=47272"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/raybeam.jp\/ko\/wp-json\/wp\/v2\/docs_category?post=47272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}