Skip to main content

More Info:

Configure the log profile to export activities from all Azure supported regions/locations including global.

Risk Level

Low

Address

Operational Maturity, Security

Compliance Standards

  • APRA CPS 234 (Australia)
  • BSI C5 (Germany)
  • Brazil LGPD
  • CCPA / CPRA (California)
  • CIS Critical Security Controls v8
  • CMMC 2.0
  • CSA Cloud Controls Matrix v4
  • DPDPA
  • Digital Operational Resilience Act (EU)
  • Essential 8
  • GDPR
  • HIPAA
  • ISO 27001
  • ISO/IEC 27017
  • ISO/IEC 27018
  • ISO/IEC 27701
  • KSA PDPL
  • MAS Technology Risk Management (Singapore)
  • MITRE ATT&CK (Cloud)
  • NIS2 Directive
  • NIST SP 800-171
  • NYDFS 23 NYCRR 500
  • PCI
  • Reserve Bank of India (RBI) Cyber Security Framework
  • SWIFT Customer Security Controls Framework
  • Sarbanes-Oxley IT General Controls
  • UK NCSC Cyber Assessment Framework

Triage and Remediation

Remediation

Using Console

To remediate the misconfiguration “Ensure log profile is configured for all regions” for Azure using the Azure console, you can follow the below steps:
  1. Log in to the Azure portal using your credentials.
  2. From the left-hand side menu, select “Log Analytics workspaces”.
  3. Select the workspace you want to configure for all regions.
  4. Click on “Advanced settings” under the “Settings” section of the left-hand side menu.
  5. Under “Data”, select “Log profiles”.
  6. Click on “Add” to create a new log profile.
  7. In the “Add log profile” window, enter a name for the log profile.
  8. Under the “Regions” section, select “All regions”.
  9. Under the “Categories” section, select the categories of logs you want to collect.
  10. Under the “Destination” section, select the destination where you want to send the logs.
  11. Click on “OK” to save the log profile.
By following these steps, you will remediate the misconfiguration “Ensure log profile is configured for all regions” for Azure using the Azure console.

To remediate the misconfiguration “Ensure log profile is configured for all regions” for AZURE using AZURE CLI, you can follow the below steps:Step 1: Open the AZURE CLI on your local machine or use the AZURE Cloud Shell.Step 2: Run the following command to list all the available regions in your AZURE subscription:
Step 3: Run the following command to create a log profile for each region:
This command will create a log profile named “default” for each region and enable it for 30 days.Step 4: Verify that the log profiles have been created for all regions by running the following command:
This command will list all the locations where the log profiles have been created.Step 5: Finally, you can validate the remediation by ensuring that the log profiles are configured for all regions.
To remediate the misconfiguration “Ensure log profile is configured for all regions” in Azure using Python, follow these steps:
  1. Import the necessary libraries:
  1. Set the required Azure credentials:
  1. Initialize the MonitorManagementClient:
  1. Get a list of all the regions:
  1. For each region, check if a log profile exists:
  1. Save the Python script and run it to remediate the misconfiguration.
Note: Replace the placeholders <client-id>, <client-secret>, <tenant-id>, <subscription-id>, <resource-group-name>, and <log-profile-name> with the actual values.
terraform plan should show the azurerm_monitor_log_profile resource being created or updated so that its locations list includes "global" and all required Azure regions.

Additional Reading: