HomeProductsPlatformAIServicesIntegrationsCompany

Managed security services7 min read

NIST SP 800-115: the four penetration test phases to agree

NIST SP 800-115 splits a penetration test into four phases. Here is what each one does, and what to agree in writing before testing.

NIST SP 800-115: the four penetration test phases to agree

NIST SP 800-115 describes a penetration test in four phases: planning, discovery, attack and reporting. Reporting runs alongside the other three. No testing happens in planning. Before the first packet is sent, agree the rules of engagement: scope, targets, timing, production handling, approval, and when testing must stop.

What does NIST SP 800-115 say a penetration test is?

NIST SP 800-115, Technical Guide to Information Security Testing and Assessment (September 2008), defines penetration testing as "security testing in which assessors mimic real-world attacks to identify methods for circumventing the security features of an application, system, or network." It often "involves launching real attacks on real systems and data." (NIST SP 800-115, section 5.2, PDF p.36)

The same section says penetration testing "is labor-intensive and requires great expertise." It also says systems "may be damaged or otherwise rendered inoperable" during a test. NIST adds that this risk "can never be fully eliminated," even though experienced testers can reduce it. (NIST SP 800-115, section 5.2, doc p.5-2, PDF p.36)

What are the four phases of a penetration test?

NIST's Figure 5-1 shows four phases: planning, discovery, attack and reporting. Two points matter for buyers:

  • NIST calls this split an example. Its footnote says it is "an example of how the penetration process can be divided into phases" and that "there are many acceptable ways of grouping the actions." Your provider may use other labels. Ask for their phase names and map them to these four. (NIST SP 800-115, section 5.2.1, footnote 18, doc p.5-2)
  • Reporting is not a final step. NIST says reporting "occurs simultaneously with the other three phases." The figure also shows a feedback loop between attack and discovery. (NIST SP 800-115, doc pp.5-3 to 5-5, PDF pp.37-39)

What happens in the planning phase?

NIST says that in planning, "rules are identified, management approval is finalized and documented, and testing goals are set." It adds that "no actual testing occurs in this phase." (NIST SP 800-115, doc p.5-2, PDF p.36)

The output of planning is the assessment plan, which NIST also calls the rules of engagement (ROE). (NIST SP 800-115, doc p.5-5, PDF p.39)

What happens in the discovery phase?

NIST describes discovery in two parts. (NIST SP 800-115, doc pp.5-3 to 5-4, PDF p.37)

  • Information gathering and scanning. Testers identify hosts, ports and services. NIST lists methods such as DNS interrogation, WHOIS queries and banner grabbing, which records version numbers.
  • Vulnerability analysis. Testers compare what they found with vulnerability databases, such as the National Vulnerability Database. NIST notes that manual checks "can identify new or obscure vulnerabilities that automated scanners may miss, but are much slower than an automated scanner."

What happens in the attack phase?

NIST says that "executing an attack is at the heart of any penetration test." Testers try to exploit the weaknesses found in discovery. NIST draws a clear line between a scan and an attack: "While vulnerability scanners check only for the possible existence of a vulnerability, the attack phase of a penetration test exploits the vulnerability to confirm its existence." (NIST SP 800-115, doc p.5-4, PDF p.38)

A successful exploit can give more access. NIST says testing "on multiple systems should be conducted during a penetration test to determine the level of access an adversary could gain." (NIST SP 800-115, doc p.5-4, PDF p.38)

What should you agree before testing starts?

NIST does not give a checklist. Its logistics section describes the decisions that have to be made. The list below is what we suggest the rules of engagement record. Where NIST says something on the point, its wording is quoted.

  • Scope and scenario. Will the test be from outside, inside, or both? NIST says "if both internal and external testing is to be performed, the external testing usually occurs first." An insider test starts from some level of granted access. (NIST SP 800-115, doc pp.5-5 to 5-6, PDF pp.39-40)
  • Targets and ownership. List every IP address or range in scope. NIST says assessors "should verify that all public addresses ... are under the organization's purview before testing begins." Do this check before the test, not after. (NIST SP 800-115, footnote 20, doc p.5-5, PDF p.39)
  • Allowed techniques and timing. NIST says that "depending on an organization's policies, testers may be prohibited from using particular tools or techniques or may be limited to using them only during certain times of the day or days of the week." Write down the test window and any banned techniques. (NIST SP 800-115, doc p.5-6, PDF p.40)
  • Production systems and the stop rule. NIST notes that penetration testing "uses real exploits and attacks against production systems and data." It also says a test "can be designed to stop when the tester reaches a point when an additional action will cause damage." Agree in writing which systems are production, and who has the authority to stop the test. (NIST SP 800-115, doc p.5-6, PDF p.40)
  • Physical and social engineering. NIST lists these as non-technical methods that a penetration test can include. If they are in scope, agree a point of contact. NIST says "security guards should be made aware of how to verify the validity of tester activity, such as via a point of contact or documentation." (NIST SP 800-115, doc p.5-2, PDF p.36)
  • Approval. Management approval should be "finalized and documented" during planning. (NIST SP 800-115, doc p.5-2, PDF p.36)
  • Reporting and contacts. Name who receives the written logs and periodic reports during testing, and who receives the final report. NIST says that "in the discovery and attack phases, written logs are usually kept and periodic reports are made to system administrators and/or management." The final report should "describe identified vulnerabilities, present a risk rating, and give guidance on how to mitigate." (NIST SP 800-115, doc p.5-5, PDF p.39)

How often should you run a penetration test?

NIST gives an example, not a rule. It says that, because of the "high cost and potential impact" of the test, "penetration testing of an organization's network and systems on an annual basis may be sufficient." NIST also suggests "less labor-intensive testing activities on a regular basis." It says that "a well-designed program of regularly scheduled network and vulnerability scanning, interspersed with periodic penetration testing, can help prevent many types of attacks." (NIST SP 800-115, doc p.5-6, PDF p.40)

This is NIST's wording. It does not set a frequency for any standard or regulator.

Frequently asked questions

What are the four phases of a penetration test in NIST SP 800-115? Planning, discovery, attack and reporting. NIST's Figure 5-1 shows these four, and reporting runs alongside the other three. NIST calls this split one example, not the only way to group the work.

Does any work happen in the planning phase? No. NIST says no actual testing occurs in planning. Planning sets the rules and gets management approval.

Is a vulnerability scan the same as a penetration test? No. NIST says scanners check only for the possible existence of a vulnerability. The attack phase of a penetration test exploits it to confirm it exists.

How often should a penetration test be run? NIST does not set a frequency. Its guide says annual testing "may be sufficient," as an example.

Can a penetration test damage production systems? NIST says systems may be damaged or rendered inoperable during testing, and that this risk can never be fully eliminated.

What should you do next?

Before you sign a penetration test, write the rules of engagement. Cover the scope, the targets, the test window, the production systems, the stop rule, and the contacts for logs and reports. Get management approval in writing, as NIST describes for the planning phase.

To read more about how Purplecop approaches security and compliance work, see the three Purplecop products.

Written by Purplecop Security
Managed security servicesNISTCybersecurity

Questions

What are the four phases of a penetration test in NIST SP 800-115?
Planning, discovery, attack and reporting. NIST's Figure 5-1 shows these four, and reporting runs alongside the other three. NIST calls this split one example, not the only way to group the work.
Does any work happen in the planning phase?
No. NIST says that in the planning phase rules are identified, management approval is finalized and documented, and testing goals are set, and that no actual testing occurs in this phase.
Is a vulnerability scan the same as a penetration test?
No. NIST says vulnerability scanners check only for the possible existence of a vulnerability, while the attack phase of a penetration test exploits the vulnerability to confirm it exists.
How often should a penetration test be run?
NIST does not set a frequency. Its guide says that, because of cost and potential impact, testing on an annual basis may be sufficient. That is an example in NIST's text, not a rule for any standard or regulator.
Can a penetration test damage production systems?
NIST says systems may be damaged or rendered inoperable during testing, and that this risk can never be fully eliminated, even though experienced testers can reduce it.