1111# LogFile must be writable for the user running daemon.
1212# A full path is required.
1313# Default: disabled
14+
1415LogFile /var/log/clamav/clamd.log
1516
1617# By default the log file is locked for writing - the lock protects against
@@ -50,7 +51,6 @@ LogTime yes
5051
5152# Enable verbose logging.
5253# Default: no
53- # Modified by Xenit
5454LogVerbose yes
5555
5656# Enable log rotation. Always enabled when LogFileMaxSize is enabled.
@@ -70,12 +70,12 @@ LogVerbose yes
7070#ExtendedDetectionInfo yes
7171
7272# This option allows you to save a process identifier of the listening
73- # daemon (main thread) .
73+ # daemon.
7474# This file will be owned by root, as long as clamd was started by root.
7575# It is recommended that the directory where this file is stored is
7676# also owned by root to keep other users from tampering with it.
7777# Default: disabled
78- PidFile /run/lock /clamd.pid
78+ PidFile /run/clamav /clamd.pid
7979
8080# Optional path to the global temporary directory.
8181# Default: system specific (usually /tmp or /var/tmp).
@@ -89,12 +89,18 @@ PidFile /run/lock/clamd.pid
8989# Default: no
9090#OfficialDatabaseOnly no
9191
92+ # Return with a nonzero error code if the virus database is older than
93+ # the specified number of days.
94+ # Default: -1
95+ #FailIfCvdOlderThan 7
96+
9297# The daemon can work in local mode, network mode or both.
9398# Due to security reasons we recommend the local mode.
9499
95100# Path to a local socket file the daemon will listen on.
96101# Default: disabled (must be specified by a user)
97102LocalSocket /run/clamav/clamd.sock
103+ #LocalSocket /tmp/clamd.sock
98104
99105# Sets the group ownership on the unix socket.
100106# Default: disabled (the primary group of the user running clamd)
@@ -106,7 +112,7 @@ LocalSocket /run/clamav/clamd.sock
106112
107113# Remove stale socket after unclean shutdown.
108114# Default: yes
109- #FixStaleSocket yes
115+ #FixStaleSocket no
110116
111117# TCP port address.
112118# Default: no
@@ -118,7 +124,7 @@ TCPSocket 3310
118124# from the outside world. This option can be specified multiple
119125# times if you want to listen on multiple IPs. IPv6 is now supported.
120126# Default: no
121- #TCPAddr 0.0.0.0
127+ #TCPAddr localhost
122128
123129# Maximum length the queue of pending connections may grow to.
124130# Default: 200
@@ -131,7 +137,6 @@ TCPSocket 3310
131137# Close the connection when the data size limit is exceeded.
132138# The value should match your MTA's limit for a maximum attachment size.
133139# Default: 100M
134- # Modified by Xenit
135140StreamMaxLength 2048M
136141
137142# Limit port range.
@@ -195,7 +200,7 @@ StreamMaxLength 2048M
195200
196201# Scan files and directories on other filesystems.
197202# Default: yes
198- #CrossFilesystems yes
203+ #CrossFilesystems no
199204
200205# Perform a database check.
201206# Default: 600 (10 min)
@@ -211,12 +216,18 @@ StreamMaxLength 2048M
211216# Default: yes
212217#ConcurrentDatabaseReload no
213218
214- # Execute a command when virus is found. In the command string %v will
215- # be replaced with the virus name and %f will be replaced with the file name.
216- # Additionally, two environment variables will be defined: $CLAM_VIRUSEVENT_FILENAME
217- # and $CLAM_VIRUSEVENT_VIRUSNAME.
219+ # Execute a command when virus is found.
220+ # Use the following environment variables to identify the file and virus names:
221+ # - $CLAM_VIRUSEVENT_FILENAME
222+ # - $CLAM_VIRUSEVENT_VIRUSNAME
223+ # In the command string, '%v' will also be replaced with the virus name.
224+ # Note: The '%f' filename format character has been disabled and will no longer
225+ # be replaced with the file name, due to command injection security concerns.
226+ # Use the 'CLAM_VIRUSEVENT_FILENAME' environment variable instead.
227+ # For the same reason, you should NOT use the environment variables in the
228+ # command directly, but should use it carefully from your executed script.
218229# Default: no
219- #VirusEvent /usr/local/bin/send_sms 123456789 "VIRUS ALERT: %v in %f"
230+ #VirusEvent /opt/send_virus_alert_sms.sh
220231
221232# Run as another user (clamd must be started by root for this option to work)
222233# Default: don't drop privileges
@@ -279,12 +290,17 @@ User clamav
279290# Default: no
280291#DisableCache yes
281292
293+ # This option allows you to set the number of entries the cache can store.
294+ # The value should be a square number or will be rounded up to the nearest
295+ # square number.
296+ #CacheSize 65536
297+
282298# In some cases (eg. complex malware, exploits in graphic files, and others),
283299# ClamAV uses special algorithms to detect abnormal patterns and behaviors that
284300# may be malicious. This option enables alerting on such heuristically
285301# detected potential threats.
286302# Default: yes
287- #HeuristicAlerts yes
303+ #HeuristicAlerts no
288304
289305# Allow heuristic alerts to take precedence.
290306# When enabled, if a heuristic scan (such as phishingScan) detects
@@ -362,7 +378,7 @@ User clamav
362378# and Petite. If you turn off this option, the original files will still be
363379# scanned, but without additional processing.
364380# Default: yes
365- #ScanPE yes
381+ #ScanPE no
366382
367383# Certain PE files contain an authenticode signature. By default, we check
368384# the signature chain in the PE file against a database of trusted and
@@ -379,7 +395,7 @@ User clamav
379395# If you turn off this option, the original files will still be scanned, but
380396# without additional processing.
381397# Default: yes
382- #ScanELF yes
398+ #ScanELF no
383399
384400
385401##
@@ -391,31 +407,56 @@ User clamav
391407# If you turn off this option, the original files will still be scanned, but
392408# without additional processing.
393409# Default: yes
394- #ScanOLE2 yes
410+ #ScanOLE2 no
395411
396412# This option enables scanning within PDF files.
397413# If you turn off this option, the original files will still be scanned, but
398414# without decoding and additional processing.
399415# Default: yes
400- #ScanPDF yes
416+ #ScanPDF no
401417
402418# This option enables scanning within SWF files.
403419# If you turn off this option, the original files will still be scanned, but
404420# without decoding and additional processing.
405421# Default: yes
406- #ScanSWF yes
422+ #ScanSWF no
407423
408424# This option enables scanning xml-based document files supported by libclamav.
409425# If you turn off this option, the original files will still be scanned, but
410426# without additional processing.
411427# Default: yes
412- #ScanXMLDOCS yes
428+ #ScanXMLDOCS no
413429
414430# This option enables scanning of HWP3 files.
415431# If you turn off this option, the original files will still be scanned, but
416432# without additional processing.
417433# Default: yes
418- #ScanHWP3 yes
434+ #ScanHWP3 no
435+
436+ # This option enables scanning of OneNote files.
437+ # If you turn off this option, the original files will still be scanned, but
438+ # without additional processing.
439+ # Default: yes
440+ #ScanOneNote no
441+
442+
443+ ##
444+ ## Other file types
445+ ##
446+
447+ # This option enables scanning of image (graphics).
448+ # If you turn off this option, the original files will still be scanned, but
449+ # without additional processing.
450+ # Default: yes
451+ #ScanImage no
452+
453+ # This option enables detection by calculating a fuzzy hash of image (graphics)
454+ # files.
455+ # Signatures using image fuzzy hashes typically match files and documents by
456+ # identifying images embedded or attached to those files.
457+ # If you turn off this option, then some files may no longer be detected.
458+ # Default: yes
459+ #ScanImageFuzzyHash no
419460
420461
421462##
@@ -426,13 +467,13 @@ User clamav
426467# If you turn off this option, the original files will still be scanned, but
427468# without parsing individual messages/attachments.
428469# Default: yes
429- #ScanMail yes
470+ #ScanMail no
430471
431472# Scan RFC1341 messages split over many emails.
432473# You will need to periodically clean up $TemporaryDirectory/clamav-partial
433474# directory.
434475# WARNING: This option may open your system to a DoS attack.
435- # Never use it on loaded servers.
476+ # Never use it on loaded servers.
436477# Default: no
437478#ScanPartialMessages yes
438479
@@ -473,7 +514,7 @@ User clamav
473514# With this option enabled the DLP module will search for valid
474515# SSNs formatted as xxx-yy-zzzz
475516# Default: yes
476- #StructuredSSNFormatNormal yes
517+ #StructuredSSNFormatNormal no
477518
478519# With this option enabled the DLP module will search for valid
479520# SSNs formatted as xxxyyzzzz
@@ -489,7 +530,7 @@ User clamav
489530# Default: yes
490531# If you turn off this option, the original files will still be scanned, but
491532# without additional processing.
492- #ScanHTML yes
533+ #ScanHTML no
493534
494535
495536##
@@ -500,7 +541,7 @@ User clamav
500541# If you turn off this option, the original files will still be scanned, but
501542# without unpacking and additional processing.
502543# Default: yes
503- #ScanArchive yes
544+ #ScanArchive no
504545
505546
506547##
@@ -527,7 +568,6 @@ User clamav
527568# Note: disabling this limit or setting it too high may result in severe damage
528569# to the system.
529570# Default: 400M
530- # Modified by Xenit
531571MaxScanSize 2048M
532572
533573# Files larger than this limit won't be scanned. Affects the input file itself
@@ -539,7 +579,6 @@ MaxScanSize 2048M
539579# Technical design limitations prevent ClamAV from scanning files greater than
540580# 2 GB at this time.
541581# Default: 100M
542- # Modified by Xenit
543582MaxFileSize 2048M
544583
545584# Nested archives are scanned recursively, e.g. if a Zip archive contains a RAR
@@ -675,7 +714,7 @@ MaxFileSize 2048M
675714#OnAccessMaxThreads 10
676715
677716# Max amount of time (in milliseconds) that the OnAccess client should spend
678- # for every connect, send, and recieve attempt when communicating with clamd
717+ # for every connect, send, and receive attempt when communicating with clamd
679718# via curl.
680719# Default: 5000 (5 seconds)
681720# OnAccessCurlTimeout 10000
@@ -774,7 +813,7 @@ MaxFileSize 2048M
774813# It is highly recommended you keep this option on, otherwise you'll miss
775814# detections for many new viruses.
776815# Default: yes
777- #Bytecode yes
816+ #Bytecode no
778817
779818# Set bytecode security level.
780819# Possible values:
@@ -801,5 +840,5 @@ MaxFileSize 2048M
801840
802841# Set bytecode timeout in milliseconds.
803842#
804- # Default: 5000
805- # BytecodeTimeout 1000
843+ # Default: 10000
844+ # BytecodeTimeout 1000
0 commit comments