COMP-220 · Lesson 2 of 12 · 20 min

Scope, rules of engagement and authorization

▶ Video coming soon A video version of this lesson is on the way.

The Prairiefold scoping call took place on Thursday, August 27, 2026. Gwendolyn Tran joined from Prairiefold's head office with Felix Aberdeen beside her; Dario Feldspar and Tobias joined from Ironwhistle's office. Gwendolyn opened with the sentence every tester hears at some point: "Test everything." Dario smiled and spent the next ninety minutes, politely, turning "everything" into a list that could be signed.

This lesson covers the three documents and ideas that turn a request into permission: the scope, which says what will be tested; the rules of engagement, which say how; and the authorization, which says that the people who own the targets agree. It also covers the shared responsibility model, because many modern targets are not wholly owned by the client. These map to PT0-003 objective 1.1.

Scope: from goals to targets

A scope starts with goals and ends with an exact list. Dario asked Gwendolyn what she most needed to learn. Her answers, ranked, became the engagement's goals: whether an outsider could reach member data through the internet-facing systems; whether an insider or a compromised workstation could reach the same data; whether the new member portal, due to launch in early 2027, was safe; how staff responded to phishing; and whether someone could walk into a branch or head office and reach the network. Each goal pointed at a class of target and an assessment type.

PT0-003 names seven assessment types: web, network, mobile, cloud, application programming interface (API), application and wireless. Real engagements combine them. Prairiefold's scope included network testing (external and internal), web testing of the portal's staging environment, API testing of the services behind the portal, limited cloud checks of the Microsoft 365 and Azure tenant, and a physical and social engineering component. Mobile testing of the credit union's banking app was deliberately left for another year because the app was being rebuilt. Wireless testing was included only at the one branch chosen for the physical test.

Target selection

Targets are written down in forms that leave no room for argument. The objectives list four: CIDR ranges, domains, IP addresses and URLs. A CIDR (classless inter-domain routing) range such as 203.0.113.0/26 names a block of addresses: the number after the slash is how many leading bits are fixed, so a /26 leaves 6 bits for hosts, or 64 addresses. A tester who misreads a /26 as a /24 has just quadrupled the scope and may be scanning addresses that belong to someone else.

Prairiefold's scope annex listed targets like this. The addresses below come from the ranges reserved for documentation, which this course uses for every example.

An excerpt in the style of Prairiefold's target list. Exclusions sit beside the ranges they carve out of.
IN SCOPE — EXTERNAL
  203.0.113.0/26            Prairiefold internet-facing range (64 addresses)
  vpn.prairiefold.example   Remote access gateway
  mail.prairiefold.example  Mail relay
IN SCOPE — WEB AND API (STAGING ONLY)
  https://staging-portal.prairiefold.example/       Member portal, staging
  https://staging-portal.prairiefold.example/api/   Portal API, staging
IN SCOPE — INTERNAL
  192.0.2.0/25              Head office server network
  192.0.2.128/25            Branch 07 workstation network
  Other branch networks     As listed in annex B
  EXCLUDE                   Core banking servers (annex B, section 4)
OUT OF SCOPE
  Production online banking (third-party processor)
  198.51.100.0/25           Processor-owned range: do not touch

Several habits make target lists safe. Ranges are confirmed against the client's registration records, because clients sometimes list addresses they no longer own. Domain names are resolved and the resulting addresses checked against the list, because a domain the client owns may point at a server the client does not, such as a marketing site on a shared hosting platform. URLs name the environment explicitly, because "the portal" might mean staging, test or production. And exclusions are written next to the ranges they carve out of, so nobody reads one without the other.

A green panel labelled in scope, authorization letter, September 14, containing six boxes: external ranges 203.0.113.0/26; internal networks, head office and branches; member portal, staging only; Microsoft 365 tenant, read-only checks; phishing simulation, HR consent, 300 staff; physical, head office and one branch. A red panel labelled out of scope lists production online banking (processor), core banking system, denial of service, members and their devices, and other branches (physical).
The Prairiefold scope in summary. Every item on the right was discussed and excluded on purpose.

Rules of engagement

Where the scope answers "what", the rules of engagement (RoE) answer "how". PT0-003 names four elements explicitly: exclusions, test cases, the escalation process and the testing window. Real RoE documents cover more, and Prairiefold's ran to six pages.

Elements of the Prairiefold rules of engagement.
RoE elementWhat it settlesPrairiefold example
Testing windowDates and hours when testing may happenOctober 5 to November 13, 2026; internal scanning weekdays 07:00 to 19:00; no testing during month-end processing
ExclusionsSystems, techniques or people that are off limitsCore banking servers; denial of service; members and their devices; executives' personal accounts
Test casesSpecific scenarios the client wants triedCan a standard staff account reach member data? Can a visitor reach a network port at the branch?
Escalation processWho is called, how and whenCritical findings to Gwendolyn the same day; outages to Felix immediately by phone
Stop conditionsEvents that pause testingAny unexpected outage; discovery of unencrypted member data in bulk; evidence of a real intrusion
Data handlingWhat may be collected and how it is protectedNo member data copied; screenshots redacted; evidence on encrypted, firm-owned storage
CommunicationChannels and frequencyDaily summary by secure portal; weekly call; encrypted email for scheduling only
Testers and source addressesWho is testing and from whereNamed testers; external testing only from one declared Ironwhistle source address

The testing window protects operations. A credit union processes payroll deposits and loan payments on predictable cycles, and Felix did not want scanning traffic on the network during those hours. The window also tells the security operations team when to expect unusual traffic, so a real attack during the window is not dismissed as "probably the testers". For that reason Ironwhistle gave Prairiefold's monitoring provider its declared source address and asked them to log, not ignore, alerts from it.

Exclusions protect fragile or third-party systems. The core banking servers were excluded because a crash would stop transactions across 40 branches and because the platform vendor's contract forbade testing without its involvement. Denial of service was excluded because the business had no tolerance for deliberate outages. Members were excluded completely: no phishing, no contact and no testing of their devices.

Test cases turn goals into specific questions. They help the client get answers it cares about and help the tester plan. They do not limit the tester to only those scenarios unless the RoE says so; Prairiefold's RoE described them as minimum coverage.

The escalation process says who to contact when something important happens, by what channel and within what time. Lesson 8 covers escalation in depth; for now, the point is that it is agreed before testing starts, with names, phone numbers and backup contacts.

The authorization letter, sometimes called a permission to test or, informally, a "get out of jail free" letter, is the written statement by someone with authority over the targets that the named testers may test them. It is short and specific, and testers carry a copy, physically during on-site work, so they can show it if challenged. A good letter contains the following.

Contents of a sound authorization letter.
ElementWhy it matters
Name and title of the signer, with confirmation of their authorityPermission from someone who does not control the systems is worthless
The testing organization and the named individual testersShows exactly who is permitted; new testers require an amendment
The targets, or a reference to the signed scope annexTies permission to specific ranges, domains, URLs and sites
The testing windowPermission outside the window does not exist
Permitted activities, including physical entry and social engineering if includedA letter that does not mention physical testing does not cover it
Emergency contacts available around the clockLets security staff or police verify the test on the spot
Signatures and dateEvidence that permission existed before testing began

Prairiefold's letter was signed on September 14, 2026 by its chief executive, with Gwendolyn as the named sponsor, after Ruth Mbatha confirmed that the chief executive had authority over all listed systems and premises. Dario insisted on the chief executive's signature rather than Gwendolyn's alone because the physical test included head office, which was leased, and the lease gave the landlord rights over common areas. Ruth obtained the landlord's written consent for the lobby and stairwells, and the letter referenced it.

Physical testers carry the letter, but the letter alone is not enough if a guard or police officer cannot verify it. That is why it includes emergency contacts who will answer the phone during testing hours and can confirm the test. A letter whose verification number goes to a voicemail box at 19:30 has failed exactly when it is needed.

The shared responsibility model

Modern environments mix systems the client owns with systems it rents. PT0-003 lists four parties in the shared responsibility model as it applies to testing: the hosting provider, the customer, the penetration tester and third parties.

Four columns. Hosting or cloud provider: physical hosts, hypervisor, provider network; test only under the provider policy. Customer, the client: its accounts, settings, data, apps and the systems it owns; signs the letter. Penetration tester: stays inside scope, protects data, stops when conditions are met, reports. Third parties: processors, MSPs, SaaS vendors; need their own written permission.
Who is responsible for what, and who can grant permission to test it.

The hosting provider, such as a public cloud platform, owns the physical hardware, the virtualization layer and its own network. A customer cannot authorize testing of those, and major cloud providers publish policies saying what customers may test in their own tenancies without prior approval and what is always forbidden, typically including denial of service against the platform and attacks on other customers. Testers read the current policy for each provider in scope and record it in the RoE.

The customer, Prairiefold here, is responsible for what it configures and controls: its accounts, identity settings, virtual machines, storage permissions, applications and data. It can authorize testing of these, within the provider's policy. Priyanka's cloud checks of Prairiefold's Microsoft 365 and Azure tenant were limited to reviewing configuration with a read-only account Prairiefold created for her, which kept the work within both Prairiefold's authority and Microsoft's published rules.

The penetration tester is responsible for staying within scope, protecting what they collect, following stop conditions and reporting accurately. Third parties, such as payment processors, managed service providers and software-as-a-service vendors, own their systems even when those systems serve the client. Testing them needs their own written permission. Prairiefold's online banking was hosted by a processor whose contract allowed customer-requested testing only through the processor's own annual programme. Ruth asked; the processor declined to add Ironwhistle. The production platform therefore stayed out of scope, and the report noted it as a limitation.

Worked problem

Is this target in scope?

During reconnaissance, Tobias finds that rewards.prairiefold.example, a member rewards site run for Prairiefold by a marketing vendor, resolves to 203.0.113.200. That address is outside the 203.0.113.0/26 range, which ends at 203.0.113.63, so it is not in the scope annex. The site carries Prairiefold branding and collects members' names and email addresses. May Ironwhistle test it?

Show solution
  1. Check the annex: the domain and the address are not listed, so they are not in scope regardless of branding.
  2. Identify the owner: a lookup suggests the address belongs to the marketing vendor, which hosts sites for many clients.
  3. Recognize the third-party issue: even if Prairiefold asked, it cannot authorize testing of the vendor's shared platform.
  4. Record the discovery and tell Gwendolyn, because an unlisted site holding personal data is itself useful information.

Answer: No. Do not test it. Report the discovery, and test it only if the vendor gives written permission and the scope is formally amended.

The cloud picture also changes over time. Providers revise their testing policies, add services and change what requires notification, so the date on which each policy was checked belongs in the rules of engagement. If a policy changes during the testing window, the engagement lead reads the new version before continuing work on that platform.

Changing the scope

Scopes change. A client remembers a forgotten subnet; a tester discovers an unlisted system; a business event forces new dates. Changes are handled the same way the original scope was: in writing, signed by someone with authority, before the new work begins. A verbal "go ahead" on a call is not authorization. Ironwhistle used a one-page change form that referenced the original letter and listed the added or removed targets and any new dates, and Ana filed every signed change with the engagement records. Lesson 8 shows a change made mid-engagement when Prairiefold's HR department asked to move the phishing simulation.

Uncontrolled growth in scope, often called scope creep, causes two kinds of trouble. Commercially, it consumes time the client has not paid for. Legally and ethically, it risks testing something no one authorized. The disciplined answer to "while you're in there, could you just look at..." is "yes, once we have it in writing".

Common mistakes

  • MistakeTesting every address a client's domains resolve to.

    InsteadConfirm that each resolved address belongs to the client and appears in the signed scope.

  • MistakeAccepting a verbal scope change on a call.

    InsteadGet a signed change before testing anything new.

  • MistakeRelying on the client's permission for cloud provider infrastructure.

    InsteadFollow the provider's published testing policy; customers can authorize only what they control.

  • MistakeCarrying an authorization letter whose contacts are unreachable during testing hours.

    InsteadList emergency contacts who will answer for the whole window, with backups.

  • MistakeWriting "the portal" in the scope.

    InsteadName the exact URL and environment, such as the staging host.

Summary and key terms

  • Scope turns ranked goals into a precise list of targets and assessment types.
  • Targets are named as CIDR ranges, domains, IP addresses and URLs, with exclusions written beside them.
  • Rules of engagement set the testing window, exclusions, test cases, escalation process, stop conditions, data handling and communication.
  • The authorization letter, signed by someone with authority, names the testers, targets, window, permitted activities and emergency contacts.
  • Under the shared responsibility model, customers authorize what they control; hosting providers and third parties control the rest.
  • Scope changes need written, signed approval before work begins.
Scope
The written definition of which targets and assessment types an engagement covers.
Rules of engagement
The agreed rules for how testing is carried out, including windows, exclusions, escalation and stop conditions.
Authorization letter
A signed statement by someone with authority over the targets permitting named testers to test them.
CIDR notation
A way of writing an address block as a base address and the number of fixed leading bits, such as 203.0.113.0/26.
Testing window
The agreed dates and hours during which testing may take place.
Shared responsibility model
The division of security duties, and of authority to permit testing, between a provider, its customer, testers and third parties.
Scope creep
Unplanned growth in the work or targets beyond what was agreed.

Practice problems

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

  1. How many addresses does a /27 range contain?

    Show answer

    32, because 32 minus 27 leaves 5 host bits and 2 to the power 5 is 32.

  2. Name the four rules of engagement elements PT0-003 lists explicitly.

    Show answer

    Exclusions, test cases, the escalation process and the testing window.

  3. Why did Prairiefold's production online banking remain out of scope?

    Show answer

    It was owned and hosted by a third-party processor that did not give Ironwhistle written permission.

  4. What should a physical tester do if challenged by a guard?

    Show answer

    Stop, show the authorization letter and ask the guard to call the emergency contact listed on it.

Lesson quiz · 5 questions

Score 60% or more to complete this lesson.

Take the quiz