This repository is deprecated; please follow the main search page or use the ‘Related code repos’ widget on the right side of the current page.

SecureX orchestration workflow: Create ServiceNow incident from SecureX threat response insident

This SecureX orchestration workflow looks for SecureX Threat Response new incidents and then creates a ServiceNow incident for any found.

Features

  • Retrieve SecureX threat response new incidents between current time and the last time of this playbook
  • Create Service Now incidents based on description from SecureX incident and a referense link
  • Send Webex Teams message to SecOps space

Required Targets

  • CTR_For_Access_Token (default)
  • CTR_API (default)
  • ServiceNow
  • Webex Teams

Required Account Keys

  • CTR_Credentials
  • ServiceNow
  • Webex Teams Token

Required Global Variables

  • Last Run Timestamp

Required Atomic Workflows

  • Service Now - Create Incident
  • CTRGenerateAccessToken
  • Webex Teams - Post Message to Room

Setup instructions

Step 1. Browse to your SecureX orchestration instance

The URL will be a different depending on the region your account is in:

Step 2. Configure ServiceNow Target and Account Keys

Note: We have used free developer ServiceNow instance to test this orchestration workflow.

In SecureX Orchestration, go to Targets section in the left hand side menu, select New Target, choose HTTP Endpoint target type and apply configuration according to the screenshot below.

Note: CTR_API and CTR_For_Access_Token are the standard targets that are pre-configured in SecureX orchestration out of the box.

Go to Account Keys section in the left hand side menu, select New Account Key, choose HTTP Basic Authentication account key type and configure the key according to the screenshot below.

Step 3. Set up Webex Teams Target

In order to send notifications via Webex Teams, the target needs to be configured to reach it's API. In SecureX Orchestration, go to Targets in the left hand side menu, select New Target, and apply configuration according to the screenshot below.

Make sure the display name of the target matches exactly (Webex Teams).

Step 4. Create Webex Teams Room for notifications

It is assumed that Webex Teams Room for notifications will be created in advance (see prerequisites section).

Create Teams Room and add all necessary people. SXO will need to know the Room ID in order to send notifications. The easiest way to find it out - add roomid@webex.bot to your room and it will reply to you with the private message containing the room id.

RoomID bot is developed by Cisco to assist Developers with obtaining Room ID information.

  1. Add Bot to your room:

  1. The bot will send you the Room ID in a private message:

In SecureX orchestration, choose in the menu on the left Variables -> Global Variables -> New Variable.

Create new variable of string type with a unique display name (e.g. "SXO Notifications Space"), paste Room ID as a value and click Submit.

Step 5. Obtain Webex Teams API Token

In order to send the Webex Teams messages, you have two options:

  • Option 1 (For tests only): Use your own Webex Teams API token that will need to be updated manually every 12 hours.
  • Option 2 (Recommended for production): Use Webes Teams Bot to send messages.
    • Create Webex Teams Bot following these instructions: Create a Bot
    • Record its API Token
    • Add Bot to the Webex Teams Room so that it can send notifications.

Step 6. Import Atomic Workflows

SXO workflow is represented by the file in JSON format, that contains definitions and description of all the activities, targets, variables and atomic workflows that are in use. In SecureX orchestration left hand-side menu, go to Workflows -> Atomic Actions -> Import -> Browse and import the atomic workflows.

Note: Refer to documentation for more information about workflow import options: https://ciscosecurity.github.io/sxo-05-security-workflows/importing

Step 7. Import the main workflow

In SecureX orchestration left hand-side menu, go to Workflows -> My Workflows -> Import -> Browse and import the workflow called sxo-santa-tracker-workflow.

You will be presented with the following warning:

Don't get scared and click "Update" :)

  1. This is where you will provide your Webex Token:

Copy your personal Webex API Token or your Bots' API Token into the VALUE field. This is Secure String variable and it will be stored securely in the SXO.

  1. You should see the new workflow being added to the list. Click on the workflow when import is complete.

  2. If import was successful, you should see zero warnings at the top of the workflow canvas.

Step 8. Run the workflow

  1. To execute the workflow, click RUN at the right top corner in the action pane.

  1. Observe workflow execution.

As the workflow progresses, you should see activities turning green. Don't be alarmed if some activities turn red, it is expected behavior.

  1. Once execution is complete, examine the Webex Teams Room and Email Inbox for notifications and check if Threat Response Casebook has been created/updated in SecureX Ribbon.

You can return to previous runs information by clicking VIEW RUNS inside the workflow or going to Runs in the left hand-side menu.

Notes

Please test this properly before implementing in a production environment. This is a sample workflow!

Author(s)

Oxana Sannikova (Cisco)

View code on GitHub
  • Owner

  • Contributors

    +1Github contributor
  • Categories

  • Products

    Webex
  • Programming Languages

  • License

    Other

Code Exchange Community

Get help, share code, and collaborate with other developers in the Code Exchange community.View Community
Disclaimer:
Cisco provides Code Exchange for convenience and informational purposes only, with no support of any kind. This page contains information and links from third-party websites that are governed by their own separate terms. Reference to a project or contributor on this page does not imply any affiliation with or endorsement by Cisco.