Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for *-event keywords #89

Open
duanehoward opened this issue Nov 10, 2019 · 1 comment
Open

Add support for *-event keywords #89

duanehoward opened this issue Nov 10, 2019 · 1 comment

Comments

@duanehoward
Copy link
Collaborator

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

@danielpoliakov
Copy link
Contributor

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants