azure-aml-datastore-cert-contains-secret
match (record)
{
"field": "properties.credentials.credentialsType",
"resource_type": "Microsoft.MachineLearningServices/workspaces/datastores",
"value": "Certificate"
}
emit
| source type | Data |
|---|---|
| target type | Secret |
| source | <AML datastore> |
| target | <certificate credential (Certificate)> |
Narrative
AML datastore {datastore.name} stores a certificate credential, retrievable via datastores/listsecrets/action.
Raw rule rules/explicit/azure-machinelearning.yaml
id: azure-aml-datastore-cert-contains-secret
emits: ContainsSecret
applies_to:
- azure
match_record:
resource_type: Microsoft.MachineLearningServices/workspaces/datastores
field: properties.credentials.credentialsType
value: Certificate
emit:
source_type: Data
target_type: Secret
source: <AML datastore>
target: <certificate credential (Certificate)>
api_source: GET /...workspaces/{ws}/datastores/{name}
evidence_field: properties.credentials.credentialsType == Certificate
narrative: AML datastore {datastore.name} stores a certificate credential, retrievable via datastores/listsecrets/action.