Customer Azure RBAC
Use this runbook to give ION least-privilege access to specific Azure resources
in a customer tenant through the hollow application
azsp-ontinue-ion-access-azure-rbac-prd-01
(ADR-0011).
The application declares zero API permissions. Consent only creates its
enterprise application (service principal) in the customer tenant; every
capability comes from an Azure role assignment that the customer makes on a
specific resource. ION recommends roles; the customer assigns them.
The workflow view is in Customer Azure RBAC workflow.
Prerequisites
- An active customer onboarding record with the verified customer tenant (Customer onboarding).
- The hollow application exists, has zero API permissions, and has a FIC for each calling workload’s own UAMI (Workload identity federation).
- The capabilities the customer wants to enable and the target resources for each.
- Customer administrators with rights to create the table and DCR and to assign roles at the target scopes (
Owner,User Access Administrator, orRole Based Access Control Administratoron those scopes). - Azure PowerShell (
Az.Accounts,Az.Resources,Az.Monitor) for the customer administrator.
Access model
The service principal’s existence is never treated as a capability. ION enables a capability for a resource only after it discovers a matching role assignment.
Recommended roles
| Capability | Customer-created prerequisite | Recommended scope | Recommended role |
|---|---|---|---|
| Dark-web monitoring incidents: custom Log Analytics ingestion (Logs Ingestion API) | Custom table, Data Collection Endpoint, and DCR created by the Ontinue deploy.ps1 script | The DCR | Monitoring Metrics Publisher, or a custom role with the Microsoft.Insights/Telemetry/Write data action |
| Response: add an IP address to an IP group | Existing IP group | The IP group | Custom role with Microsoft.Network/ipGroups/read and Microsoft.Network/ipGroups/write; Network Contributor only as a fallback the customer may choose |
| SOAR integration: send response instructions (ADR-0032) | Service Bus namespace and outgoing queue | The outgoing queue | Azure Service Bus Data Sender |
| SOAR integration: receive outcomes | Incoming queue in the same namespace | The incoming queue | Azure Service Bus Data Receiver |
ION is never granted table, DCR, role-assignment, or resource-creation rights. The full SOAR queue setup, including the customer SOAR identity’s opposite-direction roles, is in SOAR Integration customer onboarding.
Ontinue steps
Confirm the hollow application is ready
Owner: Platform identity
Confirm the application is multi-tenant, declares no requiredResourceAccess,
has no password or key credentials, and lists a FIC for every calling workload
UAMI. Check the FIC count against the 20-credential limit.
$app = Get-MgApplication -Filter "displayName eq 'azsp-ontinue-ion-access-azure-rbac-prd-01'" `
-Property "id,appId,signInAudience,requiredResourceAccess,passwordCredentials,keyCredentials"
$app.SignInAudience # AzureADMultipleOrgs
$app.RequiredResourceAccess.Count # 0
$app.PasswordCredentials.Count # 0
(Get-MgApplicationFederatedIdentityCredential -ApplicationId $app.Id).CountPrepare the onboarding package
Owner: Customer onboarding owner
Deliver to the customer through the approved onboarding channel:
- the
organizationsadmin-consent URL for the hollow application, carrying the onboarding record’sstate; - the requested capabilities, target resource types, and recommended scope and role for each;
- the
deploy.ps1script for dark-web-monitoring log ingestion; - the custom role definitions below; and
- this runbook’s customer steps and offboarding steps.
Do not include client or object IDs in public documentation; they are delivered in the package for the specific onboarding.
Customer steps
Consent to the hollow application
Owner: Customer identity admin
Open the admin-consent URL from the package:
https://login.microsoftonline.com/organizations/adminconsent?client_id={appClientId}&redirect_uri={registeredRedirect}&state={onboardingState}Because the application requests no API permissions, a Cloud Application Administrator or Application Administrator can consent. Consent creates the enterprise application and grants nothing else.
Verify the returned tenant and state
Owner: Customer onboarding owner
ION verifies that the tenant and state returned to the registered redirect
match the onboarding record. A mismatch, a missing state, or a tenant not on
the record stops onboarding; nothing is activated.
Create the custom table and DCR with deploy.ps1
Owner: Customer Azure admin
For dark-web-monitoring incidents only. Run the Ontinue-provided deploy.ps1
against the Log Analytics workspace that Ontinue monitors. It creates the Data
Collection Endpoint, the custom table (IonDigitalRiskProtection_CL), and the
DCR that routes the stream to that table, assigns Monitoring Metrics Publisher
at DCR scope to the hollow application’s service principal, and outputs the DCE
ingestion endpoint and DCR immutable ID for the customer to return to their
Cyber Advisor.
The customer owns these resources. ION receives only the endpoint and immutable ID it needs to call the Logs Ingestion API.
Create the custom roles when used
Owner: Customer Azure admin
Create least-privilege custom roles from the definitions in the package. Set
AssignableScopes to the customer’s own subscription or resource group.
IP group role:
{
"Name": "Ontinue ION IP Group Writer",
"IsCustom": true,
"Description": "Allows Ontinue ION to read and update the assigned IP group.",
"Actions": [
"Microsoft.Network/ipGroups/read",
"Microsoft.Network/ipGroups/write"
],
"NotActions": [],
"DataActions": [],
"NotDataActions": [],
"AssignableScopes": [
"/subscriptions/<subscriptionId>/resourceGroups/<resourceGroup>"
]
}Log ingestion role (alternative to Monitoring Metrics Publisher):
{
"Name": "Ontinue ION Log Ingestion",
"IsCustom": true,
"Description": "Allows Ontinue ION to send data through the assigned data collection rule.",
"Actions": [],
"NotActions": [],
"DataActions": [
"Microsoft.Insights/Telemetry/Write"
],
"NotDataActions": [],
"AssignableScopes": [
"/subscriptions/<subscriptionId>/resourceGroups/<resourceGroup>"
]
}New-AzRoleDefinition -InputFile ./ontinue-ion-ipgroup-writer.json
New-AzRoleDefinition -InputFile ./ontinue-ion-log-ingestion.jsonAssign roles to the enterprise application at resource scope
Owner: Customer Azure admin
Assign each role only at the recommended resource scope, never at subscription or management-group scope.
Connect-AzAccount -Tenant <customerTenantId>
$sp = Get-AzADServicePrincipal -DisplayName "azsp-ontinue-ion-access-azure-rbac-prd-01"
# Dark-web monitoring log ingestion: the DCR (deploy.ps1 makes this assignment)
New-AzRoleAssignment -ObjectId $sp.Id `
-RoleDefinitionName "Monitoring Metrics Publisher" `
-Scope "/subscriptions/<sub>/resourceGroups/<rg>/providers/Microsoft.Insights/dataCollectionRules/<dcr>"
# Response: the IP group
New-AzRoleAssignment -ObjectId $sp.Id `
-RoleDefinitionName "Ontinue ION IP Group Writer" `
-Scope "/subscriptions/<sub>/resourceGroups/<rg>/providers/Microsoft.Network/ipGroups/<ipGroup>"
# SOAR integration: send to the outgoing queue only
New-AzRoleAssignment -ObjectId $sp.Id `
-RoleDefinitionName "Azure Service Bus Data Sender" `
-Scope "/subscriptions/<sub>/resourceGroups/<rg>/providers/Microsoft.ServiceBus/namespaces/<ns>/queues/<outgoingQueue>"
# SOAR integration: receive from the incoming queue only
New-AzRoleAssignment -ObjectId $sp.Id `
-RoleDefinitionName "Azure Service Bus Data Receiver" `
-Scope "/subscriptions/<sub>/resourceGroups/<rg>/providers/Microsoft.ServiceBus/namespaces/<ns>/queues/<incomingQueue>"The customer may assign fewer capabilities, or none. They may also change or remove assignments at any time without coordinating with ION.
ION capability discovery
Discover assigned capabilities
Owner: Service team
ION records, per customer, which resources are authorized for which capability
and degrades gracefully when a capability is not assigned. The calling
workload acquires an ARM token for the customer tenant through its own UAMI
(Workload identity federation) and reads
its own effective permissions at each resource scope recorded in the onboarding
package. This needs no additional role: the recommended roles do not include
Microsoft.Authorization/roleAssignments/read, and ION does not ask for it.
GET https://management.azure.com/{scope}/providers/Microsoft.Authorization/permissions?api-version=2022-04-01
Authorization: Bearer {customer-tenant ARM token}Compare the returned actions and dataActions, minus any notActions and
notDataActions, with the capability’s required set. Take the scope only from
the onboarding record, never from caller input.
Enable a capability only when the required actions are present at the
recorded scope. Re-run discovery on a schedule and after any 403 from the
target, and disable the capability for that resource when it is no longer
present.
Record the activation
Owner: Customer onboarding owner
Record the consenting administrator, consent time, verified tenant, resources, assigned roles, discovered capabilities, and the next review date on the onboarding record.
Positive validation
- The enterprise application exists in the verified customer tenant with no API permissions granted.
- The workload acquires a customer-tenant ARM token through its own UAMI with no secret.
- Dark-web monitoring: a test record posted to the DCE with the DCR immutable ID appears in the custom table.
- IP group: ION reads the IP group and adds and then removes a documented test address, or uses the customer-agreed test group.
- SOAR integration: a test instruction sent to the outgoing queue is received by the customer’s SOAR consumer, and a correlated test outcome placed on the incoming queue is received by ION.
- Discovery reports exactly the capabilities the customer assigned.
Negative validation
Verify denial for each applicable case:
- the service principal present with no role assignments: discovery reports no capability, and calls return
403; - a write to a second DCR, IP group, or queue that was not assigned;
- a delete of the IP group, or a write to another resource in the same resource group;
- a Service Bus send to the incoming queue or any other queue, or a receive from the outgoing queue;
- an attempt to create a role assignment, table, or DCR;
- a workload whose UAMI is not a FIC on the hollow application;
- consent returned with a
tenantorstatethat does not match the onboarding record; and - a token for a different customer tenant used against this customer’s resources.
Offboarding and revocation
Disable the capabilities in ION
Owner: Customer onboarding owner
Disable the onboarding record’s Azure RBAC capabilities first so ION stops scheduling calls, and stop affected jobs.
Remove role assignments and Ontinue-template resources
Owner: Customer Azure admin
Remove every role assignment to the enterprise application:
Get-AzRoleAssignment -ObjectId $sp.Id | Remove-AzRoleAssignmentFor dark-web monitoring, the Ontinue offboarding.ps1 script removes the DCR
and Data Collection Endpoint created by deploy.ps1, and optionally the custom
table (which deletes its historical data).
Delete the enterprise application
Owner: Customer identity admin
Remove-AzADServicePrincipal -ObjectId $sp.IdDeleting the enterprise application revokes the hollow path for every ION workload at once, independent of FICs on the Ontinue side.
Prove access is gone and close the record
Owner: Service team
Acquire a token for the customer tenant through the hollow application and
confirm it fails, or that every previously allowed operation returns 403.
Mark the onboarding record offboarded with the customer’s confirmation and the
negative test results.
Ownership and evidence
Platform identity owns the hollow application and its FICs. The customer owns consent, the table and DCR, custom roles, and role assignments. Service teams own discovery and graceful degradation. The customer onboarding owner owns the onboarding record. Retain the consent verification (tenant and state match), the customer’s role-assignment confirmation, discovery results, positive and negative tests, and offboarding evidence. Never retain tokens.