| name | cis-azure-database-4.3 |
| description | Ensure that Data Factory is using Azure Key Vault to store Credentials and Secrets |
| category | cis-azure-database |
| version | 2.0.0 |
| author | cyberstrike-official |
| tags | ["cis","azure","data-factory","adf"] |
| cis_id | 4.3 |
| cis_benchmark | CIS Microsoft Azure Database Services Benchmark v2.0.0 |
| tech_stack | ["azure"] |
| cwe_ids | [] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
4.3 Ensure that Data Factory is using Azure Key Vault to store Credentials and Secrets (Manual)
Profile Applicability
Description
Azure Key Vault is a way to securely store secrets and keys, and create role based access control permissions to services and users to access them.
Rationale
Use of Azure Key Vault is greatly recommended over less secure options like hard coding credentials into code.
Impact
This will create technical overhead as your organization will need to manage the lifecycle, expiration, and rotation of secrets and keys to fit your security baseline.
Audit
Audit from Azure Portal
- From
Data Factories select a factory to audit.
- Under the
Overview selection scroll down in the right pane and select Launch studio under Azure Data Factory Studio.
- In the left column select the briefcase and wrench for
Manage.
- In the left column select
Linked Services under Connections.
- Browse the linked services to determine if there is a connection to an Azure key vault. It has a circle icon with a key in it.
Audit From Azure Policy
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the associated Policy definition in Azure.
If referencing a printed copy, you can search Policy IDs from this URL:
https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
- Policy ID:
127ef6d7-242f-43b3-9eef-947faf1725d0 - Name: 'Azure Data Factory linked services should use Key Vault for storing secrets'
Expected Result
A linked service connection to an Azure Key Vault should be present under Manage > Linked Services > Connections in Azure Data Factory Studio.
Remediation
Remediate from Azure Portal
Retrieve Managed Identity Object ID
- From
Azure Data Factories select a factory to link to an Azure Key Vault.
- In the left column, expand
> Settings and select Properties.
- Select
Managed Identity Object ID and save this code for later.
Set Permissions for Key Vault