API security: WAF/CDN edge -> API Gateway (AuthN/AuthZ/Schema/RateLimit) -> Services -> DB. Concept lesson with 5 scenarios: happy-path OAuth+rate-limit, schema validation rejecting mass assignment, WAF blocking SQLi, token-bucket rate limit, and OWASP API1 BOLA/IDOR.
API security enforces identity, object and function authorization, schema and property policy, resource budgets, business-flow controls, egress policy, inventory, and downstream trust at each request boundary.
| Component | Responsibility |
|---|---|
client | Authorized API Client |
attacker | Adversarial or Abusive Client |
gateway | API Gateway and Request Boundary |
authenticator | Token and Client Authentication |
authorizer | Object and Function Authorization |
rate-limiter | Resource and Business-Flow Limits |
api | Application API |
object-store | Tenant-Scoped Object Store |
schema-validator | Request and Response Schema Policy |
outbound-connector | Allowlisted Outbound Connector |
inventory | API Inventory and Lifecycle |
audit-log | API Security Audit |
Topology edges represent authenticated or otherwise explicit communication paths. Responses reuse those physical paths in reverse; no response-only or bypass edges are added.
complete-request-gate — Complete request gateAuthentication, request budget, object and function authorization, schema policy, and audit context all precede the protected operation.
bola-object-authorization — API1 Broken Object Level AuthorizationEvery endpoint that receives an object identifier binds authorization to authoritative object and tenant state, loaded by the endpoint or authorization service.
broken-authentication — API2 Broken AuthenticationTokens and client credentials are validated under a fixed profile with throttling and no credential material in URLs or logs.
property-level-authorization — API3 Broken Object Property Level AuthorizationRead and write property allowlists are role and object specific; generic serialization and mass assignment do not expose internal fields.
resource-consumption — API4 Unrestricted Resource ConsumptionLimits cover request size, concurrency, execution time, downstream cost, pagination, uploads, and per-principal quotas rather than requests per second alone.
function-level-authorization — API5 Broken Function Level AuthorizationAdministrative paths and HTTP methods enforce permission at the server, even when the UI hides the feature.
sensitive-business-flow — API6 Unrestricted Access to Sensitive Business FlowsBusiness actions such as purchases, reservations, or invitations have abuse-resistant limits and state invariants beyond technical authentication.
ssrf-egress-policy — API7 Server Side Request ForgeryServer-controlled destination policy parses and resolves URLs, restricts scheme and address ranges, and constrains redirects and egress at the network boundary.
security-misconfiguration — API8 Security MisconfigurationProduction APIs use a hardened repeatable baseline, minimal methods, strict CORS, safe errors, current dependencies, and no default credentials.
inventory-lifecycle — API9 Improper Inventory ManagementEvery host, version, endpoint, data classification, owner, dependency, and retirement date is inventoried so shadow or deprecated APIs cannot persist unnoticed.
unsafe-api-consumption — API10 Unsafe Consumption of APIsResponses from third-party APIs are untrusted input: use TLS identity, timeouts, size limits, schema validation, safe redirects, and least-privilege data handling.
Введите числа или выберите пресет