security/clamav: add third party signatures (#1184)

This commit is contained in:
Michael
2019-02-13 08:31:21 +01:00
committed by Franco Fichtner
parent d13f2ad736
commit 612f20c104
5 changed files with 95 additions and 4 deletions
+1 -2
View File
@@ -1,6 +1,5 @@
PLUGIN_NAME= clamav
PLUGIN_VERSION= 1.5
PLUGIN_REVISION= 1
PLUGIN_VERSION= 1.6
PLUGIN_COMMENT= Antivirus engine for detecting malicious threats
PLUGIN_DEPENDS= clamav
PLUGIN_MAINTAINER= m.muenz@gmail.com
+34
View File
@@ -5,4 +5,38 @@ including a flexible and scalable multi-threaded daemon,
a command line scanner and an advanced tool for automatic
database updates.
Plugin Changelog
================
1.6
* Add optional signature sources
1.5
* Fix symlink permission
* Fixed some bugs in log viewer
1.4
* Add MutableController code
1.3
* Add Log viewer
1.2
* New tab to show current ClamAV version
1.1
* Make signatures persistent in MFS installations
1.0
* Clamd and Freshclam services, allowing most known options to be configured
WWW: https://www.clamav.net/
@@ -177,4 +177,28 @@
<type>text</type>
<help>Timeout in seconds when connecting to database server.</help>
</field>
<field>
<id>general.fc_malwareexpert</id>
<label>Add Malware Expert Signatures</label>
<type>checkbox</type>
<help>Activate third party signatures from Malware Expert. Use at your own risk.</help>
</field>
<field>
<id>general.fc_blurl</id>
<label>Add BLURL Signatures</label>
<type>checkbox</type>
<help>Activate third party signatures from BLURL. Use at your own risk.</help>
</field>
<field>
<id>general.fc_jurlbla</id>
<label>Add BLURL Signatures</label>
<type>checkbox</type>
<help>Activate third party signatures from Sanesecurtiy JURLBLA. Use at your own risk.</help>
</field>
<field>
<id>general.fc_bofhland</id>
<label>Add BOFHLand Signatures</label>
<type>checkbox</type>
<help>Activate third party signatures from Sanesecurtiy BOFHLand. Use at your own risk.</help>
</field>
</form>
@@ -123,5 +123,21 @@
<default>60</default>
<Required>Y</Required>
</fc_timeout>
</items>
<fc_malwareexpert type="BooleanField">
<default>0</default>
<Required>N</Required>
</fc_malwareexpert>
<fc_blurl type="BooleanField">
<default>0</default>
<Required>N</Required>
</fc_blurl>
<fc_jurlbla type="BooleanField">
<default>0</default>
<Required>N</Required>
</fc_jurlbla>
<fc_bofhland type="BooleanField">
<default>0</default>
<Required>N</Required>
</fc_bofhland>
</items>
</model>
@@ -13,10 +13,28 @@ PidFile /var/run/clamav/freshclam.pid
DatabaseOwner clamav
AllowSupplementaryGroups yes
{% if helpers.exists('OPNsense.clamav.general.fc_malwareexpert') and OPNsense.clamav.general.fc_malwareexpert == '1' %}
DatabaseCustomURL http://cdn.malware.expert/malware.expert.ndb
DatabaseCustomURL http://cdn.malware.expert/malware.expert.hdb
DatabaseCustomURL http://cdn.malware.expert/malware.expert.ldb
DatabaseCustomURL http://cdn.malware.expert/malware.expert.fp
{% endif %}
{% if helpers.exists('OPNsense.clamav.general.fc_blurl') and OPNsense.clamav.general.fc_blurl == '1' %}
DatabaseCustomURL http://ftp.swin.edu.au/sanesecurity/blurl.ndb
{% endif %}
{% if helpers.exists('OPNsense.clamav.general.fc_jurlbla') and OPNsense.clamav.general.fc_jurlbla == '1' %}
DatabaseCustomURL http://ftp.swin.edu.au/sanesecurity/jurlbla.ndb
{% endif %}
{% if helpers.exists('OPNsense.clamav.general.fc_bofhland') and OPNsense.clamav.general.fc_bofhland == '1' %}
DatabaseCustomURL http://ftp.swin.edu.au/sanesecurity/bofhland_phishing_URL.ndb
DatabaseCustomURL http://ftp.swin.edu.au/sanesecurity/bofhland_malware_attach.hdb
DatabaseCustomURL http://ftp.swin.edu.au/sanesecurity/bofhland_malware_URL.ndb
DatabaseCustomURL http://ftp.swin.edu.au/sanesecurity/bofhland_cracked_URL.ndb
{% endif %}
NotifyClamd /usr/local/etc/clamd.conf
{% if helpers.exists('OPNsense.clamav.general.fc_databasemirror') and OPNsense.clamav.general.fc_databasemirror != '' %}
DatabaseMirror {{ OPNsense.clamav.general.fc_databasemirror }}
{% endif %}
NotifyClamd /usr/local/etc/clamd.conf
{% if helpers.exists('OPNsense.clamav.general.fc_timeout') and OPNsense.clamav.general.fc_timeout != '' %}
ConnectTimeout {{ OPNsense.clamav.general.fc_timeout }}
{% endif %}