最終更新日:2026-08-27 18:18:43
Reading time: About 5 minutes
API Security builds a closed loop of Discover → Define → Protect, verifying that API requests reaching your hostname comply with the API specifications you declare (request method, authentication, parameters, and request body). Non-compliant requests are handled according to the configured action. API Security and WAF serve complementary roles, so it is recommended to enable both.
APIs have become the cornerstone of software development, but their openness and ease of access bring security threats that generic WAF rules cannot fully cover:
API Security builds a closed loop through a three-step process: Discover → Define → Protect.
Based on the API identification model defined by the platform, API Security dynamically inspects real traffic and automatically discovers and aggregates API assets and extracts interface patterns. This helps you organize your asset inventory and discover shadow APIs, solving the problem of “not knowing how many APIs you have.”
Create, name, and group your APIs, and define the following for each API:
The system also supports bulk import based on the platform-provided API Definition Configuration Template (an Excel file) to complete API definition automatically.
Based on the defined API characteristics, API Security inspects real-time traffic against each defined criterion:
Non-compliant requests are handled according to the configured action (Log or Deny).
Boundary: API Security uses a positive security model and validates only defined API endpoints. Requests to endpoints not defined in API assets pass through without inspection. Therefore, fully defining your API assets is a prerequisite for effective protection.
| Mode | Description | Use when |
|---|---|---|
| Loose mode | Strictly validates only the defined parameters; undeclared parameters are allowed | Early onboarding, while the API definition is being refined to reduce false blocks |
| Strict mode | Validates all parameters on an allowlist basis; undeclared parameters are treated as violations | High-security protection after the API definition is complete |
| Protection Capability | WAF | API Security |
|---|---|---|
| Common web attacks such as SQL injection, XSS, and command injection | ✓ | ✗ |
| Request methods that do not match the API definition | ✗ | ✓ |
| Missing authentication or invalid credentials | ✗ | ✓ |
| Wrong parameter type, out-of-range values, or missing required parameters | ✗ | ✓ |
| Request body structure that does not conform to the API definition | ✗ | ✓ |
WAF blocks common web attack payloads, while API Security verifies whether requests conform to the API definition specification. The two serve different purposes, so it is recommended to enable both for complementary coverage.