Git Product home page Git Product logo

import-ad-group-users-to-ms-watchlist's Introduction

AS-Import-AD-Group-Users-to-MS-Watchlist

Author: Accelerynt

For any technical questions, please contact [email protected]

Deploy to Azure Deploy to Azure Gov

This playbook is intended to be run on a schedule. It will add the users from a specified Azure Active Directory group to a Microsoft Sentinel watchlist.

AS_Group_Watchlist_Demo

Requirements

The following items are required under the template settings during deployment:

Setup

Azure Active Directory Group Id:

Navigate to the Azure Active Directory Groups page: https://portal.azure.com/#view/Microsoft_AAD_IAM/GroupsManagementMenuBlade/~/AllGroups

Create a new group or locate the existing group you would like to use with this playbook and click the name.

AS_Group_Watchlist_Group_Id_1

From the group "Overview" page, copy the value of the "Object Id" and save it for deployment.

AS_Group_Watchlist_Group_Id_2

Create a Microsoft Sentinel Watchlist:

Navigate to the Microsoft Sentinel page and select a workspace:

https://portal.azure.com/#view/HubsExtension/BrowseResource/resourceType/microsoft.securityinsightsarg%2Fsentinel

Under the "Configuration" section of the menu, click "Watchlist", then click "Add new".

AS_Group_Watchlist_Create_Watchlist_2

Fill out the required fields and take note of the value you use for "Alias" as this will be needed for deployment. Then click "Next: Source".

AS_Group_Watchlist_Create_Watchlist_3

The watchlist cannot be created without initial data. We have created a file with the necessary headers and an entry that can later be deleted from the watchlist once it has been updated with additional entries.

Upload the "watchlist_initialize.csv" included in this repository and select "id" as the search key. Then click "Next: Review and create".

AS_Group_Watchlist_Create_Watchlist_4

Review the information, then click "Create". AS_Group_Watchlist_Create_Watchlist_5

Once your watchlist has been created, you can view the entries by clicking the watchlist name from the "Overview" page, and then clicking "View in logs".

AS_Group_Watchlist_Create_Watchlist_6

This will run a Kusto query for your watchlist and you should be able to see the initializing data that was just uploaded. Please note it may take a minute after the creation of your watchlist for the query to show results.

AS_Group_Watchlist_Create_Watchlist_7

Microsoft Sentinel Workspace Id:

Navigate to the Microsoft Sentinel page and select the same workspace as before:

https://portal.azure.com/#view/HubsExtension/BrowseResource/resourceType/microsoft.securityinsightsarg%2Fsentinel

Under the "Configuration" section of the menu, click "Settings", then click the "Workspace settings" tab.

AS_Group_Watchlist_Workspace_Id_1

Copy the value of the "Workspace ID" field and save it for deployment.

AS_Group_Watchlist_Workspace_Id_2

Deployment

To configure and deploy this playbook:

Open your browser and ensure you are logged into the same Microsoft Sentinel workspace selected above. In a separate tab, open the link to our playbook on the Accelerynt Security GitHub Repository:

https://github.com/Accelerynt-Security/AS-Import-AD-Group-Users-to-MS-Watchlist

Deploy to Azure Deploy to Azure Gov

Click the “Deploy to Azure” button at the bottom and it will bring you to the custom deployment template.

In the Project Details section:

  • Select the “Subscription” and “Resource Group” from the dropdown boxes you would like the playbook deployed to.

In the Instance Details section:

Towards the bottom, click on “Review + create”.

AS_Group_Watchlist_Deploy_1

Once the resources have validated, click on "Create".

AS_Group_Watchlist_Deploy_2

The resources should take around a minute to deploy. Once the deployment is complete, you can expand the "Deployment details" section to view them. Click the one corresponding to the Logic App.

AS_Group_Watchlist_Deploy_3

Click on the “Edit” button. This will bring us into the Logic Apps Designer.

AS_Group_Watchlist_Deploy_4

Before the playbook can be run successfully, the Azure AD connection used in the second step and the Microsoft Sentinel connection used in the fourth and ninth steps will either need to be authorized, or existing authorized connections may be alternatively selected.

AS_Group_Watchlist_Deploy_5

To validate the Azure AD connection, expand the second step labeled "Connections" and click the exclamation point icon next to the name matching the playbook.

AS_Group_Watchlist_Deploy_6

When prompted, sign in to validate the connection.

AS_Group_Watchlist_Deploy_7

Repeat the process for the Microsoft Sentinel connection.

AS_Group_Watchlist_Deploy_8

Returning to the "Overview" page of the logic app, it can now be run successfully.

AS_Group_Watchlist_Deploy_9

Editing the Microsoft Sentinel Watchlist

A watchlist needs initial data in order to be created. Because of this, the watchlist will have a row with the values "initial data". Once the logic app has run successfully and other entries have been added, you can remove this row.

To do this, navigate back to the Microsoft Sentinel page:

https://portal.azure.com/#view/HubsExtension/BrowseResource/resourceType/microsoft.securityinsightsarg%2Fsentinel

Click the workspace name used during deployment and then click "Watchlist" under the "Configuration" section of the menu.

Click the name of the watchlist used during deployment. This will pull up a menu on the right side of the page. Click "Update watchlist".

AS_Group_Watchlist_View_Watchlist_2

Check the box of the row with the values "initial data" and click "Delete".

AS_Group_Watchlist_View_Watchlist_3

import-ad-group-users-to-ms-watchlist's People

Contributors

hollyollyoxenfree avatar

Stargazers

Emre ATES avatar

Watchers

Emre ATES avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.