Skip to content

Microsoft Azure

Microsoft Azure is a public cloud; one connector covers the subscriptions of one Microsoft Entra tenant that an app registration may read.

  • What DRACO uses: Subscription configuration for posture scans and the Azure Activity log.
  • What for: Compliance and attack paths, detections on Activity log events, IP blocks in network security groups and WAF policies, Azure Firewall IP Group blocklists.

Add it in Connectors > Add connector: pick Microsoft Azure, then choose what DRACO collects and what it may change. Add more later with Add a part on its connector page. See Connectors for how connectors, sign-in and tags work.

Parts

Part What DRACO uses Access Permissions
Posture Azure read Microsoft Graph application permissions AuditLog.Read.All, Directory.Read.All and Policy.Read.All with admin consent.
Reader on every subscription to scan (and the read-only custom DracoRole for some checks).
Logs Azure Activity Log read Reader on every subscription to read (includes Microsoft.Insights/eventtypes/values/read).
Response Block IP (Azure network security group), Block IP (Azure WAF custom rule) write Network Contributor on the resource group of the network security group or WAF policy
Enforcement Azure IP Group write Microsoft.Network/ipGroups/read and /write on the resource group (Network Contributor)

Posture

DRACO scans an Azure subscription through a service principal with read-only roles.

Connect the provider in DRACO

Note

Government Cloud Support

Government cloud subscriptions (Azure Government) are not supported.

Prerequisites

Before setting up Azure in DRACO, you need to create a Service Principal with proper permissions.

For detailed instructions on how to create the Service Principal and configure permissions, see Authentication > Service Principal.


Step 1: Get the Subscription ID

  1. Go to the Azure Portal and search for Subscriptions
  2. Locate and copy your Subscription ID

    Search Subscription Subscriptions Page


Step 2: Access DRACO

  1. Sign in to DRACO, open Connectors, click Add connector and pick Microsoft Azure: the wizard opens at Link a Provider.
  2. Add the Subscription ID and an optional alias (the connector's name), then click Next.

Step 3: Add Credentials to DRACO

For Azure, DRACO uses a service principal application to authenticate. For more information about the process of creating and adding permissions to a service principal refer to this section. When you finish creating and adding the Entra and Subscription scope permissions to the service principal, enter the Tenant ID, Client ID and Client Secret of the service principal application.

  1. Go to your App Registration overview and copy the Client ID and Tenant ID

    App Overview

  2. Go to DRACO and paste:

    • Client ID
    • Tenant ID
    • Client Secret from earlier
  3. Click Authenticate, then Check connection

  4. When the connection works, launch the first scan (Run now or On a schedule)

  5. After Launch Scan, the wizard goes on with Collectors (tick Logs for the Activity log) and Responders (tick Response for the IP blocks, Enforcement for the Azure Firewall IP Group) on the same connector. Tick nothing more to keep scans only; anything else can be added later with Add a part on the connector page.

Every authentication option, with the exact roles and permissions: Azure authentication.

Logs

The Azure Activity Log data source reads the control-plane operations of the subscription (and of extra subscriptions you list) with the sign-in of the posture part.

  1. The provider's app registration needs Reader on every subscription to read (Subscriptions > Access control (IAM) > Add role assignment).
  2. List extra subscriptions, pick the provider and test.

Response

Runs response actions in the subscription from incidents and workflows:

Action What it does Undo
Block IP (Azure network security group) Adds the IP address or range to the deny rule draco-block-ip of a network security group (inbound: traffic from it, or outbound: traffic to it). The rule is created once with the priority you set; give it a lower number than your allow rules. Removes the address, and the rule when it holds nothing else.
Block IP (Azure WAF custom rule) Adds the IP address or range to the custom block rule DracoBlockIp of a Front Door or Application Gateway WAF policy. The other rules of the policy are kept. Removes the address, and the rule when it holds nothing else.

Permissions: a second app registration, separate from the read-only app of posture and logs, with the role Network Contributor on each resource group that holds a network security group or WAF policy DRACO acts in.

  1. In Entra ID > App registrations register an app DRACO response (Single tenant only) and add a client secret.
  2. In the resource group open Access control (IAM) > Add role assignment, pick Network Contributor and assign it to DRACO response.
  3. In DRACO, at the Write access step, create an OAuth client credential with its client ID and secret; on the Settings step enter its directory (tenant) ID, the resource group and the name of the network security group or WAF policy.

Test reads the network security group or WAF policy and the app's permissions on the resource group, and names a missing permission; it changes nothing. Every change is made only if the rule did not change in the meantime (otherwise the action tries again).

Disabling an Entra ID user and revoking its sessions are actions of the Microsoft 365 connector.

More: Response actions.

Enforcement

Keeps blocklists of threat intel indicators up to date: Azure IP Group.

Setup: Push targets, Setting up the permissions.

If you turn on several parts

When you connect Azure once and tick several parts, the wizard shows one guide for all of them: what to check first, the access to create once, one list of permissions that names the part each one is for, the extra steps of each part, and one test that checks every part on its own. Turning a part on later shows only what it adds.

Posture and the activity log use the same app registration (Reader on the subscriptions). Response actions and the IP Group blocklist need a separate app registration with Network Contributor on the resource groups DRACO acts in, pasted once at the Write access step.

Any part can be skipped (Skip for now) and finished later: the connection is saved with what is done, and its page lists what is not set up yet with a Set up button that opens the wizard at that step.