CISSP-115 · Lesson 2 of 12 · 28 min

Designing and validating assessments: scope, rules of engagement and authorization

Most assessment failures are planning failures. A penetration test that knocks over a production database, a scan that floods a fragile medical device, a consultant who tests the wrong IP range and probes a neighbor's network, a report that answers a question nobody asked: each of these traces back to a missing scope statement, unclear rules or absent authorization. This lesson covers the planning that turns a test from a risky activity into a controlled, legal and useful one. It applies equally to internal tests, hired consultants and audits.

The planning documents go by many names, such as statement of work, test plan, rules of engagement, letter of authorization or engagement letter, but they answer the same questions. Why are we testing? What exactly is in and out of scope? What methods are allowed, and when? Who can authorize, who must be informed, and who can stop the test? How will sensitive data and findings be protected? What will the deliverable look like? Getting written answers before work begins protects the organization, the testers and anyone else whose systems might be affected.

Objectives and questions

Every assessment starts with an objective expressed as a question the results will answer. Good objectives are specific and tied to a decision. 'Can an external attacker with no credentials reach customer payment data?' leads to a different test from 'Does our cloud configuration meet the Center for Internet Security benchmark?' or 'Would our staff report a convincing phishing email within an hour?' Vague objectives such as 'test our security' produce long reports full of low-value findings and leave the important question unanswered.

Objectives also determine the type of test and the level of knowledge given to testers. In a black-box (zero-knowledge) test, testers start with only public information, simulating an outside attacker; this is realistic but spends much of the budget on discovery. In a white-box (full-knowledge) test, testers receive architecture diagrams, source code and credentials, which gives the most thorough coverage per hour. Gray-box (partial-knowledge) testing sits between, for example giving testers a normal user account to simulate a compromised employee. Separately, a test is announced (blue team aware) or unannounced (only a few leaders know), the latter testing detection and response as well as prevention. The exam often describes these in terms of knowledge given to the tester and knowledge given to defenders.

Tester knowledge and defender knowledge are separate dimensions of a test design.
TermTester knowledgeDefender knowledgeBest for
Black box (zero knowledge)Public information onlyVariesRealistic external attacker view
Gray box (partial knowledge)Some credentials or documentsVariesInsider or compromised-account scenarios
White box (full knowledge)Full documentation, code, credentialsVariesMaximum coverage per hour
Announced (overt)VariesSecurity team informedSafe testing of prevention controls
Unannounced (covert)VariesOnly executives and a trusted agentTesting detection and response
Double blindZero knowledgeDefenders not informedMost realistic exercise of people and tools

Scope: in, out and boundaries

The scope statement lists exactly what may be tested: IP ranges and host names, applications and their environments, cloud accounts and subscriptions, physical locations, people and processes for social engineering, and any third-party services. Equally important is what is out of scope: production systems that cannot tolerate disruption, systems owned by other parties, specific attack types such as denial of service, and any data the testers must not access. Boundaries should be explicit enough that a tester who finds a new host can tell instantly whether it is in scope; when in doubt, they stop and ask.

Third-party and cloud systems need special care. An organization can authorize testing only of assets it owns or controls. A cloud provider's shared infrastructure, a payment processor's systems or a software-as-a-service application belong to someone else, and testing them without that party's permission may breach contracts and the law. Major cloud providers publish penetration testing policies that allow customers to test their own resources within limits, often prohibiting denial-of-service testing and attacks on the provider's underlying platform; read the current policy before scoping. For a hosted service, the provider's own assessment reports, such as a SOC 2 report, usually replace direct testing.

Worked problem

Tightening a scope statement

A hospital's draft scope reads: 'Test the hospital network and website for vulnerabilities.' Identify what is missing.

Show solution
  1. The network should be defined by address ranges and named segments, with medical devices and clinical systems explicitly in or out.
  2. The website may be hosted by a provider; ownership and the provider's permission must be confirmed.
  3. Allowed techniques must be listed, and denial-of-service and destructive actions explicitly excluded near patient care.
  4. Testing windows, contacts, data handling rules and the stop procedure are absent.
  5. Social engineering, physical testing and wireless are neither included nor excluded.

Answer: The scope needs defined targets, ownership confirmation, allowed and forbidden techniques, windows, contacts, data rules and an explicit position on social, physical and wireless testing.

Rules of engagement

Rules of engagement (RoE) translate scope into operating instructions. They cover permitted and prohibited techniques; testing windows (for example, outside business hours for disruptive scans, or business hours only so staff are available if something breaks); rate limits for scanning; how credentials and accounts provided for testing will be handled and removed; what testers do if they find evidence of a real compromise or illegal content (stop and escalate immediately); how and to whom critical findings are reported during the test rather than waiting for the final report; and the emergency stop procedure. They also name points of contact on both sides, with out-of-hours phone numbers.

Data handling deserves its own section. Testers may encounter personal information, health records, card numbers or trade secrets. The rules should require minimum necessary access (prove access with a screenshot of a record count, not a download of the table), encryption of any evidence held, retention limits, and secure destruction at the end. Where privacy law applies, the engagement is a disclosure of personal information to a service provider, so contracts should include the protections that law requires.

Flowchart of an assessment engagement. Objectives lead to scope, then rules of engagement, then written authorization signed by the asset owner. Testing follows, with two side branches: critical finding leads to immediate notification, and an incident or safety problem leads to the stop procedure. Testing ends in reporting, remediation and retesting, then secure destruction of test data.
An engagement flows from objectives to authorization before any testing, with defined paths for critical findings and emergencies.

Written authorization

Written authorization is the single most important document in any intrusive test. It is signed by someone with authority over the assets, such as the system owner or an executive, and states who may test what, when, and by what means. Testers carry it, sometimes literally as a 'get out of jail' letter during physical tests, so that if a guard or the police intervene, the authority is clear. Without it, a well-intentioned tester may be committing an offense, and an employee who 'just ran a quick scan' may be disciplined or prosecuted.

In the United States, the main federal law is the Computer Fraud and Abuse Act, 18 U.S.C. 1030, which prohibits accessing a computer without authorization or exceeding authorized access, and causing damage. In Van Buren v. United States (2021) the Supreme Court read 'exceeds authorized access' narrowly, as entering parts of a system that are off limits rather than misusing information one is entitled to see. In May 2022 the Department of Justice revised its charging policy so that federal prosecutors should not charge good-faith security research under the CFAA. That policy does not bind states, which have their own computer crime laws, or private parties who can still sue. Written authorization from the owner remains the tester's real protection, and many organizations add safe-harbor language to their vulnerability disclosure policies.

Diagram of legal protection for testers in the United States. Center: written authorization from the asset owner. Around it: the Computer Fraud and Abuse Act, the Van Buren decision narrowing exceeds authorized access, the 2022 Justice Department policy on good-faith research, state computer crime laws, privacy and sector laws, and contracts with cloud providers. A note says the federal policy does not bind states or civil suits.
In the US, written authorization is the main protection under the CFAA and state laws.

Authorization must come from the right person. A department head cannot authorize testing of another department's systems, and nobody inside the organization can authorize testing of a supplier's systems. If an engagement involves social engineering of employees, human resources and legal should approve the approach, and in unionized workplaces collective agreements may also apply. For physical tests, building owners and landlords may need to consent, and guards' managers should know how to verify the letter.

Worked problem

An authorization gap

Midway through an approved external test, a tester discovers that the company's customer portal is hosted by a third-party provider and that a second, unlisted IP address responds on the same domain. What should happen?

Show solution
  1. Stop testing the portal and the unlisted address immediately; neither is clearly within the authorized scope.
  2. Report the discovery to the client contact named in the rules of engagement.
  3. The client must confirm ownership; if the provider owns the infrastructure, the client must obtain the provider's permission or accept its existing assessment reports.
  4. Only after written amendment of the scope and authorization can testing resume.

Answer: Stop, notify, and resume only with a written scope amendment covering assets the client is entitled to authorize.

Safety, change management and communication

Even authorized tests can cause harm. Scans can crash older systems, account lockout policies can lock out real users when testers guess passwords, and exploitation can leave systems unstable. Mitigations include testing in a staging environment that mirrors production where possible, taking backups beforehand, using safe scanner profiles for fragile devices such as industrial control systems and medical equipment, rate limiting, and scheduling around business peaks. Intrusive tests should go through the change management process like any other change, so the operations center knows what to expect and can tell a test from a real attack.

Communication plans decide who is told what. For announced tests the security operations center is informed, and testers' source addresses are shared so alerts can be recognized. For unannounced tests, a small 'white cell' or trusted agent knows, so that a real response can be stopped before police are called or customers are notified. Either way, the plan should say how testers identify themselves if challenged and how a suspected real incident discovered during testing is handled. A test must never mask a real attack.

A simple scope check that testers can run before touching any host (documentation address ranges).
# Checking a list of discovered hosts against the authorized scope
import ipaddress
scope = [ipaddress.ip_network(n) for n in ('203.0.113.0/26', '198.51.100.16/28')]
excluded = [ipaddress.ip_address(a) for a in ('203.0.113.10',)]  # fragile legacy server
found = ['203.0.113.5', '203.0.113.10', '203.0.113.70', '198.51.100.20', '192.0.2.44']
for h in found:
    ip = ipaddress.ip_address(h)
    if ip in excluded:
        status = 'OUT: explicitly excluded'
    elif any(ip in n for n in scope):
        status = 'in scope'
    else:
        status = 'OUT: not authorized, stop and ask'
    print(f'{h:15s} {status}')
Output
203.0.113.5     in scope
203.0.113.10    OUT: explicitly excluded
203.0.113.70    OUT: not authorized, stop and ask
198.51.100.20   in scope
192.0.2.44      OUT: not authorized, stop and ask

The output shows why explicit scope matters: two of five discovered hosts may not be touched, one because it is fragile and one because it lies outside the authorized ranges. Professional testers run checks like this before every action, and well-run engagements keep an activity log with timestamps and source addresses so that any incident can be matched to, or ruled out from, the test.

Validating assessment design and quality

Before signing an engagement, a manager should validate that the design will answer the objective. Are the testers qualified, with relevant certifications and references? Does the method follow a recognized standard such as NIST SP 800-115, the Penetration Testing Execution Standard (PTES) or the Open Source Security Testing Methodology Manual (OSSTMM)? Is the time budget realistic for the scope? Will findings be risk-rated in a way the organization uses? Are retesting and a management summary included? Is insurance in place? These questions belong in procurement as much as in security.

After the test, validation continues: were all scoped items actually tested, and were limitations recorded? A good report states what was not covered and why, for example because an application was unavailable for two days. Without that statement, readers will assume coverage that never happened.

Common mistakes

  • MistakeStarting a test with verbal permission from a manager.

    InsteadObtain written authorization from someone with authority over every in-scope asset.

  • MistakeTesting a cloud provider's or supplier's systems because your data is on them.

    InsteadTest only what you own or control, under the provider's published policy or with its permission.

  • MistakeDefining scope as "the network".

    InsteadList ranges, hosts, applications, locations and people, plus explicit exclusions.

  • MistakeWaiting for the final report to mention a critical exposure.

    InsteadAgree an immediate notification path for critical findings.

  • MistakeDownloading sensitive records to prove access.

    InsteadProve access with minimal evidence and protect any data handled.

  • MistakeRunning intrusive tests outside change management.

    InsteadSchedule them as changes so operations can recognize and support them.

Summary and key terms

  • Assessments begin with a specific objective tied to a decision.
  • Tester knowledge (black, gray, white box) and defender knowledge (announced, unannounced) are separate design choices.
  • Scope lists exactly what is in and out, including cloud, third-party, social and physical targets.
  • Rules of engagement set techniques, windows, data handling, critical-finding notification and the stop procedure.
  • Written authorization from the asset owner is the essential legal protection for testers.
  • Intrusive tests need safety measures, change management and a communication plan.
  • Validate the design, the testers and the report's coverage statement.
Scope
The defined set of assets, people and processes an assessment may examine, with explicit exclusions.
Rules of engagement
Operating instructions for a test: techniques, timing, contacts, data handling and stop procedures.
Written authorization
A signed document from the asset owner permitting specified testing.
Black-box test
A test in which testers start with only public information.
White-box test
A test in which testers receive full documentation, code and credentials.
Gray-box test
A test with partial knowledge, such as a normal user account.
Double-blind test
A test in which testers have no knowledge and defenders are not told.
White cell
The small group that knows about an unannounced test and can stop or deconflict it.
Color of right
An honest belief in a legal right to act, which written authorization supports in Canadian criminal law.
Safe harbor
A promise not to pursue legal action against good-faith researchers who follow stated rules.

Practice problems

Work each problem on paper first, then reveal the answer to check.

  1. What is the difference between a black-box and a white-box test?

    Show answer

    Black-box testers have only public information; white-box testers have full documentation, code and credentials.

  2. What does an unannounced test measure that an announced test does not?

    Show answer

    Detection and response by defenders.

  3. Who can authorize testing of a software-as-a-service application your company uses?

    Show answer

    Only the provider; your company can rely on its assessment reports or seek its permission.

  4. Name three items rules of engagement should include.

    Show answer

    Any three of: permitted techniques, windows, contacts, data handling, critical-finding notification, stop procedure.

  5. What should a tester do on finding evidence of a real intrusion?

    Show answer

    Stop and escalate immediately through the agreed contact.

  6. Why put intrusive tests through change management?

    Show answer

    So operations can plan, recognize the activity and respond if something breaks.

  7. How should a tester prove access to a database of personal records?

    Show answer

    With minimal evidence such as a record count or screenshot, not by downloading data.

  8. Name two recognized testing methodologies.

    Show answer

    Any two of NIST SP 800-115, PTES, OSSTMM, the OWASP Web Security Testing Guide.

  9. Why should a report state what was not tested?

    Show answer

    Otherwise readers assume coverage that did not happen.

  10. What protects a tester legally more than anything else?

    Show answer

    Written authorization from the owner of the assets.

Lesson quiz · 5 questions

Score 60% or more to complete this lesson.

Take the quiz