List securityAlerts

Namespace: microsoft.graph.partner.security

Important

APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.

Get a list of the partnerSecurityAlert objects and their properties.

This API is available in the following national cloud deployments.

Global service US Government L4 US Government L5 (DOD) China operated by 21Vianet

Permissions

Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.

Permission type Least privileged permissions Higher privileged permissions
Delegated (work or school account) PartnerSecurity.Read.All PartnerSecurity.ReadWrite.All
Delegated (personal Microsoft account) Not supported. Not supported.
Application PartnerSecurity.Read.All PartnerSecurity.ReadWrite.All

HTTP request

GET /security/partner/securityAlerts

Optional query parameters

This method supports the $count, $filter, and $select OData query parameters to help customize the response. For general information, see OData query parameters.

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.

Request body

Don't supply a request body for this method.

Response

If successful, this method returns a 200 OK response code and a collection of microsoft.graph.partner.security.partnerSecurityAlert objects in the response body.

Examples

Request

The following example shows a request.

GET https://graph.microsoft.com/beta/security/partner/securityAlerts

Response

The following example shows the response.

Note: The response object shown here might be shortened for readability.

HTTP/1.1 200 OK
Content-Type: application/json

{
  "value": [
    {
      "id": "d8b202fc-a216-3404-69ef-bdffa445eff6",
      "displayName": "Action Required: Virtual machine connecting to crypto currency mining pool Detected",
      "description": "Analysis of Azure resource network activity detected the resource was connecting to a crypto currency mining pool. This would often be an indication that your Azure resource is compromised.",
      "alertType": "networkConnectionsToCryptoMiningPools",
      "status": "active",
      "severity": "high",
      "confidenceLevel": "medium",
      "customerTenantId": "1889e718-414b-4bad-8bbe-c1135bd39a41",
      "subscriptionId": "5f6e6521-6e5f-4b0b-80aa-bd44fad7a398",
      "valueAddedResellerTenantId": "c296b2ce-8cd1-4346-9e82-d8eccca70d65",
      "catalogOfferId": "MS-AZR-0017G",
      "detectedDateTime": "2024-01-23T16:03:33.05Z",
      "firstObservedDateTime": "2024-01-23T16:03:33.05Z",
      "lastObservedDateTime": "2024-01-23T16:03:33.05Z",
      "resolvedReason": "fraud",
      "resolvedOnDateTime": "2024-02-23T16:03:33.05Z",
      "resolvedBy": "[email protected]",
      "isTest": false,
      "affectedResources": [
        {
          "resourceId": "/subscriptions/subscription-id/resourceGroups/resourcegroup-name/providers/Microsoft.Compute/virtualMachines/vm-name",
          "resourceType": "AzureResource"
        }
      ],
      "activityLogs": [
        {
          "statusFrom": "active",
          "statusTo": "investigating",
          "updatedBy": "[email protected]",
          "updatedDateTime": "2023-08-10T08:47:10.8454142Z"
        },
        {
          "statusFrom": "investigating",
          "statusTo": "resolved",
          "updatedBy": "[email protected]",
          "updatedDateTime": "2023-08-10T08:47:25.2089246Z"
        }
      ],
      "additionalDetails": {
        "VM_IP": "[  \"vm-ip\"]",
        "MiningPool_IP": "[  \"mining-pool-ip\"]",
        "ConnectionCount": "5",
        "CryptoCurrencyMiningPoolDomainName": "pool-name.com"
      }
    },
    {
      "id": "5f6e6521-6e5f-4b0b-80aa-bd44fad7a398-758e2259-f00b-4dec-8087-0950afe6d6a4",
      "displayName": "Action Required: Subscription Usage Anomaly Detected",
      "description": "Analysis of Azure resource detected anomalies in: Anomalous increase in Machine Learning General purpose CPU deployment regions compared to trend in the last 30 days Subscription is part of a cluster of subscriptions that are controlled from the same login session IP Address.",
      "alertType": "usageAnomalyDetection",
      "status": "investigating",
      "severity": "high",
      "confidenceLevel": "medium",
      "customerTenantId": "1889e718-414b-4bad-8bbe-c1135bd39a41",
      "subscriptionId": "5f6e6521-6e5f-4b0b-80aa-bd44fad7a398",
      "valueAddedResellerTenantId": "c296b2ce-8cd1-4346-9e82-d8eccca70d65",
      "catalogOfferId": null,
      "detectedDateTime": "2024-01-23T16:03:33.05Z",
      "firstObservedDateTime": "2024-01-23T16:03:33.05Z",
      "lastObservedDateTime": "2024-01-23T16:03:33.05Z",
      "resolvedReason": null,
      "resolvedOnDateTime": null,
      "resolvedBy": "[email protected]",
      "isTest": false,
      "affectedResources": [
        {
          "resourceId": "/subscriptions/subscription-id/resourceGroups/resourcegroup-name/providers/Microsoft.Compute/virtualMachines/vm-name",
          "resourceType": "AzureResource"
        }
      ],
      "activityLogs": [
        {
          "statusFrom": "active",
          "statusTo": "investigating",
          "updatedBy": "[email protected]",
          "updatedDateTime": "2023-08-10T08:47:10.8454142Z"
        }
      ],
      "additionalDetails": {
        "VM_IP": "[  \"vm-ip\"]",
        "MiningPool_IP": "[  \"mining-pool-ip\"]",
        "ConnectionCount": "5",
        "CryptoCurrencyMiningPoolDomainName": "pool-name.com"
      }
    }
  ]
}