Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"icon": "logoSecurity"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
{
"id": "security_linux",
"title": "Security Linux",
"description": "Detect suspicious activity using ECS Linux events. Tested with Auditbeat and the Elastic agent. Depends heavily on the host.os fields and this query may be fragile until the host.os.type field is implemented.",
"type": "linux data",
"logoFile": "logo.json",
"defaultIndexPattern": "auditbeat-*,logs-endpoint.events.*",
"query": {
"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"
}
}
}
]
}
},
"jobs": [
{
"id": "v2_rare_process_by_host_linux_ecs",
"file": "v2_rare_process_by_host_linux_ecs.json"
},
{
"id": "v2_linux_rare_metadata_user",
"file": "v2_linux_rare_metadata_user.json"
},
{
"id": "v2_linux_rare_metadata_process",
"file": "v2_linux_rare_metadata_process.json"
},
{
"id": "v2_linux_anomalous_user_name_ecs",
"file": "v2_linux_anomalous_user_name_ecs.json"
},
{
"id": "v2_linux_anomalous_process_all_hosts_ecs",
"file": "v2_linux_anomalous_process_all_hosts_ecs.json"
},
{
"id": "v2_linux_anomalous_network_port_activity_ecs",
"file": "v2_linux_anomalous_network_port_activity_ecs.json"
}
],
"datafeeds": [
{
"id": "datafeed-v2_rare_process_by_host_linux_ecs",
"file": "datafeed_v2_rare_process_by_host_linux_ecs.json",
"job_id": "v2_rare_process_by_host_linux_ecs"
},
{
"id": "datafeed-v2_linux_rare_metadata_user",
"file": "datafeed_v2_linux_rare_metadata_user.json",
"job_id": "v2_linux_rare_metadata_user"
},
{
"id": "datafeed-v2_linux_rare_metadata_process",
"file": "datafeed_v2_linux_rare_metadata_process.json",
"job_id": "v2_linux_rare_metadata_process"
},
{
"id": "datafeed-v2_linux_anomalous_user_name",
"file": "datafeed_v2_linux_anomalous_user_name_ecs.json",
"job_id": "v2_linux_anomalous_user_name_ecs"
},
{
"id": "datafeed-v2_linux_anomalous_process_all_hosts_ecs",
"file": "datafeed_v2_linux_anomalous_process_all_hosts_ecs.json",
"job_id": "v2_linux_anomalous_process_all_hosts_ecs"
},
{
"id": "datafeed-v2_linux_anomalous_network_port_activity",
"file": "datafeed_v2_linux_anomalous_network_port_activity_ecs.json",
"job_id": "v2_linux_anomalous_network_port_activity_ecs"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{
"job_id": "JOB_ID",
"indices": [
"INDEX_PATTERN_NAME"
],
"max_empty_searches": 10,
"query": {
"bool":
{
"filter": [
{"term": {"event.category": "network"}},
{"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": [
{"term": {"destination.ip": "127.0.0.1"}},
{"term": {"destination.ip": "::"}},
{"term": {"destination.ip": "::1"}},
{"term": {"user.name":"jenkins"}}
]
}
}
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
{
"job_id": "JOB_ID",
"indices": [
"INDEX_PATTERN_NAME"
],
"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": [
{
"term": {
"user.name": "jenkins-worker"
}
},
{
"term": {
"user.name": "jenkins-user"
}
},
{
"term": {
"user.name": "jenkins"
}
},
{
"wildcard": {
"process.name": {
"wildcard": "jenkins*"
}
}
}
]
}
}
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{
"job_id": "JOB_ID",
"indices": [
"INDEX_PATTERN_NAME"
],
"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"
}
}
}
]
}
}
]
}
}
}
Loading