Rules of engagement are the written agreement that turns a penetration test from an attack into an authorised service. They set what may be tested, when, from where, using which techniques, who to call if something goes wrong, and who has authority to approve it. The authorisation must come from someone who actually controls the systems, in writing, before testing starts. For cloud and third-party systems, you also need to follow the provider's testing policy or get their permission.
Why this document matters
Without written authorisation, the actions a pentester takes can be unlawful in many jurisdictions, whatever the intent. The rules of engagement protect the tester, your company and the people who approved the work. They also prevent the most common operational problems: tests during payroll runs, tests against a system nobody realised was shared, and alerts that send the security team into incident mode.
Keep it short and specific. Two or three pages is normal.
What the rules of engagement should cover
Use this as a checklist.
- Parties: your company, the testing firm, and named individuals for each.
- Scope: the exact domains, IP ranges, applications and accounts in scope, and anything explicitly out of scope.
- Testing window: dates, hours and time zone, plus any blackout periods.
- Source addresses: the IP addresses the tester will use, so you can recognise and, if needed, allow their traffic.
- Permitted techniques: for example, whether exploitation, password spraying, social engineering or denial-of-service testing are allowed.
- Data handling: how evidence, credentials and any accessed data are stored, protected and deleted.
- Critical finding procedure: who is told, how quickly, and through which channel.
- Stop procedure: how either side halts testing immediately, and the emergency contacts on both sides.
- Notification: who inside your company knows the test is happening.
Who signs the authorisation
The signatory must have authority over every system in scope. For your own servers and applications, that is usually a director, the CTO or the head of IT. If the scope includes systems run by a subsidiary, a parent company or a client, you need their written authorisation too.
Keep the signed authorisation with the tester during the engagement. If a hosting provider or an internet service provider asks questions, it is the document that answers them.
Cloud and third-party systems
Owning an account on a platform does not mean you own the platform. Major cloud providers publish policies listing what customers may test without asking and what is prohibited, such as denial-of-service testing. Read the current policy for each provider in scope.
Software-as-a-service tools you use, such as payroll or CRM platforms, are usually out of scope unless the vendor agrees in writing. Testing how your own configuration of them is set up, for example sharing settings, is a different matter and usually acceptable through your own admin console.
Special cases: social engineering and physical testing
If the test includes phishing, phone calls or physical entry, the rules of engagement need extra care. Name which staff groups may be targeted and which are excluded, such as people on leave or in sensitive roles. Agree the themes that are off limits, for example anything involving pay, health or redundancy. For physical tests, the tester should carry a signed authorisation letter with a contact number that is answered during the test, so a security guard or police officer can verify them immediately.
Get HR and, where needed, legal input before signing. Employment rules and privacy laws differ by country, and recording calls or photographing people may have its own requirements. Decide in advance how results will be reported: by team and trend, not by named individual. These details are what make the difference between a test that improves security and one that damages trust inside the company.
A short template
A workable rules of engagement document has these headings in order: purpose of the test; parties and contacts; scope and exclusions; testing window; source addresses; permitted and prohibited techniques; critical finding procedure; stop procedure; data handling and deletion; notification list; and signatures with dates. If each heading has two or three precise sentences, the document does its job. Keep the signed copy with the final report, because auditors sometimes ask to see the authorisation as well as the results.
After the test
Close the engagement formally: confirm testing has stopped, that any test accounts and tools placed on your systems are removed, and that the tester has deleted data according to the agreed terms. Our post on scoping a penetration test covers the step before this one, and VAPT services explains how we document both.
Frequently asked questions
What are rules of engagement?
Who should sign the authorisation?
Can we pentest our cloud provider?
Should our IT team know?
Start every test on the right footing
We provide a rules of engagement template and walk through it with you before any testing starts.

