Vectra Decorate Incident Based On Tag

Browse: 🏠 · Solutions · Connectors · Methods · Tables · Content · Parsers · ASIM Parsers · ASIM Products · Logic Apps · 📊

Back to Content Index


This playbook will add pre-defined or user customizable comment to an incident generated based on tags and add pre-defined or user customizable note to associated Vectra Entity.

Attribute Value
Type Playbook
Solution Vectra XDR
Source View on GitHub

Logic App Connectors

This playbook uses 5 Logic App connectors / built-in actions:

Connector / Action Type Connections Actions
azuresentinel Managed 1 1
keyvault Managed 1 0
keyvault_3 Managed 0 1
http Built-in 0 1
workflow Built-in 0 1
Action parameters (URLs, paths, function IDs)

azuresentinel (Managed)

Action Method Endpoint Other
Add_Comment_To_Incident_(V3) post /Incidents/Comment

keyvault_3 (Managed)

Action Method Endpoint Other
Get_Access_Token get /secrets/@{encodeURIComponent('Vectra-Access-Token')}/value

http (Built-in)

Action Method Endpoint Other
HTTP_Request_To_Add_Note_To_Vectra_Entity POST @{variables('base_url')}/api/@{variables('api_version')}/entities/@{int(variables('entity_id'))}/notes

workflow (Built-in)

Action Method Endpoint Other
GenerateAccessTokenVectra workflowId=[concat('/subscriptions/', subscription().subscriptionId, '/resourceGroups/',resourceGroup().name,'/providers/Microsoft.Logic/workflows/',trim(parameters('GenerateAccessCredPlaybookName')))]
triggerName=manual

Additional Documentation

📄 Source: VectraDecorateIncidentBasedOnTag/readme.md

Summary

This playbook will add pre-defined or user customizable comment to an incident generated based on tags and add pre-defined or user customizable note to associated Vectra Entity.

Prerequisites

  1. The Vectra XDR data connector should be configured to create alerts and generate an incident based on entity data in Microsoft Sentinel.
  2. Obtain keyvault name and tenantId where client credentials are stored using which access token will be generated.
  1. Make sure that VectraGenerateAccessToken playbook is deployed before deploying VectraDecorateIncidentBasedOnTag playbook.

Deployment instructions

  1. To deploy the Playbook, click the Deploy to Azure button. This will launch the ARM Template deployment wizard.
  2. Fill in the required parameters:

Deploy to Azure Deploy to Azure

Post-Deployment instructions

a. Authorize connections

Once deployment is complete, authorize each connection.

  1. Go to your logic app → API connections → Select keyvault connection resource.
  2. Go to General → Edit API connection.
  3. Click Authorize.
  4. Sign in.
  5. Click Save.
  6. Repeat steps for other connections.

b. Assign Role to add a comment in the incident

After authorizing each connection, assign a role to this playbook.

  1. Go to Log Analytics Workspace → your workspace → Access Control → Add
  2. Add role assignment
  3. Assignment type: Job function roles
  4. Role: Microsoft Sentinel Contributor
  5. Members: select managed identity for "assigned access to" and add your logic app as a member.
  6. Click on review+assign

c. Add Access policy in Keyvault

Add access policy for the playbook's managed identity and authorized user to read, and write secrets of key vault.

  1. Go to logic app → your Logic App → identity → System assigned Managed identity and copy Object (principal) ID.
  2. Go to keyvaults → your keyvault → Access policies → create.
  3. Select all keys & secrets permissions. Click next.
  4. In the principal section, search by copied object ID. Click next.
  5. Click review + create.
  6. Repeat the above step 2 to 5 to add access policy for the user account using which connection is authorized.

d. Configurations in Microsoft Sentinel

  1. In Microsoft sentinel, below analytical rules should be configured to trigger an incident.
  1. In Microsoft Sentinel, Configure the automation rules to trigger the playbook.

NOTE: If you want to manually run the playbook on a particular incident follow the below steps:


Browse: 🏠 · Solutions · Connectors · Methods · Tables · Content · Parsers · ASIM Parsers · ASIM Products · Logic Apps · 📊

Back to Playbooks · Back to Vectra XDR