{"id":934,"date":"2018-09-08T21:37:02","date_gmt":"2018-09-08T12:37:02","guid":{"rendered":"https:\/\/lab4ict.com\/system\/?p=934"},"modified":"2023-09-10T05:14:08","modified_gmt":"2023-09-09T20:14:08","slug":"ubuntu-18-04-lts-desktop%e3%81%a7clamav%e3%81%a7%e3%82%a6%e3%82%a3%e3%83%ab%e3%82%b9%e3%83%81%e3%82%a7%e3%83%83%e3%82%af%e3%82%92%e5%ae%9f%e8%a1%8c","status":"publish","type":"post","link":"https:\/\/lab4ict.com\/system\/archives\/934","title":{"rendered":"Ubuntu Desktop 18.04\u3067ClamAV\u306b\u3088\u308b\u30a6\u30a3\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u3092\u5b9f\u884c\u3059\u308b\uff01"},"content":{"rendered":"<p>Ubuntu 18.04 LTS Desktop\u3067ClamAV\u3092\u4f7f\u7528\u3057\u3066\u30a6\u30a3\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002Ubuntu\u7b49\u306eLinux\u74b0\u5883\u3067\u306f\u3001\u73fe\u72b6\u3067\u306f\u30a6\u30a3\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u306f\u4e0d\u8981\u3068\u306e\u898b\u89e3\u304c\u591a\u3044\u3067\u3059\u304c\u3001Windows\u3068\u306e\u6df7\u5728\u74b0\u5883\u3067\u3001\u30a6\u30a3\u30eb\u30b9\u3092Windows\u306b\u4e2d\u7d99\u3059\u308b\u3053\u3068\u3092\u9632\u6b62\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u308b\u3053\u3068\u304c\u591a\u3044\u3088\u3046\u3067\u3059\u3002<br \/>\n<!--more--><\/p>\n<h2>\u4f7f\u7528\u3057\u305f\u74b0\u5883<\/h2>\n<ul>\n<li>Ubuntu 18.04 LTS Desktop (18.04.1)<\/li>\n<\/ul>\n<h2>\u30c6\u30b9\u30c8\u7528\u30a6\u30a3\u30eb\u30b9\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/h2>\n<p>\u30a6\u30a3\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u306e\u30c6\u30b9\u30c8\u306e\u305f\u3081\u306b\u30c6\u30b9\u30c8\u7528\u306e\u30a6\u30a3\u30eb\u30b9\u3092<a href=\"https:\/\/www.eicar.org\/?page_id=3950\" target=\"_blank\" rel=\"noopener noreferrer\">\u300cAnti Malware Testfile\u300d<\/a>\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001~\/Downloads\/eicar\u306a\u3069\u306e\u30d5\u30a9\u30eb\u30c0\u306b\u4fdd\u7ba1\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<ul>\n<li>eicar.com : \u30c6\u30b9\u30c8\u7528\u30a6\u30a3\u30eb\u30b9\u30d5\u30a1\u30a4\u30eb<\/li>\n<li>eicar.com.txt : eicar.com\u306e\u62e1\u5f35\u5b50\u3092\u5909\u3048\u305f\u5225\u540d\u30d5\u30a1\u30a4\u30eb<\/li>\n<li>eicar_com.zip : eicar.com\u3092zip\u5316\u3057\u305f\u30d5\u30a1\u30a4\u30eb<\/li>\n<li>eicarcom2.zip : eicar_com.zip\u3092\u3055\u3089\u306bzip\u5316\u3057\u305f\u30d5\u30a1\u30a4\u30eb<\/li>\n<\/ul>\n<h2>ClamAV\u3092apt\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>ClamAV\u3092apt\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ sudo apt install clamav clamav-daemon\r\n<\/pre>\n<p>\u30de\u30b7\u30f3\u3092\u518d\u8d77\u52d5\u5f8c\u306b\u30b5\u30fc\u30d3\u30b9\u304c\u81ea\u52d5\u8d77\u52d5\u3059\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ systemctl list-unit-files | grep clamav\r\nclamav-daemon.service                      enabled        \r\nclamav-freshclam.service                   enabled  \r\n<\/pre>\n<p>\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u3092\u4fee\u6b63\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u3001\u5b9f\u884c\u30e6\u30fc\u30b6\u3092root\u306b\u5909\u66f4\u3001\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u30b9\u30ad\u30e3\u30f3\u3092\u6709\u52b9\u3001\u30b9\u30ad\u30e3\u30f3\u5bfe\u8c61\u306e\u30d5\u30a1\u30a4\u30eb\u30b5\u30a4\u30ba\u306e\u5236\u9650\u3092\u7121\u9650\u5927\u306b\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,7,8,12,13,66,67,68,69,70,71,72,77,78,79,80]; title: ; notranslate\" title=\"\">\r\n$ vi \/etc\/clamav\/clamd.conf\r\n#Automatically Generated by clamav-daemon postinst\r\n#To reconfigure clamd run #dpkg-reconfigure clamav-daemon\r\n#Please read \/usr\/share\/doc\/clamav-daemon\/README.Debian.gz for details\r\nLocalSocket \/var\/run\/clamav\/clamd.ctl\r\nFixStaleSocket true\r\n#LocalSocketGroup clamav\r\nLocalSocketGroup root\r\nLocalSocketMode 666\r\n# TemporaryDirectory is not set to its default \/tmp here to make overriding\r\n# the default with environment variables TMPDIR\/TMP\/TEMP possible\r\n#User clamav\r\nUser root\r\nScanMail true\r\nScanArchive true\r\nArchiveBlockEncrypted false\r\nMaxDirectoryRecursion 15\r\nFollowDirectorySymlinks false\r\nFollowFileSymlinks false\r\nReadTimeout 180\r\nMaxThreads 12\r\nMaxConnectionQueueLength 15\r\nLogSyslog false\r\nLogRotate true\r\nLogFacility LOG_LOCAL6\r\nLogClean false\r\nLogVerbose false\r\nPreludeEnable no\r\nPreludeAnalyzerName ClamAV\r\nDatabaseDirectory \/var\/lib\/clamav\r\nOfficialDatabaseOnly false\r\nSelfCheck 3600\r\nForeground false\r\nDebug false\r\nScanPE true\r\nMaxEmbeddedPE 10M\r\nScanOLE2 true\r\nScanPDF true\r\nScanHTML true\r\nMaxHTMLNormalize 10M\r\nMaxHTMLNoTags 2M\r\nMaxScriptNormalize 5M\r\nMaxZipTypeRcg 1M\r\nScanSWF true\r\nDetectBrokenExecutables false\r\nExitOnOOM false\r\nLeaveTemporaryFiles false\r\nAlgorithmicDetection true\r\nScanELF true\r\nIdleTimeout 30\r\nCrossFilesystems true\r\nPhishingSignatures true\r\nPhishingScanURLs true\r\nPhishingAlwaysBlockSSLMismatch false\r\nPhishingAlwaysBlockCloak false\r\nPartitionIntersection false\r\nDetectPUA false\r\nScanPartialMessages false\r\nHeuristicScanPrecedence false\r\nStructuredDataDetection false\r\nCommandReadTimeout 5\r\nSendBufTimeout 200\r\nMaxQueue 100\r\nExtendedDetectionInfo true\r\nOLE2BlockMacros false\r\n#ScanOnAccess false\r\nScanOnAccess true\r\nOnAccessMountPath \/\r\nOnAccessPrevention false\r\nOnAccessExtraScanning true\r\nOnAccessExcludeUID 0\r\nVirusEvent \/home\/admin001\/bin\/notify_viruscheck.sh\r\nAllowAllMatchScan true\r\nForceToDisk false\r\nDisableCertCheck false\r\nDisableCache false\r\n#MaxScanSize 100M\r\nMaxScanSize 0\r\n#MaxFileSize 25M\r\nMaxFileSize 0\r\nMaxRecursion 16\r\nMaxFiles 10000\r\nMaxPartitions 50\r\nMaxIconsPE 100\r\nPCREMatchLimit 10000\r\nPCRERecMatchLimit 5000\r\nPCREMaxFileSize 25M\r\nScanXMLDOCS true\r\nScanHWP3 true\r\nMaxRecHWP3 16\r\nStreamMaxLength 25M\r\nLogFile \/var\/log\/clamav\/clamav.log\r\nLogTime true\r\nLogFileUnlock false\r\nLogFileMaxSize 0\r\nBytecode true\r\nBytecodeSecurity TrustSigned\r\nBytecodeTimeout 60000\r\n<\/pre>\n<p>VirusEvent\u306b\u6307\u5b9a\u3057\u305f\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u3078\u306e\u901a\u77e5\u7528\u306e\u30b7\u30a7\u30eb\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u3066\u307f\u307e\u3057\u305f\u3002\u4ee5\u4e0b\u3001\u300c1000\u300d\u306b\u3064\u3044\u3066\u306f\u3001\u901a\u77e5\u3059\u308b\u30e6\u30fc\u30b6\u306eID\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ cat \/home\/admin001\/bin\/notify_viruscheck.sh\r\n#!\/bin\/bash\r\n\r\nDATESTR=`date`\r\nsudo -u admin001 DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=\/run\/user\/1000\/bus \/usr\/bin\/notify-send &quot;$DATESTR Virus Found $CLAM_VIRUSEVENT_VIRUSNAME&quot; \r\n<\/pre>\n<h2>\u30a6\u30a3\u30eb\u30b9\u5b9a\u7fa9\u306e\u6700\u65b0\u5316<\/h2>\n<p>\u30a6\u30a3\u30eb\u30b9\u5b9a\u7fa9\u3092\u66f4\u65b0\u3057\u6700\u65b0\u5316\u3092\u884c\u3044\u307e\u3059\u304c\u3001\u305d\u306e\u524d\u306b\u66f4\u65b0\u306e\u305f\u3081\u306e\u5b9a\u7fa9\u306e\u5185\u5bb9\u3092\u78ba\u8a8d\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u5b9a\u7fa9\u30d5\u30a1\u30a4\u30eb\u306e\u78ba\u8a8d\u304c1\u65e524\u56de\u884c\u308f\u308c\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,26,27]; title: ; notranslate\" title=\"\">\r\n$ more \/etc\/clamav\/freshclam.conf \r\n# Automatically created by the clamav-freshclam postinst\r\n# Comments will get lost when you reconfigure the clamav-freshclam package\r\n\r\nDatabaseOwner clamav\r\nUpdateLogFile \/var\/log\/clamav\/freshclam.log\r\nLogVerbose false\r\nLogSyslog false\r\nLogFacility LOG_LOCAL6\r\nLogFileMaxSize 0\r\nLogRotate true\r\nLogTime true\r\nForeground false\r\nDebug false\r\nMaxAttempts 5\r\nDatabaseDirectory \/var\/lib\/clamav\r\nDNSDatabaseInfo current.cvd.clamav.net\r\nConnectTimeout 30\r\nReceiveTimeout 30\r\nTestDatabases yes\r\nScriptedUpdates yes\r\nCompressLocalDatabase no\r\nSafeBrowsing false\r\nBytecode true\r\nNotifyClamd \/etc\/clamav\/clamd.conf\r\n# Check for new database 24 times a day\r\nChecks 24\r\nDatabaseMirror db.local.clamav.net\r\nDatabaseMirror database.clamav.net\r\n<\/pre>\n<p>1\u6642\u9593\u3092\u904e\u304e\u305f\u3089\u3001\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u3067\u81ea\u52d5\u66f4\u65b0\u304c\u52d5\u4f5c\u3057\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ cat \/var\/log\/clamav\/freshclam.log\r\n<\/pre>\n<p>AppArmor\u306b\u3088\u308b\u5236\u9650\u3092\u89e3\u9664\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,3]; title: ; notranslate\" title=\"\">\r\n$ sudo apt install apparmor-utils\r\n...\r\n$ sudo aa-complain clamd\r\nSetting \/usr\/sbin\/clamd to complain mode.\r\n<\/pre>\n<p>ClamAV\u306edaemon\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,2]; title: ; notranslate\" title=\"\">\r\n$ sudo systemctl start clamav-daemon\r\n$ sudo systemctl status clamav-daemon\r\n<\/pre>\n<p>\u5b9a\u7fa9\u30d5\u30a1\u30a4\u30eb\u3092\u5c0f\u82e6\u5fc3\u3059\u308b\u5e38\u99d0\u30d7\u30ed\u30bb\u30b9\u306e\u8d77\u52d5\u72b6\u614b\u3092\u78ba\u8a8d\u3057\u3001\u8d77\u52d5\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u505c\u6b62\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,2]; title: ; notranslate\" title=\"\">\r\n$ sudo systemctl status clamav-freshclam\r\n$ sudo systemctl stop clamav-freshclam\r\n<\/pre>\n<p>\u624b\u52d5\u3067\u66f4\u65b0\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ sudo freshclam \r\n<\/pre>\n<p>\u5b9a\u7fa9\u30d5\u30a1\u30a4\u30eb\u66f4\u65b0\u306e\u5e38\u99d0\u30d7\u30ed\u30bb\u30b9\u3092\u8d77\u52d5\u3057\u76f4\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,2]; title: ; notranslate\" title=\"\">\r\n$ sudo systemctl stop clamav-freshclam\r\n$ sudo systemctl status clamav-freshclam\r\n<\/pre>\n<h2>\u30a6\u30a3\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u306e\u5b9f\u884c<\/h2>\n<p>\u30a6\u30a3\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<h3>\u30a6\u30a3\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u306e\u5b9f\u884c\uff08clamscan\uff09<\/h3>\n<p>clamscan\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30a6\u30a3\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u3092\u5b9f\u884c\u3057\u305f\u5834\u5408\u306e\u4f8b\u3067\u3059\u3002\u30b5\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3082\u691c\u7d22\uff08-r\uff09\u3057\u3001\u30a6\u30a3\u30eb\u30b9\u691c\u77e5\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u306e\u307f\u8868\u793a\uff08-i\uff09\u3059\u308b\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u6307\u5b9a\u3057\u307e\u3057\u305f\u3002\u691c\u75ab\u5bfe\u8c61\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u3001eicar\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u30d5\u30a9\u30eb\u30c0\u3092\u6307\u5b9a\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ sudo clamscan -r -i ~\/Downloads\/eicar\r\n\/home\/admin001\/Downloads\/eicar\/eicar.com.txt: Eicar-Test-Signature FOUND\r\n\/home\/admin001\/Downloads\/eicar\/eicar.com: Eicar-Test-Signature FOUND\r\n\/home\/admin001\/Downloads\/eicar\/eicar_com.zip: Eicar-Test-Signature FOUND\r\n\/home\/admin001\/Downloads\/eicar\/eicarcom2.zip: Eicar-Test-Signature FOUND\r\n\r\n----------- SCAN SUMMARY -----------\r\nKnown viruses: 6638863\r\nEngine version: 0.100.1\r\nScanned directories: 1\r\nScanned files: 4\r\nInfected files: 4\r\nData scanned: 0.00 MB\r\nData read: 0.00 MB (ratio 0.00:1)\r\nTime: 20.483 sec (0 m 20 s)\r\n<\/pre>\n<h3>\u30a6\u30a3\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u306e\u5b9f\u884c\uff08clamdscan\uff09<\/h3>\n<p>clamsdcan\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30a6\u30a3\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u3092\u5b9f\u884c\u3057\u305f\u5834\u5408\u306e\u4f8b\u3067\u3059\u3002\u3053\u3061\u3089\u306f\u3001clamav-deamon\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u304c\u3001clamscan\u3068\u6bd4\u8f03\u3057\u3066\u5727\u5012\u7684\u306b\u901f\u3044\u3067\u3059\u3002\u3068\u3044\u3046\u3088\u308a\u306f\u3001clamscan\u304c\u9045\u3059\u304e\u3067\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ clamdscan ~\/Downloads\/eicar\/\r\n\/home\/admin001\/Downloads\/eicar\/eicar.com: Eicar-Test-Signature FOUND\r\n\/home\/admin001\/Downloads\/eicar\/eicar.com.txt: Eicar-Test-Signature FOUND\r\n\/home\/admin001\/Downloads\/eicar\/eicar_com.zip: Eicar-Test-Signature FOUND\r\n\/home\/admin001\/Downloads\/eicar\/eicarcom2.zip: Eicar-Test-Signature FOUND\r\n\r\n----------- SCAN SUMMARY -----------\r\nInfected files: 4\r\nTime: 0.012 sec (0 m 0 s)\r\n<\/pre>\n<p>\u8a73\u7d30\u306a\u30ed\u30b0\u306f\u3001\u4ee5\u4e0b\u306b\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ cat \/var\/log\/clamav\/clamav.log\r\n...\r\nSat Sep  8 21:20:06 2018 -&gt; \/home\/admin001\/Downloads\/eicar\/eicar.com: Eicar-Test-Signature(44d88612fea8a8f36de82e1278abb02f:68) FOUND\r\nSat Sep  8 21:20:06 2018 -&gt; \/home\/admin001\/Downloads\/eicar\/eicar.com.txt: Eicar-Test-Signature(44d88612fea8a8f36de82e1278abb02f:68) FOUND\r\nSat Sep  8 21:20:06 2018 -&gt; \/home\/admin001\/Downloads\/eicar\/eicar_com.zip: Eicar-Test-Signature(44d88612fea8a8f36de82e1278abb02f:68) FOUND\r\nSat Sep  8 21:20:06 2018 -&gt; \/home\/admin001\/Downloads\/eicar\/eicarcom2.zip: Eicar-Test-Signature(44d88612fea8a8f36de82e1278abb02f:68) FOUND\r\n<\/pre>\n<p>\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u306b\u3082\u300cVirus Found\u300d\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u901a\u77e5\u3055\u308c\u308b\u306f\u305a\u306a\u306e\u3067\u3001\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>\u30aa\u30f3\u30b9\u30ad\u30e3\u30f3\u306e\u78ba\u8a8d<\/h3>\n<p>\u30aa\u30f3\u30b9\u30ad\u30e3\u30f3\uff08\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u30b9\u30ad\u30e3\u30f3\uff09\u304c\u6709\u52b9\u3067\u3042\u308b\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u308c\u3070OK\u3067\u3059\uff01<\/p>\n<pre class=\"brush: plain; highlight: [1,2]; title: ; notranslate\" title=\"\">\r\n$ cat ~\/Downloads\/eicar\/eicar.com\r\n$ tail \/var\/log\/clamav\/clamav.log\r\n...\r\nSat Sep  8 22:45:03 2018 -&gt; ScanOnAccess: \/home\/admin001\/Downloads\/eicar\/eicar.com: Eicar-Test-Signature(44d88612fea8a8f36de82e1278abb02f:68) FOUND\r\n<\/pre>\n<p>\u3057\u304b\u3057\u3001\u4f55\u6545\u304bVirusEvent\u3067\u6307\u5b9a\u3057\u305f\u30b7\u30a7\u30eb\u304c\u8d77\u52d5\u305b\u305a\u3001\u4ee5\u4e0b\u3067\u4ee3\u66ff\u3057\u307e\u3057\u305f\u3002\uff08\u6bce\u520610\u79d2\u691c\u77e5\u3057\u305f\u56de\u6570\u304c\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u306b\u901a\u77e5\u3055\u308c\u307e\u3059\u3002\uff09<br \/>\n\uff1c\u30b7\u30a7\u30eb\uff1e<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ cat \/home\/admin001\/bin\/notify_viruscheck_cron.sh\r\n#!\/bin\/bash\r\n\r\nCNT=`grep ScanOnAccess \/var\/log\/clamav\/clamav.log | grep FOUND | wc -l`\r\nif &#x5B; $CNT != 0 ]; then\r\n  DATESTR=`date`\r\n  sudo -u admin001 DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=\/run\/user\/1000\/bus \/usr\/bin\/notify-send -t 10000 &quot;$DATESTR Virus Found $CNT&quot;\r\nfi\r\n<\/pre>\n<p>\uff1ccron\u306e\u8a2d\u5b9a\uff1e<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ crontab -l\r\n* * * * * DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=\/run\/user\/1000\/bus \/home\/admin001\/bin\/notify_viruscheck_cron.sh\r\n<\/pre>\n<h2>GUI\u3067\u30a6\u30a3\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u3092\u5b9f\u884c<\/h2>\n<p>GUI\u3067\u30a6\u30a3\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u3092\u884c\u3046\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3082\u3042\u308a\u307e\u3059\u3002\u3053\u3061\u3089\u306f\u3001clamscan\u306e\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u306e\u3088\u3046\u3067\u5b9f\u884c\u306b\u306f\u6642\u9593\u304c\u304b\u304b\u308a\u307e\u3059\u3002<\/p>\n<h3>clamtk\u3092apt\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>clamtk\u3092apt\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ sudo apt install clamtk\r\n<\/pre>\n<h3>clamtk\u3092\u4f7f\u7528\u3057\u3066\u30a6\u30a3\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u3092\u5b9f\u884c<\/h3>\n<p>clamtk\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-955\" src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2018\/09\/clamtk_001.png\" alt=\"\" width=\"320\" height=\"480\" \/><br \/>\n\u300cSettings\u306e\u30a2\u30a4\u30b3\u30f3\u300d\u3092\u30c0\u30d6\u30eb\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u300cPotentially Unwanted Application (PUA)\u300d\u306e\u30c1\u30a7\u30c3\u30af\u306f\u884c\u308f\u306a\u3044\u4f8b\u3067\u3059\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-956 lazyload\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2018\/09\/clamtk_002.png\" alt=\"\" width=\"320\" height=\"480\" \/><br \/>\n\u5143\u306e\u753b\u9762\u3067\u300cScan a directory\u300d\u306e\u30a2\u30a4\u30b3\u30f3\u3092\u30c0\u30d6\u30eb\u30af\u30ea\u30c3\u30af\u3057\u3001\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u6307\u5b9a\u3057\u3066\u30b9\u30ad\u30e3\u30f3\u3092\u884c\u3046\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30a6\u30a3\u30eb\u30b9\u3092\u691c\u77e5\u3057\u307e\u3059\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2018\/09\/clamtk_003.png\" alt=\"\" class=\"alignnone size-full wp-image-978 lazyload\" width=\"480\" height=\"100\" \/><\/p>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>Ubuntu 18.04 LTS Desktop\u306bClamAV\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3001\u30a6\u30a3\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u3092\u884c\u3044\u307e\u3057\u305f\u3002cramscan\u3001cramtk\u306b\u3088\u308b\u30a6\u30a3\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u306f\u9045\u3059\u304e\u308b\u306e\u3067\u3001cramdscan\u306e\u8a2d\u5b9a\u306f\u5fc5\u9808\u3068\u601d\u3044\u307e\u3059\u3002Windows\u306e\u30d1\u30bd\u30b3\u30f3\u3068\u540c\u3058\u3088\u3046\u306b\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u30b9\u30ad\u30e3\u30f3\u3082\u554f\u984c\u306a\u304f\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u53c2\u8003\u60c5\u5831\uff08ClamAV\uff09<\/h2>\n<ul>\n<li><a href=\"http:\/\/www.clamav.net\/\" target=\"_blank\" rel=\"noopener noreferrer\">ClamAV<\/a><\/li>\n<li><a href=\"https:\/\/blog.clamav.net\/2016\/03\/configuring-on-access-scanning-in-clamav.html\" target=\"_blank\" rel=\"noopener noreferrer\">Configuring On-Access Scanning in ClamAV<\/a><\/li>\n<li><a href=\"https:\/\/www.eicar.org\/download-anti-malware-testfile\/\" target=\"_blank\" rel=\"noopener noreferrer\">Anti Malware Testfile<br \/>\n<\/a><\/li>\n<\/ul>\n<h2>\u53c2\u8003\u60c5\u5831\uff08Ubuntu\uff09<\/h2>\n<ul>\n<li><a href=\"https:\/\/www.ubuntu.com\/desktop\" target=\"_blank\" rel=\"noopener noreferrer\">Ubuntu Desktop<\/a><\/li>\n<li><a href=\"https:\/\/www.ubuntu.com\/desktop\/developers\" target=\"_blank\" rel=\"noopener noreferrer\">Ubuntu Desktop for developers<\/a><\/li>\n<li><a href=\"https:\/\/blog.ubuntu.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">ubuntu blog<\/a><\/li>\n<li><a href=\"https:\/\/wiki.ubuntu.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">ubuntu wiki<\/a><\/li>\n<\/ul>\n<h2>\u95a2\u9023\u8a18\u4e8b<\/h2>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/6571\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Ubuntu Desktop 18.04\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2022\/04\/fi_ubuntu_01-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Ubuntu Desktop 18.04\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01<\/div><div class=\"substr\">Ubuntu Desktop 18.04 LTS\u3092\u4f7f\u3044\u3053\u306a\u3059\u305f\u3081\u306e\u8a18\u4e8b\u4e00\u89a7\u3092\u63b2\u8f09\u3057\u307e\u3059\u3002...<\/div><\/a><\/div>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/5239\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Debian\u7cfb\u306eOS\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2018\/08\/eye_debian_04-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Debian\u7cfb\u306eOS\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01<\/div><div class=\"substr\">Debian\u7cfb\u306eOS\u3092\u4f7f\u3044\u3053\u306a\u3059\u305f\u3081\u306e\u8a18\u4e8b\u4e00\u89a7\u3092\u63b2\u8f09\u3057\u307e\u3059\u3002...<\/div><\/a><\/div>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/7679\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Linux\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2021\/02\/fi_linux_01-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Linux\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01<\/div><div class=\"substr\">Linux\u3092\u4f7f\u3044\u3053\u306a\u3059\u305f\u3081\u306e\u8a18\u4e8b\u4e00\u89a7\u3092\u63b2\u8f09\u3057\u307e\u3059\u3002...<\/div><\/a><\/div>\n<h2>\u95a2\u9023\u66f8\u7c4d\uff08Amazon\uff09<\/h2>\n<p><a href=\"https:\/\/amzn.to\/3vqrEPc\" rel=\"noopener\" target=\"_blank\"><img decoding=\"async\" class=\"paapi5-pa-product-image-source lazyload\" data-src=\"https:\/\/m.media-amazon.com\/images\/I\/51p2j7BlgUL._SL160_.jpg\" alt=\"N\/A\"><\/a><\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ubuntu 18.04 LTS Desktop\u3067ClamAV\u3092\u4f7f\u7528\u3057\u3066\u30a6\u30a3\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002Ubuntu\u7b49\u306eLinux\u74b0\u5883\u3067\u306f\u3001\u73fe\u72b6\u3067\u306f\u30a6\u30a3\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u306f\u4e0d\u8981\u3068\u306e\u898b\u89e3\u304c\u591a\u3044\u3067\u3059\u304c\u3001Windows\u3068\u306e\u6df7\u5728\u74b0\u5883\u3067\u3001\u30a6\u30a3\u30eb\u30b9\u3092Windo\u2026<\/p>\n","protected":false},"author":1,"featured_media":5284,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[178],"tags":[68,69],"class_list":["post-934","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu-desktop-1804","tag-clamav","tag-eicar"],"_links":{"self":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/934","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/comments?post=934"}],"version-history":[{"count":4,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/934\/revisions"}],"predecessor-version":[{"id":14961,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/934\/revisions\/14961"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media\/5284"}],"wp:attachment":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media?parent=934"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/categories?post=934"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/tags?post=934"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}