# Cis Azure Foundations 6.1.1.9

> Cis Azure Foundations 6.1.1.9 is an Agent Skill for devops & security published in the CyberStrikeus/CyberStrike repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Ensure Microsoft Entra diagnostic setting exists to send Microsoft Entra activity logs

- Skill name: `cis-azure-foundations-6.1.1.9`
- Category: [DevOps & Security](https://www.openparable.com/skill/devops-security/1)
- Source: https://github.com/CyberStrikeus/CyberStrike/blob/HEAD/.cyberstrike/skill/CIS_benchmarks/Cloud_Providers/Microsoft_Azure/CIS_Microsoft_Azure_Foundations_Benchmark_v5.0.0/cis-azure-foundations-6.1.1.9/SKILL.md
- Repository: CyberStrikeus/CyberStrike (1,211 GitHub stars when collected)

## SKILL.md

# Ensure that a Microsoft Entra diagnostic setting exists to send Microsoft Entra activity logs to an appropriate destination

## Description

Ensure that a Microsoft Entra diagnostic setting is configured to send Microsoft Entra activity logs to a suitable destination, such as a Log Analytics workspace, storage account, or event hub. This enables centralized monitoring and analysis of Microsoft Entra activity logs.

## Rationale

Microsoft Entra activity logs enables you to assess many aspects of your Microsoft Entra tenant. Configuring diagnostic settings in Microsoft Entra ensures these logs are collected and sent to an appropriate destination for monitoring, analysis, and retention.

## Impact

To export sign-in data, your organization needs an Azure AD P1 or P2 license. The amount of data logged and, thus, the cost incurred can vary significantly depending on the tenant size.

## Audit Procedure

### Using Azure Portal

1. Go to `Microsoft Entra ID`.
2. Under `Monitoring`, click `Diagnostic settings`.
3. Next to each diagnostic setting, click `Edit setting`, and review the selected log categories and destination details.
4. Ensure that at least one diagnostic setting is configured to send the following logs to an appropriate destination:
   - `AuditLogs`
   - `SignInLogs`
   - `NonInteractiveUserSignInLogs`
   - `ServicePrincipalSignInLogs`
   - `ManagedIdentitySignInLogs`
   - `ProvisioningLogs`
   - `ADFSSignInLogs`
   - `RiskyUsers`
   - `UserRiskEvents`
   - `NetworkAccessTrafficLogs`
   - `RiskyServicePrincipals`
   - `ServicePrincipalRiskEvents`
   - `EnrichedOffice365AuditLogs`
   - `MicrosoftGraphActivityLogs`
   - `RemoteNetworkHealthLogs`
   - `NetworkAccessAlerts`

## Expected Result

At least one Microsoft Entra diagnostic setting should exist that sends all applicable activity log categories to an appropriate destination.

## Remediation

### Remediate from Azure Portal

1. Go to `Microsoft Entra ID`.
2. Under `Monitoring`, click `Diagnostic settings`.
3. Click `+ Add diagnostic setting`.
4. Provide a `Diagnostic setting name`.
5. Under `Logs > Categories`, check the box next to each of the following logs:
   - `AuditLogs`
   - `SignInLogs`
   - `NonInteractiveUserSignInLogs`
   - `ServicePrincipalSignInLogs`
   - `ManagedIdentitySignInLogs`
   - `ProvisioningLogs`
   - `ADFSSignInLogs`
   - `RiskyUsers`
   - `UserRiskEvents`
   - `NetworkAccessTrafficLogs`
   - `RiskyServicePrincipals`
   - `ServicePrincipalRiskEvents`
   - `EnrichedOffice365AuditLogs`
   - `MicrosoftGraphActivityLogs`
   - `RemoteNetworkHealthLogs`
   - `NetworkAccessAlerts`
6. Configure an appropriate destination for the logs.
7. Click `Save`.

## Default Value

By default, Microsoft Entra diagnostic settings do not exist.

## References

1. https://learn.microsoft.com/en-us/entra/identity/monitoring-health/howto-configure-diagnostic-settings
2. https://learn.microsoft.com/en-us/entra/identity/monitoring-health/howto-access-activity-logs

## CIS Controls

| Controls Version | Control                     | IG 1 | IG 2 | IG 3 |
| ---------------- | --------------------------- | ---- | ---- | ---- |
| v8               | 8.2 Collect Audit Logs      | x    | x    | x    |
| v7               | 6.2 Activate audit logging  | x    | x    | x    |
| v7               | 6.3 Enable Detailed Logging |      | x    | x    |

## MITRE ATT&CK Mappings

| Techniques | Tactics | Mitigations |
| ---------- | ------- | ----------- |
|            |         | M1047       |

## Profile

Level 2 | Manual

---

Source: https://www.openparable.com/skill/devops-security/cis-azure-foundations-6-1-1-9 (OpenParable). Cite the canonical URL above.
