Azure-Sentinel/Playbooks/Close-SentinelIncident-from...
dicolanl 525d001024 Updating Deploy buttons and links part 1 2021-06-16 00:25:40 +00:00
..
Graphics commit 2020-09-15 11:40:39 +03:00
azuredeploy.json commit 2020-09-15 11:40:39 +03:00
readme.md Updating Deploy buttons and links part 1 2021-06-16 00:25:40 +00:00

readme.md

Close-SentinelIncident-From-Snow

Author: Yaniv Shasha This Logic App act as listener for a incident close event in ServiceNow and will close the incident in Sentinel.

Closing the incident in Azure Sentinel when it is closed in ServiceNow requires two components:

  1. A Business Rule in ServiceNow that run custom JS code when the incident is closed.
  2. A Logic App in Azure Sentinel that waits to the Business Rule POST request.

Picture0

The playbook, available here and presented below, works as follows:

  1. Triger when an HTTP POST request hits the endpoint (1)
  2. Get relevant properties from the ServiceNow Incident.
  3. Close the incident on Azure Sentinel (4)
  4. Add comment with the name of the user who closed the incident in ServiceNow into an Azure sentinel incident comment (5)

After Deploying the logicApp you will see the above workflow.

Picture1 Deploying the solution:

This flow assume that customer use the above logic app found here to export the incident into ServiceNow.

The incident properties that exported from Azure sentinel into ServiceNow incident page looks:

Picture1

  1. Copy the HTTP endpoint URL from the Logic App trigger part.

Picture1

  1. In “run query and list results” (2) authenticate with user that has log analytics read permission or Azure Sentinel Reader role as a minimum requirement.
  2. In “get incident – bring fresh ETAG” (3) authenticate to AAD APP with a user that has an Azure Sentinel Reader role, or with a Managed identity with the same permission.
  3. On the close incident step (4) we will need to use a user that has an Azure Sentinel Responder role as the identity for
  4. On “add comment to incident” (5) use a user that has an Azure Sentinel Contributor account.

Deploy to Azure Deploy to Azure Gov