Skip to content
CyberPost Advisory
All insights

Testing

What a Good Rules-of-Engagement Document Actually Contains

Scope boundaries, escalation contacts, testing windows and evidence handling — the parts that prevent an incident during an assessment.

By Jamal Hashi · CyberPost Advisory

Why this document matters more than the test plan

Organisations tend to spend most of their planning effort on the scope of a penetration test — which systems, which applications, which attack techniques are in bounds — and comparatively little on the rules of engagement that govern how the test is actually conducted. This is backwards. A well-scoped test with a thin rules-of-engagement document is far more likely to produce an operational incident than a narrower test with a thorough one, because scope defines what testers are allowed to touch, while rules of engagement define how they touch it — and it is the how that determines whether a test causes a production outage, trips an incident response process unnecessarily, or exposes sensitive data through unsafe handling.

A rules-of-engagement document is not paperwork to satisfy a legal or procurement requirement. It is the operational control that lets an offensive security exercise run safely alongside a live production environment, and the details it gets wrong are exactly the details that turn a planned assessment into an unplanned incident.

Scope boundaries, precisely defined

Scope needs to go beyond a list of domains or IP ranges. It should specify exactly which testing techniques are authorised against which assets — for example, whether denial-of-service style techniques are permitted against any system, whether social engineering against employees is in scope and if so which employees are excluded, and whether physical security testing is included. It should also explicitly name what is out of scope, since an unlisted system is not automatically excluded in a tester’s mind unless the document says so directly.

Boundary conditions deserve particular attention: shared infrastructure, third-party hosted components, and systems where the organisation does not have unilateral authority to authorise testing all need explicit treatment, because testing a system the organisation does not fully own can create legal exposure that has nothing to do with the technical outcome of the test.

Escalation contacts and what triggers them

Every rules-of-engagement document needs a named escalation contact who is reachable throughout the testing window, along with a clear definition of what circumstances require immediate contact rather than inclusion in the final report. Discovering an active compromise by a third party during testing — evidence that someone other than the authorised testers has already breached a system — is the clearest example, and it should trigger immediate notification, not a footnote in the deliverable two weeks later.

The document should also specify a secondary contact and method, because the primary contact being unreachable during exactly the moment an escalation is needed is a foreseeable failure mode, not an edge case. A phone number that goes to voicemail is not an escalation path.

Testing windows and blackout periods

Testing windows should be defined with enough precision to prevent ambiguity about when activity is authorised — specific dates and times, not just "business hours" or "this month." Just as important are blackout periods: dates when testing must not occur regardless of the overall window, typically covering major business events, financial close periods, product launches, or any other time when the organisation has reduced tolerance for unexpected system behaviour.

For any testing technique with a realistic chance of affecting system availability, the document should specify not just when testing can occur but what happens if something goes wrong mid-test — who has authority to halt testing immediately, and through what channel that instruction gets communicated and confirmed as received.

Evidence handling

Penetration tests routinely produce evidence that is itself sensitive — screenshots containing customer data, extracted credentials, database contents pulled during a successful exploitation. The rules-of-engagement document should specify how this evidence is stored during the engagement, how it is encrypted, who has access to it, how long it is retained after the engagement concludes, and how it is securely destroyed once the final report is delivered and accepted.

This is not a minor administrative detail. A testing firm that extracts real customer data as proof of a vulnerability and then handles that data less carefully than the organisation being tested handles it in production has introduced a new risk in the course of demonstrating an existing one. The rules-of-engagement document is where that risk gets closed off before testing begins, not discovered after.

Written by Jamal Hashi, CyberPost Advisory.

Let's find out what your organization is exposing.

One assessment. A clearer understanding of your external risk.