For the complete documentation index, see llms.txt. This page is also available as Markdown.
Cortex XSOAR 8 (SaaS)

Task 3. Add tasks

Add tasks to a Cortex XSOAR 8 SaaS playbook.

Playbook tasks are the building blocks of playbooks. Tasks enable you to run scripts and sub-playbooks, communicate with end users, set conditions, and store relevant data.

Cortex XSOAR supports different task types for different actions to be taken in a playbook, and each task can receive and generate data in the form of inputs and outputs. For example, for enrichment, you might want to run an enrichment sub-playbook or a command that returns additional information for an indicator.

Tasks can be reused across playbooks and you can copy, cut, paste, and delete tasks within or between playbooks using keyboard shortcuts. To see a list of keyboard shortcuts, see Keyboard shortcuts.

The Task Library contains a list of scripts, tasks, and playbooks. You can create new tasks from scripts, repurpose existing tasks, and use existing playbooks as sub-playbooks.

You can add a brief description for each task, explaining what the task does. Descriptions are added in the Task Description task field. When you view your playbook, clicking the playbook-info-icon.png icon for a task displays the description, without requiring you to open the task.

Note

To open multiple playbooks at the same time, edit the first playbook and then click the New icon next to the playbook name to create a new tab. You can either create a new playbook, or add an existing one.

Once you add tasks to your playbook, connect the tasks in their logical order by dragging and dropping a wire from one task to another.

Task type
Description

Section

Use a section header task to group related tasks to organize and manage the flow of your playbook.

Section headers can also be used for time tracking between phases in a playbook. This data can be used to display in dashboards and report time trends.

For example, in a phishing playbook you would have a section for the investigative phase of the playbook such as indicator enrichment, and a section for communication tasks with the user who reported the phishing.

You can easily navigate playbooks and focus on the parts you need to work on by collapsing and expanding playbook sections. Collapsing sections provides a condensed view of the playbook flow, reducing visual clutter and enabling quick access to specific sections. Expanding sections allows you to view or edit specific parts of a playbook while keeping the rest of the playbook compact and maintaining focus on the relevant playbook details. You can also hover over a Section Header to highlight all tasks under the section and easily identify the section scope.

For more information, Create a section header.

Standard

Standard tasks can be manual tasks such as manual verification to prompt an analyst to verify the severity or classification of an incident before proceeding with automated actions. They can also be automated tasks such as parsing a file or enriching indicators.

Automated tasks are based on scripts that exist in the system. These scripts can be created by you or come out-of-the-box as part of a content pack. For example, the !ad-get-user command retrieves detailed information about a user account using the Active Directory Query V2 integration.

You can also automatically remediate an incident by interacting with a third-party integration, open tickets in a ticketing system such as Jira, or detonate a file using a sandbox.

For more information, see Create a standard task.

Conditional

Use conditional tasks to validate conditions based on values or parameters and take appropriate direction in the playbook workflow, like a decision tree in a flow chart.

For example, a conditional task may ask whether indicators are found. If yes, you can have a task to enrich them, and if not you can proceed to determine that the incident is not malicious. Alternatively, you can use conditional tasks to check if a certain integration is available and enabled in your system. If yes, you can use that integration to perform an action, and if not, you can continue on a different branch in the decision tree.

Conditional tasks can also be used to communicate with users through a single question survey, the answer to which determines how a playbook will proceed.

For more information, see Create a conditional task.

Data Collection

Use a data collection task to interact with users through a survey, for example to collect responses or escalate an incident.

All responses are collected and recorded in the incident context data, from a single user or multiple users. You can use the survey questions and answers as input for subsequent playbook tasks.

You can collect responses in custom fields, for example, a grid field.

For more information, see Create a communication task.

Playbook task icons

The different playbook tasks appear in the playbook editor with unique logos to more easily identify the task type and origin, for example third-party integration commands, built-in scripts and tasks, and tasks requiring manual inputs.

Playbook task icons in the playbook editor
Task
Description

standard_task.png

arrow.pngStandard manual task

An arrow with a light blue square background indicates a standard manual task. The following are kinds of standard tasks.

  • Manual Standard task (no lightning bolt script logo):

    These tasks are used where usually it's not possible to automate them. You can add comments, assign them to an owner, and set a due date. The analyst who is responsible for the investigation needs to complete the task before the playbook can continue running. A user icon ( user_icon.png) indicates the task requires manual inputs.

  • Automated Standard task (with lightning bolt script logo):

    A single command or script that is set to automatically run when the playbook execution reaches this step. Some scripts need arguments in order to run - make sure to set them up properly. If left empty, the analyst who is responsible for the investigation will need to complete them so the script will run and the playbook can continue its execution.

  • Automated Standard task (with Builtin logo):

    A single system command or script that is set to automatically run when the playbook execution reaches this step. Some scripts need arguments in order to run - make sure to set them up properly. If left empty, the analyst who is responsible for the investigation will need to complete them so the script will run and the playbook can continue its execution.

  • Automated Standard task (with Multi Command logo):

    A generic single command or script that can be used with multiple integrations is set to automatically run when the playbook reaches this step. Some scripts need arguments in order to run - make sure to set them up properly. If left empty, the analyst who is responsible for the investigation will need to complete them so the script will run and the playbook can continue its execution.

condition_task.png

conditional_icon.pngConditional task

A diamond icon in a purple square background indicates a conditional task used as decision trees in your playbook. The following are kinds of conditional tasks.

  • Manual conditional task. A user icon ( user_icon.png) indicates the task requires manual inputs.

  • Automated conditional task (with the lightning bolt script logo).

  • Automated conditional task that uses a system script (with the Builtin logo).

data_collection_task.png

data_collection_icon.pngData collection task / Communication task

The speech bubble in a turquoise background indicates a data collection task. This task prompts the receivers to respond to a multi-question form and submit replies, even if they are not Cortex users. A user icon ( user_icon.png) indicates the task requires manual inputs.

sub-playbook_task.png

sub-playbook_icon.pngSub-playbook task

The workflow icon in a blue background indicates that the task is a playbook nested within the parent playbook. You can view the playbook by opening the task and selecting Open sub-playbook.

The red warning icon indicates the sub-playbook is not ready to use. Open it to review the errors.

task-error-new-logo.png

Task containing an error

Scripts or sub-playbooks that have errors are designated by a red triangle. You need to open the script or sub-playbook to review the errors.

update_scripts.png

Task containing a deprecated script or needs to be updated

Scripts or sub-playbooks that have updates or are deprecated are designated by a yellow triangle. You need to update the scripts, integration commands, or sub playbook tasks to their most current version.

skip.png

skip_icon.pngSet to skip

For the debugger, when a task is set to skip, the skip icon will be orange.

breakpoint.png

breakpoint_icon.pngBreakpoint

For the debugger, when the playbook reaches a breakpoint, the task has an orange line at the top to indicate the breakpoint.

overriden.png

overidden_icon.pngOverridden inputs or outputs

For the debugger, when a task is set to have overridden inputs or outputs, the word Input or Output appears in orange.

pending.png

pending_icon.pngPending/in queue task

When the playbook starts to run, all tasks that are about to be performed are gray.

running.png

running_icon.pngRunning/ in progress task

A spinning circle inside the gray square indicates a running/in progress task.

completed.png

completed_icon.pngCompleted task

The green square indicates a completed task.

waiting.png

waiting_icon.pngWaiting task

The orange square indicates that the task is pending action.

If you hover over the icon on the top left corner, details about the reason the task is in waiting mode appear.

The user icon ( user_icon.png) indicates the task requires you to open it and manually mark it as complete.

A speech bubble icon (bubble_icon.png) indicates the task is waiting for a questionnaire to be completed.

failed.png

Failed task

The red warning icon indicates that the automation failed to complete as expected and requires manual inspection and troubleshooting. Contact your Cortex XSOAR administrator.

If you hover on the icon on the top left corner, details about the specific problem appear.

If a red warning icon is paired with the clock icon (hourglass_icon.png), the task’s SLA is overdue.

skipped.png

skipped_icon.pngSkipped task

The task will look faded to indicate it was not executed. This can happen if this task was set to be skipped when an error occurs, or if it is in a branch that was not executed if a condition wasn’t met.

Built-in

Last updated

Was this helpful?