Skip to content

[Security Solution][Endpoint] API for SentinelOne runscript response actions#229892

Merged
paul-tavares merged 15 commits intoelastic:mainfrom
paul-tavares:task/olm-13284-runscript-command-api-for-s1
Aug 5, 2025
Merged

[Security Solution][Endpoint] API for SentinelOne runscript response actions#229892
paul-tavares merged 15 commits intoelastic:mainfrom
paul-tavares:task/olm-13284-runscript-command-api-for-s1

Conversation

@paul-tavares
Copy link
Contributor

@paul-tavares paul-tavares commented Jul 29, 2025

Summary

  • Enables runscript response action API for agentType of sentinel_one
    • API support is behind feature flag: responseActionsSentinelOneRunScriptEnabled
    • At this time, the action will be submitted to SentinelOne, but will remain in pending state in Kibana (completion of it will be done in a subsequent PR)

Testing

  • Enable the feature flag
  • Setup env. with SentinelOne connector and ensure you have a host running the sentinelone agent
POST /api/endpoint/action/run_script
{
    "agent_type": "sentinel_one",
    "endpoint_ids": [ "__YOUR_SENTINEONE_HOST_ID__" ],
    "parameters": {
        "scriptId": "1466645477667595729",
        "scriptInput": "--paths-to-delete /tmp/foo.txt"
    }
}

Checklist

@paul-tavares paul-tavares self-assigned this Jul 29, 2025
@paul-tavares paul-tavares added release_note:skip Skip the PR/issue when compiling release notes Team:Defend Workflows “EDR Workflows” sub-team of Security Solution backport:version Backport to applied version labels v9.2.0 labels Jul 29, 2025
@paul-tavares
Copy link
Contributor Author

/ci

2 similar comments
@paul-tavares
Copy link
Contributor Author

/ci

@paul-tavares
Copy link
Contributor Author

/ci

@paul-tavares paul-tavares force-pushed the task/olm-13284-runscript-command-api-for-s1 branch from 335bacc to 8f02f0c Compare July 30, 2025 21:07
@paul-tavares
Copy link
Contributor Author

/ci

@paul-tavares
Copy link
Contributor Author

/ci

@paul-tavares paul-tavares marked this pull request as ready for review July 31, 2025 13:28
@paul-tavares paul-tavares requested a review from a team as a code owner July 31, 2025 13:28
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-defend-workflows (Team:Defend Workflows)

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Unknown metric groups

ESLint disabled in files

id before after diff
securitySolution 98 99 +1

ESLint disabled line counts

id before after diff
securitySolution 646 648 +2

Total ESLint disabled count

id before after diff
securitySolution 744 747 +3

History

cc @paul-tavares

Copy link
Contributor

@tomsonpl tomsonpl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Copy link
Contributor

@gergoabraham gergoabraham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

didn't test it, but code-wise looks good 👍

@paul-tavares paul-tavares merged commit 65521ca into elastic:main Aug 5, 2025
12 checks passed
@paul-tavares paul-tavares deleted the task/olm-13284-runscript-command-api-for-s1 branch August 5, 2025 18:44
delanni pushed a commit to delanni/kibana that referenced this pull request Aug 5, 2025
…e actions (elastic#229892)

## Summary

- Enables `runscript` response action API for `agentType` of
`sentinel_one`
- API support is behind feature flag:
`responseActionsSentinelOneRunScriptEnabled`
- At this time, the action will be submitted to SentinelOne, but will
remain in `pending` state in Kibana (completion of it will be done in a
subsequent PR)
@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Aug 7, 2025
@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add a backport:* label or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 229892 locally
cc: @paul-tavares

@wildemat wildemat mentioned this pull request Aug 7, 2025
10 tasks
@paul-tavares paul-tavares added backport:skip This PR does not require backporting and removed backport missing Added to PRs automatically when the are determined to be missing a backport. backport:version Backport to applied version labels labels Aug 7, 2025
NicholasPeretti pushed a commit to NicholasPeretti/kibana that referenced this pull request Aug 18, 2025
…e actions (elastic#229892)

## Summary

- Enables `runscript` response action API for `agentType` of
`sentinel_one`
- API support is behind feature flag:
`responseActionsSentinelOneRunScriptEnabled`
- At this time, the action will be submitted to SentinelOne, but will
remain in `pending` state in Kibana (completion of it will be done in a
subsequent PR)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team:Defend Workflows “EDR Workflows” sub-team of Security Solution v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants