# Azure Active Directory Integration

The CyberCyte portal provide Azure Active Directory integration for more comprehensive visibility. We recommend it for machines without an agent on the domain, accounts with unchanged passwords, locked accounts and analysis of the domain infrastructure.

## 1. Create MS Azure App

Please log in to the MS Azure Portal and navigate to <https://portal.azure.com/#view/Microsoft_AAD_RegisteredApps/ApplicationsListBlade>

Register a new applicaiton on a signle tennant with "+ New registration" button. Do not put any URL for endpoint.

<figure><img src="/files/uMNJDRA87vSJJ7UHY0ID" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/LEkOkeUUMYvlmwmD6LZ5" alt=""><figcaption></figcaption></figure>

## 2. Get The Client ID & Tenant ID

After the registration, please navigate to "Manage" -> "Certificates & Secrets". Please add a new client secret and copy it.

<figure><img src="/files/WoCKQqXWh3nXAwwqxk9s" alt=""><figcaption></figcaption></figure>

From the "Overview" menu, please copy the "Application (client) ID" and "Directory (tenant) ID".

Go back to the "Manage" menu and navigate to "API permissions". Add a new permission and select the "Microsoft Graph Permission".

<figure><img src="/files/Z31md20MYXCBA1cDdnMD" alt=""><figcaption></figcaption></figure>

Select the "Applicaiton Permissions".

<figure><img src="/files/tjLLW8ohrvXxMbK622Wp" alt=""><figcaption></figcaption></figure>

Select the permissions in the list provided below:

<table data-header-hidden><thead><tr><th valign="top"></th><th valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top">AdministrativeUnit.Read.All</td><td valign="top">Application</td><td valign="top">Read all administrative units</td></tr><tr><td valign="top">Contacts.Read</td><td valign="top">Delegated</td><td valign="top">Read user contacts</td></tr><tr><td valign="top">Contacts.Read</td><td valign="top">Application</td><td valign="top">Read contacts in all mailboxes</td></tr><tr><td valign="top">Contacts.Read.Shared</td><td valign="top">Delegated</td><td valign="top">Read user and shared contacts</td></tr><tr><td valign="top">Directory.Read.All</td><td valign="top">Delegated</td><td valign="top">Read directory data</td></tr><tr><td valign="top">Directory.Read.All</td><td valign="top">Application</td><td valign="top">Read directory data</td></tr><tr><td valign="top">email</td><td valign="top">Delegated</td><td valign="top">View users' email address</td></tr><tr><td valign="top">Group.Read.All</td><td valign="top">Delegated</td><td valign="top">Read all groups</td></tr><tr><td valign="top">Group.Read.All</td><td valign="top">Application</td><td valign="top">Read all groups</td></tr><tr><td valign="top">GroupMember.Read.All</td><td valign="top">Delegated</td><td valign="top">Read group memberships</td></tr><tr><td valign="top">GroupMember.Read.All</td><td valign="top">Application</td><td valign="top">Read all group memberships</td></tr><tr><td valign="top">User.Read</td><td valign="top">Delegated</td><td valign="top">Sign in and read user profile</td></tr><tr><td valign="top">User.Read.All</td><td valign="top">Delegated</td><td valign="top">Read all users' full profiles</td></tr><tr><td valign="top">User.Read.All</td><td valign="top">Application</td><td valign="top">Read all users' full profiles</td></tr><tr><td valign="top">User.ReadBasic.All</td><td valign="top">Delegated</td><td valign="top">Read all users' basic profiles</td></tr><tr><td valign="top">Office 365 Exchange </td><td valign="top"></td><td valign="top"></td></tr><tr><td valign="top">Contacts.Read</td><td valign="top">Delegated</td><td valign="top">Read user contacts</td></tr><tr><td valign="top">Contacts.Read.All</td><td valign="top">Delegated</td><td valign="top">Read user and shared contacts</td></tr><tr><td valign="top">Contacts.Read.Shared</td><td valign="top">Delegated</td><td valign="top">Read user and shared contacts</td></tr><tr><td valign="top">Group.Read.All</td><td valign="top">Delegated</td><td valign="top">Read all groups (preview)</td></tr><tr><td valign="top">People.Read</td><td valign="top">Delegated</td><td valign="top">Read users' relevant people lists (preview)</td></tr><tr><td valign="top">User.Read</td><td valign="top">Delegated</td><td valign="top">Read user profiles</td></tr><tr><td valign="top">User.Read.All</td><td valign="top">Delegated</td><td valign="top">Read all users' full profiles</td></tr><tr><td valign="top">User.ReadBasic.All</td><td valign="top">Delegated</td><td valign="top">Read all users' basic profiles</td></tr><tr><td valign="top">User.ReadBasic.All</td><td valign="top">Delegated</td><td valign="top">Read all users' basic profiles</td></tr></tbody></table>

Grand admin consent after adding the permissions.

<figure><img src="/files/Msln6PNE4ixOkxGm60hE" alt=""><figcaption></figcaption></figure>

## 3. Create Remote Credential in Portal

Please navigate to "Settings & Reporting" -> "Integration Settings" -> "Credential Settings". Click on the "+ Credential" button to create a new credential. Select the "Microsoft Graph API Credential" as a "Credential Type".

## 4. Create a Repository on the Portal

Please navigate to "Settings & Reporting" -> "Integration Settings" -> "Repository Management". Click on the "+Repository" button to create a new Azure AD(Active Directory) repository and select the "Azure AD" as Type, and please select the credential that we created in the first step as a "Remote Credential". After that please fill the rest of the blank fields.

## 5. Create a Policy in the Portal

Please navigate to "Rules & Policies" -> "Policy Management" -> Click on the "+ Policy" button. Please select the module named "Scenario and Network Discovery" and type named "Active Directory Analysis". After the selection, required fields will appeared. Please fill in the blanks with required values. For default values, users can use these values in images below.

The users can assign this policy to their group(s). Also, the collection intervals can be changed to their requirements.

The users can add custom tags by just typing and hitting the enter. The policy will automatically accept the tags.

## 6. Reviewing the Results

Please navigate to "Dashboards" -> "Asset & Identity" -> "Domain Overview" and "Asset Overview". The "Domain Overview" and "Asset Overview" dashboards provides a great visibility on the active directory and domain information.

After integration, the data obtained must be validated and, if necessary, white-listing or rule definitions must be made. There are already defined rules on CyberCyte, and listing can be done with additional analyses to these rules. Our primary recommendation is to double-check in parallel with the existing solutions in the user's infrastructure.

You can access the relevant findings via dashboards, and you can go to the relevant analysis table by clicking on the data.

<figure><img src="/files/H9KQeZOysvlA979rghYS" alt=""><figcaption></figcaption></figure>

When you right-click on any data, you can provide list management under "List Management" from the options that appear on the screen. Similarly, if a special rule needs to be defined, you can create a special rule with the "Rule Management" -> "Add value as a Classification Rule" option and trigger the notification mechanism. The rule management explained in this link <https://docs.cloudcyte.com/getting-started/classification-rules>.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cloudcyte.com/getting-started/integrations/azure-active-directory-integration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
