What is API security?

D3 ยท Architecture  ยท  CompTIA Security+ SY0-701
API security encompasses the practices and technologies used to protect APIs (Application Programming Interfaces) from attacks, abuse, and unauthorized access. APIs are increasingly the primary attack surface for modern applications.

Common API vulnerabilities (OWASP API Security Top 10):
๐Ÿ”‘ Broken Object Level Authorization (BOLA) โ€” accessing other users' data by manipulating IDs
๐Ÿ” Broken Authentication โ€” weak API key management, no rate limiting
๐Ÿ“Š Excessive Data Exposure โ€” API returns more data than the client needs
๐Ÿ’ฅ Mass Assignment โ€” API allows setting properties that shouldn't be user-controllable
APIs are the new perimeter. Common protections: authentication (OAuth/API keys), rate limiting (prevent abuse/DoS), input validation, TLS encryption, API gateway (centralized security enforcement), logging/monitoring. BOLA (also called IDOR โ€” Insecure Direct Object Reference) is the most common API vulnerability.
โ† Back to Glossary Practice Questions โ†’