rules/findings/Azure/Subscription/CIS3.0/azure-security-contact-send-email-to-owners-disabled.json

{
  "args": [
     
  ],
  "provider": "Azure",
  "serviceType": "Subscription Security",
  "serviceName": "Subscription",
  "displayName": "Ensure That 'All users with the following roles' is set to 'Owner'",
  "description": "Enable security alert emails to subscription owners.",
  "rationale": "Enabling security alert emails to subscription owners ensures that they receive security alert emails from Microsoft. This ensures that they are aware of any potential security issues and can mitigate the risk in a timely fashion.",
  "impact": null,
  "remediation": {
    "text": "###### From Azure Console\r\n\t\t\t\t\t1. Navigate to `Microsoft Defender for Cloud`\r\n\t\t\t\t\t2. Click on Pricing \u0026 settings\r\n\t\t\t\t\t3. Click on the appropriate Management Group, Subscription, or Workspace\r\n\t\t\t\t\t4. Click on `Email notifications`\r\n\t\t\t\t\t5. In the drop down of the `All users with the following roles` field select Owner\r\n\t\t\t\t\t6. Click Save",
    "code": {
      "powerShell": null,
      "iac": null,
      "terraform": null,
      "other": null
    }
  },
  "recommendation": null,
  "references": [
    "https://docs.microsoft.com/en-us/azure/security-center/security-center-provide-security-contact-details",
    "https://docs.microsoft.com/en-us/rest/api/securitycenter/securitycontacts/list",
    "https://docs.microsoft.com/en-us/rest/api/securitycenter/securitycontacts/update",
    "https://docs.microsoft.com/en-us/azure/security/benchmarks/security-controls-v2-incident-response#ir-2-preparation--setup-incident-notification"
  ],
  "compliance": [
    {
      "name": "CIS Microsoft Azure Foundations",
      "version": "3.0.0",
      "reference": "3.1.12",
      "profile":"Level 1"
    }
  ],
  "level": "medium",
  "tags": [
     
  ],
  "rule": {
    "path": "az_security_contacts",
    "subPath": null,
    "selectCondition": {
       
    },
    "query": [
      {
        "operator": "and",
        "filter": [
          {
            "conditions": [
              [
                "alertNotifications.state",
                "ne",
                "On"
              ],
              [
                "alertNotifications.minimalSeverity",
                "ne",
                "High"
              ]
            ],
            "operator": "or"
          },
          {
            "conditions": [
              [
                "notificationsByRole.state",
                "ne",
                "On"
              ],
              [
                "notificationsByRole.roles",
                "notcontains",
                "Owner"
              ]
            ],
            "operator": "or"
          }
        ]
      }
    ],
    "shouldExist": null,
    "returnObject": null,
    "removeIfNotExists": null
  },
  "output": {
    "html": {
      "data": {
        "properties": {
          "name": "Name",
          "email": "Email",
          "phone": "Phone",
          "alertNotifications.state": "Alert notification status",
          "alertNotifications.minimalSeverity": "Minimal severity alert",
          "notificationsByRole.state": "Alert to selected roles status",
          "notificationsByRole.roles": "Alert to selected roles"
        },
        "expandObject": null
      },
      "table": "asList",
      "decorate": [
         
      ],
      "emphasis": [
        "Alert to selected roles"
      ],
      "actions": {
        "objectData": {
          "properties": [
             
          ],
          "expandObject": null,
          "limit": null
        },
        "showGoToButton": null,
        "showModalButton": null,
        "directLink": null
      }
    },
    "text": {
      "data": {
        "properties": {
           
        },
        "expandObject": null
      },
      "status": {
        "keyName": [
           
        ],
        "message": "",
        "defaultMessage": null
      },
      "properties": {
        "resourceName": null,
        "resourceId": null,
        "resourceType": null
      },
      "onlyStatus": false
    }
  },
  "idSuffix": "security_contact_email_to_owners_disabled",
  "notes": [
     
  ],
  "categories": [
     
  ]
}