-
Notifications
You must be signed in to change notification settings - Fork 458
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[symantec_endpoint_security] Merge Symantec EDR Cloud into Symantec E…
…ndpoint Security (#10530) * Add incident data-stream of Symantec EDR Cloud into Symantec Endpoint Security. * Update Table of Contents of all dashboards.
- Loading branch information
1 parent
1ddff35
commit 3bca581
Showing
40 changed files
with
3,009 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
packages/symantec_endpoint_security/_dev/deploy/tf/files/test-events.log
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
1 change: 1 addition & 0 deletions
1
packages/symantec_endpoint_security/data_stream/event/_dev/deploy/tf/files/test-events.log
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
84 changes: 50 additions & 34 deletions
84
packages/symantec_endpoint_security/data_stream/event/sample_event.json
Large diffs are not rendered by default.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
...ges/symantec_endpoint_security/data_stream/incident/_dev/deploy/docker/docker-compose.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
version: '2.3' | ||
services: | ||
ses-incident: | ||
image: docker.elastic.co/observability/stream:v0.15.0 | ||
hostname: ses-incident | ||
ports: | ||
- 8090 | ||
volumes: | ||
- ./files:/files:ro | ||
environment: | ||
PORT: '8090' | ||
command: | ||
- http-server | ||
- --addr=:8090 | ||
- --config=/files/config-incident.yml |
36 changes: 36 additions & 0 deletions
36
...antec_endpoint_security/data_stream/incident/_dev/deploy/docker/files/config-incident.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
rules: | ||
- path: /v1/oauth2/tokens | ||
methods: ['POST'] | ||
responses: | ||
- status_code: 200 | ||
headers: | ||
Content-Type: | ||
- 'application/json' | ||
body: | | ||
{"access_token":"xxxx","expires_in":3600,"token_type":"Bearer"} | ||
- path: /v1/incidents | ||
methods: ['POST'] | ||
request_headers: | ||
Authorization: | ||
- 'Bearer xxxx' | ||
request_body: /.*"limit":1,"next":0,.*/ | ||
responses: | ||
- status_code: 200 | ||
headers: | ||
Content-Type: | ||
- application/json | ||
body: |- | ||
{"total":2,"next":1,"incidents":[{"customer_uid":"TEST-JvOsaJktSS-eyL-dXhxOvA","incident_uid":"8e7edfb1-27d2-4837-98ca-e7d794119c3b","type":"INCIDENT_CREATION","resolution_id":1,"conclusion":"Suspicious Activity","remediation":"Investigate further activity at the endpoint by downloading a full dump of the endpoint's recorded data. Give particular attention to activities performed by cmd.exe.","priority_id":4,"category_id":1,"modified":"2023-04-26T22:01:58.648+00:00","state_id":1,"id":4,"product_uid":"31B0C880-0229-49E8-94C5-48D56B1BD7B9","device_time":1682545570400,"ref_incident_uid":102110,"rule_name":"Advanced Attack Technique","created":"2023-04-26T21:46:10.400+00:00","type_id":8075,"incident_url":"https://sep.securitycloud.symantec.com/v2/incidents/incidentListing/8e7edfb1-27d2-4837-98ca-e7d794119c3b/details","message":"Victim-2:Signed Binary Proxy Execution, Deobfuscate/Decode Files or Information, Command and Scripting Interpreter: PowerShell, System Services: Service Execution","version":"1.0","product_name":"Symantec Integrated Cyber Defense Manager","event_id":8075004,"domain_uid":"TEST-ZBg_IqnyTAijNjP2BOOcuw","detection_type":"Advanced Analytics","severity_id":4,"time":1682545570400,"suspected_breach":"Yes"}]} | ||
- path: /v1/incidents | ||
methods: ['POST'] | ||
request_headers: | ||
Authorization: | ||
- 'Bearer xxxx' | ||
request_body: /.*"limit":1,"next":1,.*/ | ||
responses: | ||
- status_code: 200 | ||
headers: | ||
Content-Type: | ||
- application/json | ||
body: |- | ||
{"total":2,"next":2,"incidents":[{"customer_uid":"TEST-JvOsaJktSS-eyL-dXhxOvA","incident_uid":"1e7edfb1-27d2-4837-98ca-e7d794119c3b","type":"INCIDENT_CREATION","resolution_id":1,"conclusion":"Suspicious Activity","remediation":"Investigate further activity at the endpoint by downloading a full dump of the endpoint's recorded data. Give particular attention to activities performed by cmd.exe.","priority_id":4,"category_id":1,"modified":"2023-04-26T22:01:58.648+00:00","state_id":1,"id":4,"product_uid":"31B0C880-0229-49E8-94C5-48D56B1BD7B9","device_time":1682545570400,"ref_incident_uid":102110,"rule_name":"Advanced Attack Technique","created":"2023-04-26T21:46:10.400+00:00","type_id":8075,"incident_url":"https://sep.securitycloud.symantec.com/v2/incidents/incidentListing/8e7edfb1-27d2-4837-98ca-e7d794119c3b/details","message":"Victim-2:Signed Binary Proxy Execution, Deobfuscate/Decode Files or Information, Command and Scripting Interpreter: PowerShell, System Services: Service Execution","version":"1.0","product_name":"Symantec Integrated Cyber Defense Manager","event_id":8075004,"domain_uid":"TEST-ZBg_IqnyTAijNjP2BOOcuw","detection_type":"Advanced Analytics","severity_id":4,"time":1682545570400,"suspected_breach":"Yes"}]} |
4 changes: 4 additions & 0 deletions
4
...symantec_endpoint_security/data_stream/incident/_dev/test/pipeline/test-common-config.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
fields: | ||
tags: | ||
- preserve_original_event | ||
- preserve_duplicate_custom_fields |
1 change: 1 addition & 0 deletions
1
...ages/symantec_endpoint_security/data_stream/incident/_dev/test/pipeline/test-incident.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"customer_uid":"TEST-JvOsaJktSS-eyL-dXhxOvA","incident_uid":"8e7edfb1-27d2-4837-98ca-e7d794119c3b","type":"INCIDENT_CREATION","resolution_id":1,"conclusion":"Suspicious Activity","remediation":"Investigate further activity at the endpoint by downloading a full dump of the endpoint's recorded data. Give particular attention to activities performed by cmd.exe.","priority_id":4,"category_id":1,"modified":"2023-04-26T22:01:58.648+00:00","state_id":1,"id":4,"product_uid":"31B0C880-0229-49E8-94C5-48D56B1BD7B9","device_time":1682545570400,"ref_incident_uid":102110,"rule_name":"Advanced Attack Technique","created":"2023-04-26T21:46:10.400+00:00","type_id":8075,"incident_url":"https://sep.securitycloud.symantec.com/v2/incidents/incidentListing/8e7edfb1-27d2-4837-98ca-e7d794119c3b/details","message":"Victim-2:Signed Binary Proxy Execution, Deobfuscate/Decode Files or Information, Command and Scripting Interpreter: PowerShell, System Services: Service Execution","version":"1.0","product_name":"Symantec Integrated Cyber Defense Manager","event_id":8075004,"domain_uid":"TEST-ZBg_IqnyTAijNjP2BOOcuw","detection_type":"Advanced Analytics","severity_id":4,"time":1682545570400,"suspected_breach":"Yes"} |
81 changes: 81 additions & 0 deletions
81
...endpoint_security/data_stream/incident/_dev/test/pipeline/test-incident.log-expected.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
{ | ||
"expected": [ | ||
{ | ||
"@timestamp": "2023-04-26T21:46:10.400Z", | ||
"ecs": { | ||
"version": "8.11.0" | ||
}, | ||
"event": { | ||
"category": [ | ||
"malware" | ||
], | ||
"created": "2023-04-26T21:46:10.400Z", | ||
"id": "8e7edfb1-27d2-4837-98ca-e7d794119c3b", | ||
"kind": "alert", | ||
"original": "{\"customer_uid\":\"TEST-JvOsaJktSS-eyL-dXhxOvA\",\"incident_uid\":\"8e7edfb1-27d2-4837-98ca-e7d794119c3b\",\"type\":\"INCIDENT_CREATION\",\"resolution_id\":1,\"conclusion\":\"Suspicious Activity\",\"remediation\":\"Investigate further activity at the endpoint by downloading a full dump of the endpoint's recorded data. Give particular attention to activities performed by cmd.exe.\",\"priority_id\":4,\"category_id\":1,\"modified\":\"2023-04-26T22:01:58.648+00:00\",\"state_id\":1,\"id\":4,\"product_uid\":\"31B0C880-0229-49E8-94C5-48D56B1BD7B9\",\"device_time\":1682545570400,\"ref_incident_uid\":102110,\"rule_name\":\"Advanced Attack Technique\",\"created\":\"2023-04-26T21:46:10.400+00:00\",\"type_id\":8075,\"incident_url\":\"https://sep.securitycloud.symantec.com/v2/incidents/incidentListing/8e7edfb1-27d2-4837-98ca-e7d794119c3b/details\",\"message\":\"Victim-2:Signed Binary Proxy Execution, Deobfuscate/Decode Files or Information, Command and Scripting Interpreter: PowerShell, System Services: Service Execution\",\"version\":\"1.0\",\"product_name\":\"Symantec Integrated Cyber Defense Manager\",\"event_id\":8075004,\"domain_uid\":\"TEST-ZBg_IqnyTAijNjP2BOOcuw\",\"detection_type\":\"Advanced Analytics\",\"severity_id\":4,\"time\":1682545570400,\"suspected_breach\":\"Yes\"}", | ||
"provider": "Symantec Integrated Cyber Defense Manager", | ||
"reason": "Suspicious Activity", | ||
"severity": 4, | ||
"type": [ | ||
"info" | ||
], | ||
"url": "https://sep.securitycloud.symantec.com/v2/incidents/incidentListing/8e7edfb1-27d2-4837-98ca-e7d794119c3b/details" | ||
}, | ||
"http": { | ||
"version": "1.0" | ||
}, | ||
"message": "Victim-2:Signed Binary Proxy Execution, Deobfuscate/Decode Files or Information, Command and Scripting Interpreter: PowerShell, System Services: Service Execution", | ||
"rule": { | ||
"name": "Advanced Attack Technique" | ||
}, | ||
"ses": { | ||
"incident": { | ||
"category": "Security", | ||
"category_id": "1", | ||
"conclusion": "Suspicious Activity", | ||
"created": "2023-04-26T21:46:10.400Z", | ||
"customer_uid": "TEST-JvOsaJktSS-eyL-dXhxOvA", | ||
"detection_type": "Advanced Analytics", | ||
"device_time": "2023-04-26T21:46:10.400Z", | ||
"domain_uid": "TEST-ZBg_IqnyTAijNjP2BOOcuw", | ||
"event": "Incident Creation: Logged", | ||
"event_id": "8075004", | ||
"id": "4", | ||
"incident_uid": "8e7edfb1-27d2-4837-98ca-e7d794119c3b", | ||
"incident_url": "https://sep.securitycloud.symantec.com/v2/incidents/incidentListing/8e7edfb1-27d2-4837-98ca-e7d794119c3b/details", | ||
"message": "Victim-2:Signed Binary Proxy Execution, Deobfuscate/Decode Files or Information, Command and Scripting Interpreter: PowerShell, System Services: Service Execution", | ||
"modified": "2023-04-26T22:01:58.648Z", | ||
"outcome": "Logged", | ||
"priority": "Critical", | ||
"priority_id": "4", | ||
"product_name": "Symantec Integrated Cyber Defense Manager", | ||
"product_uid": "31B0C880-0229-49E8-94C5-48D56B1BD7B9", | ||
"ref_incident_uid": "102110", | ||
"remediation": "Investigate further activity at the endpoint by downloading a full dump of the endpoint's recorded data. Give particular attention to activities performed by cmd.exe.", | ||
"resolution": "Insufficient data", | ||
"resolution_id": "1", | ||
"rule_name": "Advanced Attack Technique", | ||
"severity": "Major", | ||
"severity_id": 4, | ||
"state": "New", | ||
"state_id": "1", | ||
"suspected_breach": true, | ||
"time": "2023-04-26T21:46:10.400Z", | ||
"type": "INCIDENT_CREATION", | ||
"type_id": "8075", | ||
"version": "1.0" | ||
} | ||
}, | ||
"tags": [ | ||
"preserve_original_event", | ||
"preserve_duplicate_custom_fields" | ||
], | ||
"url": { | ||
"domain": "sep.securitycloud.symantec.com", | ||
"original": "https://sep.securitycloud.symantec.com/v2/incidents/incidentListing/8e7edfb1-27d2-4837-98ca-e7d794119c3b/details", | ||
"path": "/v2/incidents/incidentListing/8e7edfb1-27d2-4837-98ca-e7d794119c3b/details", | ||
"scheme": "https" | ||
} | ||
} | ||
] | ||
} |
14 changes: 14 additions & 0 deletions
14
.../symantec_endpoint_security/data_stream/incident/_dev/test/system/test-default-config.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
input: cel | ||
service: ses-incident | ||
vars: | ||
url: http://{{Hostname}}:{{Port}} | ||
client_id: xxxx | ||
client_secret: xxxx | ||
token_url: http://{{Hostname}}:{{Port}}/v1/oauth2/tokens | ||
data_stream: | ||
vars: | ||
preserve_original_event: true | ||
preserve_duplicate_custom_fields: true | ||
batch_size: 1 | ||
assert: | ||
hit_count: 2 |
102 changes: 102 additions & 0 deletions
102
packages/symantec_endpoint_security/data_stream/incident/agent/stream/cel.yml.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
config_version: 2 | ||
interval: {{interval}} | ||
{{#if enable_request_tracer}} | ||
resource.tracer.filename: "../../logs/cel/http-request-trace-*.ndjson" | ||
resource.tracer.maxbackups: 5 | ||
{{/if}} | ||
{{#if proxy_url}} | ||
resource.proxy_url: {{proxy_url}} | ||
{{/if}} | ||
{{#if ssl}} | ||
resource.ssl: {{ssl}} | ||
{{/if}} | ||
{{#if http_client_timeout}} | ||
resource.timeout: {{http_client_timeout}} | ||
{{/if}} | ||
resource.url: {{url}} | ||
auth.oauth2: | ||
client.id: {{client_id}} | ||
client.secret: {{client_secret}} | ||
token_url: {{token_url}} | ||
endpoint_params: | ||
grant_type: client_credentials | ||
state: | ||
initial_interval: {{initial_interval}} | ||
want_more: false | ||
limit: {{batch_size}} | ||
next: 0 | ||
program: | | ||
( | ||
state.want_more ? | ||
state | ||
: | ||
state.with({ | ||
"limit": state.limit, | ||
"start_date": state.?cursor.last_timestamp.orValue(string(now - duration(state.initial_interval))), | ||
"end_date": now, | ||
"next": state.next, | ||
}) | ||
).as(state, | ||
post_request( | ||
state.url.trim_right("/") + "/v1/incidents", | ||
"application/json", | ||
{ | ||
"limit": state.limit, | ||
"start_date": state.start_date, | ||
"end_date": state.end_date, | ||
"next": state.next | ||
}.encode_json() | ||
).do_request().as(resp, resp.StatusCode == 200 ? | ||
bytes(resp.Body).decode_json().as(body, | ||
(body.?next.orValue(body.total) != body.total).as(want_more, { | ||
"events": body.incidents.map(e, { | ||
"message": e.encode_json(), | ||
}), | ||
"next": want_more ? body.next : 0, | ||
"want_more": want_more, | ||
"limit": state.limit, | ||
"start_date": string(state.start_date), | ||
"end_date": string(state.end_date), | ||
"cursor": { | ||
?"last_timestamp": want_more ? | ||
state.?cursor.last_timestamp | ||
: | ||
optional.of(state.end_date), | ||
} | ||
}) | ||
) | ||
: | ||
{ | ||
"events": { | ||
"error": { | ||
"code": string(resp.StatusCode), | ||
"id": string(resp.Status), | ||
"message": "POST:"+( | ||
size(resp.Body) != 0 ? | ||
string(resp.Body) | ||
: | ||
string(resp.Status) + ' (' + string(resp.StatusCode) + ')' | ||
), | ||
}, | ||
}, | ||
"want_more": false, | ||
} | ||
) | ||
) | ||
tags: | ||
{{#if preserve_original_event}} | ||
- preserve_original_event | ||
{{/if}} | ||
{{#if preserve_duplicate_custom_fields}} | ||
- preserve_duplicate_custom_fields | ||
{{/if}} | ||
{{#each tags as |tag|}} | ||
- {{tag}} | ||
{{/each}} | ||
{{#contains "forwarded" tags}} | ||
publisher_pipeline.disable_host: true | ||
{{/contains}} | ||
{{#if processors}} | ||
processors: | ||
{{processors}} | ||
{{/if}} |
Oops, something went wrong.