nerdexam
CompTIA

PT0-002 · Question #607

A penetration tester was hired to test a web application. The penetration tester's Nmap scan is only targeting ports 80 and 443 even though other ports on the server are open. Which of the following…

The correct answer is D. To limit invasiveness based on the scope. Limiting an Nmap scan to ports 80 and 443 for a web application test is done to adhere to the agreed-upon scope of work and avoid testing out-of-scope services.

Planning and Scoping

Question

A penetration tester was hired to test a web application. The penetration tester's Nmap scan is only targeting ports 80 and 443 even though other ports on the server are open. Which of the following best describes the reason for the tester's approach?

Options

  • ATo keep the cost of the engagement to a minimum
  • BTo enable the scan to run more quickly
  • CTo maintain confidentiality about other running services
  • DTo limit invasiveness based on the scope

How the community answered

(35 responses)
  • A
    3% (1)
  • B
    3% (1)
  • C
    9% (3)
  • D
    86% (30)

Why each option

Limiting an Nmap scan to ports 80 and 443 for a web application test is done to adhere to the agreed-upon scope of work and avoid testing out-of-scope services.

ATo keep the cost of the engagement to a minimum

While a limited scan might reduce costs, the primary reason for defining specific scan targets in a professional engagement is always adherence to the contractual scope, not simply cost reduction.

BTo enable the scan to run more quickly

Scanning fewer ports naturally makes the scan run more quickly, but this is a desirable side effect rather than the fundamental professional reason for limiting the scan targets in a scoped engagement.

CTo maintain confidentiality about other running services

The tester's role is to test within scope, not to actively maintain confidentiality about services; if other services are out of scope, they should not be scanned at all, rather than attempting to conceal their existence from the client.

DTo limit invasiveness based on the scopeCorrect

Penetration test engagements include a clearly defined scope that specifies which systems, applications, and services are authorized for testing; limiting the Nmap scan to ports 80 and 443 ensures adherence to this scope, reducing invasiveness and avoiding unauthorized testing of other services.

Concept tested: Penetration test scope adherence

Source: https://www.sans.org/blog/how-to-define-the-scope-of-a-penetration-test/

Topics

#Penetration testing scope#Nmap scanning#Web application testing#Engagement rules

Community Discussion

No community discussion yet for this question.

Full PT0-002 Practice