Path: blob/master/tutorials-and-examples/example-notebooks/Senserva Connections Graph Notebook.ipynb
3253 views
Welcome to the Senserva Connections Graph Notebook!
The connections will be an interaction between the objects in the form of membership, ownership, permission, etc. They are visualized using a Graph. The Graph is an ideal tool to visualize as one object can have many different kinds of connections. The nodes of the Graph will be sized according to number of connections (more connections = bigger size) and colored according to type of node (Low Risk = Green, High Risk = Red,...).
The data set for the Graph will be fetched from the Log Analytics Workspace that your Senserva Scanner is set up to use. More information about that setup process can be found here.
Setup
Several processing and visualization libraries are used in this notebook. In this notebook we will use the Pyserva Python library that our experts at Senserva have made to visualize your data. More information about the library and the source code can be found on the Github page
Authenticate to Azure
We will use the configs defined above to get data from the Log Analytics workspace. The Pyserva library will use the data to analyze and render the data in later steps.
Gather and Process our Data
We gather the dataset and the Pyserva library will process it for the relevant data points. The data points will be saved in a CSV file to your system. The data points are stored in the CSV so you can see them and to reduce the amount of web calls. A filter dropdown is generated after processing of all objects found. Select an object and the visualizations in the following steps will use the dropdown value to filter the data before rendering.
Gather, Process, and Visualize the Data
Data will be visualized as:
A Graph
A Tree
Data will be classified
Active Directory (AD)
Role Based Access Control (RBAC)
Together (AD + RBAC)
If you change the filter in the above dropdown, the visualizations will need to be rerun to take effect
Active Directory (AD)
Key Features of the Table
Risk - A score representing the suspicion of an object
Weight - Impact an object can have on a network
Overall - Using the Risk and Weight, a score to indicate what objects are most likely to be compromised
Key Features of the Graph
Color - Represents the risk of an object, green/yellow/red
Size - Represents the number of connections, bigger size = more exposure
Shape - Represents the type of object, see legend
Relationships - Represents what interactions an object has the network
Legend
â—‹ - User
â—Š - Group
â–³ - Application
☆ - Service Principal
âž• - Disabled User
â–¡ - Role
⬡ - PIM Role
⦻ - Default
Role Based Access Control (RBAC)
Key Features of the Table
Risk - A score representing the suspicion of an object
Weight - Impact an object can have on a network
Overall - Using the Risk and Weight, a score to indicate what objects are most likely to be compromised
Key Features of the Graph
Color - Represents the risk of an object, green/yellow/red
Size - Represents the number of connections, bigger size = more exposure
Shape - Represents the type of object, see legend
Relationships - Represents what interactions an object has the network
Legend
â—‹ - User
â—Š - Group
â–³ - Application
☆ - Service Principal
âž• - Disabled User
â–¡ - Role
⬡ - PIM Role
⦻ - Default
Together (AD + RBAC)
Key Features of the Table
Risk - A score representing the suspicion of an object
Weight - Impact an object can have on a network
Overall - Using the Risk and Weight, a score to indicate what objects are most likely to be compromised
Key Features of the Graph
Color - Represents the risk of an object, green/yellow/red
Size - Represents the number of connections, bigger size = more exposure
Shape - Represents the type of object, see legend
Relationships - Represents what interactions an object has the network
Legend
â—‹ - User
â—Š - Group
â–³ - Application
☆ - Service Principal
âž• - Disabled User
â–¡ - Role
⬡ - PIM Role
⦻ - Default
Wrap-Up
Seeing the connections of your Azure Active Directory objects helps give an encompassing view not currently available through Azure. Using this information, you can more effectively investigate how these objects interact with each other. These visuals save time in how a huge network like Azure Active Directory is used.