How it works
Azure Lighthouse is the Azure Resource Manager feature that lets one Microsoft Entra tenant manage resources in another. Managed service providers use it to work in customer subscriptions without holding accounts there. It is separate from directory collaboration: no guest user is created, and Microsoft Graph and directory roles are not involved.
Onboarding creates two resources in the customer tenant:
- A registration definition at subscription level. It names the managing tenant (
managedByTenantId), an offer name, and a list of authorizations. Each authorization maps aprincipalId, which is a user, group or service principal in the managing tenant, to a built-in Azure role (roleDefinitionId). - A registration assignment at the delegated scope, a subscription or a resource group, which puts the definition into effect.
From then on, the named principals hold those roles on the delegated scope. They sign in to their own tenant and work on the customer's resources from there, and they appear as the caller in the customer subscription's Activity Log.
The onboarding is an ordinary subscription-level template deployment. It must be run by an account in the customer tenant that has Microsoft.Authorization/roleAssignments/write, delete and read on the subscription, such as Owner. That is the abuse: an attacker who holds Owner on a subscription, even briefly, can delegate it to a tenant they control. Compared with a normal Azure role assignment to a planted account, the delegation has three advantages for the attacker:
- Nothing to reset. No user, guest, service principal or credential for the attacker exists in the victim tenant.
- It is hard to see. Microsoft documents that customers viewing role assignments for the delegated scope cannot see the assignments of users from the service provider tenant. The access is a kind of shadow admin right, visible only to someone who looks at the Service providers page or the Lighthouse resources.
- It is reusable. The attacker can add or remove people in the group named in the authorization inside their own tenant, with no further change in the victim.
A second variant needs no change at all. An attacker who compromises a real service provider tenant inherits every delegation that provider holds, across all its customers. This is the trusted relationship case.
The roles have limits. Lighthouse does not support Owner, roles with DataActions, or any role that carries Microsoft.Authorization/roleAssignments/write. User Access Administrator is supported only for assigning the roles listed in delegatedRoleDefinitionIds to managed identities in the customer tenant. Contributor is allowed, and it is enough for most follow-on attacks.
Prerequisites
- For a new delegation: an account in the customer tenant with Owner on the target subscription, or another role with role assignment write, delete and read permissions. For a resource group delegation the same permissions on the containing subscription.
- A managing tenant the attacker controls, with a user, group or service principal to receive the role. A group must be a security group.
- The managing tenant ID must differ from the tenant of the subscription.
- For the inherited variant: control of an identity in a service provider tenant that is named, directly or through a group, in an existing delegation.
Attack steps
For authorized security testing and lab use only. Run these steps against systems you own or have written permission to assess.
1. Find existing delegations
Before adding one, check what is already delegated and to whom. The same commands are the defender's audit:
# In the customer subscription
az account set -s 00000000-0000-0000-0000-000000000000
az managedservices definition list
az managedservices assignment list
Get-AzManagedServicesDefinition
Get-AzManagedServicesAssignment
2. Prepare the template and parameters
Microsoft publishes the onboarding templates in the Azure Lighthouse samples repository (subscription.json for a whole subscription, rg.json for a resource group). The parameter file names the managing tenant and the authorizations. This one gives a group in the managing tenant the Contributor role (b24988ac-6180-42a0-ab88-20f7382dd24c):
{
"$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"mspOfferName": { "value": "Platform Operations" },
"mspOfferDescription": { "value": "Platform Operations" },
"managedByTenantId": { "value": "00000000-0000-0000-0000-000000000000" },
"authorizations": {
"value": [
{
"principalId": "00000000-0000-0000-0000-000000000000",
"principalIdDisplayName": "Operations",
"roleDefinitionId": "b24988ac-6180-42a0-ab88-20f7382dd24c"
}
]
}
}
}
mspOfferName and mspOfferDescription are what the customer sees on the Service providers page, so an attacker picks a name that reads like an internal or vendor offer.
3. Deploy it in the customer subscription
Signed in as the compromised Owner:
az deployment sub create --name platform-ops \
--location westeurope \
--template-file subscription.json \
--parameters subscription.parameters.json \
--verbose
New-AzSubscriptionDeployment -Name platform-ops `
-Location westeurope `
-TemplateFile subscription.json `
-TemplateParameterFile subscription.parameters.json `
-Verbose
The deployment registers the Microsoft.ManagedServices resource provider for the subscription if it was not registered, and creates the registration definition and assignment. Each subscription needs its own deployment.
4. Use the delegated access from the managing tenant
The principals named in the authorization now see the subscription from their own tenant. It can take up to 15 minutes for the portal to reflect the change; a new Azure Resource Manager token shows it sooner.
# Signed in to the managing tenant
az login
az account list --output table
az account set -s 00000000-0000-0000-0000-000000000000
az resource list --output table
With Contributor, the usual next steps are reading secrets and running code: Key Vault and storage keys, VM run commands, and the managed identities attached to compute, as covered in Azure managed identity abuse.
Impact
The attacker's tenant holds standing Azure roles on the delegated scope. With Contributor on a subscription that means creating, changing and deleting resources, running commands on virtual machines, listing storage and service keys, and deploying workloads that carry the subscription's managed identities. The access does not expire, does not depend on any credential in the victim tenant, and survives the removal of the account that created it.
Lighthouse cannot grant Owner or role assignment rights, so the delegation alone cannot hand out further Azure roles to arbitrary principals. It does not need to: code execution on resources with privileged managed identities is the normal route to more.
In the inherited variant the blast radius is the service provider's whole customer base. Every subscription delegated to the compromised group or service principal is reachable in one sign-in.
OPSEC and artifacts
- A believable offer name. The delegation appears on the customer's Service providers page with the offer name and description the attacker chose. It is listed there for anyone with Reader on the subscription.
- Hidden from the IAM view. The delegated principals do not show in the customer's role assignment list, so a routine access review of the subscription misses them. The registration definition and registration assignment are still resources in the subscription and are returned by the list commands in step 1.
- One deployment, logged. The deployment writes
Microsoft.ManagedServices/registrationDefinitions/writeand Microsoft.ManagedServices/registrationAssignments/write to the subscription's Activity Log, with the Owner account as caller, along with the deployment operation itself. - Resource group scope. Delegating one resource group instead of the subscription is narrower and less visible, and still writes the same operations.
- Later activity looks like administration. Actions by the delegated principals are recorded in the customer's Activity Log with the foreign principal as caller. Nothing marks them as hostile; only the caller's unfamiliar identity does.
- Removal is not instant revocation. Deleting the assignment ends future authorization. Tokens issued before the removal remain valid until they expire.
- In the managing tenant, delegations are logged at tenant level as
Microsoft.Resources/tenants/register/actionandunregister/action. A real service provider can watch that log for delegations it did not arrange.
Detection
- Creation of a delegation. The Azure Lighthouse delegation created rules watch for the registration definition and registration assignment writes. In most organizations these are rare enough to review one by one.
- Unknown managing tenant. Compare
managedByTenantIdof every registration definition with the list of service providers the organization has contracted. - Role breadth. A delegation that carries Contributor or User Access Administrator deserves the same scrutiny as a privileged Azure role assignment.
- Callers from outside the tenant. Management operations in the subscription whose caller does not resolve to an identity in the home tenant.
// Lighthouse delegations created, changed or removed
AzureActivity
| where OperationNameValue has "Microsoft.ManagedServices/registration"
| project TimeGenerated, OperationNameValue, ActivityStatusValue, Caller,
CallerIpAddress, SubscriptionId, ResourceGroup, _ResourceId
| order by TimeGenerated asc
The Activity Log is a subscription-level log, so the query only sees subscriptions whose logs are exported to the workspace. For subscriptions that are not, list the definitions and assignments directly. Legitimate onboarding by a contracted provider produces the same events, so the decision rests on the managing tenant and the roles, not on the operation.
Mitigation
- Restrict which tenants can be managing tenants. Azure Policy has a built-in definition that denies delegations to any managing tenant outside a list you specify. Assign it at a management group that covers all subscriptions. A second built-in definition audits every delegated scope so unexpected ones show as noncompliant.
- Shrink the set of subscription Owners. Only an account with role assignment permissions on the subscription can create a delegation. Make Owner eligible and time-bound, and apply least privilege to automation that holds it.
- Inventory delegations on a schedule. Run the definition and assignment list commands across all subscriptions and reconcile each managing tenant, offer and role with a contract and an owner. Do not rely on the role-based access control view of the subscription, which does not show these principals.
- Demand least privilege from real providers. Prefer narrow roles and resource group scope over subscription-wide Contributor, and ask providers to use eligible authorizations with approval for elevated roles.
- Alert on the write operations and export the Activity Log of every subscription to a central workspace, with retention long enough to investigate.
- When removing a rogue delegation, delete the registration assignment and definition, then review what the delegated principals did during the window and rotate the keys and secrets they could read.
Detection rules for this attack
Log events to collect
FAQ
Does an Azure Lighthouse delegation show up under Access control (IAM)?
No. Microsoft documents that when a customer views role assignments for the delegated scope, in the portal or through the APIs, the assignments of users from the service provider tenant are not shown. The delegation is visible on the Service providers page, as registration definition and registration assignment resources, and in the Activity Log entry that created it.
Can a Lighthouse delegation grant the Owner role?
No. Azure Lighthouse does not support Owner, roles with DataActions, or roles that include Microsoft.Authorization/roleAssignments/write. User Access Administrator is supported only to assign a listed set of roles to managed identities in the customer tenant. Contributor and most other built-in roles are allowed, and Contributor on a subscription is enough to run code on its virtual machines and read most of its secrets.
How do you remove a rogue Lighthouse delegation?
A user in the customer tenant with Owner (or equivalent role assignment permissions) on the subscription deletes the offer on the Service providers page or removes the registration assignment with Remove-AzManagedServicesAssignment or az managedservices assignment delete. Removal stops future authorization. Tokens issued before the removal stay valid until they expire.
Do the customer's Conditional Access and MFA policies apply to delegated users?
The delegated users, groups and service principals belong to the managing tenant and sign in there, without signing in to the customer tenant. Their authentication strength is whatever the managing tenant enforces, which for an attacker-controlled tenant is nothing. The customer controls only whether the delegation exists and which roles it carries.
References
- Account Manipulation: Additional Cloud Roles, T1098.003 (MITRE ATT&CK)
- Trusted Relationship, T1199 (MITRE ATT&CK)
- Azure Lighthouse architecture: registration definition and registration assignment (Microsoft Learn)
- Onboard a customer to Azure Lighthouse (Microsoft Learn)
- Tenants, users, and roles in Azure Lighthouse scenarios (Microsoft Learn)
- View and manage service providers (Microsoft Learn)
- Remove access to a delegation (Microsoft Learn)
- Monitor delegation changes in your managing tenant (Microsoft Learn)
Techniques, tactics and threat groups: MITRE ATT&CK® Enterprise v20.1. © The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation. Last updated 2026-11-29.