Credential Access (TA0006)(external, opens in a new tab or window)
Initial Access (TA0001)(external, opens in a new tab or window)
text code block:sequence with maxspan=30m [authentication where event.dataset == "azure.signinlogs" and azure.signinlogs.category == "ServicePrincipalSignInLogs" and azure.signinlogs.properties.status.error_code == 0 ] by azure.signinlogs.properties.app_id [any where event.dataset == "azure.activitylogs" and azure.activitylogs.operation_name : "MICROSOFT.KUBERNETES/CONNECTEDCLUSTERS/LISTCLUSTERUSERCREDENTIAL/ACTION" and event.outcome : ("Success", "success") ] by azure.activitylogs.identity.claims.appid
Install detection rules in Elastic Security
Detect Azure Service Principal Sign-In Followed by Arc Cluster Credential Access in the Elastic Security detection engine by installing this rule into your Elastic Stack.
To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(external, opens in a new tab or window).