Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Jan 28] Adds new runscript Crowdstrike response action #6435

Merged
merged 5 commits into from
Jan 28, 2025
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions docs/management/admin/response-actions.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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 60 seconds.

Required privilege: **Execute Operations**

Example: `runscript --CloudFile="CloudScript1.ps1" --CommandLine="-Verbose true" --Timeout=180`

[discrete]
[[supporting-commands-parameters]]
== Supporting commands and parameters
Expand Down
2 changes: 2 additions & 0 deletions docs/management/admin/third-party-actions.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ These response actions are supported for CrowdStrike-enrolled hosts:
+
Refer to the instructions on <<isolate-a-host,isolating>> and <<release-a-host,releasing>> hosts for more details.

* **Run a script on a host** with the <<runscript,`runscript` response action>>.

[discrete]
[[sentinelone-response-actions]]
== SentinelOne response actions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 60 seconds.

Predefined role: **Tier 3 analyst**, **SOC manager**, or **Endpoint operations analyst**

Custom role privilege: **Execute Operations**

Example: `runscript --CloudFile="CloudScript1.ps1" --CommandLine="-Verbose true" --Timeout=180`

[discrete]
[[supporting-commands-parameters]]
== Supporting commands and parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ These response actions are supported for CrowdStrike-enrolled hosts:
+
Refer to the instructions on <<isolate-a-host,isolating>> and <<release-a-host,releasing>> hosts for more details.

* **Run a script on a host** with the <<runscript,`runscript` response action>>.

++++
</div>
<div tabindex="0" role="tabpanel" id="endpoint-response-actions-third-party-actions-sentinelone-panel" aria-labelledby="endpoint-response-actions-third-party-actions-sentinelone-button" hidden="">
Expand Down