From 5c3b32bba9a1b8528b4cde6f01899672c51d162d Mon Sep 17 00:00:00 2001 From: natasha-moore-elastic Date: Fri, 17 Jan 2025 13:22:45 +0000 Subject: [PATCH 1/5] Adds new runscript Crowdstrike response action --- .../admin/response-actions.asciidoc | 19 +++++++++++++++++ .../admin/third-party-actions.asciidoc | 2 ++ .../response-actions.asciidoc | 21 +++++++++++++++++++ .../third-party-actions.asciidoc | 2 ++ 4 files changed, 44 insertions(+) diff --git a/docs/management/admin/response-actions.asciidoc b/docs/management/admin/response-actions.asciidoc index 277cb9e680..0bbd34733c 100644 --- a/docs/management/admin/response-actions.asciidoc +++ b/docs/management/admin/response-actions.asciidoc @@ -192,6 +192,25 @@ Example: `scan --path "/Users/username/Downloads" --comment "Scan Downloads fold NOTE: Scanning can take longer for directories containing a lot of files. +[discrete] +[[runscript]] +=== `runscript` + +Run a script on a host. You must include one of the following parameters to identify the script you want to run: + +* `--Raw`: The full script content provided directly as a string. +* `--CloudFile`: The name of the script stored in a cloud storage location. +* `--HostPath`: The absolute or relative file path of the script located on the host machine. + +You can also use these optional parameters: + +* `--CommandLine`: Additional command-line arguments passed to the script to customize its execution. +* `--Timeout`: The maximum duration, in seconds, that the script can run before it's forcibly stopped. If no timeout is specified, it defaults to TBD. + +Required privilege: TBD + +Example: `runscript --CloudFile="CloudScript1.ps1" --CommandLine="-Verbose true"` + [discrete] [[supporting-commands-parameters]] == Supporting commands and parameters diff --git a/docs/management/admin/third-party-actions.asciidoc b/docs/management/admin/third-party-actions.asciidoc index c2367a16f3..eb0650f511 100644 --- a/docs/management/admin/third-party-actions.asciidoc +++ b/docs/management/admin/third-party-actions.asciidoc @@ -35,6 +35,8 @@ These response actions are supported for CrowdStrike-enrolled hosts: + Refer to the instructions on <> and <> hosts for more details. +* **Run a script on a host** with the <>. + [discrete] [[sentinelone-response-actions]] == SentinelOne response actions diff --git a/docs/serverless/endpoint-response-actions/response-actions.asciidoc b/docs/serverless/endpoint-response-actions/response-actions.asciidoc index 82012f892a..646d2377b3 100644 --- a/docs/serverless/endpoint-response-actions/response-actions.asciidoc +++ b/docs/serverless/endpoint-response-actions/response-actions.asciidoc @@ -241,6 +241,27 @@ Example: `scan --path "/Users/username/Downloads" --comment "Scan Downloads fold Scanning can take longer for directories containing a lot of files. ==== +[discrete] +[[runscript]] +=== `runscript` + +Run a script on a host. You must include one of the following parameters to identify the script you want to run: + +* `--Raw`: The full script content provided directly as a string. +* `--CloudFile`: The name of the script stored in a cloud storage location. +* `--HostPath`: The absolute or relative file path of the script located on the host machine. + +You can also use these optional parameters: + +* `--CommandLine`: Additional command-line arguments passed to the script to customize its execution. +* `--Timeout`: The maximum duration, in seconds, that the script can run before it's forcibly stopped. If no timeout is specified, it defaults to TBD. + +Predefined role: TBD + +Custom role privilege: TBD + +Example: `runscript --CloudFile="CloudScript1.ps1" --CommandLine="-Verbose true"` + [discrete] [[supporting-commands-parameters]] == Supporting commands and parameters diff --git a/docs/serverless/endpoint-response-actions/third-party-actions.asciidoc b/docs/serverless/endpoint-response-actions/third-party-actions.asciidoc index 9963946888..950f4fbce9 100644 --- a/docs/serverless/endpoint-response-actions/third-party-actions.asciidoc +++ b/docs/serverless/endpoint-response-actions/third-party-actions.asciidoc @@ -44,6 +44,8 @@ These response actions are supported for CrowdStrike-enrolled hosts: + Refer to the instructions on <> and <> hosts for more details. +* **Run a script on a host** with the <>. + ++++