Converting Snort Rules to TrafficScriptSnort is a popular open source intrusion detection system that analyzes network traffic in order to detect patterns (stored as a set of rules) that could possibly be malicious. ZXTM's TrafficScript™ has the ability to read and manipulate HTTP traffic, so we can use the Snort's well tested rules library and TrafficScript to turn ZXTM into a lightweight intrusion detection system for the HTTP servers behind it. This Perl script is able to convert the Snort rules for these patterns into TrafficScript code, and optionally upload them automatically to ZXTM via the SOAP control interface. How to use it
Command line optionsThe script has several command line options that allow you to automate most of this process, and a full listing can be viewed using --help. Testing it worksBy default most of the snort rules will add a warning message to ZXTM's log when a snort rule is matched and we can test to see if this works by trying to match one of the snort rule patterns. In this example we will try and simulate an intrusion attempt on snort rule SID:870, which checks to see if the string 'snorkerz.cmd' is in the requested URL. Therefore to test it's working we simple access a URL like http://myserver/snorkerz.cmd from an external system (i.e. a system not in the home network, alternatively you can temporarily set the home network to something like 127.0.0.1). This should cause the TrafficScript rule to write a log entry like this:
About SnortSnort was written by Marty Roesch and is available from Snort.org. It is covered by their license terms.
Matt H
[Zeus Dev Team] 20 December 2007
2 comments
Comments:This public messageboard is not a forum for technical support. To report technical support problems, please contact our dedicated Support team using the instructions at the bottom of this page.
Comment from:
Axel Larsson [Visitor]
Using the current set of certified VRT rules from snort.org, the Perl script seems to run into trouble parsing several of the rules files, including exploit.rules and misc.rules.
Perl is throwing errors like: Reading snort rule file rules/specific-threats.rules. Modification of non-creatable array value attempted, subscript -1 at ./snort2ts.pl line 464, line 20305.
Comment from:
Matt H [Zeus Dev Team]
The bug listed in the above comment should now be fixed, the new version has replaced the old one on this page.
|
Recently...
Other Resources
|


