Microsoft Defender for Cloud
Cloud and workloads

Validate Your Microsoft Defender for APIs Alerts - Microsoft Defender for Cloud | Microsoft Learn

In brief

The article received wording, capitalization, punctuation, and formatting improvements. The validation steps remain the same, including sending a suspicious `User-Agent` value, and screenshots now support lightbox viewing.

What Defender admins need to know

No action is required; administrators can continue using the existing validation procedure.

Summaries are generated from the documentation change itself.

Documentation change

The comparison below shows only the changed extract. Use the full-page view for complete context.

Validate yourYour Microsoft Defender for APIs alertsAlerts - Microsoft Defender for Cloud | Microsoft Learn

Microsoft Defender for APIs provides protection, detection, and response coverage for APIs published in Azure API Management. A key feature is the detection of OWASP API Top 10 vulnerabilities. It spots anomalies at runtime by using machine learning and rule-based methods. A key feature is the detection of OWASP API Top 10 vulnerabilities.

This article walks you throughIn this article, learn how to trigger a test alert for one of your API endpoints. The alert covers detection of a suspicious user agent. Before you start, make sure you meet the prerequisites, including having an API published and Defender for APIs onboarded.

Prerequisites

Before you begin, ensure that you've completed have the following prerequisites:

Simulate an alert

ValidateCheck that Defender for APIs is working as expected. Send a request to your endpoint with a suspicious user agent to simulate an alert.

  1. Sign in to the Azure portal.

  2. Search for and select API Management services.

    Screenshot that shows where on the Azure portal to search for and select API Management service.

  3. Select the relevant API.

  4. Select APIs.

    Screenshot that shows where to select an API endpoint.

  5. Select Test > Get Retrieve resource (cashed).

  6. In the Headers section, select User-Agent in the name drop-downdropdown menu.

    Screenshot of the Headers section of the APIs showing how to select the User-Agent option under the name dropdown menu.

  7. In the value field, enter javascript:.

  8. Select Send.

    A 200 OK appears, letting you know that it succeeded.

    Screenshot that shows the result 200 OK.Screenshot that shows the result 200 OK.

Expected results