Cis Azure Foundations 6.1.1.8
DevOps & Securitycis-azure-foundations-6.1.1.8Cis Azure Foundations 6.1.1.8 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 Graph activity logs
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at 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.8/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/cis-azure-foundations-6-1-1-8, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Ensure that a Microsoft Entra diagnostic setting exists to send Microsoft Graph activity logs to an appropriate destination
Description
Ensure that a Microsoft Entra diagnostic setting is configured to send Microsoft Graph activity logs to a suitable destination, such as a Log Analytics workspace, storage account, or event hub. This enables centralized monitoring and analysis of all HTTP requests that the Microsoft Graph service receives and processes for a tenant.
Rationale
Microsoft Graph activity logs provide visibility into HTTP requests made to the Microsoft Graph service, helping detect unauthorized access, suspicious activity, and security threats. Configuring diagnostic settings in Microsoft Entra ensures these logs are collected and sent to an appropriate destination for monitoring, analysis, and retention.
Impact
A Microsoft Entra ID P1 or P2 tenant license is required to access the Microsoft Graph activity logs. The amount of data logged and, thus, the cost incurred can vary significantly depending on the tenant size and the applications in your tenant that interact with the Microsoft Graph APIs.
Audit Procedure
Using Azure Portal
- Go to
Microsoft Entra ID. - Under
Monitoring, clickDiagnostic settings. - Next to each diagnostic setting, click
Edit setting, and review the selected log categories and destination details. - Ensure that at least one diagnostic setting is configured to send
MicrosoftGraphActivityLogsto an appropriate destination.
Expected Result
At least one Microsoft Entra diagnostic setting should exist that sends MicrosoftGraphActivityLogs to an appropriate destination (Log Analytics workspace, storage account, or event hub).
Remediation
Remediate from Azure Portal
- Go to
Microsoft Entra ID. - Under
Monitoring, clickDiagnostic settings. - Click
+ Add diagnostic setting. - Provide a
Diagnostic setting name. - Under
Logs > Categories, check the box next toMicrosoftGraphActivityLogs. - Configure an appropriate destination for the logs.
- Click
Save.
Default Value
By default, Microsoft Entra diagnostic settings do not exist.
References
- https://learn.microsoft.com/en-us/entra/identity/monitoring-health/howto-configure-diagnostic-settings
- https://learn.microsoft.com/en-us/graph/microsoft-graph-activity-logs-overview
- https://learn.microsoft.com/en-us/azure/azure-monitor/logs/cost-logs#pricing-model
- https://azure.microsoft.com/en-us/pricing/details/storage/blobs/
- https://azure.microsoft.com/en-us/pricing/details/event-hubs/
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 |
MITRE ATT&CK Mappings
| Techniques | Tactics | Mitigations |
|---|---|---|
| M1047 |
Profile
Level 2 | Manual