Process

Rules of engagement for penetration testing

Published Updated 4 min read

The short answer

Rules of engagement are the written agreement that authorizes a penetration test and defines exactly what testers may do: which systems, when, using which techniques, and what happens if something goes wrong. They turn an attack into an authorized test, protect both sides, and keep testing safe for production systems. No reputable tester should start without them signed.

What are rules of engagement?

Rules of engagement (often shortened to RoE) are the operating rules for a security test. Some providers combine them with the scope in one document, others keep a separate scope statement or statement of work. Either way, the content is the same: what is allowed, what is not, and how both teams communicate.

The National Institute of Standards and Technology (NIST) guide to security testing, SP 800-115, treats rules of engagement as a core part of planning an assessment, covering items such as authorized targets, testing times, permitted techniques and points of contact.

Why does written authorization matter?

The techniques used in a penetration test are the same ones a criminal would use. What separates them is permission from someone with the authority to give it. In many countries, accessing a computer system without authorization is an offence, which is why testers insist on written, signed authorization before any activity.

Two details matter in practice:

  • The signer must have authority over every system in scope. An engineering lead may not be able to authorize testing of a parent company's network or a vendor-hosted service.
  • Third-party systems need their own permission. Your SaaS providers, payment processors and hosting companies own their infrastructure. Their published testing policies, or direct written consent, govern what is allowed there.

What should a rules of engagement document contain?

Typical sections of a penetration testing rules of engagement document
SectionWhat it covers
Parties and authorizationWho is testing, who is authorizing, signatures and dates
ObjectivesThe questions the test must answer
In-scope assetsExact domains, URLs, API paths, IP ranges, cloud accounts, tenants, applications
Out-of-scope assetsSystems that must not be touched, including third-party and shared infrastructure
Permitted techniquesFor example authenticated testing, exploitation to prove impact, password attacks against test accounts
Prohibited techniquesFor example denial of service, social engineering of staff, physical access, destructive actions
Testing windowsDates, hours, time zones and blackout periods
Access and accountsTest credentials, VPN details, source IP addresses testers will use
Communication planStatus updates, channels, and how critical findings are reported mid-test
Stop conditionsEvents that pause or end testing immediately
Emergency contactsNamed people on both sides, reachable during and outside testing hours
Data handlingHow sensitive data encountered is treated, stored, and destroyed
Reporting and retestDeliverables, timelines and how fixes will be verified

When should testing happen?

The safe window depends on the system. Customer-facing applications are often tested during business hours, when engineers are around to respond if something looks wrong. High-volume or riskier activities may be scheduled for quieter periods. Either way, write the window down with a time zone, and include blackout dates such as launches or end-of-quarter billing runs.

If detection and response are part of what is being tested, the RoE should say who knows the test is happening. A small trusted group (sometimes called a white cell) can confirm an alert is the test without tipping off the defenders being evaluated.

What is usually out of scope?

Out-of-scope lists are as important as in-scope lists, because ambiguity is where accidents happen. Common entries:

  • Denial of service and load testing, unless explicitly arranged. Major cloud providers, including AWS and Microsoft, prohibit denial of service testing under their standard pentest policies.
  • Third-party services you use but do not own, unless their owner has agreed.
  • Social engineering, phishing or physical entry, unless specifically requested and authorized.
  • Actions that change or delete real customer data.
  • Specific fragile systems, such as legacy hardware or a database without a recent backup.

If testers discover a new asset during the engagement, such as an unlisted subdomain, the RoE should say what happens: usually they report it and wait for written approval before testing it.

When should a test be stopped?

Stop conditions are pre-agreed triggers that pause testing until both sides talk. They exist so nobody has to make a judgement call under pressure. Typical triggers:

  • A system in scope becomes slow, unstable or unavailable.
  • Testers find evidence of a real compromise by someone else, such as unknown accounts or web shells.
  • Testers gain access to highly sensitive data, such as payment card data, health records or production secrets, beyond what is needed to prove impact.
  • Activity appears to be reaching a system outside the scope.
  • The client requests a pause for any reason.

Each trigger should name who to call and how fast, using the emergency contacts listed in the document.

How should testers handle sensitive data?

Proving a finding sometimes means touching real data. The RoE should limit that to the minimum: retrieve enough to prove access (for example one redacted record), do not bulk download, and never use found credentials outside the agreed scope.

It should also cover where evidence and reports are stored, who can access them, how they are encrypted, and when they are destroyed after the engagement. Reports describe your weaknesses in detail, so they deserve the same care as the data they protect.

How Brexa approaches this

Brexa does not test anything without a signed scope and rules of engagement, and every action during an engagement is recorded. Brexa works alongside an existing security provider rather than replacing it, which makes clear contacts and communication rules in the RoE especially useful. More on how engagements run is on the how it works page.

Frequently asked questions

Is a statement of work the same as rules of engagement?

Not exactly. A statement of work covers the commercial side, such as deliverables, dates and price, while rules of engagement cover how testing is carried out. Some providers combine them into one document.

Who should sign the rules of engagement?

Someone with authority over every system in scope, often a CTO, CISO or other executive. If systems belong to a parent company, a customer or a vendor, their authorization is needed too.

Can the scope change during a test?

Yes, but only in writing. If testers find a new asset or you want to add one, update the scope and get it signed before any testing of the new item begins.

Do continuous testing programs need rules of engagement?

Yes. Continuous or automated testing still needs a defined scope, permitted techniques, stop conditions and contacts, and the document should be reviewed whenever the environment changes significantly.

Sources

  1. NIST SP 800-115: Technical Guide to Information Security Testing and Assessment
  2. AWS: Penetration Testing policy
  3. Microsoft: Penetration Testing Rules of Engagement
  4. Google Cloud: Cloud security FAQ (penetration testing)

Written and reviewed by the Brexa team. Educational information, not legal or compliance advice. See our editorial policy.

Find out what an attacker could do with your systems.

Book a short scoping call. Nothing is tested until scope and rules of engagement are signed, and every finding comes with proof.