Azure Activity Logs: New CloudShell Created via Microsoft.Portal Consoles Write

Alerts on Azure portal activity indicating a Cloud Shell console was created.

FreeReviewedSigma · Medium · v5
Product
azure
Service
activitylogs
Author
Austin Songer (SigmaHQ), DRL 1.1
Published
2021-09-21
Updated
2026-07-31
title: "Azure Activity Logs: New CloudShell Created via Microsoft.Portal Consoles Write"
id: bf4b6781-9520-44b7-b99c-fd49639f132d
status: test
description: This rule flags Azure Activity Log events where the portal writes to create a CloudShell console using the Microsoft.Portal/Consoles/WRITE operation. Attackers may leverage CloudShell to run commands or scripts from an interactive environment under the Azure portal. The detection relies on Azure Activity Logs capturing the operationName for the console write request.
references:
  - https://learn.microsoft.com/en-us/azure/role-based-access-control/resource-provider-operations
  - https://github.com/SigmaHQ/sigma/blob/master/rules/cloud/azure/activity_logs/azure_new_cloudshell_created.yml
author: Austin Songer, Huntrule Team
date: 2021-09-21
modified: 2022-08-23
tags:
  - attack.execution
  - attack.t1059
logsource:
  product: azure
  service: activitylogs
detection:
  selection:
    operationName: MICROSOFT.PORTAL/CONSOLES/WRITE
  condition: selection
falsepositives:
  - A new cloudshell may be created by a system administrator.
level: medium
license: DRL-1.1
related:
  - id: 72af37e2-ec32-47dc-992b-bc288a2708cb
    type: derived