Hallo zusammen,
ich probiere gerade das clamonacc von clamav zum Laufen zu bringen. clamd.conf habe ich angepasst. Das Service/Daemon habe ich gestartet. Beim Öffnen b.z.w. Hantieren mit der Eicar-Test-Datei wird sie nicht als Virus erkannt. Beim scannen mit clamscan wird sie erkannt.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | neo@ub-x64:~/Downloads$ clamscan Loading: 6s, ETA: 0s [========================>] 3.63M/3.63M sigs Compiling: 2s, ETA: 0s [========================>] 41/41 tasks /home/neo/Downloads/maual_scan.log: Empty file /home/neo/Downloads/eicar.txt: Eicar-Signature FOUND ----------- SCAN SUMMARY ----------- Known viruses: 3627109 Engine version: 1.4.3 Scanned directories: 1 Scanned files: 1 Infected files: 1 Data scanned: 0.00 MB Data read: 0.00 MB (ratio 0.00:1) Time: 7.672 sec (0 m 7 s) Start Date: 2026:01:08 17:14:03 End Date: 2026:01:08 17:14:11 |
Status von clamav-daemon
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | neo@ub-x64:~$ systemctl status clamav-daemon ● clamav-daemon.service - Clam AntiVirus userspace daemon Loaded: loaded (/usr/lib/systemd/system/clamav-daemon.service; enabled; preset: enabled) Drop-In: /etc/systemd/system/clamav-daemon.service.d └─extend.conf Active: active (running) since Thu 2026-01-08 17:17:34 CET; 2s ago TriggeredBy: ● clamav-daemon.socket Docs: man:clamd(8) man:clamd.conf(5) https://docs.clamav.net/ Process: 376136 ExecStartPre=/bin/mkdir -p /run/clamav (code=exited, status=0/SUCCESS) Process: 376154 ExecStartPre=/bin/chown clamav /run/clamav (code=exited, status=0/SUCCESS) Main PID: 376156 (clamd) Tasks: 1 (limit: 33090) Memory: 257.0M (peak: 257.2M) CPU: 2.397s CGroup: /system.slice/clamav-daemon.service └─376156 /usr/sbin/clamd --foreground=true Jan 08 17:17:34 ub-x64 systemd[1]: Starting clamav-daemon.service - Clam AntiVirus userspace daemon... Jan 08 17:17:34 ub-x64 systemd[1]: Started clamav-daemon.service - Clam AntiVirus userspace daemon. Jan 08 17:17:34 ub-x64 clamd[376156]: Received 1 file descriptor(s) from systemd. Jan 08 17:17:34 ub-x64 clamd[376156]: clamd daemon 1.4.3 (OS: Linux, ARCH: x86_64, CPU: x86_64) Jan 08 17:17:34 ub-x64 clamd[376156]: Log file size limited to 9223372036854775807 bytes. Jan 08 17:17:34 ub-x64 clamd[376156]: Reading databases from /var/lib/clamav Jan 08 17:17:34 ub-x64 clamd[376156]: Not loading PUA signatures. Jan 08 17:17:34 ub-x64 clamd[376156]: Bytecode: Security mode set to "TrustSigned". |
Status von clamav-clamonacc.service
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | neo@ub-x64:~$ systemctl status clamav-clamonacc.service ● clamav-clamonacc.service - ClamAV On-Access Scanner Loaded: loaded (/usr/lib/systemd/system/clamav-clamonacc.service; enabled; preset: enabled) Active: active (running) since Thu 2026-01-08 17:19:12 CET; 2s ago Docs: man:clamonacc(8) man:clamd.conf(5) https://docs.clamav.net/ Process: 379862 ExecStartPre=/bin/bash -c while [ ! -S /run/clamav/clamd.ctl ]; do sleep 1; done (code=exited, status=0/SUCCESS) Main PID: 379866 (clamonacc) Tasks: 7 (limit: 33090) Memory: 3.5M (peak: 4.7M) CPU: 511ms CGroup: /system.slice/clamav-clamonacc.service └─379866 /usr/sbin/clamonacc -F --log=/var/log/clamav/clamonacc.log --move=/root/quarantine Jan 08 17:19:14 ub-x64 clamonacc[379866]: /usr/bin/dash: Access denied. ERROR Jan 08 17:19:14 ub-x64 clamonacc[379866]: /usr/bin/dash: Access denied. ERROR Jan 08 17:19:15 ub-x64 clamonacc[379866]: /usr/bin/lsb_release: Access denied. ERROR Jan 08 17:19:15 ub-x64 clamonacc[379866]: /usr/bin/lsb_release: Access denied. ERROR Jan 08 17:19:15 ub-x64 clamonacc[379866]: /usr/bin/lsb_release: Access denied. ERROR Jan 08 17:19:15 ub-x64 clamonacc[379866]: /usr/bin/getopt: Access denied. ERROR Jan 08 17:19:15 ub-x64 clamonacc[379866]: /usr/bin/getopt: Access denied. ERROR Jan 08 17:19:15 ub-x64 clamonacc[379866]: /usr/bin/cut: Access denied. ERROR Jan 08 17:19:15 ub-x64 clamonacc[379866]: /usr/bin/tr: Access denied. ERROR Jan 08 17:19:15 ub-x64 clamonacc[379866]: /usr/bin/tr: Access denied. ERROR |
Komisch hier ist, dass ich als Pfad in die clamav.conf /home/neo eingegeben habe und nicht /.
Hier den Zugriff auf Eicar-Text-Datei. Normalerweise soll die clamonacc den Zugriff mit einer Warnung verweigern
1 2 | neo@ub-x64:~$ cat Downloads/eicar.txt X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H* |
Und als letzeres die Konfigurationsdatei von Clamav clamd.conf , freshclam.conf und clamav-milter.conf, wobei die letzten zwei wurden automatisch durch sudo dpkg-reconfigure clamav-daemon generiert.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 | Checking configuration files in /etc/clamav Config file: clamd.conf ----------------------- AlertExceedsMax disabled CacheSize = "65536" PreludeEnable disabled PreludeAnalyzerName = "ClamAV" LogFile = "/var/log/clamav/clamav.log" LogFileUnlock disabled LogFileMaxSize = "9223372036854775807" LogTime = "yes" LogClean disabled LogSyslog = "yes" LogFacility = "LOG_LOCAL6" LogVerbose disabled LogRotate = "yes" ExtendedDetectionInfo = "yes" PidFile disabled TemporaryDirectory disabled DatabaseDirectory = "/var/lib/clamav" OfficialDatabaseOnly disabled FailIfCvdOlderThan disabled LocalSocket = "/var/run/clamav/clamd.ctl" LocalSocketGroup = "clamav" LocalSocketMode = "666" FixStaleSocket = "yes" TCPSocket disabled TCPAddr disabled MaxConnectionQueueLength = "15" StreamMaxLength = "26214400" StreamMinPort = "1024" StreamMaxPort = "2048" MaxThreads = "12" ReadTimeout = "180" CommandReadTimeout = "30" SendBufTimeout = "200" MaxQueue = "100" IdleTimeout = "30" ExcludePath disabled MaxDirectoryRecursion = "15" FollowDirectorySymlinks disabled FollowFileSymlinks = "yes" CrossFilesystems = "yes" SelfCheck = "3600" ConcurrentDatabaseReload = "yes" DisableCache disabled VirusEvent disabled ExitOnOOM disabled AllowAllMatchScan = "yes" Foreground disabled Debug disabled LeaveTemporaryFiles disabled GenerateMetadataJson disabled User = "clamav" Bytecode = "yes" BytecodeSecurity = "TrustSigned" BytecodeTimeout = "60000" BytecodeUnsigned disabled BytecodeMode = "Auto" DetectPUA disabled ExcludePUA disabled IncludePUA disabled ScanPE = "yes" ScanELF = "yes" ScanMail = "yes" ScanPartialMessages disabled PhishingSignatures = "yes" PhishingScanURLs = "yes" HeuristicAlerts = "yes" HeuristicScanPrecedence disabled StructuredDataDetection disabled StructuredMinCreditCardCount = "3" StructuredMinSSNCount = "3" StructuredSSNFormatNormal = "yes" StructuredSSNFormatStripped disabled ScanHTML = "yes" ScanOLE2 = "yes" AlertBrokenExecutables disabled AlertBrokenMedia disabled AlertEncrypted disabled StructuredCCOnly disabled AlertEncryptedArchive disabled AlertEncryptedDoc disabled AlertOLE2Macros disabled AlertPhishingSSLMismatch disabled AlertPhishingCloak disabled AlertPartitionIntersection disabled ScanPDF = "yes" ScanSWF = "yes" ScanXMLDOCS = "yes" ScanHWP3 = "yes" ScanOneNote = "yes" ScanArchive = "yes" ScanImage = "yes" ScanImageFuzzyHash = "yes" ForceToDisk disabled MaxScanTime = "120000" MaxScanSize = "104857600" MaxFileSize = "26214400" MaxRecursion = "16" MaxFiles = "10000" MaxEmbeddedPE = "10485760" MaxHTMLNormalize = "10485760" MaxHTMLNoTags = "2097152" MaxScriptNormalize = "5242880" MaxZipTypeRcg = "1048576" MaxPartitions = "50" MaxIconsPE = "100" MaxRecHWP3 = "16" PCREMatchLimit = "10000" PCRERecMatchLimit = "5000" PCREMaxFileSize = "26214400" OnAccessMountPath = "/home/neo" OnAccessIncludePath disabled OnAccessExcludePath disabled OnAccessExcludeRootUID disabled OnAccessExcludeUID disabled OnAccessExcludeUname = "clamav" OnAccessMaxFileSize = "4194304000" OnAccessDisableDDD disabled OnAccessPrevention disabled OnAccessExtraScanning = "yes" OnAccessCurlTimeout = "5000" OnAccessMaxThreads = "5" OnAccessRetryAttempts disabled OnAccessDenyOnError disabled DevACOnly disabled DevACDepth disabled DevPerformance disabled DevLiblog disabled DisableCertCheck disabled AlgorithmicDetection = "yes" BlockMax disabled PhishingAlwaysBlockSSLMismatch disabled PhishingAlwaysBlockCloak disabled PartitionIntersection disabled OLE2BlockMacros disabled ArchiveBlockEncrypted disabled Config file: freshclam.conf --------------------------- LogFileMaxSize = "9223372036854775807" LogTime = "yes" LogSyslog disabled LogFacility = "LOG_LOCAL6" LogVerbose disabled LogRotate = "yes" PidFile disabled DatabaseDirectory = "/var/lib/clamav" Foreground disabled Debug disabled UpdateLogFile = "/var/log/clamav/freshclam.log" DatabaseOwner = "clamav" Checks = "24" DNSDatabaseInfo = "current.cvd.clamav.net" DatabaseMirror = "db.local.clamav.net", "database.clamav.net" PrivateMirror disabled MaxAttempts = "5" ScriptedUpdates = "yes" TestDatabases = "yes" CompressLocalDatabase disabled ExtraDatabase disabled ExcludeDatabase disabled DatabaseCustomURL disabled HTTPProxyServer disabled HTTPProxyPort disabled HTTPProxyUsername disabled HTTPProxyPassword disabled HTTPUserAgent disabled NotifyClamd = "/etc/clamav/clamd.conf" OnUpdateExecute disabled OnErrorExecute disabled OnOutdatedExecute disabled LocalIPAddress disabled ConnectTimeout = "30" ReceiveTimeout disabled Bytecode = "yes" Config file: clamav-milter.conf ------------------------------- LogFile = "/var/log/clamav/clamav-milter.log" LogFileUnlock disabled LogFileMaxSize = "1048576" LogTime = "yes" LogSyslog disabled LogFacility = "LOG_LOCAL6" LogVerbose disabled LogRotate = "yes" PidFile = "/var/run/clamav/clamav-milter.pid" TemporaryDirectory = "/tmp" FixStaleSocket = "yes" MaxThreads = "10" ReadTimeout = "120" Foreground disabled User = "clamav" MaxFileSize = "26214400" ClamdSocket = "unix:/var/run/clamav/clamd.ctl" MilterSocket = "/var/run/clamav/clamav-milter.ctl" MilterSocketGroup = "clamav" MilterSocketMode = "666" LocalNet disabled OnClean = "Accept" OnInfected = "Quarantine" OnFail = "Defer" RejectMsg disabled AddHeader = "Replace" ReportHostname disabled VirusAction disabled Chroot disabled AllowList disabled Whitelist disabled SkipAuthenticated disabled LogInfected = "Off" LogClean = "Off" SupportMultipleRecipients disabled Software settings ----------------- Version: 1.4.3 Optional features supported: MEMPOOL AUTOIT_EA06 ICONV RAR Database information -------------------- Database directory: /var/lib/clamav main.cvd: version 63, sigs: 3287027, built on Wed Dec 17 00:18:22 2025 bytecode.cvd: version 339, sigs: 80, built on Thu Sep 11 14:29:19 2025 daily.cvd: version 27869, sigs: 354683, built on Sat Jan 3 08:25:47 2026 Total number of signatures: 3641790 Platform information -------------------- uname: Linux 6.14.0-37-generic #37~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 20 10:25:38 UTC 2 x86_64 OS: Linux, ARCH: x86_64, CPU: x86_64 Full OS version: Ubuntu 24.04.3 LTS zlib version: 1.3 (1.3), compile flags: a9 platform id: 0x0a21d5d508000000000d0300 Build information ----------------- GNU C: 13.3.0 (13.3.0) sizeof(void*) = 8 Engine flevel: 213, dconf: 213 |
Nutzt jemand von euch schon clamonacc und vor allem wie hat ihr es konfiguriert.