2 Jul 15:22
Visualization of the core-rules
From: Christian Bockermann <chris <at> jwall.org>
Subject: Visualization of the core-rules
Newsgroups: gmane.comp.apache.mod-security.user
Date: 2008-07-02 13:23:04 GMT
Subject: Visualization of the core-rules
Newsgroups: gmane.comp.apache.mod-security.user
Date: 2008-07-02 13:23:04 GMT
Hi,
I just wrote a little parser for reading the core-rules files into an
XML-format that can be used in a flexible way and came to the idea to
transform the XML into HTML for having a nice "visualization" of the
core-rules within your browser.
The result is a parser which does
core-rules-x.y.z.tar.gz --> XML*
and a small XSLT stylesheet, which can be used for
XML* --> HTML
This will end up in the whole core-rules being displayed as a single
web-page.
My intention to do this was basically to have a view on the core-rules
which reassembles the rule-processing flow as closely as possible to
that of the rule-engine of ModSecurity.
Thus, the rules are sorted by phases, and within the phases by the
location within the "global ruleview", i.e. in the same order they
should be processed by ModSecurity. Chained rules are also glued
together and displayed as "nested rules".
Of course, meta-information like the rule-id, rule-location within the
core-rules is also preserved and displayed. The resulting view is a
single-page html and easily lets you search using you browsers built-
in "search"-function.
If you want to have a look at it, you can find this small side-project
at
http://www.jwall.org/core-rules/
If you find any bugs (i.e. things that are wrongly ordered, etc.) or
have more ideas on how to visualize things a little better, then just
let me know. Of course, any feedback about helpfulness and the like is
also welcome
Regards,
Christian
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
RSS Feed