Penetration Testing Rules of Engagement: What to Include and Why It Matters

Penetration Testing Rules of Engagement: What to Include and Why It Matters

Peter Briel
Peter Briel
November 2026

Quick answer: Penetration testing rules of engagement (RoE) are the written agreement that defines exactly how a penetration test will be carried out: which systems are in scope, which are off limits, when testing can happen, which techniques are allowed, who to contact in an emergency, how data is handled and when testing must stop. Signed by both the client and the testing provider, the RoE protects the business from disruption, protects testers legally and makes sure the results answer the questions the organization actually cares about.

A penetration test deliberately uses attacker techniques against live systems. Without clear rules, a well-meant test can take down a production service, alarm customers, trigger an incident response or cross legal boundaries with a cloud provider or third-party host. The rules of engagement turn an open-ended activity into a controlled, accountable project.

This guide explains what rules of engagement include, how they differ from scope and contracts, the key sections to agree, common mistakes and how to prepare. For a broader introduction, see our guide to what penetration testing is.

What Are Penetration Testing Rules of Engagement?

Penetration testing rules of engagement are the operating rules for a specific engagement. They sit alongside the contract and statement of work and translate business goals into practical boundaries for the testing team. Recognized guidance such as NIST SP 800-115 and the Penetration Testing Execution Standard (PTES) treat agreed rules of engagement as a core part of planning, because they make testing safe, legal and repeatable.

A good RoE answers one simple question for every tester on the team: what am I allowed to do, to what, when, and what do I do if something goes wrong?

Rules of Engagement vs Scope vs Contract

DocumentWhat it covers
Contract or master services agreementCommercial terms, liability, confidentiality and legal obligations between the parties
Statement of workDeliverables, timeline, test types and price
ScopeThe specific systems, applications, IP ranges and environments to be tested
Rules of engagementHow testing is conducted: timing, techniques, limits, communication, safety and data handling
Authorization letterWritten permission from the system owner confirming testers are allowed to test

Scope and rules of engagement are closely linked, and many providers combine them in one document. Our guide to penetration testing scope covers how to decide what to include.

Why Rules of Engagement Matter

  • Legal protection: written authorization separates a professional test from unauthorized access.

  • Operational safety: limits and stop conditions protect production systems and customers.

  • Clear expectations: both sides agree what will be tested and how, so there are no surprises.

  • Better results: testing focuses on the risks the business cares about most.

  • Audit evidence: auditors for PCI DSS, SOC 2 and other frameworks often ask how the test was planned and authorized.

Key Sections of Penetration Testing Rules of Engagement

1. Objectives

State what the test is meant to achieve, such as meeting PCI DSS requirements, validating a new application before launch, answering a customer security questionnaire or testing how far an attacker could get from a phishing foothold. Objectives guide every later decision.

2. In-scope and out-of-scope targets

List domains, IP ranges, applications, APIs, cloud accounts, user roles and physical locations that are in scope, and explicitly list anything that is excluded, such as fragile legacy systems, third-party services the organization does not own or production databases that must not be modified.

3. Testing windows

Define dates, hours and time zones for testing, along with any blackout periods such as month-end processing, major releases or peak sales days.

4. Permitted techniques

Specify which activities are allowed: automated scanning, manual exploitation, password attacks, social engineering, physical entry, wireless testing or lateral movement. Note any limits, such as no denial-of-service testing, no data modification or a maximum number of login attempts to avoid account lockouts.

5. Starting access and credentials

Record whether testing is black box, gray box or white box, and which test accounts, VPN access or documentation the client will provide.

6. Communication and escalation

Name primary and backup contacts on both sides, how and how often status updates will be shared, and how quickly critical findings will be reported during the test rather than waiting for the final report.

7. Emergency stop procedure

Describe what happens if a system becomes unstable, an unexpected incident occurs or a real attacker is detected. Both sides should be able to halt testing immediately.

8. Data handling

Explain how testers will handle sensitive data they encounter, where evidence will be stored, how it will be protected and when it will be deleted.

9. Third-party considerations

Confirm whether hosting providers, cloud platforms, managed service providers or SaaS vendors need to be notified or have their own testing policies that must be followed.

10. Reporting and retesting

Agree on report format, severity rating method, delivery dates and whether a retest of fixed issues is included.

11. Signatures

The rules of engagement should be signed by people with authority over the systems being tested and by the testing provider before any testing starts.

Rules of Engagement for Specific Test Types

Penetration testing rules of engagement need extra detail for certain types of testing:

  • Cloud testing: follow each provider's published testing policy and limit testing to accounts and resources you own. See our guides to AWS penetration testing and Azure penetration testing.

  • Social engineering: define which employees may be targeted, which pretexts are acceptable, whether HR and legal are informed and how results will be handled sensitively. Our guide to social engineering penetration testing covers this in depth.

  • Physical testing: carry a signed authorization letter, list approved entry points and agree how security staff will verify testers if challenged.

  • Internal and Active Directory testing: agree limits on password attacks, account lockouts and changes to directory objects.

  • Industrial and OT systems: rely on passive techniques and lab testing wherever possible, with operations staff involved. See our guide to OT penetration testing.

Should the Security Team Be Told?

One important decision is whether the internal security operations team knows the test is happening. Announced testing avoids wasted incident response effort and is common for compliance-driven tests. Unannounced testing measures whether monitoring and response actually work, but requires a trusted contact who can confirm the activity is authorized if the team escalates. The rules of engagement should record which approach is used and who holds that confirmation role. For full adversary simulation with detection as a primary goal, see our comparison of red teaming and penetration testing.

How Rules of Engagement Are Created

  1. Kickoff call: the provider and client discuss goals, environment and constraints.

  2. Information gathering: the client shares asset lists, architecture details and any known sensitivities.

  3. Draft: the provider prepares the rules of engagement and scope.

  4. Review: IT, security, operations, legal and any affected third parties review the draft.

  5. Sign-off: authorized representatives sign before testing begins.

  6. Change control: any change during testing, such as adding a new target, is approved in writing.

These steps fit into the planning phase of a standard penetration testing methodology.

Example: Rules of Engagement for a Web Application Test

To make this concrete, consider a typical SaaS application test. The objective is to validate tenant isolation and role-based access before an enterprise customer review. In scope are the production web application, its public API and the staging environment, while the payment processor and the marketing website are excluded. Testing runs weekdays during business hours in the client's time zone. Testers receive two accounts in each of two customer tenants plus one admin account. Automated scanning is allowed at a limited rate, password attacks are limited to five attempts per account and no data may be deleted. Critical findings are reported by phone within two hours, and either side can pause testing at any time. Evidence is stored encrypted and deleted 90 days after the final report. A one-time retest is included within 60 days.

Rules of Engagement for Retesting and Ongoing Testing

Retests and continuous testing programs need rules too. For a retest, confirm that scope is limited to the original findings unless new targets are approved. For ongoing or on-demand testing, agree standing rules once, then add short written approvals for each new target or release. This keeps penetration testing rules of engagement current without slowing every test down. Our guide to continuous penetration testing explains how ongoing programs work.

Common Mistakes in Rules of Engagement

  • Vague scope statements such as testing the network without listing ranges or exclusions.

  • Missing emergency contacts or contacts who are unavailable during testing windows.

  • Forgetting third-party hosting or SaaS providers that own part of the environment.

  • No agreed limit on password attempts, leading to mass account lockouts.

  • No process for reporting critical findings during the test.

  • Signatures from people who do not actually have authority over the systems.

  • Testing new targets that appear mid-engagement without written approval.

Rules of Engagement Checklist

  • Objectives agreed and written down.

  • In-scope and out-of-scope targets listed precisely.

  • Testing dates, hours, time zones and blackout periods defined.

  • Permitted and prohibited techniques documented.

  • Test accounts and access arranged.

  • Primary and backup contacts confirmed on both sides.

  • Emergency stop procedure agreed.

  • Data handling and retention rules defined.

  • Third-party and cloud provider policies checked.

  • Reporting format, deadlines and retest agreed.

  • Authorization signed by system owners.

For broader preparation, use our penetration testing checklist.

How Rules of Engagement Affect Cost and Timeline

Clear penetration testing rules of engagement often save money. Precise scope and access arrangements mean testers spend time testing instead of waiting for credentials or clarifying targets. Restrictions such as night-only testing windows or strict rate limits can extend timelines, so it helps to discuss them early. Our guides to penetration testing cost and how long a penetration test takes explain the main factors.

Rules of Engagement and Compliance

Auditors and assessors increasingly look at how a test was planned, not just at the final report. Documented penetration testing rules of engagement show that testing was authorized, that scope matched the environment being assessed and that segmentation or critical systems were deliberately included. For PCI DSS, the rules should reflect the cardholder data environment and any segmentation controls being tested. See our overview of penetration testing compliance requirements for each framework.

What Happens After the Test

The rules of engagement also guide the end of the engagement. Testers remove any tools or accounts they created, return or delete sensitive data, confirm that systems are in their expected state and deliver the report on the agreed date. If a retest is included, the same rules usually apply to it, with any updates agreed in writing. A clear close-out avoids leftover access paths and gives the client confidence that the test ended cleanly. Our guide to the penetration testing report explains what the final deliverable should contain.

Frequently Asked Questions About Penetration Testing Rules of Engagement

What are penetration testing rules of engagement?

Penetration testing rules of engagement are a signed document that defines scope, timing, permitted techniques, communication, emergency procedures and data handling for a specific penetration test.

Who signs the rules of engagement?

Representatives with authority over the systems being tested sign on the client side, along with the testing provider. If third parties own part of the environment, their approval may also be needed.

Are rules of engagement the same as scope?

No. Scope lists what will be tested, while rules of engagement define how testing will be done. They are often combined in one document.

Can scope change during a test?

Yes, but only with written approval. New targets should be added through a documented change to the rules of engagement.

Do cloud tests need special rules?

Yes. Each cloud provider publishes its own testing policy, and the rules of engagement should confirm that testing follows it.

What happens if something breaks during testing?

The emergency stop procedure applies: testing pauses, both sides' contacts are notified and testing resumes only when it is safe and approved.

Final Thoughts

Strong penetration testing rules of engagement make a penetration test safe, legal and focused on real business risk. Define objectives and targets precisely, agree limits and contacts, plan for emergencies and get proper sign-off before testing starts.

To plan a well-scoped engagement, explore Privaxi's testing and assessment services.

Contact Us

Secure Your Business's Future

Contact us today for a personalized consultation and see how we can tailor a security solution that fits your business needs perfectly.