nerdexam
CompTIA

PT0-001 · Question #130

A penetration tester is preparing to conduct API testing. Which of the following would be MOST helpful in preparing for this engagement?

The correct answer is D. Swagger. Swagger (OpenAPI) provides structured documentation of all API endpoints, methods, parameters, and authentication schemes, giving a penetration tester the most complete picture of the API attack surface before testing.

Reconnaissance and enumeration

Question

A penetration tester is preparing to conduct API testing. Which of the following would be MOST helpful in preparing for this engagement?

Options

  • ANikto
  • BWAR
  • CW3AF
  • DSwagger

How the community answered

(26 responses)
  • B
    4% (1)
  • C
    4% (1)
  • D
    92% (24)

Why each option

Swagger (OpenAPI) provides structured documentation of all API endpoints, methods, parameters, and authentication schemes, giving a penetration tester the most complete picture of the API attack surface before testing.

ANikto

Nikto is a web server vulnerability scanner focused on HTTP misconfigurations and outdated software versions, not on documenting or discovering API endpoint structure.

BWAR

WAR is not a recognized API documentation or discovery tool in penetration testing; a Java WAR archive is a deployment package, not a resource for understanding API attack surfaces.

CW3AF

W3AF is a general web application attack and audit framework targeting vulnerabilities such as XSS and SQL injection, and does not provide the structured API endpoint documentation that Swagger offers.

DSwaggerCorrect

Swagger is an OpenAPI specification tool that enumerates every available endpoint, HTTP verb, request parameter, response schema, and authentication requirement in a machine-readable format, enabling a tester to systematically map and attack the API without blind enumeration.

Concept tested: Using Swagger for API penetration testing reconnaissance

Source: https://swagger.io/docs/specification/about/

Topics

#API testing#Swagger#web application reconnaissance#REST API

Community Discussion

No community discussion yet for this question.

Full PT0-001 Practice