ModSecurity: New in 2.5Performance EnhancementsSet-based Parallel Matching
Two new phrase matching operators, Transformation Function CachingStarting with ModSecurity 2.5.0, transformations will only be performed once for each transaction. If more than one rule uses the same transformed value, then the cached value is used instead of reapplying the transformations. Automated Rule Update Capability
ModSecurity deployments are frequently relying upon rule sets obtained from third-party developers.
For example, Breach Security distributes ModSecurity Core Rules freely under GPLv2. While the
installation of these rule sets is not difficult or time consuming, maintenance can be. Changes and
new discoveries are frequent in the dynamic field of web application security. The high cost of rule
set maintenance is effectively reducing the usefulness of web application firewalls. To help address
this problem, the 2.5 code archive includes a supporting tool called Enhancements to the Rules LanguageRule Customizations and Exclusions
New VariablesNew variables such as GEO which allow users to create rules based on the geographic location of clients. New Transformation FunctionsNew transformation functions added to help combat common evasion tactics used by current web attackers. Content InjectionWith the new Content Injection capabilities in ModSecurity 2.5, we have initially added two actions which will allow ModSecurity rule writers to either "prepend" or "append" any text data to text-based (html) outbound data content. The really useful idea is to inject a JavaScript fragment at the top of all outgoing HTML pages to inspect browser code that is indicative of attacks. Credit Card Number DetectionMore accurate Credit-card number detection is possible with the new Full Scripting Support using LuaThe new PDF Universal XSS ProtectionA very easy to configure set of new directives were added to address this extremely complex vulnerability. Once activated, all PDF files hosted on the website will be protected by a temporary, one-time use URL location which will securely redirect clients to download the file from the site and flush out any malicious Javascript that may have been present in the client's browser. Logging EnhancementsMlogcSupport for efficient and secure log centralization with Mlogc, the commercial tool developed by Breach to send ModSecurity audit log data to the ModSecurity Management Appliance. Debug LogRule filename and line number in debug logs to help with quicker testing and trouble-shooting. Dual Audit LoggingAudit logs can now be sent to two locations which provides more flexible log management integration. Rule MatchingAudit logs can contain a list of all rules that matched which provides a more accurate picture of rule processing. Component SignatureComponent signatures added to store relevant version information in audit log such as the exact version of Core Rules being used. |


