mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[8.x] Updates datafeeds for supplied security anomaly detection jobs to exclude Elastic Agent and Beats processes (#213927) (#216867)
# Backport This will backport the following commits from `main` to `8.x`: - [Updates datafeeds for supplied security anomaly detection jobs to exclude Elastic Agent and Beats processes (#213927)](https://github.com/elastic/kibana/pull/213927) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Miguel Garzón","email":"mgarzon@uottawa.ca"},"sourceCommit":{"committedDate":"2025-03-21T09:32:14Z","message":"Updates datafeeds for supplied security anomaly detection jobs to exclude Elastic Agent and Beats processes (#213927)\n\nAs described in https://github.com/elastic/security-team/issues/11532,\nwe have added filters to exclude any processing related to the elastic\nendpoint agents.","sha":"35588ecdbb852d54b3f7e38bc3b737099a11758f","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:enhancement",":ml","Feature:Anomaly Detection","backport missing","backport:prev-major","backport:version","v9.1.0","v8.19.0"],"title":"Updates datafeeds for supplied security anomaly detection jobs to exclude Elastic Agent and Beats processes","number":213927,"url":"https://github.com/elastic/kibana/pull/213927","mergeCommit":{"message":"Updates datafeeds for supplied security anomaly detection jobs to exclude Elastic Agent and Beats processes (#213927)\n\nAs described in https://github.com/elastic/security-team/issues/11532,\nwe have added filters to exclude any processing related to the elastic\nendpoint agents.","sha":"35588ecdbb852d54b3f7e38bc3b737099a11758f"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/213927","number":213927,"mergeCommit":{"message":"Updates datafeeds for supplied security anomaly detection jobs to exclude Elastic Agent and Beats processes (#213927)\n\nAs described in https://github.com/elastic/security-team/issues/11532,\nwe have added filters to exclude any processing related to the elastic\nendpoint agents.","sha":"35588ecdbb852d54b3f7e38bc3b737099a11758f"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Miguel Garzón <mgarzon@uottawa.ca>
This commit is contained in:
parent
0a7a62ba8c
commit
8b40248527
39 changed files with 1265 additions and 1008 deletions
|
@ -17,7 +17,12 @@
|
|||
"event.outcome": "success"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"must_not": {
|
||||
"terms": {
|
||||
"process.name": ["elastic-agent.exe", "elastic-agent", "metricbeat.exe", "metricbeat", "filebeat.exe", "filebeat", "packetbeat.exe", "packetbeat", "winlogbeat.exe", "winlogbeat"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -22,7 +22,12 @@
|
|||
"event.outcome": "success"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"must_not": {
|
||||
"terms": {
|
||||
"process.name": ["elastic-agent.exe", "elastic-agent", "metricbeat.exe", "metricbeat", "filebeat.exe", "filebeat", "packetbeat.exe", "packetbeat", "winlogbeat.exe", "winlogbeat"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -17,7 +17,12 @@
|
|||
"event.outcome": "failure"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"must_not": {
|
||||
"terms": {
|
||||
"process.name": ["elastic-agent.exe", "elastic-agent", "metricbeat.exe", "metricbeat", "filebeat.exe", "filebeat", "packetbeat.exe", "packetbeat", "winlogbeat.exe", "winlogbeat"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -17,7 +17,12 @@
|
|||
"event.outcome": "success"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"must_not": {
|
||||
"terms": {
|
||||
"process.name": ["elastic-agent.exe", "elastic-agent", "metricbeat.exe", "metricbeat", "filebeat.exe", "filebeat", "packetbeat.exe", "packetbeat", "winlogbeat.exe", "winlogbeat"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -17,7 +17,12 @@
|
|||
"event.outcome": "success"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"must_not": {
|
||||
"terms": {
|
||||
"process.name": ["elastic-agent.exe", "elastic-agent", "metricbeat.exe", "metricbeat", "filebeat.exe", "filebeat", "packetbeat.exe", "packetbeat", "winlogbeat.exe", "winlogbeat"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -17,7 +17,12 @@
|
|||
"event.outcome": "success"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"must_not": {
|
||||
"terms": {
|
||||
"process.name": ["elastic-agent.exe", "elastic-agent", "metricbeat.exe", "metricbeat", "filebeat.exe", "filebeat", "packetbeat.exe", "packetbeat", "winlogbeat.exe", "winlogbeat"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -4,7 +4,12 @@
|
|||
"max_empty_searches": 10,
|
||||
"query": {
|
||||
"bool": {
|
||||
"filter": [{ "term": { "event.category": "authentication" } }]
|
||||
"filter": [{ "term": { "event.category": "authentication" } }],
|
||||
"must_not": {
|
||||
"terms": {
|
||||
"process.name": ["elastic-agent.exe", "elastic-agent", "metricbeat.exe", "metricbeat", "filebeat.exe", "filebeat", "packetbeat.exe", "packetbeat", "winlogbeat.exe", "winlogbeat"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -27,7 +27,12 @@
|
|||
"event.outcome": "success"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"must_not": {
|
||||
"terms": {
|
||||
"process.name": ["elastic-agent.exe", "elastic-agent", "metricbeat.exe", "metricbeat", "filebeat.exe", "filebeat", "packetbeat.exe", "packetbeat", "winlogbeat.exe", "winlogbeat"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -27,7 +27,12 @@
|
|||
"event.outcome": "success"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"must_not": {
|
||||
"terms": {
|
||||
"process.name": ["elastic-agent.exe", "elastic-agent", "metricbeat.exe", "metricbeat", "filebeat.exe", "filebeat", "packetbeat.exe", "packetbeat", "winlogbeat.exe", "winlogbeat"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,77 +1,85 @@
|
|||
{
|
||||
"job_id": "JOB_ID",
|
||||
"indices": [
|
||||
"job_id": "JOB_ID",
|
||||
"indices": [
|
||||
"INDEX_PATTERN_NAME"
|
||||
],
|
||||
"max_empty_searches": 10,
|
||||
"query": {
|
||||
"bool":
|
||||
{
|
||||
],
|
||||
"max_empty_searches": 10,
|
||||
"query": {
|
||||
"bool": {
|
||||
"filter": [
|
||||
{"term": {"event.category": "network"}},
|
||||
{"term": {"event.type": "start"}}
|
||||
{"term": {"event.category": "network"}},
|
||||
{"term": {"event.type": "start"}}
|
||||
],
|
||||
"must": [
|
||||
{
|
||||
"bool": {
|
||||
"should": [
|
||||
{
|
||||
"match": {
|
||||
"host.os.type": {
|
||||
"query": "linux",
|
||||
"operator": "OR"
|
||||
{
|
||||
"bool": {
|
||||
"should": [
|
||||
{
|
||||
"match": {
|
||||
"host.os.type": {
|
||||
"query": "linux",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "debian",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "redhat",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "suse",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "ubuntu",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"must_not": [
|
||||
{
|
||||
"bool": {
|
||||
"should": [
|
||||
{"term": {"destination.ip": "127.0.0.1"}},
|
||||
{"term": {"destination.ip": "127.0.0.53"}},
|
||||
{"term": {"destination.ip": "::"}},
|
||||
{"term": {"destination.ip": "::1"}},
|
||||
{"term": {"user.name": "jenkins"}}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "debian",
|
||||
"operator": "OR"
|
||||
"terms": {
|
||||
"process.name": [
|
||||
"elastic-agent.exe", "elastic-agent", "metricbeat.exe", "metricbeat",
|
||||
"filebeat.exe", "filebeat", "packetbeat.exe", "packetbeat",
|
||||
"winlogbeat.exe", "winlogbeat"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "redhat",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "suse",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "ubuntu",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"must_not": [
|
||||
{
|
||||
"bool": {
|
||||
"should": [
|
||||
{"term": {"destination.ip": "127.0.0.1"}},
|
||||
{"term": {"destination.ip": "127.0.0.53"}},
|
||||
{"term": {"destination.ip": "::"}},
|
||||
{"term": {"destination.ip": "::1"}},
|
||||
{"term": {"user.name":"jenkins"}}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,77 +1,85 @@
|
|||
{
|
||||
"job_id": "JOB_ID",
|
||||
"indices": [
|
||||
"job_id": "JOB_ID",
|
||||
"indices": [
|
||||
"INDEX_PATTERN_NAME"
|
||||
],
|
||||
"max_empty_searches": 10,
|
||||
"query": {
|
||||
"bool":
|
||||
{
|
||||
],
|
||||
"max_empty_searches": 10,
|
||||
"query": {
|
||||
"bool": {
|
||||
"filter": [
|
||||
{"term": {"event.category": "network"}},
|
||||
{"term": {"event.type": "start"}}
|
||||
{"term": {"event.category": "network"}},
|
||||
{"term": {"event.type": "start"}}
|
||||
],
|
||||
"must": [
|
||||
{
|
||||
"bool": {
|
||||
"should": [
|
||||
{
|
||||
"match": {
|
||||
"host.os.type": {
|
||||
"query": "linux",
|
||||
"operator": "OR"
|
||||
{
|
||||
"bool": {
|
||||
"should": [
|
||||
{
|
||||
"match": {
|
||||
"host.os.type": {
|
||||
"query": "linux",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "debian",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "redhat",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "suse",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "ubuntu",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"must_not": [
|
||||
{
|
||||
"bool": {
|
||||
"should": [
|
||||
{"term": {"destination.ip": "127.0.0.1"}},
|
||||
{"term": {"destination.ip": "127.0.0.53"}},
|
||||
{"term": {"destination.ip": "::"}},
|
||||
{"term": {"destination.ip": "::1"}},
|
||||
{"term": {"user.name": "jenkins"}}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "debian",
|
||||
"operator": "OR"
|
||||
"terms": {
|
||||
"process.name": [
|
||||
"elastic-agent.exe", "elastic-agent", "metricbeat.exe", "metricbeat",
|
||||
"filebeat.exe", "filebeat", "packetbeat.exe", "packetbeat",
|
||||
"winlogbeat.exe", "winlogbeat"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "redhat",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "suse",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "ubuntu",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"must_not": [
|
||||
{
|
||||
"bool": {
|
||||
"should": [
|
||||
{"term": {"destination.ip": "127.0.0.1"}},
|
||||
{"term": {"destination.ip": "127.0.0.53"}},
|
||||
{"term": {"destination.ip": "::"}},
|
||||
{"term": {"destination.ip": "::1"}},
|
||||
{"term": {"user.name":"jenkins"}}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,101 +1,106 @@
|
|||
{
|
||||
"job_id": "JOB_ID",
|
||||
"indices": [
|
||||
"job_id": "JOB_ID",
|
||||
"indices": [
|
||||
"INDEX_PATTERN_NAME"
|
||||
],
|
||||
"max_empty_searches": 10,
|
||||
"query": {
|
||||
],
|
||||
"max_empty_searches": 10,
|
||||
"query": {
|
||||
"bool": {
|
||||
"filter": [
|
||||
{
|
||||
"term": {
|
||||
"event.category": "process"
|
||||
}
|
||||
},
|
||||
{
|
||||
"term": {
|
||||
"event.type": "start"
|
||||
}
|
||||
}
|
||||
],
|
||||
"must": [
|
||||
{
|
||||
"bool": {
|
||||
"should": [
|
||||
{
|
||||
"match": {
|
||||
"host.os.type": {
|
||||
"query": "linux",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "debian",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "redhat",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "suse",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "ubuntu",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"must_not": [
|
||||
{
|
||||
"bool": {
|
||||
"should": [
|
||||
{
|
||||
"filter": [
|
||||
{
|
||||
"term": {
|
||||
"user.name": "jenkins-worker"
|
||||
"event.category": "process"
|
||||
}
|
||||
},
|
||||
{
|
||||
},
|
||||
{
|
||||
"term": {
|
||||
"user.name": "jenkins-user"
|
||||
"event.type": "start"
|
||||
}
|
||||
},
|
||||
{
|
||||
"term": {
|
||||
"user.name": "jenkins"
|
||||
}
|
||||
],
|
||||
"must": [
|
||||
{
|
||||
"bool": {
|
||||
"should": [
|
||||
{
|
||||
"match": {
|
||||
"host.os.type": {
|
||||
"query": "linux",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "debian",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "redhat",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "suse",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "ubuntu",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"wildcard": {
|
||||
"process.name": {
|
||||
"wildcard": "jenkins*"
|
||||
}
|
||||
}
|
||||
],
|
||||
"must_not": [
|
||||
{
|
||||
"bool": {
|
||||
"should": [
|
||||
{
|
||||
"term": {
|
||||
"user.name": "jenkins-worker"
|
||||
}
|
||||
},
|
||||
{
|
||||
"term": {
|
||||
"user.name": "jenkins-user"
|
||||
}
|
||||
},
|
||||
{
|
||||
"term": {
|
||||
"user.name": "jenkins"
|
||||
}
|
||||
},
|
||||
{
|
||||
"wildcard": {
|
||||
"process.name": {
|
||||
"wildcard": "jenkins*"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"terms": {
|
||||
"process.name": ["elastic-agent.exe", "elastic-agent", "metricbeat.exe", "metricbeat", "filebeat.exe", "filebeat", "packetbeat.exe", "packetbeat", "winlogbeat.exe", "winlogbeat"]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,71 +1,76 @@
|
|||
{
|
||||
"job_id": "JOB_ID",
|
||||
"indices": [
|
||||
"INDEX_PATTERN_NAME"
|
||||
],
|
||||
"max_empty_searches": 10,
|
||||
"query": {
|
||||
"bool": {
|
||||
"filter": [
|
||||
{
|
||||
"term": {
|
||||
"event.category": "process"
|
||||
}
|
||||
},
|
||||
{
|
||||
"term": {
|
||||
"event.type": "start"
|
||||
}
|
||||
"job_id": "JOB_ID",
|
||||
"indices": [
|
||||
"INDEX_PATTERN_NAME"
|
||||
],
|
||||
"max_empty_searches": 10,
|
||||
"query": {
|
||||
"bool": {
|
||||
"filter": [
|
||||
{
|
||||
"term": {
|
||||
"event.category": "process"
|
||||
}
|
||||
],
|
||||
"must": [
|
||||
{
|
||||
"bool": {
|
||||
"should": [
|
||||
{
|
||||
"match": {
|
||||
"host.os.type": {
|
||||
"query": "linux",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "debian",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "redhat",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "suse",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "ubuntu",
|
||||
"operator": "OR"
|
||||
}
|
||||
},
|
||||
{
|
||||
"term": {
|
||||
"event.type": "start"
|
||||
}
|
||||
}
|
||||
],
|
||||
"must": [
|
||||
{
|
||||
"bool": {
|
||||
"should": [
|
||||
{
|
||||
"match": {
|
||||
"host.os.type": {
|
||||
"query": "linux",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "debian",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "redhat",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "suse",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "ubuntu",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"must_not": {
|
||||
"terms": {
|
||||
"process.name": ["elastic-agent.exe", "elastic-agent", "metricbeat.exe", "metricbeat", "filebeat.exe", "filebeat", "packetbeat.exe", "packetbeat", "winlogbeat.exe", "winlogbeat"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -33,7 +33,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "redhat",
|
||||
|
@ -41,7 +41,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "suse",
|
||||
|
@ -49,7 +49,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "ubuntu",
|
||||
|
@ -101,7 +101,16 @@
|
|||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"must_not": {
|
||||
"terms": {
|
||||
"process.name": [
|
||||
"elastic-agent.exe", "elastic-agent", "metricbeat.exe", "metricbeat",
|
||||
"filebeat.exe", "filebeat", "packetbeat.exe", "packetbeat",
|
||||
"winlogbeat.exe", "winlogbeat"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,92 +1,101 @@
|
|||
{
|
||||
"job_id": "JOB_ID",
|
||||
"indices": [
|
||||
"INDEX_PATTERN_NAME"
|
||||
],
|
||||
"max_empty_searches": 10,
|
||||
"query": {
|
||||
"bool": {
|
||||
"filter": [
|
||||
{
|
||||
"term": {
|
||||
"event.type": "start"
|
||||
}
|
||||
"job_id": "JOB_ID",
|
||||
"indices": [
|
||||
"INDEX_PATTERN_NAME"
|
||||
],
|
||||
"max_empty_searches": 10,
|
||||
"query": {
|
||||
"bool": {
|
||||
"filter": [
|
||||
{
|
||||
"term": {
|
||||
"event.type": "start"
|
||||
}
|
||||
],
|
||||
"must": [
|
||||
{
|
||||
"bool": {
|
||||
"should": [
|
||||
{
|
||||
"match": {
|
||||
"host.os.type": {
|
||||
"query": "linux",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "debian",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "redhat",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "suse",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "ubuntu",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
],
|
||||
"must": [
|
||||
{
|
||||
"bool": {
|
||||
"should": [
|
||||
{
|
||||
"match": {
|
||||
"host.os.type": {
|
||||
"query": "linux",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"bool": {
|
||||
"should": [
|
||||
{
|
||||
"term": {
|
||||
"process.name": "netstat"
|
||||
}
|
||||
},
|
||||
{
|
||||
"term": {
|
||||
"process.name": "ss"
|
||||
}
|
||||
},
|
||||
{
|
||||
"term": {
|
||||
"process.name": "route"
|
||||
}
|
||||
},
|
||||
{
|
||||
"term": {
|
||||
"process.name": "showmount"
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "debian",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "redhat",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "suse",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "ubuntu",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"bool": {
|
||||
"should": [
|
||||
{
|
||||
"term": {
|
||||
"process.name": "netstat"
|
||||
}
|
||||
},
|
||||
{
|
||||
"term": {
|
||||
"process.name": "ss"
|
||||
}
|
||||
},
|
||||
{
|
||||
"term": {
|
||||
"process.name": "route"
|
||||
}
|
||||
},
|
||||
{
|
||||
"term": {
|
||||
"process.name": "showmount"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"must_not": {
|
||||
"terms": {
|
||||
"process.name": [
|
||||
"elastic-agent.exe", "elastic-agent", "metricbeat.exe", "metricbeat",
|
||||
"filebeat.exe", "filebeat", "packetbeat.exe", "packetbeat",
|
||||
"winlogbeat.exe", "winlogbeat"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,66 +1,74 @@
|
|||
{
|
||||
"job_id": "JOB_ID",
|
||||
"indices": [
|
||||
"INDEX_PATTERN_NAME"
|
||||
],
|
||||
"max_empty_searches": 10,
|
||||
"query": {
|
||||
"bool": {
|
||||
"filter": [
|
||||
{
|
||||
"term": {
|
||||
"destination.ip": "169.254.169.254"
|
||||
}
|
||||
"job_id": "JOB_ID",
|
||||
"indices": [
|
||||
"INDEX_PATTERN_NAME"
|
||||
],
|
||||
"max_empty_searches": 10,
|
||||
"query": {
|
||||
"bool": {
|
||||
"filter": [
|
||||
{
|
||||
"term": {
|
||||
"destination.ip": "169.254.169.254"
|
||||
}
|
||||
],
|
||||
"must": [
|
||||
{
|
||||
"bool": {
|
||||
"should": [
|
||||
{
|
||||
"match": {
|
||||
"host.os.type": {
|
||||
"query": "linux",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "debian",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "redhat",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "suse",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "ubuntu",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
],
|
||||
"must": [
|
||||
{
|
||||
"bool": {
|
||||
"should": [
|
||||
{
|
||||
"match": {
|
||||
"host.os.type": {
|
||||
"query": "linux",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "debian",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "redhat",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "suse",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "ubuntu",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"must_not": {
|
||||
"terms": {
|
||||
"process.name": [
|
||||
"elastic-agent.exe", "elastic-agent", "metricbeat.exe", "metricbeat", "filebeat.exe",
|
||||
"filebeat", "packetbeat.exe", "packetbeat", "winlogbeat.exe", "winlogbeat"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,66 +1,74 @@
|
|||
{
|
||||
"job_id": "JOB_ID",
|
||||
"indices": [
|
||||
"INDEX_PATTERN_NAME"
|
||||
],
|
||||
"max_empty_searches": 10,
|
||||
"query": {
|
||||
"bool": {
|
||||
"filter": [
|
||||
{
|
||||
"term": {
|
||||
"destination.ip": "169.254.169.254"
|
||||
}
|
||||
"job_id": "JOB_ID",
|
||||
"indices": [
|
||||
"INDEX_PATTERN_NAME"
|
||||
],
|
||||
"max_empty_searches": 10,
|
||||
"query": {
|
||||
"bool": {
|
||||
"filter": [
|
||||
{
|
||||
"term": {
|
||||
"destination.ip": "169.254.169.254"
|
||||
}
|
||||
],
|
||||
"must": [
|
||||
{
|
||||
"bool": {
|
||||
"should": [
|
||||
{
|
||||
"match": {
|
||||
"host.os.type": {
|
||||
"query": "linux",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "debian",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "redhat",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "suse",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "ubuntu",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
],
|
||||
"must": [
|
||||
{
|
||||
"bool": {
|
||||
"should": [
|
||||
{
|
||||
"match": {
|
||||
"host.os.type": {
|
||||
"query": "linux",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "debian",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "redhat",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "suse",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "ubuntu",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"must_not": {
|
||||
"terms": {
|
||||
"process.name": [
|
||||
"elastic-agent.exe", "elastic-agent", "metricbeat.exe", "metricbeat", "filebeat.exe",
|
||||
"filebeat", "packetbeat.exe", "packetbeat", "winlogbeat.exe", "winlogbeat"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,71 +1,76 @@
|
|||
{
|
||||
"job_id": "JOB_ID",
|
||||
"indices": [
|
||||
"INDEX_PATTERN_NAME"
|
||||
],
|
||||
"max_empty_searches": 10,
|
||||
"query": {
|
||||
"bool": {
|
||||
"filter": [
|
||||
{
|
||||
"term": {
|
||||
"event.type": "start"
|
||||
}
|
||||
},
|
||||
{
|
||||
"term": {
|
||||
"process.name": "sudo"
|
||||
}
|
||||
"job_id": "JOB_ID",
|
||||
"indices": [
|
||||
"INDEX_PATTERN_NAME"
|
||||
],
|
||||
"max_empty_searches": 10,
|
||||
"query": {
|
||||
"bool": {
|
||||
"filter": [
|
||||
{
|
||||
"term": {
|
||||
"event.type": "start"
|
||||
}
|
||||
],
|
||||
"must": [
|
||||
{
|
||||
"bool": {
|
||||
"should": [
|
||||
{
|
||||
"match": {
|
||||
"host.os.type": {
|
||||
"query": "linux",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "debian",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "redhat",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "suse",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "ubuntu",
|
||||
"operator": "OR"
|
||||
}
|
||||
},
|
||||
{
|
||||
"term": {
|
||||
"process.name": "sudo"
|
||||
}
|
||||
}
|
||||
],
|
||||
"must": [
|
||||
{
|
||||
"bool": {
|
||||
"should": [
|
||||
{
|
||||
"match": {
|
||||
"host.os.type": {
|
||||
"query": "linux",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "debian",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "redhat",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "suse",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "ubuntu",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"must_not": {
|
||||
"terms": {
|
||||
"process.name": ["elastic-agent.exe", "elastic-agent", "metricbeat.exe", "metricbeat", "filebeat.exe", "filebeat", "packetbeat.exe", "packetbeat", "winlogbeat.exe", "winlogbeat"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,71 +1,76 @@
|
|||
{
|
||||
"job_id": "JOB_ID",
|
||||
"indices": [
|
||||
"job_id": "JOB_ID",
|
||||
"indices": [
|
||||
"INDEX_PATTERN_NAME"
|
||||
],
|
||||
"max_empty_searches": 10,
|
||||
"query": {
|
||||
],
|
||||
"max_empty_searches": 10,
|
||||
"query": {
|
||||
"bool": {
|
||||
"filter": [
|
||||
{
|
||||
"term": {
|
||||
"event.category": "process"
|
||||
}
|
||||
},
|
||||
{
|
||||
"term": {
|
||||
"event.type": "start"
|
||||
}
|
||||
"filter": [
|
||||
{
|
||||
"term": {
|
||||
"event.category": "process"
|
||||
}
|
||||
},
|
||||
{
|
||||
"term": {
|
||||
"event.type": "start"
|
||||
}
|
||||
}
|
||||
],
|
||||
"must": [
|
||||
{
|
||||
"bool": {
|
||||
"should": [
|
||||
{
|
||||
"match": {
|
||||
"host.os.type": {
|
||||
"query": "linux",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "debian",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "redhat",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "suse",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "ubuntu",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"must_not": {
|
||||
"terms": {
|
||||
"process.name": ["elastic-agent.exe", "elastic-agent", "metricbeat.exe", "metricbeat", "filebeat.exe", "filebeat", "packetbeat.exe", "packetbeat", "winlogbeat.exe", "winlogbeat"]
|
||||
}
|
||||
}
|
||||
],
|
||||
"must": [
|
||||
{
|
||||
"bool": {
|
||||
"should": [
|
||||
{
|
||||
"match": {
|
||||
"host.os.type": {
|
||||
"query": "linux",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "debian",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "redhat",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "suse",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "ubuntu",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,7 +17,12 @@
|
|||
"field": "destination.geo.country_name"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"must_not": {
|
||||
"terms": {
|
||||
"process.name": ["elastic-agent.exe", "elastic-agent", "metricbeat.exe", "metricbeat", "filebeat.exe", "filebeat", "packetbeat.exe", "packetbeat", "winlogbeat.exe", "winlogbeat"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,7 +12,14 @@
|
|||
"event.category": "network"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"must_not": {
|
||||
"terms": {
|
||||
"process.name": [
|
||||
"elastic-agent.exe", "elastic-agent", "metricbeat.exe", "metricbeat", "filebeat.exe", "filebeat", "packetbeat.exe", "packetbeat", "winlogbeat.exe", "winlogbeat"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,7 +17,10 @@
|
|||
"field": "destination.geo.country_name"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"must_not": {
|
||||
"terms": { "process.name": ["elastic-agent.exe", "elastic-agent", "metricbeat.exe", "metricbeat", "filebeat.exe", "filebeat", "packetbeat.exe", "packetbeat", "winlogbeat.exe", "winlogbeat"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,7 +10,24 @@
|
|||
{ "term": { "event.dataset": "network_traffic.dns" } }
|
||||
],
|
||||
"minimum_should_match": 1,
|
||||
"must_not": [{ "bool": { "filter": { "term": { "destination.ip": "169.254.169.254" } } } }]
|
||||
"must_not": [
|
||||
{
|
||||
"bool": {
|
||||
"filter": {
|
||||
"term": { "destination.ip": "169.254.169.254" }
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"terms": {
|
||||
"process.name": [
|
||||
"elastic-agent.exe", "elastic-agent", "metricbeat.exe", "metricbeat",
|
||||
"filebeat.exe", "filebeat", "packetbeat.exe", "packetbeat",
|
||||
"winlogbeat.exe", "winlogbeat"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,7 +10,10 @@
|
|||
{ "term": { "event.dataset": "network_traffic.dns" } }
|
||||
],
|
||||
"minimum_should_match": 1,
|
||||
"must_not": [{ "bool": { "filter": { "term": { "dns.question.type": "PTR" } } } }]
|
||||
"must_not": [
|
||||
{ "bool": { "filter": { "term": { "dns.question.type": "PTR" } } } },
|
||||
{ "terms": { "process.name": ["elastic-agent.exe", "elastic-agent", "metricbeat.exe", "metricbeat", "filebeat.exe", "filebeat", "packetbeat.exe", "packetbeat", "winlogbeat.exe", "winlogbeat"] } }
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,7 +9,12 @@
|
|||
"filter": [
|
||||
{"term": {"agent.type": "packetbeat"}},
|
||||
{"exists": {"field": "server.domain"}}
|
||||
]
|
||||
],
|
||||
"must_not": {
|
||||
"terms": {
|
||||
"process.name": ["elastic-agent.exe", "elastic-agent", "metricbeat.exe", "metricbeat", "filebeat.exe", "filebeat", "packetbeat.exe", "packetbeat", "winlogbeat.exe", "winlogbeat"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,7 +11,12 @@
|
|||
{"exists": {"field": "url.full"}}
|
||||
],
|
||||
"must_not": [
|
||||
{"bool": {"filter": {"term": {"destination.ip": "169.254.169.254"}}}}
|
||||
{"bool": {"filter": {"term": {"destination.ip": "169.254.169.254"}}}},
|
||||
{
|
||||
"terms": {
|
||||
"process.name": ["elastic-agent.exe", "elastic-agent", "metricbeat.exe", "metricbeat", "filebeat.exe", "filebeat", "packetbeat.exe", "packetbeat", "winlogbeat.exe", "winlogbeat"]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,7 +10,10 @@
|
|||
{ "term": { "event.dataset": "network_traffic.http" } }
|
||||
],
|
||||
"minimum_should_match": 1,
|
||||
"must_not": [{ "wildcard": { "user_agent.original": { "value": "Mozilla*" } } }]
|
||||
"must_not": [
|
||||
{ "wildcard": { "user_agent.original": { "value": "Mozilla*" } } },
|
||||
{ "terms": { "process.name": ["elastic-agent.exe", "elastic-agent", "metricbeat.exe", "metricbeat", "filebeat.exe", "filebeat", "packetbeat.exe", "packetbeat", "winlogbeat.exe", "winlogbeat"] } }
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,47 +1,56 @@
|
|||
{
|
||||
"job_id": "JOB_ID",
|
||||
"indices": [
|
||||
"job_id": "JOB_ID",
|
||||
"indices": [
|
||||
"INDEX_PATTERN_NAME"
|
||||
],
|
||||
"max_empty_searches": 10,
|
||||
"query": {
|
||||
],
|
||||
"max_empty_searches": 10,
|
||||
"query": {
|
||||
"bool": {
|
||||
"filter": [
|
||||
{
|
||||
"term": {
|
||||
"event.category": "process"
|
||||
}
|
||||
},
|
||||
{
|
||||
"term": {
|
||||
"event.type": "start"
|
||||
}
|
||||
}
|
||||
],
|
||||
"must": [
|
||||
{
|
||||
"bool": {
|
||||
"should": [
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "windows",
|
||||
"operator": "OR"
|
||||
}
|
||||
"filter": [
|
||||
{
|
||||
"term": {
|
||||
"event.category": "process"
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.type": {
|
||||
"query": "windows",
|
||||
"operator": "OR"
|
||||
}
|
||||
},
|
||||
{
|
||||
"term": {
|
||||
"event.type": "start"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"must": [
|
||||
{
|
||||
"bool": {
|
||||
"should": [
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "windows",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.type": {
|
||||
"query": "windows",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"must_not": {
|
||||
"terms": {
|
||||
"process.name": [
|
||||
"elastic-agent.exe", "elastic-agent", "metricbeat.exe", "metricbeat",
|
||||
"filebeat.exe", "filebeat", "packetbeat.exe", "packetbeat",
|
||||
"winlogbeat.exe", "winlogbeat"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,71 +1,82 @@
|
|||
{
|
||||
"job_id": "JOB_ID",
|
||||
"indices": [
|
||||
"job_id": "JOB_ID",
|
||||
"indices": [
|
||||
"INDEX_PATTERN_NAME"
|
||||
],
|
||||
"max_empty_searches": 10,
|
||||
"query": {
|
||||
],
|
||||
"max_empty_searches": 10,
|
||||
"query": {
|
||||
"bool": {
|
||||
"filter": [
|
||||
{
|
||||
"term": {
|
||||
"event.category": "network"
|
||||
}
|
||||
},
|
||||
{
|
||||
"term": {
|
||||
"event.type": "start"
|
||||
}
|
||||
}
|
||||
],
|
||||
"must": [
|
||||
{
|
||||
"bool": {
|
||||
"should": [
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "windows",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.type": {
|
||||
"query": "windows",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"must_not": [
|
||||
{
|
||||
"bool": {
|
||||
"should": [
|
||||
{
|
||||
"filter": [
|
||||
{
|
||||
"term": {
|
||||
"destination.ip": "127.0.0.1"
|
||||
"event.category": "network"
|
||||
}
|
||||
},
|
||||
{
|
||||
},
|
||||
{
|
||||
"term": {
|
||||
"destination.ip": "127.0.0.53"
|
||||
"event.type": "start"
|
||||
}
|
||||
},
|
||||
{
|
||||
"term": {
|
||||
"destination.ip": "::1"
|
||||
}
|
||||
],
|
||||
"must": [
|
||||
{
|
||||
"bool": {
|
||||
"should": [
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "windows",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.type": {
|
||||
"query": "windows",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"minimum_should_match": 1
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"must_not": [
|
||||
{
|
||||
"bool": {
|
||||
"should": [
|
||||
{
|
||||
"term": {
|
||||
"destination.ip": "127.0.0.1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"term": {
|
||||
"destination.ip": "127.0.0.53"
|
||||
}
|
||||
},
|
||||
{
|
||||
"term": {
|
||||
"destination.ip": "::1"
|
||||
}
|
||||
}
|
||||
],
|
||||
"minimum_should_match": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"terms": {
|
||||
"process.name": [
|
||||
"elastic-agent.exe", "elastic-agent",
|
||||
"metricbeat.exe", "metricbeat",
|
||||
"filebeat.exe", "filebeat",
|
||||
"packetbeat.exe", "packetbeat",
|
||||
"winlogbeat.exe", "winlogbeat"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,47 +1,56 @@
|
|||
{
|
||||
"job_id": "JOB_ID",
|
||||
"indices": [
|
||||
"job_id": "JOB_ID",
|
||||
"indices": [
|
||||
"INDEX_PATTERN_NAME"
|
||||
],
|
||||
"max_empty_searches": 10,
|
||||
"query": {
|
||||
],
|
||||
"max_empty_searches": 10,
|
||||
"query": {
|
||||
"bool": {
|
||||
"filter": [
|
||||
{
|
||||
"term": {
|
||||
"event.category": "process"
|
||||
}
|
||||
},
|
||||
{
|
||||
"term": {
|
||||
"event.type": "start"
|
||||
}
|
||||
}
|
||||
],
|
||||
"must": [
|
||||
{
|
||||
"bool": {
|
||||
"should": [
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "windows",
|
||||
"operator": "OR"
|
||||
}
|
||||
"filter": [
|
||||
{
|
||||
"term": {
|
||||
"event.category": "process"
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.type": {
|
||||
"query": "windows",
|
||||
"operator": "OR"
|
||||
}
|
||||
},
|
||||
{
|
||||
"term": {
|
||||
"event.type": "start"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"must": [
|
||||
{
|
||||
"bool": {
|
||||
"should": [
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "windows",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.type": {
|
||||
"query": "windows",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"must_not": {
|
||||
"terms": {
|
||||
"process.name": [
|
||||
"elastic-agent.exe", "elastic-agent", "metricbeat.exe", "metricbeat",
|
||||
"filebeat.exe", "filebeat", "packetbeat.exe", "packetbeat",
|
||||
"winlogbeat.exe", "winlogbeat"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,47 +1,48 @@
|
|||
{
|
||||
"job_id": "JOB_ID",
|
||||
"indices": [
|
||||
"INDEX_PATTERN_NAME"
|
||||
],
|
||||
"max_empty_searches": 10,
|
||||
"query": {
|
||||
"bool": {
|
||||
"filter": [
|
||||
{
|
||||
"term": {
|
||||
"event.category": "process"
|
||||
}
|
||||
},
|
||||
{
|
||||
"term": {
|
||||
"event.type": "start"
|
||||
}
|
||||
"job_id": "JOB_ID",
|
||||
"indices": [
|
||||
"INDEX_PATTERN_NAME"
|
||||
],
|
||||
"max_empty_searches": 10,
|
||||
"query": {
|
||||
"bool": {
|
||||
"filter": [
|
||||
{
|
||||
"term": {
|
||||
"event.category": "process"
|
||||
}
|
||||
],
|
||||
"must": [
|
||||
{
|
||||
"bool": {
|
||||
"should": [
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "windows",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.type": {
|
||||
"query": "windows",
|
||||
"operator": "OR"
|
||||
}
|
||||
},
|
||||
{
|
||||
"term": {
|
||||
"event.type": "start"
|
||||
}
|
||||
}
|
||||
],
|
||||
"must": [
|
||||
{
|
||||
"bool": {
|
||||
"should": [
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "windows",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.type": {
|
||||
"query": "windows",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"must_not": { "terms": { "process.name": ["elastic-agent.exe", "elastic-agent", "metricbeat.exe", "metricbeat", "filebeat.exe", "filebeat", "packetbeat.exe", "packetbeat", "winlogbeat.exe", "winlogbeat"] } }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,47 +1,48 @@
|
|||
{
|
||||
"job_id": "JOB_ID",
|
||||
"indices": [
|
||||
"INDEX_PATTERN_NAME"
|
||||
],
|
||||
"max_empty_searches": 10,
|
||||
"query": {
|
||||
"bool": {
|
||||
"filter": [
|
||||
{
|
||||
"term": {
|
||||
"event.category": "process"
|
||||
}
|
||||
},
|
||||
{
|
||||
"term": {
|
||||
"event.type": "start"
|
||||
}
|
||||
"job_id": "JOB_ID",
|
||||
"indices": [
|
||||
"INDEX_PATTERN_NAME"
|
||||
],
|
||||
"max_empty_searches": 10,
|
||||
"query": {
|
||||
"bool": {
|
||||
"filter": [
|
||||
{
|
||||
"term": {
|
||||
"event.category": "process"
|
||||
}
|
||||
],
|
||||
"must": [
|
||||
{
|
||||
"bool": {
|
||||
"should": [
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "windows",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.type": {
|
||||
"query": "windows",
|
||||
"operator": "OR"
|
||||
}
|
||||
},
|
||||
{
|
||||
"term": {
|
||||
"event.type": "start"
|
||||
}
|
||||
}
|
||||
],
|
||||
"must": [
|
||||
{
|
||||
"bool": {
|
||||
"should": [
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "windows",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.type": {
|
||||
"query": "windows",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"must_not": { "terms": { "process.name": ["elastic-agent.exe", "elastic-agent", "metricbeat.exe", "metricbeat", "filebeat.exe", "filebeat", "packetbeat.exe", "packetbeat", "winlogbeat.exe", "winlogbeat"] } }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -36,7 +36,16 @@
|
|||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"must_not": {
|
||||
"terms": {
|
||||
"process.name": [
|
||||
"elastic-agent.exe", "elastic-agent", "metricbeat.exe", "metricbeat",
|
||||
"filebeat.exe", "filebeat", "packetbeat.exe", "packetbeat",
|
||||
"winlogbeat.exe", "winlogbeat"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -36,7 +36,16 @@
|
|||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"must_not": {
|
||||
"terms": {
|
||||
"process.name": [
|
||||
"elastic-agent.exe", "elastic-agent", "metricbeat.exe", "metricbeat",
|
||||
"filebeat.exe", "filebeat", "packetbeat.exe", "packetbeat",
|
||||
"winlogbeat.exe", "winlogbeat"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,47 +1,56 @@
|
|||
{
|
||||
"job_id": "JOB_ID",
|
||||
"indices": [
|
||||
"job_id": "JOB_ID",
|
||||
"indices": [
|
||||
"INDEX_PATTERN_NAME"
|
||||
],
|
||||
"max_empty_searches": 10,
|
||||
"query": {
|
||||
],
|
||||
"max_empty_searches": 10,
|
||||
"query": {
|
||||
"bool": {
|
||||
"filter": [
|
||||
{
|
||||
"term": {
|
||||
"event.category": "process"
|
||||
}
|
||||
},
|
||||
{
|
||||
"term": {
|
||||
"event.type": "start"
|
||||
}
|
||||
}
|
||||
],
|
||||
"must": [
|
||||
{
|
||||
"bool": {
|
||||
"should": [
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "windows",
|
||||
"operator": "OR"
|
||||
}
|
||||
"filter": [
|
||||
{
|
||||
"term": {
|
||||
"event.category": "process"
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.type": {
|
||||
"query": "windows",
|
||||
"operator": "OR"
|
||||
}
|
||||
},
|
||||
{
|
||||
"term": {
|
||||
"event.type": "start"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"must": [
|
||||
{
|
||||
"bool": {
|
||||
"should": [
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "windows",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.type": {
|
||||
"query": "windows",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"must_not": {
|
||||
"terms": {
|
||||
"process.name": [
|
||||
"elastic-agent.exe", "elastic-agent", "metricbeat.exe", "metricbeat",
|
||||
"filebeat.exe", "filebeat", "packetbeat.exe", "packetbeat",
|
||||
"winlogbeat.exe", "winlogbeat"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,23 +1,32 @@
|
|||
{
|
||||
"job_id": "JOB_ID",
|
||||
"indices": [
|
||||
"job_id": "JOB_ID",
|
||||
"indices": [
|
||||
"INDEX_PATTERN_NAME"
|
||||
],
|
||||
"max_empty_searches": 10,
|
||||
"query": {
|
||||
],
|
||||
"max_empty_searches": 10,
|
||||
"query": {
|
||||
"bool": {
|
||||
"filter": [
|
||||
{
|
||||
"term": {
|
||||
"host.os.family": "windows"
|
||||
}
|
||||
},
|
||||
{
|
||||
"term": {
|
||||
"destination.ip": "169.254.169.254"
|
||||
}
|
||||
"filter": [
|
||||
{
|
||||
"term": {
|
||||
"host.os.family": "windows"
|
||||
}
|
||||
},
|
||||
{
|
||||
"term": {
|
||||
"destination.ip": "169.254.169.254"
|
||||
}
|
||||
}
|
||||
],
|
||||
"must_not": {
|
||||
"terms": {
|
||||
"process.name": [
|
||||
"elastic-agent.exe", "elastic-agent", "metricbeat.exe",
|
||||
"metricbeat", "filebeat.exe", "filebeat", "packetbeat.exe",
|
||||
"packetbeat", "winlogbeat.exe", "winlogbeat"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,23 +1,32 @@
|
|||
{
|
||||
"job_id": "JOB_ID",
|
||||
"indices": [
|
||||
"job_id": "JOB_ID",
|
||||
"indices": [
|
||||
"INDEX_PATTERN_NAME"
|
||||
],
|
||||
"max_empty_searches": 10,
|
||||
"query": {
|
||||
],
|
||||
"max_empty_searches": 10,
|
||||
"query": {
|
||||
"bool": {
|
||||
"filter": [
|
||||
{
|
||||
"term": {
|
||||
"host.os.family": "windows"
|
||||
}
|
||||
},
|
||||
{
|
||||
"term": {
|
||||
"destination.ip": "169.254.169.254"
|
||||
}
|
||||
"filter": [
|
||||
{
|
||||
"term": {
|
||||
"host.os.family": "windows"
|
||||
}
|
||||
},
|
||||
{
|
||||
"term": {
|
||||
"destination.ip": "169.254.169.254"
|
||||
}
|
||||
}
|
||||
],
|
||||
"must_not": {
|
||||
"terms": {
|
||||
"process.name": [
|
||||
"elastic-agent.exe", "elastic-agent", "metricbeat.exe",
|
||||
"metricbeat", "filebeat.exe", "filebeat", "packetbeat.exe",
|
||||
"packetbeat", "winlogbeat.exe", "winlogbeat"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,42 +1,51 @@
|
|||
{
|
||||
"job_id": "JOB_ID",
|
||||
"indices": [
|
||||
"job_id": "JOB_ID",
|
||||
"indices": [
|
||||
"INDEX_PATTERN_NAME"
|
||||
],
|
||||
"max_empty_searches": 10,
|
||||
"query": {
|
||||
],
|
||||
"max_empty_searches": 10,
|
||||
"query": {
|
||||
"bool": {
|
||||
"filter": [
|
||||
{
|
||||
"term": {
|
||||
"event.code": "4648"
|
||||
}
|
||||
}
|
||||
],
|
||||
"must": [
|
||||
{
|
||||
"bool": {
|
||||
"should": [
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "windows",
|
||||
"operator": "OR"
|
||||
}
|
||||
"filter": [
|
||||
{
|
||||
"term": {
|
||||
"event.code": "4648"
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.type": {
|
||||
"query": "windows",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
],
|
||||
"must": [
|
||||
{
|
||||
"bool": {
|
||||
"should": [
|
||||
{
|
||||
"match": {
|
||||
"host.os.family": {
|
||||
"query": "windows",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"host.os.type": {
|
||||
"query": "windows",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"must_not": {
|
||||
"terms": {
|
||||
"process.name": [
|
||||
"elastic-agent.exe", "elastic-agent", "metricbeat.exe", "metricbeat",
|
||||
"filebeat.exe", "filebeat", "packetbeat.exe", "packetbeat",
|
||||
"winlogbeat.exe", "winlogbeat"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,42 +1,51 @@
|
|||
{
|
||||
"job_id": "JOB_ID",
|
||||
"indices": [
|
||||
"job_id": "JOB_ID",
|
||||
"indices": [
|
||||
"INDEX_PATTERN_NAME"
|
||||
],
|
||||
"max_empty_searches": 10,
|
||||
"query": {
|
||||
"bool": {
|
||||
"filter": [
|
||||
{
|
||||
"term": {
|
||||
"winlog.event_data.LogonType": "10"
|
||||
}
|
||||
}
|
||||
],
|
||||
"must": [
|
||||
{
|
||||
"bool": {
|
||||
"should": [
|
||||
],
|
||||
"max_empty_searches": 10,
|
||||
"query": {
|
||||
"bool": {
|
||||
"filter": [
|
||||
{
|
||||
"match": {
|
||||
"event.type": {
|
||||
"query": "authentication_success",
|
||||
"operator": "OR"
|
||||
"term": {
|
||||
"winlog.event_data.LogonType": "10"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"event.action": {
|
||||
"query": "logged-in",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"must": [
|
||||
{
|
||||
"bool": {
|
||||
"should": [
|
||||
{
|
||||
"match": {
|
||||
"event.type": {
|
||||
"query": "authentication_success",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"event.action": {
|
||||
"query": "logged-in",
|
||||
"operator": "OR"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"must_not": {
|
||||
"terms": {
|
||||
"process.name": [
|
||||
"elastic-agent.exe", "elastic-agent", "metricbeat.exe", "metricbeat",
|
||||
"filebeat.exe", "filebeat", "packetbeat.exe", "packetbeat",
|
||||
"winlogbeat.exe", "winlogbeat"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue