azure-aml-connection-listsecrets
Retrieve workspace connection secrets (API keys for OpenAI, Cognitive Services, or custom REST endpoints) via connections/listsecrets.
match (effective permission)
{
"action": "Microsoft.MachineLearningServices/workspaces/connections/listsecrets/action",
"scope_type": "resource|resourceGroup|subscription"
}
emit
| source type | Identity |
|---|---|
| source | <principal> |
| target | <workspace connection secret (APIKey / ConnectionString)> |
| permissions | Microsoft.MachineLearningServices/workspaces/connections/listsecrets/action |
Narrative
{principal.name} can retrieve the API keys or connection strings of workspace connection {target.name} (connections/listsecrets/action), enabling access to the external service it connects to.
Raw rule rules/derived/azure/machinelearning.yaml
id: azure-aml-connection-listsecrets
emits: CanReadSecret
description: Retrieve workspace connection secrets (API keys for OpenAI, Cognitive Services, or custom
REST endpoints) via connections/listsecrets.
match_effective_permission:
action: Microsoft.MachineLearningServices/workspaces/connections/listsecrets/action
scope_type: resource|resourceGroup|subscription
emit:
source_type: Identity
source: <principal>
target: <workspace connection secret (APIKey / ConnectionString)>
permissions:
- Microsoft.MachineLearningServices/workspaces/connections/listsecrets/action
note: Workspace connections store API keys and connection strings for external services (AzureOpenAI,
CognitiveService, CustomKeys, etc.). Retrieving them via listsecrets yields usable credentials for
downstream services.
false_positive_note: Only emit when the workspace connection category implies a stored secret (AzureOpenAI,
CognitiveService, CustomKeys, AzureBlob with accountKey, etc.). Identity-credential connections (MI-backed)
contain no secret to retrieve.
narrative: '{principal.name} can retrieve the API keys or connection strings of workspace connection
{target.name} (connections/listsecrets/action), enabling access to the external service it connects
to.'