Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.x] [SecuritySolution][Endpoint][ResponseActions] Response action t…
…elemetry (endpoint/third party) (elastic#192685) (elastic#194262) # Backport This will backport the following commits from `main` to `8.x`: - [[SecuritySolution][Endpoint][ResponseActions] Response action telemetry (endpoint/third party) (elastic#192685)](elastic#192685) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Ash","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-09-27T08:06:31Z","message":"[SecuritySolution][Endpoint][ResponseActions] Response action telemetry (endpoint/third party) (elastic#192685)\n\n## Summary\r\n\r\nAdds server-side telemetry collection for response action creation and\r\nresponses.\r\npart of elastic/security-team/issues/7466\r\n\r\n<details><summary>Events from telemetry staging</summary>\r\n<img\r\nsrc=\"https://github.com/user-attachments/assets/2e9f37f1-c5b5-46e9-be34-c3bdcff4015b\"\r\n/>\r\n<img\r\nsrc=\"https://github.com/user-attachments/assets/85a5a75d-f9f1-4d76-a782-272d9d7da0cb\"\r\n/>\r\n</details> \r\n\r\n<details><summary>Dashboard on staging</summary>\r\n<img\r\nsrc=\"https://github.com/user-attachments/assets/9faa96a2-a553-4def-b5da-6b66b5728ca4\">\r\n</details> \r\n\r\nThis PR adds Server Side EBTs (event-based telemetry) for:\r\n### Action creation event\r\n```json5\r\n\"event_type\": [\r\n \"endpoint_response_action_sent\"\r\n ],\r\n \"properties\": [\r\n {\r\n \"responseActions\": {\r\n \"actionId\": \"696608a5-1908-457d-9072-5f555c740ffc\",\r\n \"agentType\": \"sentinel_one\",\r\n \"command\": \"unisolate\",\r\n \"isAutomated\": false\r\n }\r\n }\r\n ],\r\n```\r\n### Action response event\r\n```json5\r\n{\r\n\"event_type\": [\r\n \"endpoint_response_action_status_change_event\"\r\n ],\r\n \"properties\": [\r\n {\r\n \"responseActions\": {\r\n \"actionId\": \"696608a5-1908-457d-9072-5f555c740ffc\",\r\n \"agentType\": \"sentinel_one\",\r\n \"actionStatus\": \"successful\",\r\n \"command\": \"unisolate\",\r\n }\r\n }\r\n ],\r\n}\r\n```\r\n\r\n### Action creation error event\r\n```json5\r\n\"event_type\": [\r\n \"endpoint_response_action_sent_error\"\r\n ],\r\n \"properties\": [\r\n {\r\n \"responseActions\": {\r\n \"command\": \"execute\",\r\n \"error\": \"error message\",\r\n \"agentType\": \"endpoint\"\r\n }\r\n }\r\n ],\r\n```\r\n\r\n\r\n**Note:** This PR does not add response completion telemetry for\r\n`endpoint` agent type. There would be follow up PRs to add that and some\r\nusage/snapshot telemetry.\r\n\r\n### Checklist\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n- [ ] [Flaky Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\r\nused on any tests changed\r\n- [ ] If a plugin configuration key changed, check if it needs to be\r\nallow-listed in the cloud and added to the [docker\r\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)","sha":"a80335e378da3a063bb79a191c550a88578afd07","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Defend Workflows","OLM Sprint","v8.16.0","backport:version"],"title":"[SecuritySolution][Endpoint][ResponseActions] Response action telemetry (endpoint/third party)","number":192685,"url":"https://github.com/elastic/kibana/pull/192685","mergeCommit":{"message":"[SecuritySolution][Endpoint][ResponseActions] Response action telemetry (endpoint/third party) (elastic#192685)\n\n## Summary\r\n\r\nAdds server-side telemetry collection for response action creation and\r\nresponses.\r\npart of elastic/security-team/issues/7466\r\n\r\n<details><summary>Events from telemetry staging</summary>\r\n<img\r\nsrc=\"https://github.com/user-attachments/assets/2e9f37f1-c5b5-46e9-be34-c3bdcff4015b\"\r\n/>\r\n<img\r\nsrc=\"https://github.com/user-attachments/assets/85a5a75d-f9f1-4d76-a782-272d9d7da0cb\"\r\n/>\r\n</details> \r\n\r\n<details><summary>Dashboard on staging</summary>\r\n<img\r\nsrc=\"https://github.com/user-attachments/assets/9faa96a2-a553-4def-b5da-6b66b5728ca4\">\r\n</details> \r\n\r\nThis PR adds Server Side EBTs (event-based telemetry) for:\r\n### Action creation event\r\n```json5\r\n\"event_type\": [\r\n \"endpoint_response_action_sent\"\r\n ],\r\n \"properties\": [\r\n {\r\n \"responseActions\": {\r\n \"actionId\": \"696608a5-1908-457d-9072-5f555c740ffc\",\r\n \"agentType\": \"sentinel_one\",\r\n \"command\": \"unisolate\",\r\n \"isAutomated\": false\r\n }\r\n }\r\n ],\r\n```\r\n### Action response event\r\n```json5\r\n{\r\n\"event_type\": [\r\n \"endpoint_response_action_status_change_event\"\r\n ],\r\n \"properties\": [\r\n {\r\n \"responseActions\": {\r\n \"actionId\": \"696608a5-1908-457d-9072-5f555c740ffc\",\r\n \"agentType\": \"sentinel_one\",\r\n \"actionStatus\": \"successful\",\r\n \"command\": \"unisolate\",\r\n }\r\n }\r\n ],\r\n}\r\n```\r\n\r\n### Action creation error event\r\n```json5\r\n\"event_type\": [\r\n \"endpoint_response_action_sent_error\"\r\n ],\r\n \"properties\": [\r\n {\r\n \"responseActions\": {\r\n \"command\": \"execute\",\r\n \"error\": \"error message\",\r\n \"agentType\": \"endpoint\"\r\n }\r\n }\r\n ],\r\n```\r\n\r\n\r\n**Note:** This PR does not add response completion telemetry for\r\n`endpoint` agent type. There would be follow up PRs to add that and some\r\nusage/snapshot telemetry.\r\n\r\n### Checklist\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n- [ ] [Flaky Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\r\nused on any tests changed\r\n- [ ] If a plugin configuration key changed, check if it needs to be\r\nallow-listed in the cloud and added to the [docker\r\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)","sha":"a80335e378da3a063bb79a191c550a88578afd07"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/192685","number":192685,"mergeCommit":{"message":"[SecuritySolution][Endpoint][ResponseActions] Response action telemetry (endpoint/third party) (elastic#192685)\n\n## Summary\r\n\r\nAdds server-side telemetry collection for response action creation and\r\nresponses.\r\npart of elastic/security-team/issues/7466\r\n\r\n<details><summary>Events from telemetry staging</summary>\r\n<img\r\nsrc=\"https://github.com/user-attachments/assets/2e9f37f1-c5b5-46e9-be34-c3bdcff4015b\"\r\n/>\r\n<img\r\nsrc=\"https://github.com/user-attachments/assets/85a5a75d-f9f1-4d76-a782-272d9d7da0cb\"\r\n/>\r\n</details> \r\n\r\n<details><summary>Dashboard on staging</summary>\r\n<img\r\nsrc=\"https://github.com/user-attachments/assets/9faa96a2-a553-4def-b5da-6b66b5728ca4\">\r\n</details> \r\n\r\nThis PR adds Server Side EBTs (event-based telemetry) for:\r\n### Action creation event\r\n```json5\r\n\"event_type\": [\r\n \"endpoint_response_action_sent\"\r\n ],\r\n \"properties\": [\r\n {\r\n \"responseActions\": {\r\n \"actionId\": \"696608a5-1908-457d-9072-5f555c740ffc\",\r\n \"agentType\": \"sentinel_one\",\r\n \"command\": \"unisolate\",\r\n \"isAutomated\": false\r\n }\r\n }\r\n ],\r\n```\r\n### Action response event\r\n```json5\r\n{\r\n\"event_type\": [\r\n \"endpoint_response_action_status_change_event\"\r\n ],\r\n \"properties\": [\r\n {\r\n \"responseActions\": {\r\n \"actionId\": \"696608a5-1908-457d-9072-5f555c740ffc\",\r\n \"agentType\": \"sentinel_one\",\r\n \"actionStatus\": \"successful\",\r\n \"command\": \"unisolate\",\r\n }\r\n }\r\n ],\r\n}\r\n```\r\n\r\n### Action creation error event\r\n```json5\r\n\"event_type\": [\r\n \"endpoint_response_action_sent_error\"\r\n ],\r\n \"properties\": [\r\n {\r\n \"responseActions\": {\r\n \"command\": \"execute\",\r\n \"error\": \"error message\",\r\n \"agentType\": \"endpoint\"\r\n }\r\n }\r\n ],\r\n```\r\n\r\n\r\n**Note:** This PR does not add response completion telemetry for\r\n`endpoint` agent type. There would be follow up PRs to add that and some\r\nusage/snapshot telemetry.\r\n\r\n### Checklist\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n- [ ] [Flaky Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\r\nused on any tests changed\r\n- [ ] If a plugin configuration key changed, check if it needs to be\r\nallow-listed in the cloud and added to the [docker\r\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)","sha":"a80335e378da3a063bb79a191c550a88578afd07"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Ash <[email protected]>
- Loading branch information