Getting Started with Codename MDASH
In brief
The onboarding requirements now support remote scanning through either GitHub or Azure DevOps, refer to a linked list of required models, and document two authentication methods for the Foundry project endpoint. Detailed RBAC requirements are now provided through linked guidance.
What Defender admins need to know
Review the onboarding prerequisites and linked guidance when configuring MDASH, including the selected connector, Foundry authentication method, model deployments, and user permissions.
Summaries are generated from the documentation change itself.
Documentation change
The comparison below shows only the changed extract. Use the full-page view for complete context.
To complete this setup, you need:
Global Administrator or Security Administrator role in Microsoft Entra ID to complete the agentic code security onboarding process in the Microsoft Defender portal.
Authority to accept the codename MDASH terms and conditions on behalf of your organization during onboarding.
An Azure subscription and resource group in which to create a dedicated Microsoft Foundry resource used exclusively for codename MDASH. For full details, see Connect Microsoft Foundry.
Permission to deploy the
followingmodelswith the Global Standard deployment type (all three are required):gpt-5.4gpt-5.3-codexgpt-5.4-mini
A dedicated Foundry endpoint used exclusively for codename MDASH.required. For list of models, see Deploy the required models.If the Foundry resource's networking is set to Selected networks and private endpoints, action is required to allow
Codenamecodename MDASH access. For more information, see Allow Codename MDASH to access your Microsoft Foundry resource.At least one of the following AI scanning
paths. You can add the other later:paths:- Option 1 — Remote scan
(GitHub connector, recommended)(recommended). For full details, see either Create a GitHub connector. You need:Access to the Microsoft Defender portal with permission to create and manage connectors.To create and manage connectors, you need theGlobal AdministratororSecurity Administratorrole in Microsoft Entra ID.
Ownerof the GitHub organization you want to connect.Cloud Security prepared in the tenant (Cloud security>Overview>Prepare my tenant).
If the target GitHub organization is already connected through the Azure portal's GitHub connector, see the note in Create a GitHub connector.Option 2 — Defender CLI. For full details, see Defender CLI setup.
You need:Azure CLI installed.The Microsoft Defender Code enterprise application installed in your tenant (automatic on E5 tenants; otherwise run the provided consent script).The Defender CLI binary for your platform (Windows, macOS, or Linux). For more information, see Install Defender CLI.To handle onboarding for app-based (client secret) authentication:Application Administratorin Microsoft Entra ID and aGlobal Administratoravailable to grant admin consent.To handle onboarding for interactive authentication:Security Administratorin Microsoft Entra ID.Users who perform local interactive scans require theRun scan (Manage)permission.TheUpload results (Manage)permission is required only for scenarios that involve uploading scan results.
If outbound traffic is restricted, allow the required domains. For more information, see Allow list.
Access to the Microsoft Defender portal with permission to open Exposure Management and Initiatives.
The Foundry project
endpoint and API key fromendpoint. MDASH supports two authentication methods for the Foundrysetup step.connection. For details about the available authentication methods, see Authentication methods.Defender unified RBAC permissions assigned.
Grant each user onlyFor the required permissionsthey need:Run scan (Manage)— requiredand how totrigger on-demand or CLI scans.Upload results (Manage)— required to upload CLI scan results to Defender.Scan results (Read)— required to view findings in the Defender portal and the initiative.Scan results (Manage)— required to triage, dismiss, or otherwise manage findings.
For more information,assign them, see Assign permissions to users using Defender RBAC.
Assign permissions to users using Defender RBAC
Use Microsoft Defender unified role-based access control (RBAC) to grant users and groups the agentic code security permissions
they need.required to run scans, upload results, and review or manage findings. In this step, you create a custom, feature-scoped role in Microsoft Defender for these specific capabilities, and then assign the role to the users who need access.Sign in to the Microsoft Defender portal.
In the navigation pane, select System > Permissions.
Under Microsoft Defender XDR, select Roles > Create custom role.
On the Basics tab, enter a role name and description.
On Choose permissions, expand Agentic code security.
Under AI Scan Security, set the permission levels you
need:need (for more information, see Security posture – AI code scan:To allow users to run AI scans, selectRun scan (Manage).— required to trigger on-demand or CLI scans.To allow usersUpload results (Manage) — required to uploadAICLI scan results toDefender, selectDefender.UploadScan results (Manage).— required to triage, dismiss, or otherwise manage findings.To allow users to read scan results, selectScan results (Read).- — required to view findings in the Defender portal and the initiative. This permission does not grant access to the Defender portal. To
allow usersenable portal access, assign additional permissions, such as Exposure Management (Read). These permissions may also provide access tomanage scan results, selectScan results (Manage).other data within the assigned scope, beyond codename MDASH data.
For more information, see Security posture – AI code scan.Review the permissions, and select Apply.
Select Next to go to Assign users and data sources. Assign the users who should receive this role.
Select Add assignment, and configure users, groups, and data sources.
Under Data sources, keep both Microsoft Defender for Cloud and Microsoft Security Exposure Management selected.
Select Add, review the assignments, and select Next.
Review the role
details,details and select Submit.
For more information, see Create custom roles with Microsoft Defender unified RBAC.
Entry points
Start the onboarding flow from either of these locations in the
Microsoft Defender portal:Microsoft Defender portal:- Exposure Management > Overview: Select Agentic code security.
- Exposure Management > Initiatives: Select the Codename MDASH - Agentic code scanner initiative.
- Review the terms and conditions in the onboarding flow.
- Select the checkbox to confirm acceptance.
- You must accept the terms and conditions before you can select Save.
Step 2: Connect a Microsoft Foundry resource
Provide the required details to connect your Microsoft Foundry resource and validate the connection.
- Enter the Project endpoint (for example:
https://your-foundry.azure.com) and API key. - Select Validate to verify the connection.
- Select Save to finish onboarding.
- Option 1 — Remote scan
Choose an authentication method: Keyless (recommended) or API key. For details, see Authentication methods.
Select Validate to verify the connection.
Select Save to finish onboarding.
Create a GitHub connectorCreate an Azure DevOps connector to connect yourGitHubAzure DevOps organization.- Trigger an on-demand agentic scan for any onboarded repository.
Note: You must successfully validate the resource before you can select Save.
Step 4: Set up AI scanning
Remote scan (recommended)
Create a GitHub or Azure DevOps connector to connect your SCM organization and trigger on-demand scans through the Defender portal without installing anything locally.
To create an SCM connector, you need access to the Microsoft Defender portal with permission to manage connectors, and you must have either the Global Administrator or Security Administrator role in Microsoft Entra ID. You must also have the Organization Owner role in the GitHub organization or Project Collection Administrator role in the Azure DevOps organization that you want to connect.
Create a GitHub connectorand trigger on-demand scans through the Defender portal without installing anything locally.
To create a GitHub connector, you need access to the Microsoft Defender portal with permission to manage connectors, and you must have either the Global Administratoror Security Administrator role in Microsoft Entra ID. You must also have the Organization Owner role in the GitHub organization that you want to connect.
Defender CLI
To onboard agentic code security with Defender CLI, you need the Global Administrator or Security Administrator role in Microsoft Entra ID.
Step 5: Review security findings
After scans run, view security findings in the Microsoft Defender portal.
For After scans run, view findings in the Microsoft Defender portal.
For details, see Codename MDASH - Agentic code scanner initiativestep-by-step instructions,details, see Defender CLI setup and Install and run Defender CLI.
Codename MDASH - Agentic code scanner initiative.
Step 5: Review recommendations
Related content
@@ -2,7 +2,7 @@ title: Getting Started with Codename MDASH description: Onboard agentic code security in the Microsoft Defender portal by accepting terms, connecting your Microsoft Foundry resource, and completing agentic code scanning setup. ms.topic: how-to-ms.date: 05/26/2026+ms.date: 08/18/2026 ai-usage: ai-assisted --- @@ -15,80 +15,47 @@ Confirm you have everything in place before you begin, then follow the steps to To complete this setup, you need: - **Global Administrator** or **Security Administrator** role in Microsoft Entra ID to complete the agentic code security onboarding process in the Microsoft Defender portal.- - Authority to accept the codename MDASH terms and conditions on behalf of your organization during onboarding.--- An Azure subscription and resource group in which to create a dedicated Microsoft Foundry resource for codename MDASH. For full details, see [Connect Microsoft Foundry](mdash-foundry-integration.md).--- Permission to deploy the following models with the Global Standard deployment type (all three are required):- - `gpt-5.4`- - `gpt-5.3-codex`- - `gpt-5.4-mini`--- A dedicated Foundry endpoint used exclusively for codename MDASH.--- If the Foundry resource's networking is set to **Selected networks and private endpoints**, action is required to allow Codename MDASH access. For more information, see [Allow Codename MDASH to access your Microsoft Foundry resource](mdash-foundry-integration.md#allow-codename-mdash-to-access-your-microsoft-foundry-resource).--- At least one of the following AI scanning paths. You can add the other later:-- **Option 1 — Remote scan (GitHub connector, recommended).** For full details, see [Create a GitHub connector](create-github-connector.md). You need:- - Access to the Microsoft Defender portal with permission to create and manage connectors.- - To create and manage connectors, you need the **Global Administrator** or **Security Administrator** role in Microsoft Entra ID.- - **Owner** of the GitHub organization you want to connect.- - Cloud Security prepared in the tenant (**Cloud security** > **Overview** > **Prepare my tenant**).-- If the target GitHub organization is already connected through the Azure portal's GitHub connector, see the note in [Create a GitHub connector](create-github-connector.md). -- **Option 2 — Defender CLI.** For full details, see [Defender CLI setup](defender-cli-authentication.md). You need:- - Azure CLI installed.- - The Microsoft Defender Code enterprise application installed in your tenant (automatic on E5 tenants; otherwise run the provided consent script).- - The Defender CLI binary for your platform (Windows, macOS, or Linux). For more information, see [Install Defender CLI](defender-cli.md).- - To handle onboarding for app-based (client secret) authentication: **Application Administrator** in Microsoft Entra ID and a **Global Administrator** available to grant admin consent.- - To handle onboarding for interactive authentication: **Security Administrator** in Microsoft Entra ID.- - Users who perform local interactive scans require the **Run scan (Manage)** permission.- - The **Upload results (Manage)** permission is required only for scenarios that involve uploading scan results.-+- An Azure subscription and resource group in which to create a dedicated Microsoft Foundry resource used exclusively for codename MDASH. For full details, see [Connect Microsoft Foundry](mdash-foundry-integration.md).+- Permission to deploy the models required. For list of models, see [Deploy the required models](mdash-foundry-integration.md#deploy-the-required-models).+- If the Foundry resource's networking is set to **Selected networks and private endpoints**, action is required to allow codename MDASH access. For more information, see [Allow Codename MDASH to access your Microsoft Foundry resource](mdash-foundry-integration.md#allow-codename-mdash-to-access-your-microsoft-foundry-resource).+- At least one of the following AI scanning paths:+ - **Option 1 — Remote scan (recommended).** For full details, see either [Create a GitHub connector](create-github-connector.md) or [Create Azure DevOps connector](create-azure-devops-connector.md).+ - **Option 2 — Defender CLI.** For full details, see [Defender CLI setup](defender-cli-authentication.md). - If outbound traffic is restricted, allow the required domains. For more information, see [Allow list](ai-code-security-overview.md#allow-list).- - Access to the [Microsoft Defender portal](https://security.microsoft.com) with permission to open **Exposure Management** and **Initiatives**.+- The Foundry project endpoint. MDASH supports two authentication methods for the Foundry connection. For details about the available authentication methods, see [Authentication methods](mdash-foundry-integration.md#authentication-methods). -- The Foundry project endpoint and API key from the Foundry setup step.--- Defender unified RBAC permissions assigned. Grant each user only the permissions they need:- - **Run scan (Manage)** — required to trigger on-demand or CLI scans.- - **Upload results (Manage)** — required to upload CLI scan results to Defender.- - **Scan results (Read)** — required to view findings in the Defender portal and the initiative.- - **Scan results (Manage)** — required to triage, dismiss, or otherwise manage findings.-- For more information, see [Assign permissions to users using Defender RBAC](#assign-permissions-to-users-using-defender-rbac).+- Defender unified RBAC permissions assigned. For the required permissions and how to assign them, see [Assign permissions to users using Defender RBAC](#assign-permissions-to-users-using-defender-rbac). ## Assign permissions to users using Defender RBAC -Use Microsoft Defender unified role-based access control (RBAC) to grant users the agentic code security permissions they need.+Use Microsoft Defender unified role-based access control (RBAC) to grant users and groups the agentic code security permissions required to run scans, upload results, and review or manage findings. In this step, you create a custom, feature-scoped role in Microsoft Defender for these specific capabilities, and then assign the role to the users who need access. 1. Sign in to the [Microsoft Defender portal](https://security.microsoft.com). 1. In the navigation pane, select **System** > **Permissions**. 1. Under **Microsoft Defender XDR**, select **Roles** > **Create custom role**. 1. On the **Basics** tab, enter a role name and description. 1. On **Choose permissions**, expand **Agentic code security**.-1. Under **AI Scan Security**, set the permission levels you need:- - To allow users to run AI scans, select **Run scan (Manage)**.- - To allow users to upload AI scan results to Defender, select **Upload results (Manage)**.- - To allow users to read scan results, select **Scan results (Read)**.- - To allow users to manage scan results, select **Scan results (Manage)**.+1. Under **AI Scan Security**, set the permission levels you need (for more information, see [Security posture – AI code scan](/defender-xdr/custom-permissions-details#security-posture--ai-code-scan):+ - **Run scan (Manage)** — required to trigger on-demand or CLI scans.+ - **Upload results (Manage)** — required to upload CLI scan results to Defender.+ - **Scan results (Manage)** — required to triage, dismiss, or otherwise manage findings.+ - **Scan results (Read)** — required to view findings in the Defender portal and the initiative. This permission does not grant access to the Defender portal. To enable portal access, assign additional permissions, such as [Exposure Management (Read)](/defender-xdr/create-custom-rbac-roles#microsoft-defender-for-cloud). These permissions may also provide access to other data within the assigned scope, beyond codename MDASH data. - For more information, see [Security posture – AI code scan](/defender-xdr/custom-permissions-details#security-posture--ai-code-scan). 1. Review the permissions, and select **Apply**. 1. Select **Next** to go to **Assign users and data sources**. Assign the users who should receive this role. 1. Select **Add assignment**, and configure users, groups, and data sources.+1. Under **Data sources**, keep both **Microsoft Defender for Cloud** and **Microsoft Security Exposure Management** selected. 1. Select **Add**, review the assignments, and select **Next**.-1. Review the role details, and select **Submit**.+1. Review the role details and select **Submit**. For more information, see [Create custom roles with Microsoft Defender unified RBAC](/defender-xdr/create-custom-rbac-roles). ## Entry points -Start the onboarding flow from either of these locations in the Microsoft Defender portal:+Start the onboarding flow from either of these locations in the [Microsoft Defender portal](https://security.microsoft.com): - **Exposure Management** > **Overview**: Select **Agentic code security**. - **Exposure Management** > **Initiatives**: Select the **Codename MDASH - Agentic code scanner** initiative.@@ -99,9 +66,7 @@ Review and accept the terms and conditions before you proceed. 1. Review the terms and conditions in the onboarding flow. 1. Select the checkbox to confirm acceptance.--> [!NOTE]-> You must accept the terms and conditions before you can select **Save**.+1. You must accept the terms and conditions before you can select **Save**. ## Step 2: Connect a Microsoft Foundry resource @@ -112,48 +77,48 @@ For step-by-step instructions on creating an Microsoft Foundry resource and depl Provide the required details to connect your Microsoft Foundry resource and validate the connection. 1. Enter the **Project endpoint** (for example: `https://your-foundry.azure.com`) and **API key**.-1. Select **Validate** to verify the connection.-1. Select **Save** to finish onboarding.+1. Choose an authentication method: **Keyless** (recommended) or API key. For details, see [Authentication methods](mdash-foundry-integration.md#authentication-methods). -> [!NOTE]-> You must successfully validate the resource before you can select **Save**.+1. Select Validate to verify the connection. -> [!NOTE]-> You can create the GitHub connector either before or after Codename MDASH onboarding. For more information, see [Create a GitHub connector](create-github-connector.md).+1. Select **Save** to finish onboarding.++Note: You must successfully validate the resource before you can select Save. ## Step 4: Set up AI scanning ### Remote scan (recommended)+> [!NOTE]+> You can create the GitHub or Azure DevOps connector either before or after codename MDASH onboarding. -Create a GitHub connector to connect your GitHub organization and trigger on-demand scans through the Defender portal without installing anything locally.+Create a GitHub or Azure DevOps connector to connect your SCM organization and trigger on-demand scans through the Defender portal without installing anything locally. -To create a GitHub connector, you need access to the Microsoft Defender portal with permission to manage connectors, and you must have either the **Global Administrator** or **Security Administrator** role in Microsoft Entra ID. You must also have the **Organization Owner** role in the GitHub organization that you want to connect.+To create an SCM connector, you need access to the Microsoft Defender portal with permission to manage connectors, and you must have either the **Global Administrator** or **Security Administrator** role in Microsoft Entra ID. You must also have the **Organization Owner** role in the GitHub organization or **Project Collection Administrator** role in the Azure DevOps organization that you want to connect. -1. [Create a GitHub connector](create-github-connector.md) to connect your GitHub organization.+1. [Create a GitHub connector](create-github-connector.md) to connect your GitHub organization or [Create an Azure DevOps connector](create-azure-devops-connector.md) to connect your Azure DevOps organization. 1. [Trigger an on-demand agentic scan](trigger-on-demand-scan.md) for any onboarded repository. ### Defender CLI To onboard agentic code security with Defender CLI, you need the **Global Administrator** or **Security Administrator** role in Microsoft Entra ID. -For step-by-step instructions, see [Defender CLI setup](defender-cli-authentication.md) and [Install and run Defender CLI](defender-cli.md).--> [!NOTE]-> You can select **Save** before finishing this step and complete it later. However, scans can't run successfully until you complete this step.+1. [Defender CLI setup](defender-cli-authentication.md)+1. [Install and run Defender CLI](defender-cli.md). -## Step 5: Review recommendations+## Step 5: Review security findings -After scans run, view findings in the Microsoft Defender portal.+After scans run, view security findings in the [Microsoft Defender portal](https://security.microsoft.com). For details, see [Codename MDASH - Agentic code scanner initiative](mdash-initiative.md). - ## Related content - [Agentic code security overview](ai-code-security-overview.md) - [Connect Microsoft Foundry](mdash-foundry-integration.md) - [Create a GitHub connector](create-github-connector.md)+- [Create an Azure DevOps connector](create-azure-devops-connector.md) - [Trigger an on-demand agentic scan](trigger-on-demand-scan.md) - [Defender CLI setup](defender-cli-authentication.md) - [Install and run Defender CLI](defender-cli.md) - [Codename MDASH - Agentic code scanner initiative](mdash-initiative.md)+ 