mirror of
https://github.com/marcredhat/SIEM-toolkit-patched
synced 2026-06-11 05:41:19 +00:00
Snapshot 95 demo-tenant parsers (incl. stormshield) + un-ignore parsers/
The original upstream gitignores parsers/* on the assumption that each tenant has its own set. This fork commits a working snapshot so the Parser Test Runner and Parser Coverage features are usable out of the box. Stormshield parser exercises the new SDL key=value scanner, pattern references, and JS-style unquoted format keys added to backend/routers/quality.py.
This commit is contained in:
@@ -0,0 +1,261 @@
|
||||
{
|
||||
"attributes": {
|
||||
"dataSource.vendor": "Harness",
|
||||
"dataSource.name": "Harness CI/CD",
|
||||
"dataSource.category": "security",
|
||||
"metadata.product.vendor_name": "Harness",
|
||||
"metadata.product.name": "Harness CI/CD",
|
||||
"metadata.version": "1.0.0"
|
||||
},
|
||||
"formats": [
|
||||
{
|
||||
"format": "$timestamp$ Harness pipelineId=\"$pipeline_id$\" executionId=\"$execution_id$\" status=\"$status$\" trigger=\"$trigger$\" initiator=\"$initiator$\" message=\"$message$\"",
|
||||
"rewrites": [
|
||||
{
|
||||
"input": "timestamp",
|
||||
"output": "timestamp",
|
||||
"match": ".*",
|
||||
"replace": "$0"
|
||||
},
|
||||
{
|
||||
"input": "pipeline_id",
|
||||
"output": "job.name",
|
||||
"match": ".*",
|
||||
"replace": "$0"
|
||||
},
|
||||
{
|
||||
"input": "execution_id",
|
||||
"output": "job.uid",
|
||||
"match": ".*",
|
||||
"replace": "$0"
|
||||
},
|
||||
{
|
||||
"input": "status",
|
||||
"output": "status_detail",
|
||||
"match": ".*",
|
||||
"replace": "$0"
|
||||
},
|
||||
{
|
||||
"input": "trigger",
|
||||
"output": "job.run_type",
|
||||
"match": ".*",
|
||||
"replace": "$0"
|
||||
},
|
||||
{
|
||||
"input": "initiator",
|
||||
"output": "actor.user.name",
|
||||
"match": ".*",
|
||||
"replace": "$0"
|
||||
},
|
||||
{
|
||||
"input": "message",
|
||||
"output": "message",
|
||||
"match": ".*",
|
||||
"replace": "$0"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"mappings": {
|
||||
"version": 1,
|
||||
"mappings": [
|
||||
{
|
||||
"predicate": "status_detail = *",
|
||||
"transformations": [
|
||||
{
|
||||
"constant": {
|
||||
"value": 6003,
|
||||
"field": "class_uid"
|
||||
}
|
||||
},
|
||||
{
|
||||
"constant": {
|
||||
"value": "Job Activity",
|
||||
"field": "class_name"
|
||||
}
|
||||
},
|
||||
{
|
||||
"constant": {
|
||||
"value": 6,
|
||||
"field": "category_uid"
|
||||
}
|
||||
},
|
||||
{
|
||||
"constant": {
|
||||
"value": "Application Activity",
|
||||
"field": "category_name"
|
||||
}
|
||||
},
|
||||
{
|
||||
"constant": {
|
||||
"value": 1,
|
||||
"field": "activity_id",
|
||||
"predicate": "status_detail = 'STARTED' OR status_detail = 'RUNNING'"
|
||||
}
|
||||
},
|
||||
{
|
||||
"constant": {
|
||||
"value": "Start",
|
||||
"field": "activity_name",
|
||||
"predicate": "status_detail = 'STARTED' OR status_detail = 'RUNNING'"
|
||||
}
|
||||
},
|
||||
{
|
||||
"constant": {
|
||||
"value": 2,
|
||||
"field": "activity_id",
|
||||
"predicate": "status_detail = 'SUCCEEDED'"
|
||||
}
|
||||
},
|
||||
{
|
||||
"constant": {
|
||||
"value": "Complete",
|
||||
"field": "activity_name",
|
||||
"predicate": "status_detail = 'SUCCEEDED'"
|
||||
}
|
||||
},
|
||||
{
|
||||
"constant": {
|
||||
"value": 3,
|
||||
"field": "activity_id",
|
||||
"predicate": "status_detail = 'CANCELLED' OR status_detail = 'PAUSED'"
|
||||
}
|
||||
},
|
||||
{
|
||||
"constant": {
|
||||
"value": "Cancel",
|
||||
"field": "activity_name",
|
||||
"predicate": "status_detail = 'CANCELLED' OR status_detail = 'PAUSED'"
|
||||
}
|
||||
},
|
||||
{
|
||||
"constant": {
|
||||
"value": 99,
|
||||
"field": "activity_id",
|
||||
"predicate": "status_detail = 'FAILED'"
|
||||
}
|
||||
},
|
||||
{
|
||||
"constant": {
|
||||
"value": "Other",
|
||||
"field": "activity_name",
|
||||
"predicate": "status_detail = 'FAILED'"
|
||||
}
|
||||
},
|
||||
{
|
||||
"constant": {
|
||||
"value": 1,
|
||||
"field": "status_id",
|
||||
"predicate": "status_detail = 'SUCCEEDED' OR status_detail = 'STARTED' OR status_detail = 'RUNNING'"
|
||||
}
|
||||
},
|
||||
{
|
||||
"constant": {
|
||||
"value": "Success",
|
||||
"field": "status",
|
||||
"predicate": "status_detail = 'SUCCEEDED' OR status_detail = 'STARTED' OR status_detail = 'RUNNING'"
|
||||
}
|
||||
},
|
||||
{
|
||||
"constant": {
|
||||
"value": 2,
|
||||
"field": "status_id",
|
||||
"predicate": "status_detail = 'FAILED'"
|
||||
}
|
||||
},
|
||||
{
|
||||
"constant": {
|
||||
"value": "Failure",
|
||||
"field": "status",
|
||||
"predicate": "status_detail = 'FAILED'"
|
||||
}
|
||||
},
|
||||
{
|
||||
"constant": {
|
||||
"value": 99,
|
||||
"field": "status_id",
|
||||
"predicate": "status_detail = 'CANCELLED' OR status_detail = 'PAUSED'"
|
||||
}
|
||||
},
|
||||
{
|
||||
"constant": {
|
||||
"value": "Other",
|
||||
"field": "status",
|
||||
"predicate": "status_detail = 'CANCELLED' OR status_detail = 'PAUSED'"
|
||||
}
|
||||
},
|
||||
{
|
||||
"constant": {
|
||||
"value": 1,
|
||||
"field": "severity_id"
|
||||
}
|
||||
},
|
||||
{
|
||||
"constant": {
|
||||
"value": "Informational",
|
||||
"field": "severity"
|
||||
}
|
||||
},
|
||||
{
|
||||
"constant": {
|
||||
"value": 600301,
|
||||
"field": "type_uid"
|
||||
}
|
||||
},
|
||||
{
|
||||
"copy": {
|
||||
"from": "job.name",
|
||||
"to": "job.name"
|
||||
}
|
||||
},
|
||||
{
|
||||
"copy": {
|
||||
"from": "job.uid",
|
||||
"to": "job.uid"
|
||||
}
|
||||
},
|
||||
{
|
||||
"copy": {
|
||||
"from": "job.run_type",
|
||||
"to": "job.run_type"
|
||||
}
|
||||
},
|
||||
{
|
||||
"copy": {
|
||||
"from": "actor.user.name",
|
||||
"to": "actor.user.name"
|
||||
}
|
||||
},
|
||||
{
|
||||
"copy": {
|
||||
"from": "status_detail",
|
||||
"to": "status_detail"
|
||||
}
|
||||
},
|
||||
{
|
||||
"copy": {
|
||||
"from": "message",
|
||||
"to": "message"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"observables": {
|
||||
"fields": [
|
||||
{
|
||||
"name": "actor.user.name",
|
||||
"type": "User"
|
||||
},
|
||||
{
|
||||
"name": "job.name",
|
||||
"type": "Other"
|
||||
},
|
||||
{
|
||||
"name": "job.uid",
|
||||
"type": "Other"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user