Show answerHide answer
Correct answer: A separation of privilege
Explanation
✅Explanation:In REST API design, security is not a single mechanism but a layered approach. Separation of privilege is fundamental because it protects against the exploitation of one single security control. A common application of this principle is the mandatory segregation of duties between API requesters and approvers for critical actions . This means a user who requests access to a critical API must have their request approved by a separate, authorized individual or group, preventing any single actor from executing a sensitive operation in isolation . This design practice directly reduces the risk of unauthorized, accidental, or malicious access to critical systems .
Why other options are incorrect:
B. password hashing:
While password hashing (e.g., SHA-256) is an essential practice for securely storing user credentials, it is considered a lower-level implementation detail rather than a core architectural design principle. It protects against credential exposure in storage, but it does not dictate how access to resources is granted or enforced.
C. Confidential algorithms:
"Confidential algorithms" are not a recognized security design principle. Relying on the secrecy of an algorithm for security is widely considered a weak approach, often summarized as "security through obscurity" . The recommended practice is to use open, industry-standard algorithms (like AES-256) and to keep only the encryption keys secret, not the algorithm itself.
D. OAuth:
OAuth (specifically OAuth 2.0) is a standardized authorization framework and a specific technical protocol for delegating access . While it is a critically important tool for implementing REST API security, it is not a high-level design principle like separation of privilege. OAuth is a means to enforce authentication and authorization, whereas separation of privilege is a broader security philosophy.
🔗 References:
OWASP API Security Top 10: Lists Broken Object Level Authorization (BOLA) as the most common API vulnerability, highlighting the need for proper separation of privileges at every level .
NIST Guidelines: Define the principle of separation of duties as a core security control to prevent fraud and mitigate errors .

