Create or edit an out-of-the-box script, including detach and attach and automation settings.
Creating custom scripts in Cortex XDR helps meet your organization’s specific needs to automate repetitive tasks, streamline security operations, and make case response more efficient.
Navigate to → → and click New Script.
Add an identifying name for the script.
Click Save.
In the Agentic Assistant pane, start a conversation with the Automation Engineer agent to create the script, or manually create the script code and define the script settings.
For more information, see Use the Automation Engineer agent to accelerate script development and deployment. For details about script settings, see Create a script.
Save the script version.
(Recommended) Click Test to validate your script.
In the Arguments section, provide values for any inputs your prompt requires. These inputs are used to simulate how the script will behave in a live playbook, or how the script registered as an Action and assigned to an Agent will run as part of an executed plan.
You can add input values manually.
Click Run.
The tests are executed in a Playground environment. Review the output generated by the AI to validate the script's behavior and ensure it produces the expected results. The output is typically a text summary or another structured format that you have defined.
Tip
If there is an error, you can copy the error message from the test result into the Agentic Assistant prompt and ask the Automation Engineer agent to correct the error.
In each run result, you can take the following actions:
Action
Description
Mark as note
Marks the entry as a note, which can help you understand why certain action was taken and assist future decisions.
When marked as a note, it is highlighted, so you can easily find it in the War Room or the Issue Overview tab.
View artifact in new tab
Opens a new tab for the artifact.
Download artifact
Downloads the run details to a text file, including the AI task name,, the script name, user name and password, and the result.
Add tags
Add any relevant tags to use that help you find relevant information.
(Optional) Click
and select Register new Action to register the script as an Action. For more information, see Manage actions.
Note
You can enable/disable a script in the Settings without having to duplicate the script.
You can view recently modified or deleted scripts by clicking the version history for all scripts
.