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

Feature request: mutate metadata key value pairs #80

Open
nokje opened this issue Dec 10, 2020 · 0 comments
Open

Feature request: mutate metadata key value pairs #80

nokje opened this issue Dec 10, 2020 · 0 comments

Comments

@nokje
Copy link

nokje commented Dec 10, 2020

When working with large ruleset eg. ET Pro, I'd like to use the metadata rule option to append my own key value pairs. This gives a great amount of flexibility in parsing eve.json events from Suricata.

The current function doesn't give this aption as shown by this example:
line = 'alert ip [104.206.128.14] any -> $HOME_NET any (msg:"ET 3CORESec Poor Reputation IP group 1"; reference:url,blacklist.3coresec.net/lists/et-open.txt; threshold: type limit, track by_src, seconds 3600, count 1; classtype:misc-attack; sid:2525000; rev:74; metadata:affected_product Any, attack_target Any, deployment Perimeter, tag 3CORESec, signature_severity Major, created_at 2020_07_20, updated_at 2020_10_28;)' r = rule.parse(line) r["metadata"].append("mymetadatakey somevalue") print(r["metadata"]) print(r)

While my mutation is stored inr["metadata"] it doesn't get shown when I print r.

@nokje nokje changed the title Feature request - mutate metadata key value pairs Feature request: mutate metadata key value pairs Dec 10, 2020
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

1 participant