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

Anomaly detection #1183

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft
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: 28 additions & 0 deletions .index.json
Original file line number Diff line number Diff line change
Expand Up @@ -11141,6 +11141,34 @@
"remediation": true
}
},
"crowdsecurity/basic-anomaly-detection": {
"path": "scenarios/crowdsecurity/basic-anomaly-detection.yaml",
"version": "0.2",
"versions": {
"0.1": {
"digest": "80a65a78db5a978f620fe55f43d1b7957d0d91c626b1510352f76fa8a57c1dd6",
"deprecated": false
},
"0.2": {
"digest": "55255cc09a572804145ab7aeb7f1044f9ba2e68b0536c95f149345d5570cb69f",
"deprecated": false
}
},
"content": "dHlwZTogdHJpZ2dlcgpkZWJ1ZzogdHJ1ZQpuYW1lOiBjcm93ZHNlY3VyaXR5L21sLWFub21hbHktZGV0ZWN0aW9uCmRlc2NyaXB0aW9uOiAiRGV0ZWN0IGFub21hbG91cyBiZWhhdmlvciB1c2luZyBNTCBtb2RlbHMiCmZpbHRlcjogSXNBbm9tYWxvdXMoZXZ0Lk1ldGEuaHR0cF92ZXJiLCBldnQuTWV0YS5odHRwX3BhdGgpCiNmaWx0ZXI6ICAKZGF0YTogCiAgLSBzb3VyY2VfdXJsOiBodHRwczovL2h1Yi1kYXRhLmNyb3dkc2VjLm5ldC9tbC9hbm9tYWx5X2RldGVjdGlvbl8wLjEudGFyCiAgICBkZXN0X2ZpbGU6IGFub21hbHlfZGV0ZWN0aW9uXzAuMS50YXIKICAgIHR5cGU6IG1sX3JvYmVydGFfbW9kZWwKbGFiZWxzOgogIHJlbWVkaWF0aW9uOiB0cnVlCiAgc2VydmljZTogZm9vCiAgY2xhc3NpZmljYXRpb246CiAgICAtIGJhcgogIGJlaGF2aW9yOiAiYmFyIgogIGxhYmVsOiAiZm9vIgogIHNwb29mYWJsZTogMAogIGNvbmZpZGVuY2U6IDMK",
"description": "Detect anomalous behavior using ML models",
"author": "crowdsecurity",
"labels": {
"behavior": "bar",
"classification": [
"bar"
],
"confidence": 3,
"label": "foo",
"remediation": true,
"service": "foo",
"spoofable": 0
}
},
"crowdsecurity/configserver-lfd-bf": {
"path": "scenarios/crowdsecurity/configserver-lfd-bf.yaml",
"version": "0.1",
Expand Down
19 changes: 19 additions & 0 deletions scenarios/crowdsecurity/basic-anomaly-detection.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
type: trigger
debug: true
name: crowdsecurity/ml-anomaly-detection
description: "Detect anomalous behavior using ML models"
filter: IsAnomalous(evt.Meta.http_verb, evt.Meta.http_path)
#filter:
data:
- source_url: https://hub-data.crowdsec.net/ml/anomaly_detection_0.1.tar
dest_file: anomaly_detection_0.1.tar
type: ml_roberta_model
labels:
remediation: true
service: foo
classification:
- bar
behavior: "bar"
label: "foo"
spoofable: 0
confidence: 3
Loading