Free tech learning for everyone, from basics to pro

Penetration TestingCyber SecurityIntermediate

Planning and scoping a penetration test

In short: Most problems in penetration testing come from poor planning. A good engagement starts with clear objectives, a written scope and exclusions, agreed rules of engagement, emergency contacts, permissions from any third parties, and signed legal paperwork.

Why planning matters

Testing without a clear plan risks three things: testing systems you are not allowed to touch, breaking something important, and producing results that do not answer the client's real question. Pre-engagement planning prevents all three. It is also where the legal protection for both sides is created.

Objectives and scope

Scoping a testEngagement scopeagreed in writingObjectiveswhat to learnTargetsIPs, apps, sitesExclusionsout of boundsTimingwindows, datesTechniquesallowed or notContactsescalation, stop
Figure 1. The parts of a well-defined scope, all agreed in writing before testing starts.

Start with objectives. "Test our network" is vague. "Find out whether an attacker with a stolen staff laptop could reach payroll data" is testable. Objectives drive everything else.

The scope lists exactly what may be tested: IP ranges, hostnames, application URLs, user roles, physical locations and people. Equally important are the exclusions, such as a fragile production database or a partner's systems. Confirm ownership of every IP address and domain, because a typing mistake in a range could put someone else's network in scope.

Third parties need special attention. Cloud and hosting providers have their own testing policies, and a shared hosting platform or SaaS product usually cannot be tested without the provider's agreement.

Rules of engagement and contacts

RuleExample decision
Testing windowWeekdays 18:00 to 06:00 for production; any time for test systems
Allowed techniquesNo denial of service; phishing only to listed staff
Data handlingDo not download personal data; screenshot record counts only
Source addressesTesters work from listed IP addresses for easy identification
Critical findingsReport serious issues immediately, not just in the final report
Signs of real attackStop and inform the client contact straight away

Agree named contacts on both sides with phone numbers available during testing hours, and a clear stop procedure: anyone on the client side can halt testing if something goes wrong.

Paperwork and preparation

Pre-engagement stepsKick-offgoals,concernsScopetargets,limitsPaperworkcontract, NDA,letterPreparationaccounts,allow-listsGo-liveconfirm andstart
Figure 2. The usual sequence from first meeting to the start of testing.
  • Contract or statement of work (SOW): deliverables, dates, cost and liability.
  • Non-disclosure agreement (NDA): protects the client's information.
  • Authorisation letter: signed by someone with authority over the systems, naming the scope and dates. Testers keep a copy during the test, especially for physical work.
  • Data protection terms: how any personal data seen during testing is handled and deleted.

Practical preparation includes creating test accounts, deciding whether tester IP addresses will be allow-listed in security tools (which affects realism), taking backups of systems in scope, and informing the SOC or managed service provider if the client wants them to know.

Tip: keep a one-page summary of scope, contacts and rules beside you while testing. When in doubt about whether something is in scope, ask before acting.

Real-world example: scoping a test for a law firm

A fictional law firm asks for "a pen test of everything". In the scoping call, the testing company narrows this down. The objective is to see whether an outsider could reach client files. The scope becomes the firm's public IP range, its client portal and a test account in its Microsoft 365 tenant; the hosted phone system is excluded because the provider has not given permission. Rules of engagement ban denial of service and limit password guessing to avoid lockouts. Testing runs on two weekday evenings, with the IT manager's mobile number as the emergency contact. Everything is written into a signed authorisation letter before work starts.

Practice

Why should every in-scope IP address and domain be confirmed as owned by the client?
A mistake could mean testing someone else\u2019s systems without permission, which may be illegal and harmful.
What is a stop procedure?
An agreed way for the client to halt testing immediately, with named contacts, if something breaks or a concern arises.
Name three documents usually signed before a penetration test.
A contract or statement of work, a non-disclosure agreement and a signed authorisation letter (plus data protection terms where needed).

Key takeaways

  • Start with clear, testable objectives.
  • Scope must list targets and exclusions; confirm ownership of every address.
  • Third-party platforms need their own permission.
  • Rules of engagement cover timing, techniques, data and critical findings.
  • Sign the contract, NDA and authorisation letter before testing.
Tracks your learning on this device only. See your progress on the learning paths.

About the author

Mohamed Fayas

Founder of FM TecHub. CCNA certified, with a BTEC HND in Network Engineering, and BEng (Hons) in Computer Networking and Cloud Security. He writes practical, plain-English guides on networking, security and cloud.

More about the author

Original content written by Mohamed Fayas for FM TecHub. © 2026 FM TecHub. You're welcome to share a link to this page; please don't copy the text elsewhere without permission.

Stay up to date by email

New notes, tools and security news from FM TecHub, explained simply. Free.

We only use your email to send these updates. See our privacy policy.