You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: rules/cross-platform/credential_access_multi_could_secrets_via_api.toml
+3-16Lines changed: 3 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -114,22 +114,16 @@ FROM logs-azure.platformlogs-*, logs-azure.activitylogs-*, logs-aws.cloudtrail-*
114
114
(
115
115
/* AWS Secrets Manager */
116
116
(event.dataset == "aws.cloudtrail" AND event.provider == "secretsmanager.amazonaws.com" AND event.action == "GetSecretValue") OR
117
-
118
117
// Azure Key Vault (platform logs)
119
118
(event.dataset == "azure.platformlogs" AND event.action IN ("SecretGet", "KeyGet")) or
120
-
121
119
/* Azure Key Vault (activity logs) */
122
120
(event.dataset == "azure.activitylogs" AND azure.activitylogs.operation_name IN ("MICROSOFT.KEYVAULT/VAULTS/SECRETS/LIST", "MICROSOFT.KEYVAULT/VAULTS/SECRETS/GET")) OR
123
-
124
121
/* Azure Managed HSM secret */
125
122
(event.dataset == "azure.activitylogs" AND azure.activitylogs.operation_name LIKE "MICROSOFT.KEYVAULT/managedHSM/keys/*") OR
126
-
127
123
/* Google Secret Manager */
128
124
(event.dataset IN ("googlecloud.audit", "gcp.audit") AND
129
125
event.action IN ("google.cloud.secretmanager.v1.SecretManagerService.AccessSecretVersion", "google.cloud.secretmanager.v1.SecretManagerService.GetSecretRequest"))
130
-
131
126
) AND source.ip IS NOT NULL
132
-
133
127
// Unified user identity (raw)
134
128
| EVAL Esql_priv.user_id =
135
129
COALESCE(
@@ -138,52 +132,45 @@ FROM logs-azure.platformlogs-*, logs-azure.activitylogs-*, logs-aws.cloudtrail-*
138
132
azure.platformlogs.identity.claim.upn,
139
133
NULL
140
134
)
141
-
142
135
// Cloud vendor label based on dataset
143
136
| EVAL Esql.cloud_vendor = CASE(
144
137
event.dataset == "aws.cloudtrail", "aws",
145
138
event.dataset IN ("azure.platformlogs","azure.activitylogs"), "azure",
146
139
event.dataset IN ("googlecloud.audit","gcp.audit"), "gcp",
147
140
"unknown"
148
141
)
149
-
150
142
// Vendor+tenant label, e.g. aws:123456789012, azure:tenant, gcp:project
0 commit comments