Learning Path 8 - Lab 1 - Exercise 10 - Use Repositories in Microsoft Sentinel
Lab scenario
You are a Security Operations Analyst working at a company that implemented Microsoft Sentinel. You already created Scheduled and Microsoft Security Analytics rules. You need to centralize analytical rules in an Azure DevOps repository. Then connect Sentinel to the Azure DevOps repository and import the content.
Important: The lab exercises for Learning Path #8 are in a standalone environment. If you exit the lab before completing it, you will be required to re-run the configurations again.
Estimated time to complete this lab: 30 minutes
Task 1: Create and export an analytical rule
In this task, you will enable Entity behavior analytics in Microsoft Sentinel.
Note: Microsoft Sentinel has been predeployed in your Azure subscription with the name sentinelworkspace-01, and the required Content Hub solutions have been installed.
-
Log in to WIN1 virtual machine as Admin with the password: Pa55w.rd.
-
Open the Microsoft Edge browser.
-
In the Edge browser, navigate to Defender XDR at
https://security.microsoft.com. -
In the Sign in dialog box, copy, and paste in the Tenant Email account provided by your lab hosting provider and then select Next.
-
In the Enter password dialog box, copy, and paste in the Tenant Password provided by your lab hosting provider and then select Sign in.
Note: You may be prompted to enter the Temporary Access Pass (TAP) instead of a password. This is also provided in the resources tab. If prompted, copy and paste the TAP value and select Sign in.
-
In the Microsoft Defender navigation menu, scroll down and expand the Microsoft Sentinel section.
-
Expand the Configuration section and select Analytics.
-
Select the Startup RegKey rule that you created earlier.
-
Select the Export from the toolbar. Hint: You might need to select the ellipsis icon (…) to see it.
-
The rule is exported to a text file named Azure_Sentinel_analytic_rule.json.
-
Select Open file below the name of the downloaded file and then select More apps.
-
Select Notepad and then select OK.
-
Review the Azure Resource Manager template and the close it when done.
Task 2: Create our Azure DevOps environment
In this task, you will create an Azure DevOps repository.
-
Open another tab in the browser and navigate to
https://aexprodcus1.vsaex.visualstudio.com/me?mkt=en-US>. -
After verifying your account, on the We need a few more details page, select Continue.
-
You should automatically be redirected to your student profile page, and see the My Sentinel Content-studentnumber project listed under the dev.azure.com/ADOCourseOrg01 organization.
-
Select the My Sentinel Content-studentnumber project link to open the project. This should open another tab in the browser for the project.
-
Navigate and select Repos on the left pane.
-
At the bottom of the page in the area Initialize main branch with a README or gitignore, select Initialize.
-
The page should show the Files for the Repo. the only file is README.md.
-
On the Files (right side of the page) pane, Contents tab, the toolbar include options Set up build, Clone, and three vertical dots (More options). Select the three vertical dots to show More options.
-
Select Upload Files.
-
Select Browse and select the file Azure_Sentinel_analytic_rule.json from your Downloads directory, and select Open.
-
Select Commit.
-
Select Azure DevOps on the top left corner of the page. This displays your organization and projects.
-
Select Organization settings from the bottom left of the page.
-
Select Policies under the Security area of the left blade.
-
Verify that the Third-party application access via OAuth under the Application connection policies area is set to On.
Task 3: Connect Sentinel to Azure DevOps.
In this task, you will connect Microsoft Sentinel to the Azure DevOps repository you created in the previous task and import the content.
-
In Microsoft Sentinel, select Repositories in the Content Management section.
-
Select + Add new button from the Continuous deployment toolbar.
-
For the name enter My Content.
Note: You may want to choose a more descriptive name for your repository to distinguish it from other users’ repositories.
-
For Source control, select Azure DevOps.
-
Select Authorize.
-
Select the Organization created earlier (e.g. ADOCourseOrg01).
-
Select the Project you created earlier, My Sentinel Content-studentnumber.
-
Select the Repository you created earlier, My Sentinel Content-studentnumber. Hint: You might need to scroll down within the drop-down to see the repository.
-
Select the Branch main. Hint: You might need to scroll down within the drop-down to see the branch.
-
Select all content types.
-
Then select Create.
-
On the Repositories page, select Refresh. Wait until Last deployment status is Succeeded.
-
Select the My Content repository and in the fly-out window, review the Content types and Last deployment status.
-
Select the Delete button from the Continuous deployment toolbar.
-
Select Authorize when prompted.
Note: We’re deleting this repository connection to clean up after the lab.