Software Defined Monitoring - Using Automated Notebooks and Azure Sentinel to Improve Sec Ops

Published Jul 27 2021 09:00 AM 8,974 Views
Microsoft

Incident triage is a core component of security monitoring operations and ensuring triage processes are efficient and effective is key to detecting security threats. Recent high profile security incidents have shown that detecting threats is insufficient unless effective triage and investigation of them is conducted. In this blog we detail how to deploy and use a solution that allows for the automatic execution of Jupyter Notebooks to provide enrichment to incidents within Azure Sentinel.  This process allows security analysts to triage incidents more quickly and effectively, as well as ensuring a consistent, quality approach is taken.

 

Background

The objective of this solution is to reduce the time and effort required for a Security Operations Center (SOC) analyst to triage an incident within Azure Sentinel and help ensure a consistent approach is taken to each incident. This is done by automatically executing Jupyter notebooks that perform a set of pre-defined actions on the incident like those conducted by an analyst when triaging an incident. It provides three main benefits:

  • It makes the triaging of incidents more efficient by running some logic against the incidents and adjusting incident severity based on the output of the enrichment run in the notebook.
  • It makes the results of the enrichment easily viewable by the SOC analyst by adding a link to the executed notebook to the incident log. This saves the analysts valuable time when triaging the incident.
  • By executing these steps from a template pattern, it provides a consistent triage approach for all incidents, helping to ensure quality and reduce the chance of a security incident being missed.

We refer to this approach of using notebook patterns to define and execute these processes as Software Defined Monitoring. To learn more about this approach please watch this recent webinar we presented on the subject

 

 

Contents

  1. Summary of the solution.
  2. Architecture overview.
  3. Deploying the solution.
    1. Collect required variables.
    2. Add variables to the notebook.
    3. Deploying Papermill infrastructure.
      1.       Deploying with ARM.
      2.       Manual deployment.
    4. Deploying KeyVault Access.
    5. Installing required packages.
    6. MSTICPy Config
    7. Optional - Using Azure Storage Queues to manage which incidents are triaged.
  4. Using the notebooks during incident triage.
  5. Troubleshooting.

 

Summary of the solution

This document covers the end-to-end process to deploying this solution within an Azure subscription including all the requisite components for the automated notebook elements. Along with this document are two separate Jupyter Notebooks and an ARM template for deploying the required VM. The first notebook is the ‘AutomatedNotebooks-Manager.ipynb’ and the other is ‘AutomatedNotebooks-IncidentTriage.ipynb’’. These notebooks, along with the ARM template and a Python requirements firl can be downloaded from GitHub:

 

In addition, these resources the following are pre-requisites:

  • An Azure subscription, with permissions to deploy resources within it.
  • An Azure Virtual Machine (VM) to run the automated notebooks.
  • An Azure Sentinel workspace.
  • An Azure Key Vault, with the ability to read and write secrets to it.
  • An Azure Machine Learning (ML) workspace.

Architecture overview

Architecture.png

 

The core of the solution is an Azure VM that runs several Jupyter notebooks. The Manager notebook programmatically gets details of incidents from Azure Sentinel, if these match a set of criteria it then runs another notebook that performs triage and enrichment based on the entities attached to that incident. That completed triage notebook is then written to an Azure ML workspace, with a link to the notebook added as a comment to the incident in Azure Sentinel. From there the SOC analyst can follow the link to view and interact with the completed triage notebook. In addition, depending on the findings in the notebook the severity of the Incident is updated in Azure Sentinel.

 

Deploying the solution

Collect required variables.

To deploy the solution, some configurable variables are first required:

  1. The Azure Tenant ID where the resources being used are. More details.

  2. The Subscription ID where your Azure Sentinel Workspace is deployed.

  1. This can be found in the Azure Portal > Azure Sentinel > Settings > Workspace settings > Overview

1.png  3. The Resource Group name where your Azure Sentinel Workspace is deployed.

  1. This can be found in the Azure Portal > Azure Sentinel > Settings > Workspace settings > Overview

2.png

  4. The Workspace Name of your Azure Sentinel Workspace.

  1. This can be found in the Azure Portal > Azure Sentinel > Settings > Workspace settings > Overview

3.png

  5. The Workspace ID of your Azure Sentinel Workspace.

  1. This can be found in the Azure Portal > Azure Sentinel > Settings > Workspace settings > Overview

4.png

  6. The Subscription ID where you Azure ML Workspace is deployed.

  1. This can be found in the Azure portal > under the Azure ML resource > Overview

5.png

  7. The Resource Group name where your Azure ML workspace is deployed.

  1. This can be found in the Azure portal > under the Azure ML resource > Overview

6.png

  8. The Azure ML Workspace name.

  1. This can be found in the Azure portal > under the Azure ML resource > Overview

Note: in this example the workspace name is “AzureMLWorkspace”

7.png  9. The name of the Key Vault being used (see pre-requisites).

  1. This can be found in the Azure Portal > Key Vault > Overview

8.png

  10. Another variable required is an Access Key for the Storage Account used by your Azure ML Workspace. Due to the sensitivity of this key we will store it in KeyVault in order to keep it secure. To find the storage account associated with your Azure ML workspace, find the Azure ML resource in the Azure Portal and browse to the Overview tab. Listed here will be a storage resource:

storage.png

Clicking on that resource will open it in the Azure Portal. From there select the Access Keys and you will be presented with two access keys. Select the Key value from one of these (it doesn’t matter which one you use), and then add that as a Secret in your KeyVault. When adding the Access Key make a note of the name you give the secret as it will be needed later in the set up. (Do not paste the storage key into notebook).

 

Adding variables to the notebook

Once the above elements have been collected the “AutomatedNotebooks-Manager.ipynb” notebook needs to be updated to include these values. They are all set in a single cell near the top of the notebook, simply open the notebook[i] and replace the placeholder values with those collected above. The cell includes comments that detail where each value should go.

10.png

You will see sections in this cell for details of an Azure Storage Queue, these are optional setting which are covered later in this document (see the Queue Management section).

 

Deploying Papermill infrastructure

The technology used to run the automated notebooks is Papermill. A dedicated Azure IaaS VM will be deployed to run the Papermill tasks. For this documentation we will document how to deploy an Ubuntu Linux host; however, the solution could also be deployed on a Windows host.

 

Deploying via ARM

To make deployment easier we have created an ARM template that deploys the VM and configures some of the required identity elements. If you want to deploy using this method the ARM template can be downloaded from GitHub, and you can find instructions on how to deploy it here.

During deployment you will be asked to provide a number of parameters, these include:

  • The Resource Group you want to deploy the resources in.
  • An SSH key to use to access the VM.
  • The Subscription ID and Resource Group name where your Azure Sentinel workspace is (if different from the Resource Group that the VM is being deployed in).
  • The Subscription ID and Resource Group name where your AzureML workspace is (if different from the Resource Group that the VM is being deployed in).

When deploying the ARM template you will be asked to provide these variables on the following page:

11.png

If you deploy the VM via ARM you can skip ahead to the ‘Deploying KeyVault Access’ section.

 

Deploying Manually

When deploying Azure VMs we recommend that you follow best practice and secure access to the VM using Just In Time Access and Azure Defender.

Detailed instructions on deploying a Linux VM in Azure can be found here. We recommend that a SKU with at least 2 vCPUs and 4 GiB memory is used.

Once the VM is deployed its needs assigning a Managed Identity. This identity will be used by the Papermill process to access Azure Sentinel, as well as secrets stored in Azure Key Vault. This can be configured by browsing to the Azure VM created previously in the Azure Portal and selecting the Identity tab. From here select System Assigned and set the Status to On. Once enabled, you need to grant some required permissions to the VM managed identity. To do this, select Azure role assignments

12.png

The first permission is to access Azure Sentinel. The automated notebooks need to access incident details, query logs to gather context, and update incidents based on the output of their analysis. As such Azure Sentinel Responder role permissions are required. More details about this role can be found here. Currently, this role cannot be set directly on the Azure Sentinel workspace, so the role must be scoped at the Subscription or Resource Group level. We recommend that the Resource Group is used as it’s the lowest level of access available. Ensure that you select the Resource Group that contains the Azure Sentinel workspace you want to use.

13.png

Finally, the papermill process needs to be able enumerate resources associated with the Azure ML Workspace being used. This is needed to locate the file store used by the Azure ML workspace so that executed notebooks can be written there. Therefore, the VM Managed Identity needs the Reader role assigned for the Resource Group that contains your Azure ML workspace.

14.png

Deploying KeyVault Access

Regardless of how you deployed the VM you will need to manually configure an additional managed identity to access the Key Vault that we are using so that it can retrieve the secrets stored there. To do this open the VM you deployed in the Azure Portal and select the `Identity` section. From there select `Azure Role Assignments` and `Add Role Assignment`. As Key Vault is a specific resource available for Managed Identity role provision, you can select the specific Key Vault you are using for this solution[i] once you have selected `Key Vault` as the scope. The `Key Vault Secrets User` role is required, more details on this role can be found here.

15.png

More details about Managed Identities can be found here.

Note: your KeyVault needs to be configured for Role Based Access Control – more details can be found here: https://docs.microsoft.com/en-us/azure/key-vault/general/rbac-guide?tabs=azure-cli

 

Installing required packages

With the VM deployed and the correct permissions assigned via a Managed Identity the next step is to install Papermill and the other required packages on our VM host. These require Python 3 to be installed first, if you deployed a Linux Ubuntu VM this will be installed by default and packages can be installed immediately. If another OS was deployed, you may need to first install Python 3.

 

Optional Step: To manage package installs you can choose to use a solution like Conda or Python virtualenv to create a dedicated Python environment for papermill to operate in. If you don’t plan on running anything except automated notebooks on a host this isn’t essential but might make future management easier. If you choose to do this, follow the steps bellow within your virtual environment, and when scheduling the regular task ensure you first activate your chosen virtual environment.

 

The installation of packages will be done using pip; this first needs to be installed if not present. On an Ubuntu VM this can be done by running the command:

 

 

sudo apt install python3-pip

 

 

Note: you may need to first run `sudo apt update`

To install the required packages download the autonb-requirements.txt file from GitHub and install the packages detailed in that file using Pip with the following command:

 

 

python3 -m pip install -r autonb-requirements.txt

 

 

Once installed, you need to ensure you add the papermill package to your $PATH and restart the terminal to ensure its available via the CLI.

Once the packages are installed you will also need to configure a kernel to execute the notebooks with. This is done with ipykernel which you should have just installed with the above commands. You can create a new kernel called ‘papermill’ (this is the default kernel used the notebooks) with the following command:

 

 

python3 -m ipykernel install --user --name papermill

 

 

Once papermill and the required packages are installed and they kernel created, copy the two notebooks(‘AutomatedNotebooks-Manager.ipynb’ and ‘AutomatedNotebooks-IncidentTriage.ipynb’’) to the host. These should be stored in the same folder.

 

MSTICPy Config

In order to use threat intelligence providers as part of the incident triage notebook a msticpyconfig.yaml file containing details of those threat intelligence providers is required on the VM deployed. This should be placed in the same folder as the ‘AutomatedNotebooks-Manager.ipynb’ notebook and only needs to contain keys for TI providers and the incident triage notebook will use all primary providers configured. If you are using KeyVault to store these secrets you will also need to ensure that you assign the VM `Key Vault Secrets User` access to the KeyVault these are stored in as well.

More details on the msticpyconf.yaml file and how to set it up can be found in the MSTICPy documentation.

Optional Step: At this point we can test the configuration by manually triggering the notebooks. To do this ensure you have some incidents present in your Azure Sentinel workspace and then tell Papermill to manually trigger the scheduling notebook. To do this browse to the folder containing your notebooks and run the following command: papermill ‘AutomatedNotebooks-Manager.ipynb’ - This command will run the scheduling notebook and subsequently the incident triage notebooks. You will see the output of the notebook and execution in stdout and can triage this to ensure you don’t have any errors.

 

Once the papermill configuration is complete and the notebooks set up, you can schedule the ‘AutomatedNotebooks-Manager.ipynb’ to be run on a regular basis. This notebook will check for new incidents and run the triage notebook against them. Scheduling is done by simply using the OS’s build-in scheduling service, in this case cron. The precise schedule to run this notebook can be tuned depending on your requirements, however, for the most immediate response to new incidents being created we suggest that this be set to run every 10 minutes.

 

The scheduled command needs to a) navigate to the folder containing the notebooks and b) execute the ‘AutomatedNotebooks-Manager.ipynb’ notebook. An example cron entry to run the notebook every 10 minutes would be:

 

 

*/10 * * * * cd <path to notebooks folder> & papermill “AutomatedNotebooks-Manager.ipynb” SchedulerOut$ 

 

 

Once the schedule is set up, you will start to see incidents with comments that provide a link to a notebook in Azure ML. Only notebooks that include a significant finding are attached to incidents, otherwise the notebook is simply discarded.

16.png

 

Optional – Using Azure Storage Queues to manage which incidents are triaged

By default, the automated notebook process will run against all incidents raised in your Azure Sentinel Workspace. However, if you wish to only run the process against a subset of incidents, you can use a method that leverages Azure Storage Queues. Rather than pull all incidents from Azure Sentinel, the “AutomatedNotebooks-Manager.ipynb” notebook can be configured to pull selected incident IDs from the queue and run the automated notebooks against only those incidents. This following are entirely optional steps that are needed only if you want to use the queue method.

 

Create Storage Queue

For ease of management, we suggest that you create a Storage Queue in the Storage Account used by your Azure ML Workspace (see details earlier in the document to find this). If you choose to use another storage account, ensure that the VM’s Managed Identity is granted access to the Storage Account.

To create a queue, navigate to the Storage Account in the Azure Portal and select Queues. From here you can add a new Queue.

17.png

 

Once the Queue is created you will need to add the Queue name and the Storage Account name to the “AutomatedNotebooks-Manager.ipynb” notebook in the same cell that other variables were added to. In addition, you will need to update the Managed Identity assigned to the Azure VM to add a role of Storage Queue Data Reader scoped to the storage account where the Queue is deployed. More details on this role can be found here.

 

Configure Notebook to use Storage Queue

The “AutomatedNotebooks-Manager.ipynb” notebook contains the code to enable the collection of Incidents from the Queue but it is commented out by default. To use the queue method, uncomment that code and comment out or delete the cell above it that gets all incidents via the Azure Sentinel API.

18.png

 

Configure Incidents to Trigger Notebooks

Once the queue is created you can filter the incidents from Azure Sentinel that you wish to be added to the queue and thus processed by the automated notebooks. This is done with Azure Sentinel Automation Playbooks. For details in creating Playbooks please refer to this documentation.

The required playbook needs only two steps:

  1. When Azure Sentinel incident creation rule was triggered (Preview)
  2. Put a message on a queue:
    1. The Queue Name value should be set to the name of the Queue you created previously.
    2. The Message should be set to the Incident ARM ID dynamic property.

19.png

Once the playbook is created, configure which analytics rules you want auto triaged and configure these  to trigger this playbook when an incident is created. Details on how to configure this can be found here.  This will then write the incident ID to the queue so that it will be picked up by the “AutomatedNotebooks-Manager.ipynb” notebook.

20.png

 

Once this step is complete and the playbook is attached to one or more analytics, then the solution is configured. The next time a specified incident is triggered the automated notebook solution will trigger.

 

Using the notebooks during incident triage

Once the automated notebooks are configured you will start to see triaged incidents appearing in your Azure Sentinel instance. You can identify triaged incidents by the presence of a comment in the incident with a link to a notebook:

21.png

To access the completed triage notebook simply click the link in the comment and you will be directed to Azure ML.

Note: the analysts needing to access the triage notebooks will need access to the Azure ML workspace configured in this process.

Azure ML will open with the triage notebook automatically, the analyst can then browse the contents of the notebook without needing to interact with the notebook itself, they can simply scroll down to see the output:

22.png

Notebooks from other incidents are also accessible via the navigation pane on the left hand side of the Azure ML interface. Each notebook is stored with the name of the incident GUID they relate to.

 

The AutomatedNotebooks-IncidentTriage.ipynb and AutomatedNotebooks-Manager.ipynb notebooks can also be modified to include additional triage steps or update actions as required. By default the process enriches entities attached to the incident and only updates the incident severity, however it is possible to perform triage on other elements of the incident and update additional elements automatically. See MSTICpy for details of functions and features that could easily be added to these notebooks.

 

Troubleshooting

During execution of the “AutomatedNotebooks-Manager.ipynb” notebook a log of activity is written to the file “notebook_execution.log” in the same folder as the AutomatedNotebooks-Manager.ipynb. This provides details of execution flow and which incidents were processed, as such it should be the first thing you check when troubleshooting.

23.png

If not using the Queue method for incident triggers the mostly likely cause of issues is with the notebooks themselves. The easiest way to troubleshoot these is to run them individually and inspect the output. To trigger the “AutomatedNotebooks-Manager.ipynb” notebook you can manually invoke using Papermill via the CLI with the following command:

 

 

papermill “AutomatedNotebooks-Manager.ipynb” -

 

 

You will see the notebook output in the terminal to allow you to debug it, alternatively replace the `-` in the command with a file name to write out to the file specified.

If this notebook executes as expected, then you can also check the incident triage notebook itself. To do this select an incident in your Azure Sentinel workspace that has some entities attached and get the incident ID. This can be found in the incident view of the Sentinel portal as part of the Incident link. (The ID required is the GUID at the end of the full link text).

24.png

From there you can trigger that notebook from the CLI with:

 

 

papermill “AutomatedNotebooks-IncidentTriage.ipynb” debug.ipynb -p incident_id "<INCIDENT ID>" -p ws_id "<YOUR WORKSPACE ID>" -p ten_id "<YOUR TENANT ID>"

 

 

This will run the triage notebook with the Incident ID provided and will write the resulting notebook a file called `debug.ipynb`. This file is a complete copy of the original notebook but with all of the execution results (including any errors). You can open the debug file in Azure ML or other Jupyter notebook environment to check for any execution issues. You can view the file as raw text but the native JSON format makes it difficult to read. You can also convert the notebook to an HTML document using the nbcovert tool.

 

If you are using the Queue method, you will also want to ensure items are being properly passed to the Queue. This is easily done by browsing to the Queue resource in the Azure Portal. If functioning correctly and the attached incidents have occurred, then the queue should contain full incident links that should appear in the same format as: /subscriptions/796fca0e-7703-476a-9d66-a65d3a7825dd /resourceGroups/Sentinel/providers/Microsoft.OperationalInsights/workspaces/sentinelworkspace/providers/Microsoft.SecurityInsights/Incidents/f9e57a1f-8d1a-4efa-a165-4a48c2b2c46e.

 

Should you encounter issues with this solution please raise an Issue on the Azure-Sentinel-Notebooks GitHub repo.

 

Summary

In this blog we have seen how it is possible to use open source software and Azure services to easily automate the process of executing Jupyter Notebooks linked to Azure Sentinel. This approach can vastly improve the efficiency and effectiveness of SOC operations, as well as forming the core of a software defined monitoring approach. Whilst in this blog we have shown how this process can be used for triaging incidents and supporting first line SOC operations the same pattern could be applied to virtually any security monitoring scenario that involves the repetition of a set of analytical steps, whether it be enrichment of datasets, custom analytics using Python specific features, or threat intelligence processing. 

 

 

[i] This should be the same KeyVault you set up as a pre-requisite to this solution.

[i] VSCode is recommended for this

%3CLINGO-SUB%20id%3D%22lingo-sub-2587775%22%20slang%3D%22en-US%22%3ESoftware%20Defined%20Monitoring%20-%20Using%20Automated%20Notebooks%20and%20Azure%20Sentinel%20to%20Improve%20Sec%20Ops%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2587775%22%20slang%3D%22en-US%22%3E%3CP%3EIncident%20triage%20is%20a%20core%20component%20of%20security%20monitoring%20operations%20and%20ensuring%20triage%20processes%20are%20efficient%20and%20effective%20is%20key%20to%20detecting%20security%20threats.%20Recent%20high%20profile%20security%20incidents%20have%20shown%20that%20detecting%20threats%20is%20insufficient%20unless%20effective%20triage%20and%20investigation%20of%20them%20is%20conducted.%20In%20this%20blog%20we%20detail%20how%20to%20deploy%20and%20use%20a%20solution%20that%20allows%20for%20the%20automatic%20execution%20of%20Jupyter%20Notebooks%20to%20provide%20enrichment%20to%20incidents%20within%20Azure%20Sentinel.%20%26nbsp%3BThis%20process%20allows%20security%20analysts%20to%20triage%20incidents%20more%20quickly%20and%20effectively%2C%20as%20well%20as%20ensuring%20a%20consistent%2C%20quality%20approach%20is%20taken.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--406095842%22%20id%3D%22toc-hId--406095842%22%3EBackground%3C%2FH2%3E%0A%3CP%3EThe%20objective%20of%20this%20solution%20is%20to%20reduce%20the%20time%20and%20effort%20required%20for%20a%20Security%20Operations%20Center%20(SOC)%20analyst%20to%20triage%20an%20incident%20within%20Azure%20Sentinel%20and%20help%20ensure%20a%20consistent%20approach%20is%20taken%20to%20each%20incident.%20This%20is%20done%20by%20automatically%20executing%20Jupyter%20notebooks%20that%20perform%20a%20set%20of%20pre-defined%20actions%20on%20the%20incident%20like%20those%20conducted%20by%20an%20analyst%20when%20triaging%20an%20incident.%20It%20provides%20three%20main%20benefits%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EIt%20makes%20the%20triaging%20of%20incidents%20more%20efficient%20by%20running%20some%20logic%20against%20the%20incidents%20and%20adjusting%20incident%20severity%20based%20on%20the%20output%20of%20the%20enrichment%20run%20in%20the%20notebook.%3C%2FLI%3E%0A%3CLI%3EIt%20makes%20the%20results%20of%20the%20enrichment%20easily%20viewable%20by%20the%20SOC%20analyst%20by%20adding%20a%20link%20to%20the%20executed%20notebook%20to%20the%20incident%20log.%20This%20saves%20the%20analysts%20valuable%20time%20when%20triaging%20the%20incident.%3C%2FLI%3E%0A%3CLI%3EBy%20executing%20these%20steps%20from%20a%20template%20pattern%2C%20it%20provides%20a%20consistent%20triage%20approach%20for%20all%20incidents%2C%20helping%20to%20ensure%20quality%20and%20reduce%20the%20chance%20of%20a%20security%20incident%20being%20missed.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EWe%20refer%20to%20this%20approach%20of%20using%20notebook%20patterns%20to%20define%20and%20execute%20these%20processes%20as%20Software%20Defined%20Monitoring.%20To%20learn%20more%20about%20this%20approach%20please%20watch%20this%20recent%20webinar%20we%20presented%20on%20the%20subject%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3C%2FP%3E%3CDIV%20class%3D%22video-embed-center%20video-embed%22%3E%3CIFRAME%20class%3D%22embedly-embed%22%20src%3D%22https%3A%2F%2Fcdn.embedly.com%2Fwidgets%2Fmedia.html%3Fsrc%3Dhttps%253A%252F%252Fwww.youtube.com%252Fembed%252FpezPO5S_aaQ%26amp%3Bdisplay_name%3DYouTube%26amp%3Burl%3Dhttps%253A%252F%252Fwww.youtube.com%252Fwatch%253Fv%253DpezPO5S_aaQ%26amp%3Bimage%3Dhttp%253A%252F%252Fi.ytimg.com%252Fvi%252FpezPO5S_aaQ%252Fhqdefault.jpg%26amp%3Bkey%3Db0d40caa4f094c68be7c29880b16f56e%26amp%3Btype%3Dtext%252Fhtml%26amp%3Bschema%3Dyoutube%22%20width%3D%22400%22%20height%3D%22225%22%20scrolling%3D%22no%22%20title%3D%22YouTube%20embed%22%20frameborder%3D%220%22%20allow%3D%22autoplay%3B%20fullscreen%22%20allowfullscreen%3D%22true%22%3E%3C%2FIFRAME%3E%3C%2FDIV%3E%3CP%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-2081416991%22%20id%3D%22toc-hId-2081416991%22%3EContents%3C%2FH2%3E%0A%3COL%3E%0A%3CLI%3ESummary%20of%20the%20solution.%3C%2FLI%3E%0A%3CLI%3EArchitecture%20overview.%3C%2FLI%3E%0A%3CLI%3EDeploying%20the%20solution.%3COL%3E%0A%3CLI%3ECollect%20required%20variables.%3C%2FLI%3E%0A%3CLI%3EAdd%20variables%20to%20the%20notebook.%3C%2FLI%3E%0A%3CLI%3EDeploying%20Papermill%20infrastructure.%3COL%3E%0A%3CLI%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Deploying%20with%20ARM.%3C%2FLI%3E%0A%3CLI%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Manual%20deployment.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3C%2FLI%3E%0A%3CLI%3EDeploying%20KeyVault%20Access.%3C%2FLI%3E%0A%3CLI%3EInstalling%20required%20packages.%3C%2FLI%3E%0A%3CLI%3EMSTICPy%20Config%3C%2FLI%3E%0A%3CLI%3EOptional%20-%20Using%20Azure%20Storage%20Queues%20to%20manage%20which%20incidents%20are%20triaged.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3C%2FLI%3E%0A%3CLI%3EUsing%20the%20notebooks%20during%20incident%20triage.%3C%2FLI%3E%0A%3CLI%3ETroubleshooting.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-273962528%22%20id%3D%22toc-hId-273962528%22%3ESummary%20of%20the%20solution%3C%2FH2%3E%0A%3CP%3EThis%20document%20covers%20the%20end-to-end%20process%20to%20deploying%20this%20solution%20within%20an%20Azure%20subscription%20including%20all%20the%20requisite%20components%20for%20the%20automated%20notebook%20elements.%20Along%20with%20this%20document%20are%20two%20separate%20Jupyter%20Notebooks%20and%20an%20ARM%20template%20for%20deploying%20the%20required%20VM.%20The%20first%20notebook%20is%20the%20%E2%80%98AutomatedNotebooks-Manager.ipynb%E2%80%99%20and%20the%20other%20is%20%E2%80%98AutomatedNotebooks-IncidentTriage.ipynb%E2%80%99%E2%80%99.%20These%20notebooks%2C%20along%20with%20the%20ARM%20template%20and%20a%20Python%20requirements%20firl%20can%20be%20downloaded%20from%20GitHub%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2FAzure-Sentinel-Notebooks%2Fblob%2Fmaster%2FAutomated-Notebooks%2FDeploymentTemplate.json%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EARM%20Template%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2FAzure-Sentinel-Notebooks%2Fblob%2Fmaster%2FAutomated-Notebooks%2Fautonb-requirements.txt%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ERequirements%20file%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2FAzure-Sentinel-Notebooks%2Fblob%2Fmaster%2FAutomatedNotebooks-Manager.ipynb%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAutomatedNotebooks-Manager.ipynb%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2FAzure-Sentinel-Notebooks%2Fblob%2Fmaster%2FAutomatedNotebooks-IncidentTriage.ipynb%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAutomatedNotebooks-IncidentTriage.ipynb%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20addition%2C%20these%20resources%20the%20following%20are%20pre-requisites%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EAn%20Azure%20subscription%2C%20with%20permissions%20to%20deploy%20resources%20within%20it.%3C%2FLI%3E%0A%3CLI%3EAn%20Azure%20Virtual%20Machine%20(VM)%20to%20run%20the%20automated%20notebooks.%3C%2FLI%3E%0A%3CLI%3EAn%20Azure%20Sentinel%20workspace.%3C%2FLI%3E%0A%3CLI%3EAn%20Azure%20Key%20Vault%2C%20with%20the%20ability%20to%20read%20and%20write%20secrets%20to%20it.%3C%2FLI%3E%0A%3CLI%3EAn%20Azure%20Machine%20Learning%20(ML)%20workspace.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH2%20id%3D%22toc-hId--1533491935%22%20id%3D%22toc-hId--1533491935%22%3EArchitecture%20overview%3C%2FH2%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Architecture.png%22%20style%3D%22width%3A%20624px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F298431i12B3E496D5323334%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Architecture.png%22%20alt%3D%22Architecture.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20core%20of%20the%20solution%20is%20an%20Azure%20VM%20that%20runs%20several%20Jupyter%20notebooks.%20The%20Manager%20notebook%20programmatically%20gets%20details%20of%20incidents%20from%20Azure%20Sentinel%2C%20if%20these%20match%20a%20set%20of%20criteria%20it%20then%20runs%20another%20notebook%20that%20performs%20triage%20and%20enrichment%20based%20on%20the%20entities%20attached%20to%20that%20incident.%20That%20completed%20triage%20notebook%20is%20then%20written%20to%20an%20Azure%20ML%20workspace%2C%20with%20a%20link%20to%20the%20notebook%20added%20as%20a%20comment%20to%20the%20incident%20in%20Azure%20Sentinel.%20From%20there%20the%20SOC%20analyst%20can%20follow%20the%20link%20to%20view%20and%20interact%20with%20the%20completed%20triage%20notebook.%20In%20addition%2C%20depending%20on%20the%20findings%20in%20the%20notebook%20the%20severity%20of%20the%20Incident%20is%20updated%20in%20Azure%20Sentinel.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-954020898%22%20id%3D%22toc-hId-954020898%22%3EDeploying%20the%20solution%3C%2FH2%3E%0A%3CH3%20id%3D%22toc-hId-1644582372%22%20id%3D%22toc-hId-1644582372%22%3ECollect%20required%20variables.%3C%2FH3%3E%0A%3CP%3ETo%20deploy%20the%20solution%2C%20some%20configurable%20variables%20are%20first%20required%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%201.%20The%20Azure%20%3CEM%3ETenant%20ID%3C%2FEM%3E%20where%20the%20resources%20being%20used%20are.%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Ffundamentals%2Factive-directory-how-to-find-tenant%23%3A~%3Atext%3D%2520Find%2520tenant%2520ID%2520through%2520the%2520Azure%2520portal%2CID%2520will%2520be%2520in%2520the%2520box.%2520More%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EMore%20details%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%202.%20The%20%3CEM%3ESubscription%20ID%3C%2FEM%3E%20where%20your%20Azure%20Sentinel%20Workspace%20is%20deployed.%3C%2FP%3E%0A%3COL%20class%3D%22lia-list-style-type-lower-alpha%22%3E%0A%3CLI%3EThis%20can%20be%20found%20in%20the%20Azure%20Portal%20%26gt%3B%20Azure%20Sentinel%20%26gt%3B%20Settings%20%26gt%3B%20Workspace%20settings%20%26gt%3B%20Overview%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%221.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F298432i52342280289C4A43%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%221.png%22%20alt%3D%221.png%22%20%2F%3E%3C%2FSPAN%3E%26nbsp%3B%203.%20The%20%3CEM%3EResource%20Group%3C%2FEM%3E%20name%20where%20your%20Azure%20Sentinel%20Workspace%20is%20deployed.%3C%2FP%3E%0A%3COL%20class%3D%22lia-list-style-type-lower-alpha%22%3E%0A%3CLI%3EThis%20can%20be%20found%20in%20the%20Azure%20Portal%20%26gt%3B%20Azure%20Sentinel%20%26gt%3B%20Settings%20%26gt%3B%20Workspace%20settings%20%26gt%3B%20Overview%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%222.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F298433i78E01B3DEC223398%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%222.png%22%20alt%3D%222.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%204.%20The%20%3CEM%3EWorkspace%20Name%3C%2FEM%3E%20of%20your%20Azure%20Sentinel%20Workspace.%3C%2FP%3E%0A%3COL%20class%3D%22lia-list-style-type-lower-alpha%22%3E%0A%3CLI%3EThis%20can%20be%20found%20in%20the%20Azure%20Portal%20%26gt%3B%20Azure%20Sentinel%20%26gt%3B%20Settings%20%26gt%3B%20Workspace%20settings%20%26gt%3B%20Overview%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%223.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F298434i56FA5F9D709F2698%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%223.png%22%20alt%3D%223.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%205.%20The%20%3CEM%3EWorkspace%20ID%3C%2FEM%3E%20of%20your%20Azure%20Sentinel%20Workspace.%3C%2FP%3E%0A%3COL%20class%3D%22lia-list-style-type-lower-alpha%22%3E%0A%3CLI%3EThis%20can%20be%20found%20in%20the%20Azure%20Portal%20%26gt%3B%20Azure%20Sentinel%20%26gt%3B%20Settings%20%26gt%3B%20Workspace%20settings%20%26gt%3B%20Overview%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%224.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F298435i5DDD942B9A30E1C1%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%224.png%22%20alt%3D%224.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%206.%20The%20%3CEM%3ESubscription%20ID%3C%2FEM%3E%20where%20you%20Azure%20ML%20Workspace%20is%20deployed.%3C%2FP%3E%0A%3COL%20class%3D%22lia-list-style-type-lower-alpha%22%3E%0A%3CLI%3EThis%20can%20be%20found%20in%20the%20Azure%20portal%20%26gt%3B%20under%20the%20Azure%20ML%20resource%20%26gt%3B%20Overview%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%225.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F298437i47BE3D6FC97F69F4%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%225.png%22%20alt%3D%225.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%207.%20The%20%3CEM%3EResource%20Group%3C%2FEM%3E%20name%20where%20your%20Azure%20ML%20workspace%20is%20deployed.%3C%2FP%3E%0A%3COL%20class%3D%22lia-list-style-type-lower-alpha%22%3E%0A%3CLI%3EThis%20can%20be%20found%20in%20the%20Azure%20portal%20%26gt%3B%20under%20the%20Azure%20ML%20resource%20%26gt%3B%20Overview%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%226.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F298439iB9E5F29DA3B2E3F1%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%226.png%22%20alt%3D%226.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%208.%20The%20%3CEM%3EAzure%20ML%20Workspace%3C%2FEM%3E%20name.%3C%2FP%3E%0A%3COL%20class%3D%22lia-list-style-type-lower-alpha%22%3E%0A%3CLI%3EThis%20can%20be%20found%20in%20the%20Azure%20portal%20%26gt%3B%20under%20the%20Azure%20ML%20resource%20%26gt%3B%20Overview%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3ENote%3A%20in%20this%20example%20the%20workspace%20name%20is%20%E2%80%9CAzureMLWorkspace%E2%80%9D%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%227.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F298440i0080E69B20AEF171%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%227.png%22%20alt%3D%227.png%22%20%2F%3E%3C%2FSPAN%3E%26nbsp%3B%209.%26nbsp%3B%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3EThe%20name%20of%20the%20%3C%2FSPAN%3E%3CEM%20style%3D%22font-family%3A%20inherit%3B%22%3EKey%20Vault%3C%2FEM%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%20being%20used%20(see%20pre-requisites).%3C%2FSPAN%3E%3C%2FP%3E%0A%3COL%20class%3D%22lia-list-style-type-lower-alpha%22%3E%0A%3CLI%3EThis%20can%20be%20found%20in%20the%20Azure%20Portal%20%26gt%3B%20Key%20Vault%20%26gt%3B%20Overview%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%228.png%22%20style%3D%22width%3A%20624px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F298441i86E6FD5CAEC4098F%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%228.png%22%20alt%3D%228.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%2010.%20Another%20variable%20required%20is%20an%20%3CEM%3EAccess%20Ke%3C%2FEM%3Ey%20for%20the%20Storage%20Account%20used%20by%20your%20Azure%20ML%20Workspace.%20Due%20to%20the%20sensitivity%20of%20this%20key%20we%20will%20store%20it%20in%20KeyVault%20in%20order%20to%20keep%20it%20secure.%20To%20find%20the%20storage%20account%20associated%20with%20your%20Azure%20ML%20workspace%2C%20find%20the%20Azure%20ML%20resource%20in%20the%20Azure%20Portal%20and%20browse%20to%20the%20Overview%20tab.%20Listed%20here%20will%20be%20a%20storage%20resource%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22storage.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F298442i2FD7D1D7ACFFA373%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22storage.png%22%20alt%3D%22storage.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EClicking%20on%20that%20resource%20will%20open%20it%20in%20the%20Azure%20Portal.%20From%20there%20select%20the%20Access%20Keys%20and%20you%20will%20be%20presented%20with%20two%20access%20keys.%20Select%20the%20Key%20value%20from%20one%20of%20these%20(it%20doesn%E2%80%99t%20matter%20which%20one%20you%20use)%2C%20and%20then%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fkey-vault%2Fsecrets%2Fquick-create-portal%23%3A~%3Atext%3DTo%2520add%2520a%2520secret%2520to%2520the%2520vault%2C%2520follow%2Cmust%2520be%2520unique%2520within%2520a%2520Key%2520Vault.%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Eadd%20that%20as%20a%20Secret%20in%20your%20KeyVault%3C%2FA%3E.%20When%20adding%20the%20Access%20Key%20make%20a%20note%20of%20the%20name%20you%20give%20the%20secret%20as%20it%20will%20be%20needed%20later%20in%20the%20set%20up.%20(Do%20not%20paste%20the%20storage%20key%20into%20notebook).%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--162872091%22%20id%3D%22toc-hId--162872091%22%3EAdding%20variables%20to%20the%20notebook%3C%2FH3%3E%0A%3CP%3EOnce%20the%20above%20elements%20have%20been%20collected%20the%20%E2%80%9CAutomatedNotebooks-Manager.ipynb%E2%80%9D%20notebook%20needs%20to%20be%20updated%20to%20include%20these%20values.%20They%20are%20all%20set%20in%20a%20single%20cell%20near%20the%20top%20of%20the%20notebook%2C%20simply%20open%20the%20notebook%3CA%20href%3D%22%23_edn1%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%20name%3D%22_ednref1%22%3E%3CSPAN%3E%5Bi%5D%3C%2FSPAN%3E%3C%2FA%3E%20and%20replace%20the%20placeholder%20values%20with%20those%20collected%20above.%20The%20cell%20includes%20comments%20that%20detail%20where%20each%20value%20should%20go.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%2210.png%22%20style%3D%22width%3A%20624px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F298443iEE540FE606B738A9%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%2210.png%22%20alt%3D%2210.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EYou%20will%20see%20sections%20in%20this%20cell%20for%20details%20of%20an%20Azure%20Storage%20Queue%2C%20these%20are%20optional%20setting%20which%20are%20covered%20later%20in%20this%20document%20(see%20the%20%3CA%20href%3D%22%23_Queue_Management%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EQueue%20Management%3C%2FA%3E%20section).%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--1970326554%22%20id%3D%22toc-hId--1970326554%22%3EDeploying%20Papermill%20infrastructure%3C%2FH3%3E%0A%3CP%3EThe%20technology%20used%20to%20run%20the%20automated%20notebooks%20is%20%3CA%20href%3D%22https%3A%2F%2Fpapermill.readthedocs.io%2Fen%2Flatest%2Findex.html%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EPapermill%3C%2FA%3E.%20A%20dedicated%20Azure%20IaaS%20VM%20will%20be%20deployed%20to%20run%20the%20Papermill%20tasks.%20For%20this%20documentation%20we%20will%20document%20how%20to%20deploy%20an%20Ubuntu%20Linux%20host%3B%20however%2C%20the%20solution%20could%20also%20be%20deployed%20on%20a%20Windows%20host.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH4%20id%3D%22toc-hId--1279765080%22%20id%3D%22toc-hId--1279765080%22%3EDeploying%20via%20ARM%3C%2FH4%3E%0A%3CP%3ETo%20make%20deployment%20easier%20we%20have%20created%20an%20ARM%20template%20that%20deploys%20the%20VM%20and%20configures%20some%20of%20the%20required%20identity%20elements.%20If%20you%20want%20to%20deploy%20using%20this%20method%20the%20ARM%20template%20can%20be%20downloaded%20from%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2FAzure-Sentinel-Notebooks%2Fblob%2Fmaster%2FAutomated-Notebooks%2FDeploymentTemplate.json%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EGitHub%3C%2FA%3E%2C%20and%20you%20can%20find%20instructions%20on%20how%20to%20deploy%20it%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-resource-manager%2Ftemplates%2Fdeployment-tutorial-local-template%3Ftabs%3Dazure-powershell%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehere%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3EDuring%20deployment%20you%20will%20be%20asked%20to%20provide%20a%20number%20of%20parameters%2C%20these%20include%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EThe%20Resource%20Group%20you%20want%20to%20deploy%20the%20resources%20in.%3C%2FLI%3E%0A%3CLI%3EAn%20SSH%20key%20to%20use%20to%20access%20the%20VM.%3C%2FLI%3E%0A%3CLI%3EThe%20Subscription%20ID%20and%20Resource%20Group%20name%20where%20your%20Azure%20Sentinel%20workspace%20is%20(if%20different%20from%20the%20Resource%20Group%20that%20the%20VM%20is%20being%20deployed%20in).%3C%2FLI%3E%0A%3CLI%3EThe%20Subscription%20ID%20and%20Resource%20Group%20name%20where%20your%20AzureML%20workspace%20is%20(if%20different%20from%20the%20Resource%20Group%20that%20the%20VM%20is%20being%20deployed%20in).%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EWhen%20deploying%20the%20ARM%20template%20you%20will%20be%20asked%20to%20provide%20these%20variables%20on%20the%20following%20page%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%2211.png%22%20style%3D%22width%3A%20624px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F298445i59DB48B9BF294B25%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%2211.png%22%20alt%3D%2211.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EIf%20you%20deploy%20the%20VM%20via%20ARM%20you%20can%20skip%20ahead%20to%20the%20%E2%80%98Deploying%20KeyVault%20Access%E2%80%99%20section.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH4%20id%3D%22toc-hId-1207747753%22%20id%3D%22toc-hId-1207747753%22%3EDeploying%20Manually%3C%2FH4%3E%0A%3CP%3EWhen%20deploying%20Azure%20VMs%20we%20recommend%20that%20you%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Farchitecture%2Freference-architectures%2Fn-tier%2Flinux-vm%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Efollow%20best%20practice%3C%2FA%3E%20and%20secure%20access%20to%20the%20VM%20using%20Just%20In%20Time%20Access%20and%20Azure%20Defender.%3C%2FP%3E%0A%3CP%3EDetailed%20instructions%20on%20deploying%20a%20Linux%20VM%20in%20Azure%20can%20be%20found%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machines%2Flinux%2Fquick-create-portal%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehere%3C%2FA%3E.%20We%20recommend%20that%20a%20SKU%20with%20at%20least%202%20vCPUs%20and%204%20GiB%20memory%20is%20used.%3C%2FP%3E%0A%3CP%3EOnce%20the%20VM%20is%20deployed%20its%20needs%20assigning%20a%20%3CEM%3EManaged%20Identity%3C%2FEM%3E.%20This%20identity%20will%20be%20used%20by%20the%20Papermill%20process%20to%20access%20Azure%20Sentinel%2C%20as%20well%20as%20secrets%20stored%20in%20Azure%20Key%20Vault.%20This%20can%20be%20configured%20by%20browsing%20to%20the%20Azure%20VM%20created%20previously%20in%20the%20Azure%20Portal%20and%20selecting%20the%20%3CSTRONG%3EIdentity%20%3C%2FSTRONG%3Etab.%20From%20here%20select%20%3CSTRONG%3ESystem%20Assigned%3C%2FSTRONG%3E%20and%20set%20the%20%3CSTRONG%3EStatus%3C%2FSTRONG%3E%20to%20%3CSTRONG%3EOn%3C%2FSTRONG%3E.%20Once%20enabled%2C%20you%20need%20to%20grant%20some%20required%20permissions%20to%20the%20VM%20managed%20identity.%20To%20do%20this%2C%20select%20%3CSTRONG%3EAzure%20role%20assignments%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%2212.png%22%20style%3D%22width%3A%20624px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F298446iC9BCFB349D46AB73%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%2212.png%22%20alt%3D%2212.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EThe%20first%20permission%20is%20to%20access%20Azure%20Sentinel.%20The%20automated%20notebooks%20need%20to%20access%20incident%20details%2C%20query%20logs%20to%20gather%20context%2C%20and%20update%20incidents%20based%20on%20the%20output%20of%20their%20analysis.%20As%20such%20%3CEM%3EAzure%20Sentinel%20Responder%3C%2FEM%3E%20role%20permissions%20are%20required.%20More%20details%20about%20this%20role%20can%20be%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fsentinel%2Froles%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Efound%20here%3C%2FA%3E.%20Currently%2C%20this%20role%20cannot%20be%20set%20directly%20on%20the%20Azure%20Sentinel%20workspace%2C%20so%20the%20role%20must%20be%20scoped%20at%20the%20Subscription%20or%20Resource%20Group%20level.%20We%20recommend%20that%20the%20Resource%20Group%20is%20used%20as%20it%E2%80%99s%20the%20lowest%20level%20of%20access%20available.%20Ensure%20that%20you%20select%20the%20Resource%20Group%20that%20contains%20the%20Azure%20Sentinel%20workspace%20you%20want%20to%20use.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%2213.png%22%20style%3D%22width%3A%20624px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F298447i994984A696BD74D0%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%2213.png%22%20alt%3D%2213.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EFinally%2C%20the%20papermill%20process%20needs%20to%20be%20able%20enumerate%20resources%20associated%20with%20the%20Azure%20ML%20Workspace%20being%20used.%20This%20is%20needed%20to%20locate%20the%20file%20store%20used%20by%20the%20Azure%20ML%20workspace%20so%20that%20executed%20notebooks%20can%20be%20written%20there.%20Therefore%2C%20the%20VM%20Managed%20Identity%20needs%20the%20Reader%20role%20assigned%20for%20the%20Resource%20Group%20that%20contains%20your%20Azure%20ML%20workspace.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%2214.png%22%20style%3D%22width%3A%20624px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F298448iE78D4212578C36C2%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%2214.png%22%20alt%3D%2214.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH4%20id%3D%22toc-hId-631163889%22%20id%3D%22toc-hId-631163889%22%3EDeploying%20KeyVault%20Access%3C%2FH4%3E%0A%3CP%3ERegardless%20of%20how%20you%20deployed%20the%20VM%20you%20will%20need%20to%20manually%20configure%20an%20additional%20managed%20identity%20to%20access%20the%20Key%20Vault%20that%20we%20are%20using%20so%20that%20it%20can%20retrieve%20the%20secrets%20stored%20there.%20To%20do%20this%20open%20the%20VM%20you%20deployed%20in%20the%20Azure%20Portal%20and%20select%20the%20%60Identity%60%20section.%20From%20there%20select%20%60Azure%20Role%20Assignments%60%20and%20%60Add%20Role%20Assignment%60.%20As%20Key%20Vault%20is%20a%20specific%20resource%20available%20for%20Managed%20Identity%20role%20provision%2C%20you%20can%20select%20the%20specific%20Key%20Vault%20you%20are%20using%20for%20this%20solution%3CA%20href%3D%22%23_edn1%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%20name%3D%22_ednref1%22%3E%3CSPAN%3E%5Bi%5D%3C%2FSPAN%3E%3C%2FA%3E%20once%20you%20have%20selected%20%60Key%20Vault%60%20as%20the%20scope.%20The%20%60Key%20Vault%20Secrets%20User%60%20role%20is%20required%2C%20more%20details%20on%20this%20role%20can%20be%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Frole-based-access-control%2Fbuilt-in-roles%23key-vault-reader%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Efound%20here.%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%2215.png%22%20style%3D%22width%3A%20624px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F298449i09A932979C95B7CF%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%2215.png%22%20alt%3D%2215.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EMore%20details%20about%20Managed%20Identities%20can%20be%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fmanaged-identities-azure-resources%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Efound%20here%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3ENote%3A%20your%20KeyVault%20needs%20to%20be%20configured%20for%20Role%20Based%20Access%20Control%20%E2%80%93%20more%20details%20can%20be%20found%20here%3A%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fkey-vault%2Fgeneral%2Frbac-guide%3Ftabs%3Dazure-cli%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fkey-vault%2Fgeneral%2Frbac-guide%3Ftabs%3Dazure-cli%3C%2FA%3E%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--1305373293%22%20id%3D%22toc-hId--1305373293%22%3E%26nbsp%3B%3C%2FH3%3E%0A%3CH3%20id%3D%22toc-hId-1182139540%22%20id%3D%22toc-hId-1182139540%22%3EInstalling%20required%20packages%3C%2FH3%3E%0A%3CP%3EWith%20the%20VM%20deployed%20and%20the%20correct%20permissions%20assigned%20via%20a%20Managed%20Identity%20the%20next%20step%20is%20to%20install%20Papermill%20and%20the%20other%20required%20packages%20on%20our%20VM%20host.%20These%20require%20Python%203%20to%20be%20installed%20first%2C%20if%20you%20deployed%20a%20Linux%20Ubuntu%20VM%20this%20will%20be%20installed%20by%20default%20and%20packages%20can%20be%20installed%20immediately.%20If%20another%20OS%20was%20deployed%2C%20you%20may%20need%20to%20first%20install%20Python%203.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22border%3A%20solid%201px%3B%20padding%3A%2010px%3B%20background-color%3A%20%23fafaff%3B%22%3E%3CSTRONG%3EOptional%20Step%3A%20%3C%2FSTRONG%3E%20To%20manage%20package%20installs%20you%20can%20choose%20to%20use%20a%20solution%20like%20Conda%20or%20Python%20virtualenv%20to%20create%20a%20dedicated%20Python%20environment%20for%20papermill%20to%20operate%20in.%20If%20you%20don%E2%80%99t%20plan%20on%20running%20anything%20except%20automated%20notebooks%20on%20a%20host%20this%20isn%E2%80%99t%20essential%20but%20might%20make%20future%20management%20easier.%20If%20you%20choose%20to%20do%20this%2C%20follow%20the%20steps%20bellow%20within%20your%20virtual%20environment%2C%20and%20when%20scheduling%20the%20regular%20task%20ensure%20you%20first%20activate%20your%20chosen%20virtual%20environment.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20installation%20of%20packages%20will%20be%20done%20using%20%3CSTRONG%3Epip%3B%3C%2FSTRONG%3E%20this%20first%20needs%20to%20be%20installed%20if%20not%20present.%20On%20an%20Ubuntu%20VM%20this%20can%20be%20done%20by%20running%20the%20command%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Esudo%20apt%20install%20python3-pip%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENote%3A%20you%20may%20need%20to%20first%20run%20%60sudo%20apt%20update%60%3C%2FP%3E%0A%3CP%3ETo%20install%20the%20required%20packages%20download%20the%20autonb-requirements.txt%20file%20from%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2FAzure-Sentinel-Notebooks%2Fblob%2Fmaster%2FAutomated-Notebooks%2Fautonb-requirements.txt%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EGitHub%3C%2FA%3E%20and%20install%20the%20packages%20detailed%20in%20that%20file%20using%20%3CA%20href%3D%22https%3A%2F%2Fpypi.org%2Fproject%2Fpip%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EPip%3C%2FA%3E%20with%20the%20following%20command%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Epython3%20-m%20pip%20install%20-r%20autonb-requirements.txt%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOnce%20installed%2C%20you%20need%20to%20ensure%20you%20add%20the%20papermill%20package%20to%20your%20%24PATH%20and%20restart%20the%20terminal%20to%20ensure%20its%20available%20via%20the%20CLI.%3C%2FP%3E%0A%3CP%3EOnce%20the%20packages%20are%20installed%20you%20will%20also%20need%20to%20configure%20a%20kernel%20to%20execute%20the%20notebooks%20with.%20This%20is%20done%20with%20ipykernel%20which%20you%20should%20have%20just%20installed%20with%20the%20above%20commands.%20You%20can%20create%20a%20new%20kernel%20called%20%E2%80%98papermill%E2%80%99%20(this%20is%20the%20default%20kernel%20used%20the%20notebooks)%20with%20the%20following%20command%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Epython3%20-m%20ipykernel%20install%20--user%20--name%20papermill%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOnce%20papermill%20and%20the%20required%20packages%20are%20installed%20and%20they%20kernel%20created%2C%20copy%20the%20two%20notebooks(%E2%80%98AutomatedNotebooks-Manager.ipynb%E2%80%99%20and%20%E2%80%98AutomatedNotebooks-IncidentTriage.ipynb%E2%80%99%E2%80%99)%20to%20the%20host.%20These%20should%20be%20stored%20in%20the%20same%20folder.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--625314923%22%20id%3D%22toc-hId--625314923%22%3EMSTICPy%20Config%3C%2FH3%3E%0A%3CP%3EIn%20order%20to%20use%20threat%20intelligence%20providers%20as%20part%20of%20the%20incident%20triage%20notebook%20a%20msticpyconfig.yaml%20file%20containing%20details%20of%20those%20threat%20intelligence%20providers%20is%20required%20on%20the%20VM%20deployed.%20This%20should%20be%20placed%20in%20the%20same%20folder%20as%20the%20%E2%80%98AutomatedNotebooks-Manager.ipynb%E2%80%99%20notebook%20and%20only%20needs%20to%20contain%20keys%20for%20TI%20providers%20and%20the%20incident%20triage%20notebook%20will%20use%20all%20primary%20providers%20configured.%20If%20you%20are%20using%20KeyVault%20to%20store%20these%20secrets%20you%20will%20also%20need%20to%20ensure%20that%20you%20assign%20the%20VM%20%60Key%20Vault%20Secrets%20User%60%20access%20to%20the%20KeyVault%20these%20are%20stored%20in%20as%20well.%3C%2FP%3E%0A%3CP%3EMore%20details%20on%20the%20msticpyconf.yaml%20file%20and%20how%20to%20set%20it%20up%20can%20be%20found%20in%20the%20%3CA%20href%3D%22https%3A%2F%2Fmsticpy.readthedocs.io%2Fen%2Flatest%2Fgetting_started%2Fmsticpyconfig.html%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EMSTICPy%20documentation.%3C%2FA%3E%3C%2FP%3E%0A%3CP%20style%3D%22border%3A%20solid%201px%3B%20padding%3A%2010px%3B%20background-color%3A%20%23fafaff%3B%22%3E%3CSTRONG%3EOptional%20Step%3A%20%3C%2FSTRONG%3EAt%20this%20point%20we%20can%20test%20the%20configuration%20by%20manually%20triggering%20the%20notebooks.%20To%20do%20this%20ensure%20you%20have%20some%20incidents%20present%20in%20your%20Azure%20Sentinel%20workspace%20and%20then%20tell%20Papermill%20to%20manually%20trigger%20the%20scheduling%20notebook.%20To%20do%20this%20browse%20to%20the%20folder%20containing%20your%20notebooks%20and%20run%20the%20following%20command%3A%20papermill%20%E2%80%98AutomatedNotebooks-Manager.ipynb%E2%80%99%20-%20This%20command%20will%20run%20the%20scheduling%20notebook%20and%20subsequently%20the%20incident%20triage%20notebooks.%20You%20will%20see%20the%20output%20of%20the%20notebook%20and%20execution%20in%20stdout%20and%20can%20triage%20this%20to%20ensure%20you%20don%E2%80%99t%20have%20any%20errors.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOnce%20the%20papermill%20configuration%20is%20complete%20and%20the%20notebooks%20set%20up%2C%20you%20can%20schedule%20the%20%E2%80%98AutomatedNotebooks-Manager.ipynb%E2%80%99%20to%20be%20run%20on%20a%20regular%20basis.%20This%20notebook%20will%20check%20for%20new%20incidents%20and%20run%20the%20triage%20notebook%20against%20them.%20Scheduling%20is%20done%20by%20simply%20using%20the%20OS%E2%80%99s%20build-in%20scheduling%20service%2C%20in%20this%20case%20%3CEM%3Ecron%3C%2FEM%3E.%20The%20precise%20schedule%20to%20run%20this%20notebook%20can%20be%20tuned%20depending%20on%20your%20requirements%2C%20however%2C%20for%20the%20most%20immediate%20response%20to%20new%20incidents%20being%20created%20we%20suggest%20that%20this%20be%20set%20to%20run%20every%2010%20minutes.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20scheduled%20command%20needs%20to%20a)%20navigate%20to%20the%20folder%20containing%20the%20notebooks%20and%20b)%20execute%20the%20%E2%80%98AutomatedNotebooks-Manager.ipynb%E2%80%99%20notebook.%20An%20example%20cron%20entry%20to%20run%20the%20notebook%20every%2010%20minutes%20would%20be%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3E*%2F10%20*%20*%20*%20*%20cd%20%3CPATH%20to%3D%22%22%20notebooks%3D%22%22%20folder%3D%22%22%3E%20%26amp%3B%20papermill%20%E2%80%9CAutomatedNotebooks-Manager.ipynb%E2%80%9D%20SchedulerOut%24%20%3C%2FPATH%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOnce%20the%20schedule%20is%20set%20up%2C%20you%20will%20start%20to%20see%20incidents%20with%20comments%20that%20provide%20a%20link%20to%20a%20notebook%20in%20Azure%20ML.%20Only%20notebooks%20that%20include%20a%20significant%20finding%20are%20attached%20to%20incidents%2C%20otherwise%20the%20notebook%20is%20simply%20discarded.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%2216.png%22%20style%3D%22width%3A%20624px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F298451i7C761521C175F92C%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%2216.png%22%20alt%3D%2216.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-1862197910%22%20id%3D%22toc-hId-1862197910%22%3E%26nbsp%3B%3C%2FH3%3E%0A%3CH2%20id%3D%22toc-hId--74339272%22%20id%3D%22toc-hId--74339272%22%3EOptional%20%E2%80%93%20Using%20Azure%20Storage%20Queues%20to%20manage%20which%20incidents%20are%20triaged%3C%2FH2%3E%0A%3CP%3EBy%20default%2C%20the%20automated%20notebook%20process%20will%20run%20against%20all%20incidents%20raised%20in%20your%20Azure%20Sentinel%20Workspace.%20However%2C%20if%20you%20wish%20to%20only%20run%20the%20process%20against%20a%20subset%20of%20incidents%2C%20you%20can%20use%20a%20method%20that%20leverages%20%3CSTRONG%3EAzure%20Storage%20Queues%3C%2FSTRONG%3E.%20Rather%20than%20pull%20all%20incidents%20from%20Azure%20Sentinel%2C%20the%20%E2%80%9CAutomatedNotebooks-Manager.ipynb%E2%80%9D%20notebook%20can%20be%20configured%20to%20pull%20selected%20incident%20IDs%20from%20the%20queue%20and%20run%20the%20automated%20notebooks%20against%20only%20those%20incidents.%20This%20following%20are%20entirely%20optional%20steps%20that%20are%20needed%20only%20if%20you%20want%20to%20use%20the%20queue%20method.%3C%2FP%3E%0A%3CH4%20id%3D%22toc-hId--1623628297%22%20id%3D%22toc-hId--1623628297%22%3E%26nbsp%3B%3C%2FH4%3E%0A%3CH4%20id%3D%22toc-hId-863884536%22%20id%3D%22toc-hId-863884536%22%3ECreate%20Storage%20Queue%3C%2FH4%3E%0A%3CP%3EFor%20ease%20of%20management%2C%20we%20suggest%20that%20you%20create%20a%20Storage%20Queue%20in%20the%20Storage%20Account%20used%20by%20your%20Azure%20ML%20Workspace%20(see%20details%20earlier%20in%20the%20document%20to%20find%20this).%20If%20you%20choose%20to%20use%20another%20storage%20account%2C%20ensure%20that%20the%20VM%E2%80%99s%20Managed%20Identity%20is%20granted%20access%20to%20the%20Storage%20Account.%3C%2FP%3E%0A%3CP%3ETo%20create%20a%20queue%2C%20navigate%20to%20the%20Storage%20Account%20in%20the%20Azure%20Portal%20and%20select%20Queues.%20From%20here%20you%20can%20add%20a%20new%20Queue.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%2217.png%22%20style%3D%22width%3A%20505px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F298452iA91C7D807C732266%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%2217.png%22%20alt%3D%2217.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOnce%20the%20Queue%20is%20created%20you%20will%20need%20to%20add%20the%20Queue%20name%20and%20the%20Storage%20Account%20name%20to%20the%20%E2%80%9CAutomatedNotebooks-Manager.ipynb%E2%80%9D%20notebook%20in%20the%20same%20cell%20that%20other%20variables%20were%20added%20to.%20In%20addition%2C%20you%20will%20need%20to%20update%20the%20Managed%20Identity%20assigned%20to%20the%20Azure%20VM%20to%20add%20a%20role%20of%20%3CEM%3EStorage%20Queue%20Data%20Reader%3C%2FEM%3E%20scoped%20to%20the%20storage%20account%20where%20the%20Queue%20is%20deployed.%20More%20details%20on%20this%20role%20can%20be%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Frole-based-access-control%2Fbuilt-in-roles%23storage-queue-data-reader%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%20found%20here%3C%2FA%3E.%3C%2FP%3E%0A%3CH4%20id%3D%22toc-hId--943569927%22%20id%3D%22toc-hId--943569927%22%3E%26nbsp%3B%3C%2FH4%3E%0A%3CH4%20id%3D%22toc-hId-1543942906%22%20id%3D%22toc-hId-1543942906%22%3EConfigure%20Notebook%20to%20use%20Storage%20Queue%3C%2FH4%3E%0A%3CP%3EThe%20%E2%80%9CAutomatedNotebooks-Manager.ipynb%E2%80%9D%20notebook%20contains%20the%20code%20to%20enable%20the%20collection%20of%20Incidents%20from%20the%20Queue%20but%20it%20is%20commented%20out%20by%20default.%20To%20use%20the%20queue%20method%2C%20uncomment%20that%20code%20and%20comment%20out%20or%20delete%20the%20cell%20above%20it%20that%20gets%20all%20incidents%20via%20the%20Azure%20Sentinel%20API.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%2218.png%22%20style%3D%22width%3A%20624px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F298453iE6BE663313F479F6%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%2218.png%22%20alt%3D%2218.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH4%20id%3D%22toc-hId-434650384%22%20id%3D%22toc-hId-434650384%22%3E%26nbsp%3B%3C%2FH4%3E%0A%3CH4%20id%3D%22toc-hId--1372804079%22%20id%3D%22toc-hId--1372804079%22%3EConfigure%20Incidents%20to%20Trigger%20Notebooks%3C%2FH4%3E%0A%3CP%3EOnce%20the%20queue%20is%20created%20you%20can%20filter%20the%20incidents%20from%20Azure%20Sentinel%20that%20you%20wish%20to%20be%20added%20to%20the%20queue%20and%20thus%20processed%20by%20the%20automated%20notebooks.%20This%20is%20done%20with%20Azure%20Sentinel%20Automation%20Playbooks.%20For%20details%20in%20creating%20Playbooks%20please%20refer%20to%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fsentinel%2Fautomate-responses-with-playbooks%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ethis%20documentation%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3EThe%20required%20playbook%20needs%20only%20two%20steps%3A%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EWhen%20Azure%20Sentinel%20incident%20creation%20rule%20was%20triggered%20(Preview)%3C%2FLI%3E%0A%3CLI%3EPut%20a%20message%20on%20a%20queue%3A%3COL%3E%0A%3CLI%3EThe%20%3CSTRONG%3EQueue%20Name%3C%2FSTRONG%3E%20value%20should%20be%20set%20to%20the%20name%20of%20the%20Queue%20you%20created%20previously.%3C%2FLI%3E%0A%3CLI%3EThe%20%3CSTRONG%3EMessage%20%3C%2FSTRONG%3Eshould%20be%20set%20to%20the%20%3CSTRONG%3EIncident%20ARM%20ID%3C%2FSTRONG%3E%20dynamic%20property.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%2219.png%22%20style%3D%22width%3A%20624px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F298454iFF0CAF93AEBEBE87%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%2219.png%22%20alt%3D%2219.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EOnce%20the%20playbook%20is%20created%2C%20configure%20which%20analytics%20rules%20you%20want%20auto%20triaged%20and%20configure%20these%20%26nbsp%3Bto%20trigger%20this%20playbook%20when%20an%20incident%20is%20created.%20Details%20on%20how%20to%20configure%20this%20can%20be%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fsentinel%2Ftutorial-respond-threats-playbook%23respond-to-incidents%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Efound%20here%3C%2FA%3E.%20%26nbsp%3BThis%20will%20then%20write%20the%20incident%20ID%20to%20the%20queue%20so%20that%20it%20will%20be%20picked%20up%20by%20the%20%E2%80%9CAutomatedNotebooks-Manager.ipynb%E2%80%9D%20notebook.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%2220.png%22%20style%3D%22width%3A%20478px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F298455i5BE10646295D7329%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%2220.png%22%20alt%3D%2220.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOnce%20this%20step%20is%20complete%20and%20the%20playbook%20is%20attached%20to%20one%20or%20more%20analytics%2C%20then%20the%20solution%20is%20configured.%20The%20next%20time%20a%20specified%20incident%20is%20triggered%20the%20automated%20notebook%20solution%20will%20trigger.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-856543316%22%20id%3D%22toc-hId-856543316%22%3EUsing%20the%20notebooks%20during%20incident%20triage%3C%2FH2%3E%0A%3CP%3EOnce%20the%20automated%20notebooks%20are%20configured%20you%20will%20start%20to%20see%20triaged%20incidents%20appearing%20in%20your%20Azure%20Sentinel%20instance.%20You%20can%20identify%20triaged%20incidents%20by%20the%20presence%20of%20a%20comment%20in%20the%20incident%20with%20a%20link%20to%20a%20notebook%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%2221.png%22%20style%3D%22width%3A%20271px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F298456iA200D68F49B9859C%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%2221.png%22%20alt%3D%2221.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ETo%20access%20the%20completed%20triage%20notebook%20simply%20click%20the%20link%20in%20the%20comment%20and%20you%20will%20be%20directed%20to%20Azure%20ML.%3C%2FP%3E%0A%3CP%3ENote%3A%20the%20analysts%20needing%20to%20access%20the%20triage%20notebooks%20will%20need%20access%20to%20the%20Azure%20ML%20workspace%20configured%20in%20this%20process.%3C%2FP%3E%0A%3CP%3EAzure%20ML%20will%20open%20with%20the%20triage%20notebook%20automatically%2C%20the%20analyst%20can%20then%20browse%20the%20contents%20of%20the%20notebook%20without%20needing%20to%20interact%20with%20the%20notebook%20itself%2C%20they%20can%20simply%20scroll%20down%20to%20see%20the%20output%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%2222.png%22%20style%3D%22width%3A%20624px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F298457iE16F3149D05E7CB0%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%2222.png%22%20alt%3D%2222.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ENotebooks%20from%20other%20incidents%20are%20also%20accessible%20via%20the%20navigation%20pane%20on%20the%20left%20hand%20side%20of%20the%20Azure%20ML%20interface.%20Each%20notebook%20is%20stored%20with%20the%20name%20of%20the%20incident%20GUID%20they%20relate%20to.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20AutomatedNotebooks-IncidentTriage.ipynb%20and%20AutomatedNotebooks-Manager.ipynb%20notebooks%20can%20also%20be%20modified%20to%20include%20additional%20triage%20steps%20or%20update%20actions%20as%20required.%20By%20default%20the%20process%20enriches%20entities%20attached%20to%20the%20incident%20and%20only%20updates%20the%20incident%20severity%2C%20however%20it%20is%20possible%20to%20perform%20triage%20on%20other%20elements%20of%20the%20incident%20and%20update%20additional%20elements%20automatically.%20See%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fmsticpy%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EMSTICpy%3C%2FA%3E%20for%20details%20of%20functions%20and%20features%20that%20could%20easily%20be%20added%20to%20these%20notebooks.%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--950911147%22%20id%3D%22toc-hId--950911147%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId-1536601686%22%20id%3D%22toc-hId-1536601686%22%3ETroubleshooting%3C%2FH2%3E%0A%3CP%3EDuring%20execution%20of%20the%20%E2%80%9CAutomatedNotebooks-Manager.ipynb%E2%80%9D%20notebook%20a%20log%20of%20activity%20is%20written%20to%20the%20file%20%E2%80%9Cnotebook_execution.log%E2%80%9D%20in%20the%20same%20folder%20as%20the%20AutomatedNotebooks-Manager.ipynb.%20This%20provides%20details%20of%20execution%20flow%20and%20which%20incidents%20were%20processed%2C%20as%20such%20it%20should%20be%20the%20first%20thing%20you%20check%20when%20troubleshooting.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%2223.png%22%20style%3D%22width%3A%20624px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F298458i4124C91FDF212E54%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%2223.png%22%20alt%3D%2223.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EIf%20not%20using%20the%20Queue%20method%20for%20incident%20triggers%20the%20mostly%20likely%20cause%20of%20issues%20is%20with%20the%20notebooks%20themselves.%20The%20easiest%20way%20to%20troubleshoot%20these%20is%20to%20run%20them%20individually%20and%20inspect%20the%20output.%20To%20trigger%20the%20%E2%80%9CAutomatedNotebooks-Manager.ipynb%E2%80%9D%20notebook%20you%20can%20manually%20invoke%20using%20Papermill%20via%20the%20CLI%20with%20the%20following%20command%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Epapermill%20%E2%80%9CAutomatedNotebooks-Manager.ipynb%E2%80%9D%20-%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20will%20see%20the%20notebook%20output%20in%20the%20terminal%20to%20allow%20you%20to%20debug%20it%2C%20alternatively%20replace%20the%20%60-%60%20in%20the%20command%20with%20a%20file%20name%20to%20write%20out%20to%20the%20file%20specified.%3C%2FP%3E%0A%3CP%3EIf%20this%20notebook%20executes%20as%20expected%2C%20then%20you%20can%20also%20check%20the%20incident%20triage%20notebook%20itself.%20To%20do%20this%20select%20an%20incident%20in%20your%20Azure%20Sentinel%20workspace%20that%20has%20some%20entities%20attached%20and%20get%20the%20incident%20ID.%20This%20can%20be%20found%20in%20the%20incident%20view%20of%20the%20Sentinel%20portal%20as%20part%20of%20the%20Incident%20link.%20(The%20ID%20required%20is%20the%20GUID%20at%20the%20end%20of%20the%20full%20link%20text).%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%2224.png%22%20style%3D%22width%3A%20624px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F298459iD318D7BBB2C90CA2%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%2224.png%22%20alt%3D%2224.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EFrom%20there%20you%20can%20trigger%20that%20notebook%20from%20the%20CLI%20with%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Epapermill%20%E2%80%9CAutomatedNotebooks-IncidentTriage.ipynb%E2%80%9D%20debug.ipynb%20-p%20incident_id%20%22%3CINCIDENT%20id%3D%22%22%3E%22%20-p%20ws_id%20%22%3CYOUR%20workspace%3D%22%22%20id%3D%22%22%3E%22%20-p%20ten_id%20%22%3CYOUR%20tenant%3D%22%22%20id%3D%22%22%3E%22%3C%2FYOUR%3E%3C%2FYOUR%3E%3C%2FINCIDENT%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20will%20run%20the%20triage%20notebook%20with%20the%20Incident%20ID%20provided%20and%20will%20write%20the%20resulting%20notebook%20a%20file%20called%20%60debug.ipynb%60.%20This%20file%20is%20a%20complete%20copy%20of%20the%20original%20notebook%20but%20with%20all%20of%20the%20execution%20results%20(including%20any%20errors).%20You%20can%20open%20the%20debug%20file%20in%20Azure%20ML%20or%20other%20Jupyter%20notebook%20environment%20to%20check%20for%20any%20execution%20issues.%20You%20can%20view%20the%20file%20as%20raw%20text%20but%20the%20native%20JSON%20format%20makes%20it%20difficult%20to%20read.%20You%20can%20also%20convert%20the%20notebook%20to%20an%20HTML%20document%20using%20the%20%3CA%20href%3D%22https%3A%2F%2Fnbconvert.readthedocs.io%2Fen%2Flatest%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Enbcovert%3C%2FA%3E%20tool.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%20are%20using%20the%20Queue%20method%2C%20you%20will%20also%20want%20to%20ensure%20items%20are%20being%20properly%20passed%20to%20the%20Queue.%20This%20is%20easily%20done%20by%20browsing%20to%20the%20Queue%20resource%20in%20the%20Azure%20Portal.%20If%20functioning%20correctly%20and%20the%20attached%20incidents%20have%20occurred%2C%20then%20the%20queue%20should%20contain%20full%20incident%20links%20that%20should%20appear%20in%20the%20same%20format%20as%3A%20%2Fsubscriptions%2F796fca0e-7703-476a-9d66-a65d3a7825dd%20%2FresourceGroups%2FSentinel%2Fproviders%2FMicrosoft.OperationalInsights%2Fworkspaces%2Fsentinelworkspace%2Fproviders%2FMicrosoft.SecurityInsights%2FIncidents%2Ff9e57a1f-8d1a-4efa-a165-4a48c2b2c46e.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EShould%20you%20encounter%20issues%20with%20this%20solution%20please%20raise%20an%20Issue%20on%20the%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2FAzure-Sentinel-Notebooks%2Fissues%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EAzure-Sentinel-Notebooks%20GitHub%20repo%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--270852777%22%20id%3D%22toc-hId--270852777%22%3ESummary%3C%2FH2%3E%0A%3CP%3EIn%20this%20blog%20we%20have%20seen%20how%20it%20is%20possible%20to%20use%20open%20source%20software%20and%20Azure%20services%20to%20easily%20automate%20the%20process%20of%20executing%20Jupyter%20Notebooks%20linked%20to%20Azure%20Sentinel.%20This%20approach%20can%20vastly%20improve%20the%20efficiency%20and%20effectiveness%20of%20SOC%20operations%2C%20as%20well%20as%20forming%20the%20core%20of%20a%20software%20defined%20monitoring%20approach.%20Whilst%20in%20this%20blog%20we%20have%20shown%20how%20this%20process%20can%20be%20used%20for%20triaging%20incidents%20and%20supporting%20first%20line%20SOC%20operations%20the%20same%20pattern%20could%20be%20applied%20to%20virtually%20any%20security%20monitoring%20scenario%20that%20involves%20the%20repetition%20of%20a%20set%20of%20analytical%20steps%2C%20whether%20it%20be%20enrichment%20of%20datasets%2C%20custom%20analytics%20using%20Python%20specific%20features%2C%20or%20threat%20intelligence%20processing.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22%23_ednref1%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%20name%3D%22_edn1%22%3E%3CSPAN%3E%5Bi%5D%3C%2FSPAN%3E%3C%2FA%3E%20This%20should%20be%20the%20same%20KeyVault%20you%20set%20up%20as%20a%20pre-requisite%20to%20this%20solution.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22%23_ednref1%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%20name%3D%22_edn1%22%3E%3CSPAN%3E%5Bi%5D%3C%2FSPAN%3E%3C%2FA%3E%20VSCode%20is%20recommended%20for%20this%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2587775%22%20slang%3D%22en-US%22%3E%3CP%3EIncident%20triage%20is%20a%20core%20component%20of%20security%20monitoring%20operations%20and%20ensuring%20triage%20processes%20are%20efficient%20and%20effective%20is%20key%20to%20detecting%20security%20threats.%20Recent%20high%20profile%20security%20incidents%20have%20shown%20that%20detecting%20threats%20is%20insufficient%20unless%20effective%20triage%20and%20investigation%20of%20them%20is%20conducted.%20In%20this%20blog%20we%20detail%20how%20to%20deploy%20and%20use%20a%20solution%20that%20allows%20for%20the%20automatic%20execution%20of%20Jupyter%20Notebooks%20to%20provide%20enrichment%20to%20incidents%20within%20Azure%20Sentinel.%20%26nbsp%3BThis%20process%20allows%20security%20analysts%20to%20triage%20incidents%20more%20quickly%20and%20effectively%2C%20as%20well%20as%20ensuring%20a%20consistent%2C%20quality%20approach%20is%20taken.%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--2078307240%22%3EBackground%3C%2FH2%3E%0A%3CP%3EThe%20objective%20of%20this%20solution%20is%20to%20reduce%20the%20time%20and%20effort%20required%20for%20a%20Security%20Operations%20Center%20(SOC)%20analyst%20to%20triage%20an%20incident%20within%20Azure%20Sentinel%20and%20help%20ensure%20a%20consistent%20approach%20is%20taken%20to%20each%20incident.%20This%20is%20done%20by%20automatically%20executing%20Jupyter%20notebooks%20that%20perform%20a%20set%20of%20pre-defined%20actions%20on%20the%20incident%20like%20those%20conducted%20by%20an%20analyst%20when%20triaging%20an%20incident.%20It%20provides%20three%20main%20benefits%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EIt%20makes%20the%20triaging%20of%20incidents%20more%20efficient%20by%20running%20some%20logic%20against%20the%20incidents%20and%20adjusting%20incident%20severity%20based%20on%20the%20output%20of%20the%20enrichment%20run%20in%20the%20notebook.%3C%2FLI%3E%0A%3CLI%3EIt%20makes%20the%20results%20of%20the%20enrichment%20easily%20viewable%20by%20the%20SOC%20analyst%20by%20adding%20a%20link%20to%20the%20executed%20notebook%20to%20the%20incident%20log.%20This%20saves%20the%20analysts%20valuable%20time%20when%20triaging%20the%20incident.%3C%2FLI%3E%0A%3CLI%3EBy%20executing%20these%20steps%20from%20a%20template%20pattern%2C%20it%20provides%20a%20consistent%20triage%20approach%20for%20all%20incidents%2C%20helping%20to%20ensure%20quality%20and%20reduce%20the%20chance%20of%20a%20security%20incident%20being%20missed.%3C%2FLI%3E%0A%3C%2FUL%3E%3C%2FLINGO-TEASER%3E
Co-Authors
Version history
Last update:
‎Aug 06 2021 01:03 PM
Updated by:
www.000webhost.com