文件操作 - modsecurity_crs_46_av_scanning.conf
返回文件管理
返回主菜单
删除本文件
文件: /usr/local/apache/modsecurity-owasp-old/optional_rules/modsecurity_crs_46_av_scanning.conf
编辑文件内容
# --------------------------------------------------------------- # Core ModSecurity Rule Set ver.2.2.9 # Copyright (C) 2006-2012 Trustwave All rights reserved. # # The OWASP ModSecurity Core Rule Set is distributed under # Apache Software License (ASL) version 2 # Please see the enclosed LICENCE file for full details. # --------------------------------------------------------------- # # Modify the operator to use the correct AV scanning script/tool # Example tools are in the util directory. # SecRule FILES_TMPNAMES "@inspectFile /bin/runAV" \ "phase:2,t:none,block,msg:'Virus found in uploaded file',id:'950115',tag:'MALICIOUS_SOFTWARE/VIRUS',tag:'PCI/5.1',severity:'2',setvar:tx.anomaly_score=+%{tx.critical_anomaly_score},setvar:tx.%{rule.id}-MALICIOUS_SOFTWARE/VIRUS-%{matched_var_name}=%{tx.0}"
修改文件时间
将文件时间修改为当前时间的前一年
删除文件