300-745 practice question 10 of 15

A developer is building new API functions for a cloud-based application. Before writing the code, the developer wants to ensure that destructive actions, including deleting and updating data, are properly protected by access control identifying sensitive fields such as those that contain passwords or personally identifiable information. Which approach must be used to score the risks proactively?

Full set: 58 questions
Answer options
A: Open API Specification Analysis Correct answer
B: SAST
C: SBOM Generation
D: CSPM
Correct Answer:
A. Open API Specification Analysis
Explanation

OpenAPI Specification (OAS) Analysis is a proactive, "design-first" security approach. The developer defines the API contract, including endpoints, methods (e.g., DELETE, PUT), data models, and security requirements in an OAS file before writing implementation code. Security tools can then statically analyze this specification to identify design flaws. This process allows for scoring risks by detecting destructive endpoints that lack proper security scheme definitions or identifying schemas that contain sensitive data patterns (like 'password' or 'ssn'), enabling remediation early in the software development lifecycle.

Why Incorrect

B. SAST: Static Application Security Testing (SAST) analyzes source code for vulnerabilities. It cannot be performed before the code is written, making it a reactive measure in this context.
C. SBOM Generation: A Software Bill of Materials (SBOM) lists third-party components to manage dependency vulnerabilities. It does not analyze the API's functional design or access control logic.
D. CSPM: Cloud Security Posture Management (CSPM) tools assess the configuration of cloud infrastructure, not the application's internal API design, and are used post-deployment. ---

References

1. Cisco Panoptica Data Sheet: "API security testing based on OpenAPI specifications provides deep visibility into business logic abuse and data exposure risks." This document highlights that Cisco's own tooling uses OpenAPI specifications as a basis for security analysis, which is a pre-code artifact. (Source: Cisco Panoptica Data Sheet, Page 2, "API Security" section).

2. OpenAPI Specification v3.1.0: The official specification defines the Security Scheme Object, which allows developers to declare security mechanisms like API keys, OAuth2, or OpenID Connect directly within the API design. This confirms that access control is an integral part of the pre-code specification. (Source: OpenAPI Specification v3.1.0, Section 4.8.8, "Security Scheme Object").

3. OWASP API Security Top 10 2023: The document emphasizes the need for proper authorization. For risk API5:2023 - Broken Function Level Authorization, it states, "The enforcement mechanism should deny all access by default, requiring explicit grants to specific roles for access to every function." This principle is best implemented and verified at the design stage, which is facilitated by analyzing an OpenAPI specification. (Source: OWASP API Security Top 10 2023, API5:2023 section).

Scroll to Top