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

Suricata alert context #1126

Merged
merged 4 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 26 additions & 2 deletions .index.json
Original file line number Diff line number Diff line change
Expand Up @@ -4955,15 +4955,19 @@
},
"crowdsecurity/suricata": {
"path": "collections/crowdsecurity/suricata.yaml",
"version": "0.1",
"version": "0.2",
"versions": {
"0.1": {
"digest": "6f5d4ed7c676be6082af86c8ff771a063808a5970cb56edb9c8161c9b8390466",
"deprecated": false
},
"0.2": {
"digest": "dd64cd667d97c13485e0ca5c1274b1c33e9c98a0df76024cc12c88d461db1209",
"deprecated": false
}
},
"long_description": "IyMgU3VyaWNhdGEgY29sbGVjdGlvbgoKQSBjb2xsZWN0aW9uIGZvciB0aGUgW1N1cmljYXRhXShodHRwczovL3N1cmljYXRhLmlvLykgSURTL0lQUy4KVGhpcyBjb2xsZWN0aW9uIGNvbnRhaW5zIDoKIC0gUGFyc2VycyBmb3IgU3VyaWNhdGEgbG9ncyAoYm90aCBgZmFzdC5sb2dgIGFuZCBgZXZlLmpzb25gIGZvcm1hdHMpCiAtIFNjZW5hcmlvcyBmb3IgU3VyaWNhdGEgYWxlcnRzIDoKICAgLSB0cmlnZ2VyIGJhbiBvbiAqTWFqb3IqIChzZXZlcml0eToxKSBydWxlcwogICAtIHRyaWdnZXIgYmFuIG9uID4yICoqZGlzdGluY3QqKiBydWxlcyBvZiBzZXZlcml0eSAyCgoKTm90ZTogVGVzdGVkIHdpdGggU3VyaWNhdGEgNgoKCiMjIEFjcXVpc2l0aW9uIHRlbXBsYXRlCgpFeGFtcGxlIGFjcXVpc2l0aW9uIGZvciB0a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lwdGlvbjogInN1cmljYXRhIHN1cHBvcnQgOiBwYXJzZXIgYW5kIGF1dG9tYXRpYyByZW1lZGlhdGlvbiBvbiBoaWdoL21ham9yIGFsZXJ0cyIKYXV0aG9yOiBjcm93ZHNlY3VyaXR5CmNvbnRleHRzOgogIC0gY3Jvd2RzZWN1cml0eS9zdXJpY2F0YV9iYXNlCnRhZ3M6CiAgLSBsaW51eAogIC0gc3VyaWNhdGEKICAtIElEUwoK",
"description": "suricata support : parser and automatic remediation on high/major alerts",
"author": "crowdsecurity",
"labels": null,
Expand All @@ -4972,6 +4976,9 @@
],
"scenarios": [
"crowdsecurity/suricata-alerts"
],
"contexts": [
"crowdsecurity/suricata_base"
]
},
"crowdsecurity/synology-dsm": {
Expand Down Expand Up @@ -5965,6 +5972,23 @@
"content": "Y29udGV4dDoKICB0aHJlYXRfaWQ6CiAgLSBldnQuTWV0YS50aHJlYXRfaWQKICBzZXZlcml0eToKICAtIGV2dC5NZXRhLnNldmVyaXR5CiAgcnVsZV9uYW1lOgogIC0gZXZ0Lk1ldGEucnVsZV9uYW1lCg==",
"author": "crowdsecurity",
"labels": null
},
"crowdsecurity/suricata_base": {
"path": "contexts/crowdsecurity/suricata_base.yaml",
"version": "0.2",
"versions": {
"0.1": {
"digest": "a4fde8bbce311a7b128ead06027cf8651d1d611414b3cb3e08610671cf65f723",
"deprecated": false
},
"0.2": {
"digest": "e354b651c80c05f629930631fcbcb4c72f8e07a6ceacaccd0254cda777e027cb",
"deprecated": false
}
},
"content": "Y29udGV4dDoKICBhbGVydF9zaWduYXR1cmU6CiAgIC0gZXZ0LlBhcnNlZC5zdXJpY2F0YV9hbGVydF9zaWduYXR1cmUKICBkc3RfcG9ydDoKICAgIC0gZXZ0LlBhcnNlZC5kZXN0X3BvcnQKICAjIHNpZ25hdHVyZV9pZDoKICAjICAgLSBldnQuTWV0YS5zdXJpY2F0YV9hbGVydF9zaWduYXR1cmVfaWQK",
"author": "crowdsecurity",
"labels": null
}
},
"parsers": {
Expand Down
2 changes: 2 additions & 0 deletions collections/crowdsecurity/suricata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ scenarios:
- crowdsecurity/suricata-alerts
description: "suricata support : parser and automatic remediation on high/major alerts"
author: crowdsecurity
contexts:
- crowdsecurity/suricata_base
tags:
- linux
- suricata
Expand Down
7 changes: 7 additions & 0 deletions contexts/crowdsecurity/suricata_base.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
context:
alert_signature:
- evt.Parsed.suricata_alert_signature
dst_port:
- evt.Parsed.dest_port
# signature_id:
# - evt.Meta.suricata_alert_signature_id