How to check the latest Imunify360 WAF ruleset is installed? How to update ruleset?
Environment supported by Imunify360.
Check the current ruleset version installed on the server:
# cat /etc/apache2/conf.d/modsec_vendor_configs/imunify360_full_apache/VERSION
The full information about the vendor can be checked using this command:
# /usr/local/cpanel/scripts/modsec_vendor list
The current version will be pointed on the line for `inst_dist` as on the example below:
inst_dist | imunify360-full-apache-4.31-stable
# cat /etc/httpd/conf/modsecurity.d/rules/custom/VERSION
# cat /usr/local/directadmin/custombuild/custom/modsecurity/conf/VERSION
NB!: Based on the webserver configured (Apache or LiteSpeed) and the ruleset used (`full` or `minimal`), the paths may vary.
Compare with the recently released version we post on our changelog at https://changelog.imunify.com/waf-rules
Update the ModSecurity ruleset if necessary by running the following command and double-check the version once again:
# imunify360-agent update --force modsec-rules