Conversation
Give the action catalog a contain example that calls the isolate API and polls for completion, so Defend can copy the same shape for the rest of the response actions. Co-authored-by: Cursor <cursoragent@cursor.com>
Contributor
|
👋 Hey! I opened this PR as well #291168 but I can close in favor of yours if that makes sense |
…olate-host' into alertzero/action-isolate-host
Contributor
💛 Build succeeded, but was flaky
Failed CI Steps
Metrics [docs]
Test Failures
History
|
Contributor
Author
|
Closing in favor of #291168 |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
part of: https://github.com/elastic/security-team/issues/19292
system-alertzero-action-isolate-host) as the example contain action for Defend to copy: isolate viaPOST /api/endpoint/action/isolate, then pollGET /api/endpoint/action/{id}until complete (or ~30 minutes).category: contain,impact: high,approvalPolicy: always-gate. Input isactionInput.endpoint_idsonly (agent ids, not hostnames).alertzero/actions/defend/so future Defend response actions inherit CODEOWNERS@elastic/security-defend-workflows+@elastic/workflows-eng(create-detection-rule stays inactions/).action_workflow.ts(managed/action_workflows.test.ts).Test plan
GET /internal/alertzero/actionslists Isolate host after Kibana start (tagaction).actionWorkflowId: system-alertzero-action-isolate-hostandactionInput.endpoint_ids: [<agent id>]; approve it.managed/definitions/alertzero/actions/defendlists@elastic/security-defend-workflowsand@elastic/workflows-eng.node scripts/jest src/platform/packages/shared/kbn-workflows/managed/action_workflows.test.ts src/platform/packages/shared/kbn-workflows/managed/managed_workflow_definitions.test.tsMade with Cursor