Azure VM Boot Diagnostics Retrieved
Description
Identifies retrieval of Azure VM boot diagnostics data ("MICROSOFT.COMPUTE/VIRTUALMACHINES/RETRIEVEBOOTDIAGNOSTICSDATA/ACTION") by an identity that has not performed this operation recently. Boot diagnostics expose the VM serial console log and a console screenshot, which frequently contain plaintext boot-time output such as credentials, tokens, cloud-init/agent secrets, and command history. An adversary with VM read/contributor rights can retrieve this data over the control plane, without logging into the guest or touching the network, to harvest credentials.
Query · kuery
data_stream.dataset:azure.activitylogs and
event.action:"MICROSOFT.COMPUTE/VIRTUALMACHINES/RETRIEVEBOOTDIAGNOSTICSDATA/ACTION" and
event.outcome:(success or Success)
Investigation fields
Pivot points the source recommends for triage.
@timestampevent.outcomeazure.activitylogs.operation_nameazure.activitylogs.identity.authorization.evidence.principal_idazure.activitylogs.identity.authorization.evidence.principal_typeazure.activitylogs.identity.claims.appidazure.resource.nameazure.resource.idsource.ipsource.as.numbersource.as.organization.namesource.geo.country_nameazure.subscription_idazure.activitylogs.tenant_id
Known false positives
- Support engineers, infrastructure-as-code, and VM health automation may legitimately retrieve boot diagnostics during troubleshooting. The first occurrence per principal will alert; baseline expected support users, service principals, and managed identities and exclude them if the activity is verified as authorized.
Analyst notes
Investigating Azure VM Boot Diagnostics Retrieved
Retrieving boot diagnostics (retrieveBootDiagnosticsData/action) returns SAS URIs to the VM serial console log and a
console screenshot. The serial log often contains plaintext boot output: cloud-init/agent activity, command history, and
sometimes credentials or tokens. The action is a control-plane read requiring only VM read/contributor rights, leaves no
guest footprint, and bypasses NSG/JIT.
Triage checklist
- Identify the acting principal via
azure.activitylogs.identity.authorization.evidence.principal_idand...principal_type(User vs ServicePrincipal) andazure.activitylogs.identity.claims.appid. Service principal or managed identity retrieval is more suspicious than a known support user. - Review the source:
source.ip,source.as.number,source.as.organization.name,source.geo.country_name. Retrieval from cloud hosting, VPS, or anonymizing networks is more suspicious than known corporate egress. - Inspect
azure.resource.id/azure.resource.nameto identify the target VM. Was the same principal recently granted access to it, or is this their first interaction? - Did the same principal recently perform reconnaissance, role assignments, Run Command, or extension operations on the VM or subscription?
Possible investigation steps
- Review the principal's Entra ID sign-in logs and RBAC role assignments on the subscription, resource group, and VM.
- Retrieve the boot diagnostics serial log and screenshot from the VM and assess whether they exposed credentials or other secrets that now require rotation.
- Pivot on the VM and any credentials observed in the serial log for follow-on access, lateral movement, or persistence.
Response and remediation
- If unauthorized, rotate any credentials/tokens exposed in the serial log, review RBAC on the affected scope, and revoke the principal's access if compromised.
- Collect activity log artifacts per incident procedures.