Scope and rules of engagement
Unit 2 of 5 in Authorized testing: scope, rules and reporting.
You will be able to read a rules-of-engagement document, spot what makes a test unsafe and write a scope page for a test of your own lab.
Lesson
Scope is a list of edges
NIST says an assessment plan should say how many systems are to be tested, with their IP addresses or ranges. It should also list the systems that are not authorized to be tested, at least by IP address and preferably by name. NIST's example is a payroll database judged too critical for a type of testing. That list is the exclude list, and NIST calls it crucial.
NIST adds two cautions. If the organization does not control part of the network, for example systems hosted on another party's network, the owner of that other network usually must also consent in writing. And when testers are given a list of public addresses, they should check that every public address is under the organization's purview before testing starts, for example by looking up who owns the address space.
What the rules of engagement contain
NIST defines rules of engagement (ROE) as detailed guidelines and constraints on how security testing is carried out. They are set before the test starts and give the team authority to do the defined activities without asking for more permission each time.
NIST's template shows the shape: introduction (purpose, scope, assumptions and limitations, risks); logistics (named personnel, schedule, test site, test equipment); a communication strategy including incident handling, with criteria for halting the test; target systems and the exclude list; testing execution, with allowed and disallowed activities and data handling; reporting; and a signature page. Each part answers a question someone will ask at a bad moment: who do we call, what may you touch, when do you stop.
Why an ROE is more than a plan
NIST notes that some things testers do, such as attacking systems to compromise them, are usually forbidden by an organization's own policies. The ROE is what authorizes those activities for the assessors, so it must also state clearly what stays prohibited. NIST says prohibited activities, for example creating or changing files, should be stated so that there is no room for interpretation.
NIST also suggests a one or two page memorandum that assessors can show to system owners or users as proof they are allowed to work on particular systems. It lists allowed and not allowed activities, authorized and unauthorized systems and a point of contact in the organization's security group.
Scoping is a conversation, and scope can change
The NCSC says scoping should involve the risk owners, technical staff who know the target system and a representative of the test team. The output is a document with the technical boundaries, the types of test, the time frame and effort, the testers' requirements, any compliance or legal requirements, reporting requirements (for example CVSS scores) and time constraints.
During a test the team may find systems outside the scope that could affect the system in scope. The NCSC says they may suggest a scope change, which is likely to alter time and cost, or recommend that the exclusion be recorded as a limitation on testing. The decision usually belongs to the risk owner, and the testers must explain the factors clearly. The tester never decides alone to widen the scope.
Key points
- Scope names what may be tested and, just as important, what may not (the exclude list).
- Anything on someone else's network needs that owner's written consent too.
- The ROE is set before the test and authorizes the activities the policies normally forbid; it lists what stays forbidden.
- Out-of-scope discoveries go to the risk owner as a scope change or a recorded limitation.
Sources
- NIST SP 800-115: Technical Guide to Information Security Testing and Assessment (full text)
- UK NCSC: Penetration testing
Practice in the labs
Read a flawed rules-of-engagement document, then write the scope page for your own lab and enforce it.
- Read a rules-of-engagement document and spot what makes a test unsafe (HARBOR 1 of 7): You find the gaps in a sample ROE against NIST's template and say what a defender would want from it.
- Write the scope and authorization page for a home-lab test (HARBOR 2 of 7): You write a scope with targets, an exclude list, a window and two sign-off lines for your own lab.
- Scope a Juice Shop engagement and enforce the scope in your proxy: You turn a written scope into a check that drops requests outside it. It uses the Juice Shop practice app from its setup lab.
- Scope a penetration test and write the statement of work: You scope a business engagement and write the statement of work a client would sign.
Knowledge check
- What is the exclude list? Answer: The systems that are not authorized for testing. NIST says it is crucial to identify any system not authorized for testing, at least by IP address and preferably by name.
- Part of the target network is hosted by a cloud or hosting company. What does NIST say? Answer: The owner of that other network usually must also consent in writing. NIST says that when part of the network is on a third party's network, the third party usually must also consent in writing to the assessment plan.
- During a test the team finds an out-of-scope system that could affect the in-scope one. What is the right move? Answer: Suggest a scope change or record the exclusion as a limitation; the risk owner decides. The NCSC describes those two options and says the decision generally belongs to the risk owner.
- Why must the ROE spell out prohibited activities clearly? Answer: So there is no room for interpretation about what is not allowed. NIST says prohibited activities should be stated in a way that leaves no room for interpretation.
Back to the syllabus or see all classes.
Related
- Authorized testing: scope, rules and reporting
- Read a rules-of-engagement document and spot what makes a test unsafe (HARBOR 1 of 7)
- Write the scope and authorization page for a home-lab test (HARBOR 2 of 7)
- Scope a Juice Shop engagement and enforce the scope in your proxy
- Scope a penetration test and write the statement of work
- All classes
- Free cyber labs