The API Security module automatically discovers and catalogs the API assets of services protected by Web Application Firewall (WAF). It detects risks such as sensitive data leaks and exposed internal APIs, analyzes security events, provides remediation suggestions, and supports API lifecycle management. This helps you achieve comprehensive API security.
Features
The API Security module provides the features described in the following table.
Feature | Description |
API asset overview and lifecycle management | API Security analyzes service access logs offline to automatically detect all APIs in your traffic. Based on API characteristics, it also identifies the business purpose of each API. On the API Overview page, you can view a list of your API assets and their details, including request examples, parameter structures, and call volumes over the last 30 days. You can also analyze API call trends, query call distribution by IP address, client type, geographic location, or Referer, and monitor newly discovered or inactive APIs. Note API Security does not actively probe your APIs or impact your services. |
API risk detection | Detects various security risks in your APIs, such as unauthorized access and sensitive data exposure, and provides detailed risk analysis and remediation suggestions. |
API security event detection | Monitors and analyzes API call behavior to promptly detect abnormal access patterns and attack behaviors. |
Click the following questions to learn more about the capabilities of API Security:
Prerequisites
You have a subscription WAF instance deployed in Chinese Mainland.
View API security analysis data
API Security inspects the content of requests and responses that meet specific criteria to identify potential data leaks. By enabling API Security, you authorize WAF to perform this analysis.
You can use API Security immediately after enabling it, as no extra configuration is required. You can view the analysis results on the API Security page.
Log on to the Web Application Firewall console. In the top navigation bar, select the resource group and region (Chinese mainland) for your WAF instance.
-
In the left navigation pane, choose .
On the API Security page, click the Overview tab to view API security analysis data.
Data type
Purpose and description
Supported actions
API security event
View statistics on the total number of API security events and new events today. Events are categorized by high, medium, and low risk.
None.
API risk
View statistics on the total number of API risks and their trend compared to the previous day. Risks are categorized as high, medium, or low.
None.
API asset overview
View statistics about your API assets, including:
Total number of API assets, trend compared to the previous day, and 7-day trend
Active APIs, trend compared to the previous day, and 7-day trend
Inactive APIs
Newly discovered APIs
None.
API asset list
View a list of all open APIs discovered by WAF to understand the scope and usage of your APIs.
The API asset list contains the following information:
API: The API endpoint URL.
Domain name: The domain name to which the API belongs.
Request method: The request method used to call the API.
Call volume in the last 30 days: The total number of requests in the last 30 days.
Service target: Based on access pattern analysis, APIs are categorized as:
Internal use: APIs that serve internal employees.
Third-party partners: APIs provided to third-party ecosystem partners.
Public services: APIs that are open to the internet.
Business purpose: API Security assigns functional tags to discovered APIs based on their business type. For more information, see Features.
Sensitive data tag: A sensitive data tag is assigned based on the sensitivity level. For more information, see Features.
Sensitive data type: Different sensitivity levels correspond to different types of sensitive data. For more information, see Features.
Risks/Events: The vulnerabilities and attack events identified for this API.
Search for API information:
In the search box above the API asset list, click the
icon, select API or Domain name, and enter the corresponding API endpoint URL or domain name.In the upper-right corner of the API asset list, click Advanced Search to search for APIs by Request method, Service target, Business purpose, Call volume in the last 30 days, Sensitive data tag, Sensitive data type, or Active Status.
Sort APIs: Click the
icon next to the Call volume in the last 30 days or Risks/Events column header.View Risks/Events details: Click the number in the Risks/Events column of the target API address.
View API details. For more information, see View API details.
Export API data. For more information, see Export API security report data.
View API risk detection data
Your WAF instance automatically detects API risks such as unauthorized access, excessive sensitive data exposure, and exposed internal APIs, and provides risk analysis and remediation suggestions.
On the API Security page, click the Risk Detection tab to view API risk detection data.
Data type | Purpose and description | Supported actions |
API risk overview | View statistics about the total number of API risks and the change compared to the previous day. Statistics are available for high-risk, medium-risk, and low-risk counts. | Click View Now next to the high-risk, medium-risk, or low-risk count to view risk details. |
API risk trend | View a trend chart of high-risk, medium-risk, and low-risk APIs over the last 30 days. | None. |
API risk details | View details of all API risks discovered by WAF, including the risk name and level. For more information about risk types, see Features. The API risk list contains the following information:
|
|
View API security event data
Your WAF instance uses intelligent behavior analysis algorithms to establish an API call baseline and promptly detect attacks such as credential stuffing, resource abuse, and bulk registrations.
On the API Security page, click the Security Event tab to view API security event data.
Data type | Purpose and description | Supported actions |
API security event overview | View statistics about the total number of API security events and the number of new events today. Statistics are available for high-risk, medium-risk, and low-risk event counts. | Click View Now next to the high-risk, medium-risk, or low-risk event count to view event details. |
API security event trend | View a trend chart of high-risk, medium-risk, and low-risk API security events over the last 30 days. | None. |
API security event details | View details of all API security events discovered by WAF, including the event name and level. For more information about security event types, see Features. The API security event list contains the following information:
|
|
View API details
In the API asset list, click an API to open its API details panel.
Type | Description |
API request example | Shows detailed information about requests to this API, including the request and parameter characteristics. |
Call volume in the last 30 days | Shows the API's call volume trend over the last 30 days. |
Access source statistics | Shows statistics for the API's access sources, including IP, Client type, Geolocation, and Referer, sorted by access count in descending order. |
Export API security report data
In the upper-right corner of the API asset list, click the
icon to export API data.API Security creates an export task for the API assets.
ImportantIf you have set query conditions above the API asset list, the exported file will only contain the queried data. Otherwise, it will contain all data.
The exported file is stored in the WAF console and expires after three days. Download the file before it expires, as expired files cannot be retrieved.
In the upper-right corner of the API Security page, click Export History.
Find the file that you want to download and click Download in the Operation column.
The exported file is downloaded to your browser's default download location.