gonids icon indicating copy to clipboard operation
gonids copied to clipboard

Add support for *-event keywords

Open duanehoward opened this issue 6 years ago • 1 comments

Many examples in OISF ruleset[0] primarily stream-event, app-layer-event, decoder-event etc.) Probably most of these can just be tags? Documentation is rather sparse on some of these.

[0] https://github.com/OISF/suricata/tree/master/rules

duanehoward avatar Nov 10 '19 20:11 duanehoward

Hi @duanehoward,

I see you decided for *-event keywords as tags. However, current implementation is unable to process the following example taken from https://redmine.openinfosecfoundation.org/projects/suricata/wiki/Protocol_Anomalies_Detection.

s := `alert tcp any any -> any 80 (msg:"SURICATA Port 80 but not HTTP"; flow:to_server; app-layer-protocol:!http; sid:2271002; rev:1;)`

_, err := gonids.ParseRule(s)
if err != nil {
	fmt.Println(err)
}

outputs

no valid value for app-layer-protocol tag

although it is valid value for app-layer-protocol (as seen in Suricata docs).

danielpoliakov avatar Aug 05 '21 16:08 danielpoliakov