> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/azure-key-vaults-diagnostics-logs-are-disabled.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# Azure Key vaults diagnostics logs are disabled

### Synopsis

| Field               | Value                                          |
| ------------------- | ---------------------------------------------- |
| Rule Type           | Detection                                      |
| Finding Type        | Azure Key vaults diagnostics logs are disabled |
| Finding ID          | 60000495                                       |
| Generates a Finding | This detection rule also generates a finding   |
| Severity            | Informational                                  |
| Category            | CONFIGURATION                                  |
| Cloud Providers     | AZURE                                          |
| Platform Module     | CSPM                                           |
| Asset Types         | AZURE\_KEY\_VAULT                              |
| ATT\&CK Tactic      | TA0112 (TA0112)                                |
| ATT\&CK Technique   | T1685.002 (T1685.002)                          |

### Description

Azure Key vaults with disabled diagnostic logs present a significant security risk, hindering the detection of malicious activities targeting sensitive data.

Azure Key vaults store cryptographic keys and secrets crucial for application security. Disabling diagnostic logs prevents monitoring of access attempts, modifications, and other key vault operations. This lack of visibility makes detecting and responding to unauthorized access or data breaches significantly more difficult, potentially leading to data exfiltration or service disruption.

The impact of this misconfiguration includes compromised secrets, unauthorized key access, and inability to track malicious activities. Enabling diagnostic logs provides crucial audit trails, enabling timely detection of suspicious behavior and facilitating incident response. This enhanced visibility strengthens the overall security posture of the key vault.

To mitigate this risk, ensure diagnostic logs are enabled for all Azure Key vaults. Configure log settings to capture detailed information about all operations, including successful and failed attempts. Regularly review these logs to identify and investigate any suspicious activity.

### Remediation

**Manual steps:**

Azure Key Vault - Manual remediation steps:

1. Log in to the Azure portal.
2. Navigate to 'Key vaults', and select the reported key vault from the list
3. Select 'Diagnostic settings' under 'Monitoring' section
4. Click on '+Add diagnostic setting'
5. Specify a 'Diagnostic settings name',
6. Under 'Category details' section, select the type of 'Log' that you want to enable
7. Under section 'Destination details',
   1. If you select 'Send to Log Analytics', select the 'Subscription' and 'Log Analytics workspace'
   2. If you set 'Archive to storage account', select the 'Subscription', 'Storage account' and set the 'Retention (days)'
   3. If you set 'Stream to an event hub', select the 'Subscription', 'Event hub namespace', 'Event hub name' and set the 'Event hub policy name'
8. Click on 'Save'


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/azure-key-vaults-diagnostics-logs-are-disabled.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
