clamav support

This commit is contained in:
bunkerity
2020-04-11 22:01:21 +02:00
parent 193070b148
commit bf0bef289d
7 changed files with 66 additions and 9 deletions

View File

@@ -0,0 +1,2 @@
SecRule FILES_TMPNAMES "@inspectFile /opt/scripts/clamav.sh" \
"phase:2,t:none,block,msg:'Virus found in uploaded file',id:'399999'"

View File

@@ -54,6 +54,9 @@ SecAuditLogRelevantStatus "^(?:5|4(?!04))"
SecAuditLogType Serial
SecAuditLog /var/log/modsec_audit.log
# scan uploaded files with clamv
%USE_CLAMAV_UPLOAD%"
# include custom rules
%MODSECURITY_INCLUDE_CUSTOM_RULES%