# Free Penetration Testing Agreement (Rules of Engagement) template

> A written authorization and rules of engagement for a security test, listing exactly which systems may be tested, when, how, and what happens if something goes wrong. Use it before any penetration test, vulnerability assessment or retest so the tester has clear permission and the client keeps control.

- Web page: https://rapidagree.com/contract-templates/penetration-testing-agreement
- Who signs: Client, then Tester
- Last revised: 2026-11-30
- Fill it in and send it for e-signature free on RapidAgree (3 documents a month): https://rapidagree.com/signup?template=penetration-testing-agreement

**Before you use it:** Authorization must come from someone with authority over every target listed. Systems hosted or run by a third party, such as a cloud or software provider, may also need that owner’s permission before they can be tested.

## Key clauses

- **Written authorization for listed targets.** A table of each target, its type, address and environment, with anything not listed out of scope by default. ([clause](https://rapidagree.com/contract-templates/penetration-testing-agreement#clause-authorization-and-scope))
- **Testing window and blackout times.** Exact dates and hours, no-test periods, and the tester’s source IP addresses so the client can recognize the traffic. ([clause](https://rapidagree.com/contract-templates/penetration-testing-agreement#clause-testing-window))
- **Opt-in for risky techniques.** Social engineering and physical access need a separate signed opt-in; denial-of-service and load testing are excluded by default. ([clause](https://rapidagree.com/contract-templates/penetration-testing-agreement#clause-techniques))
- **Client authority and cloud permissions.** The client confirms it can authorize each target and gets any permission its hosting or cloud providers require. ([clause](https://rapidagree.com/contract-templates/penetration-testing-agreement#clause-client-authority))
- **Stop-work and emergency contacts.** Either side can halt testing at once by phone or email, and testing resumes only on the client’s written go-ahead. ([clause](https://rapidagree.com/contract-templates/penetration-testing-agreement#clause-emergency-and-stop-work))
- **Critical finding and compromise alerts.** Serious vulnerabilities and signs of an earlier breach are reported within hours, not saved for the report. ([clause](https://rapidagree.com/contract-templates/penetration-testing-agreement#clause-critical-findings))
- **Minimal data handling.** The tester views only what proves a finding, stores evidence encrypted and deletes it after the report. ([clause](https://rapidagree.com/contract-templates/penetration-testing-agreement#clause-data-handling))
- **Report and one retest.** A written report with severity, evidence and fixes, plus one retest of the findings within a set window. ([clause](https://rapidagree.com/contract-templates/penetration-testing-agreement#clause-report-retest-and-fees))
- **Safe harbor for authorized testing.** The client agrees not to pursue the tester for activity within the authorization, with liability limits and required insurance. ([clause](https://rapidagree.com/contract-templates/penetration-testing-agreement#clause-safe-harbor))

## When to use something else

- You’re paying researchers for bugs they find on their own; that needs a bug bounty program policy.
- You want general IT or security advice with no hands-on testing. Use the [Consulting Agreement](https://rapidagree.com/contract-templates/consulting-agreement) instead.
- You want to test systems the client doesn’t own or can’t authorize, such as a vendor’s platform; that needs the owner’s own written permission.

## Who uses it

- **Independent penetration testers.** Get signed, specific permission before you touch a system, so your scope and your protection are on paper.
- **Small security consultancies.** Use one rules of engagement document for web app, API, network and cloud tests, adjusting the target table each time.
- **Businesses commissioning a test.** Keep control of what is tested and when, who to call if something breaks, and what happens to your data afterwards.

## The agreement

### Penetration Testing Agreement and Rules of Engagement

This Penetration Testing Agreement and Rules of Engagement (the “Agreement”) is entered into as of [Effective date] (the “Effective Date”) by and between [Client’s legal name], with an address at [Client’s address] (the “Client”), and [Tester’s legal or business name], with an address at [Tester’s address] (the “Tester”). Each is a “Party” and together they are the “Parties.”

The Client wants the Tester to assess the security of certain systems by attempting to find and safely exploit vulnerabilities in them, as a real attacker might (the “Testing”), and to report what it finds. Testing systems without permission can be unlawful, so this Agreement sets out exactly what the Client authorizes. The Parties agree as follows.

#### 1. Authorization and In-Scope Targets

The Client authorizes the Tester to carry out the Testing only against the following targets (the “In-Scope Targets”), only during the Testing Window, and only using the techniques this Agreement permits:

| Target | Type | Address or identifier | Environment |
| --- | --- | --- | --- |
| [Target 1: name] | [Target 1: type] | [Target 1: address or identifier] | [Target 1: environment] |
| [Target 2: name] | [Target 2: type] | [Target 2: address or identifier] | [Target 2: environment] |

Only the Tester’s personnel whose names the Tester gives the Client in writing before Testing starts, each bound by confidentiality duties at least as strict as this Agreement’s, may carry out the Testing. The Parties may add or remove targets only in a writing signed by both, including by e-signature. A target added by email alone, or a system discovered during Testing, is not authorized until that writing is signed.

#### 2. Out-of-Scope Systems

Everything that is not an In-Scope Target is out of scope, including these systems, which the Tester will not test or deliberately access: [Systems that are out of scope]. If the Tester finds that a target resolves to, shares infrastructure with, or leads into an out-of-scope system, including one belonging to a third party, the Tester will stop activity against it and ask the Client before going further. Credentials, keys or data the Tester finds on an In-Scope Target may be used only against In-Scope Targets.

#### 3. Testing Window and Coordination

Testing may take place from [First day of testing] to [Last day of testing], during [Permitted testing hours] (the “Testing Window”), but not during these blackout times: [Blackout times (no testing)]. Automated scans and other activity will originate only from these source addresses: [Tester’s source IP addresses], or others the Tester gives the Client in writing in advance, so the Client can recognize the Testing.

The Tester will tell the Client’s emergency contact when each day’s Testing starts and stops. The Client will decide whether to tell its security team, monitoring provider or hosting providers about the Testing, will keep the In-Scope Targets in the agreed state during the Testing Window, and will provide any test accounts, access and documentation listed in the target table before the first day of Testing.

#### 4. Testing Techniques

Within the In-Scope Targets and the Testing Window, the Tester may use standard penetration testing techniques, including reconnaissance of public information about the targets, automated and manual vulnerability scanning, authentication and access control testing, exploiting vulnerabilities to confirm their impact, and limited privilege escalation and lateral movement between In-Scope Targets. The Tester will use reasonable care to avoid disrupting services, changing or deleting data, and leaving tools or accounts behind, and will remove any test files, accounts or changes it makes before Testing ends, or list any it could not remove in the report.

The following are not authorized unless the Client opts in to each one in a separate writing signed by an authorized person that names the technique, the targets, people or premises, the dates and any limits:

- social engineering, such as phishing emails, phone calls or text messages to the Client’s staff;
- physical access testing of offices, data centers or devices;
- denial-of-service, stress or load testing, or any activity intended to degrade a service’s availability, which is excluded by default even where other Testing is aggressive; and
- accessing, exfiltrating or modifying production data beyond what is needed to prove a vulnerability.

#### 5. Client’s Authority and Third-Party Permissions

The Client represents that it owns each In-Scope Target or has the legal authority to authorize Testing of it, and that the person signing for the Client has authority to give that authorization. Where an In-Scope Target is hosted, managed or run by a third party, such as a cloud provider, hosting company, software-as-a-service vendor or managed service provider, the Client is responsible for following that party’s published testing policy and for getting any permission or notice it requires before Testing starts, and will give the Tester a copy on request.

The Tester may rely on the Client’s representations about ownership, authority and third-party permissions. If either Party learns that an authorization is missing or has been withdrawn, it will tell the other at once, and Testing of that target will stop until the authorization is in place.

#### 6. Emergency Contacts, Stop-Work and Termination

| Party | Emergency contact |
| --- | --- |
| Client | [Client emergency contact (name, phone, email)] |
| Tester | [Tester emergency contact (name, phone, email)] |

Each emergency contact will be reachable during the Testing Window. Either Party may order an immediate stop to all or part of the Testing at any time, for any reason, by phone or email to the other’s emergency contact. The Tester will stop the named activity at once, confirm in writing that it has stopped, and resume only when the Client agrees in writing. If the Tester sees signs that the Testing is causing an outage, data loss or other harm, it will stop that activity and contact the Client straight away.

Either Party may end this Agreement with written notice. If the Client ends it early for convenience, it will pay for work done up to the end date. If the Tester ends it other than for the Client’s breach, it will refund any amount paid for work not yet done. The Client’s authorization ends when this Agreement ends, and in any case after the Testing Window and any retest window the Parties agree.

#### 7. Critical Findings and Signs of Compromise

The Tester will tell the Client’s emergency contact within [Hours to report a critical finding] hours, without waiting for the report, if it finds a vulnerability that could readily be used to take control of a system, reach sensitive data or cause serious harm, or sees signs that an In-Scope Target has already been compromised by someone else, such as unknown accounts, web shells, malware or unexplained data transfers.

If the Tester finds signs of a prior compromise, it will pause Testing of the affected system, preserve what it has observed, avoid changing evidence, and follow the Client’s instructions. Investigating or responding to an incident is not part of the Testing unless the Parties agree it in writing, at an agreed fee.

#### 8. Handling of Client Data

During Testing the Tester may come across personal information, health or financial information, credentials and other confidential data of the Client or its customers (“Client Data”). The Tester will:

- access and view only as much Client Data as needed to prove a vulnerability, and not copy it beyond what proof needs, using screenshots with sensitive values masked where possible;
- not use any Client Data for any purpose other than the Testing and the report;
- store any Client Data, evidence and working files encrypted, on systems only its named personnel can access; and
- delete all Client Data, evidence and working files within [Days after the final report to delete testing data] days after the final report or retest report, keeping only the report itself and records needed to prove the work was done, and confirm the deletion in writing on request.

If the Client expects Testing to reach regulated data, such as health information, it will say so in advance, and the Parties will sign any separate data protection terms the law requires before Testing starts.

#### 9. Report, Retest and Fees

Within [Business days after testing to deliver the report] business days after the Testing Window ends, the Tester will deliver a written report with an executive summary, the methods used, each finding with its severity, evidence and steps to reproduce it, and recommended fixes. The fee includes one retest of the reported findings, to confirm whether they have been fixed, if the Client requests it within [Days after the report the Client may request the retest] days after the report. The retest covers only those findings, uses the same rules as this Agreement, and its dates are agreed in writing. The Tester will deliver a short retest report.

The Client will pay a total fee of [Total fee]: [Deposit due on signing (%)]% on signing and the balance within 15 days after the report is delivered. Testing is a point-in-time assessment within the agreed scope and techniques. It cannot find every vulnerability, and the report does not certify that any system is secure or meets any standard.

#### 10. Confidentiality and Findings

The report, the findings and all information about the Client’s systems and vulnerabilities are the Client’s confidential information, and the Client owns the report once it has paid for it. The Tester will not disclose them to anyone except its named personnel, will not publish or present them, even in anonymized form, without the Client’s written consent, and will not report vulnerabilities in the Client’s own systems to anyone else. Where a finding is a vulnerability in a third party’s product, the Parties will agree in writing how it is reported to that vendor.

Each Party will keep the other’s non-public information confidential and use it only for this Agreement. The duties in this section do not cover information that is public through no fault of the receiving Party, or disclosures the law requires after prompt notice where allowed, and they last for five years after this Agreement ends, and for as long as the information remains a trade secret or describes an unfixed vulnerability. The Tester keeps its general tools, methods and know-how, and may say that it worked for the Client only with the Client’s consent.

#### 11. Safe Harbor

The Client agrees that Testing carried out within this Agreement’s scope, window and permitted techniques is authorized access to its systems for the purposes of computer misuse laws, such as the federal Computer Fraud and Abuse Act and similar state laws, and of any terms of use or policies of the Client. The Client will not bring, or encourage others to bring, any claim or complaint against the Tester or its personnel for activity within that authorization, and will confirm the authorization in writing to any authority, provider or other person who asks.

The Client will defend and indemnify the Tester against third-party claims, and related reasonable costs and attorneys’ fees, to the extent they arise from authorized Testing, including a claim that the Client lacked authority over a target or did not get a required third-party permission. This section does not protect activity outside the authorization, or harm caused by the Tester’s gross negligence, willful misconduct or breach of the Handling of Client Data section.

#### 12. Liability and Insurance

The Client understands that even careful Testing can occasionally slow or interrupt a service or change data, and will keep current backups of the In-Scope Targets. The Tester is not liable for those effects when it follows this Agreement and uses reasonable care. Neither Party is liable for indirect, incidental or consequential damages or lost profits. Each Party’s total liability under this Agreement is limited to the total fee, except for the Client’s payment and indemnity obligations, and for harm caused by a Party’s gross negligence, willful misconduct or breach of the Confidentiality or Handling of Client Data sections.

During this Agreement and for one year after Testing ends, the Tester will maintain professional liability (errors and omissions) insurance and cyber liability insurance, each with limits of at least [Minimum insurance per claim] per claim, and will provide certificates on request before Testing starts.

#### 13. General

- Independent contractor. The Tester is an independent contractor and controls how it performs the Testing within this Agreement. It may not use subcontractors without the Client’s written consent.
- Governing law. This Agreement is governed by the laws of the State of [State whose law governs], without regard to its conflict-of-laws rules.
- Entire agreement. This Agreement, with any signed scope changes and opt-ins, is the Parties’ entire agreement about its subject. It may be changed only in a writing signed by both Parties.
- Notices. Notices must be in writing and sent to the addresses above, or to email addresses the Parties give each other for this purpose. Stop-work orders may also be given by phone.
- Assignment. Neither Party may assign this Agreement without the other’s written consent.
- Severability. If any provision is found unenforceable, it will be enforced to the maximum extent permitted and the rest of this Agreement will remain in effect.
- No waiver. A failure or delay in enforcing any provision is not a waiver of it.
- Counterparts and e-signatures. This Agreement may be signed in counterparts and with electronic signatures, each of which is treated as an original.

By signing, the Client’s representative confirms that they have authority to authorize Testing of every In-Scope Target. The Parties have signed this Agreement as of the Effective Date.

**Client**
[Client’s legal name]  
Signature: ________________  
Name: [Signer for the Client]  
Title: [Client signer’s title]  
Date: ________________  

**Tester**
[Tester’s legal or business name]  
Signature: ________________  
Name: [Signer for the Tester]  
Title: [Tester signer’s title]  
Date: ________________  

## How to customize it

1. Enter both parties’ details and list every in-scope target with its type, address and environment.
2. Name the out-of-scope systems, the testing dates and hours, blackout times and the tester’s source IP addresses.
3. Add both emergency contacts and set the critical-finding notice time, report deadline, retest window and data deletion period.
4. Fill in the fee, deposit and insurance amount.
5. Send it for signature. The client signs first to authorize the test, then the tester, and both receive the signed PDF.

## Questions

### Do I need written permission to run a penetration test?

Yes. Accessing a computer system without authorization can break computer misuse laws, such as the federal Computer Fraud and Abuse Act, even when the intent is to help. A signed authorization from someone with authority over the systems, listing exactly what may be tested and when, is what separates a penetration test from an attack. Keep it with you during testing.

### What should rules of engagement for a pen test include?

At a minimum: the exact targets and what is out of scope, the testing dates and hours, which techniques are allowed and which need extra approval, emergency contacts on both sides, how to stop testing, when critical findings are reported, and how data the tester sees is handled. This template covers each of these in one signed document.

### Do I need permission from AWS, Azure or Google Cloud to pen test?

It depends on the provider and the service. The major cloud providers publish penetration testing policies that allow customers to test many of their own resources without asking first, but restrict certain activities, such as denial-of-service testing, and some services. Check the current policy for each provider involved. This template makes the client responsible for following those policies and getting any permission needed.

### What happens if a pen tester finds evidence of a real breach?

Under this template, the tester reports it to the client’s emergency contact within a set number of hours, pauses testing of that system, preserves what it saw without disturbing evidence, and follows the client’s instructions. Investigating the breach is a separate job, agreed and paid for in writing, because incident response needs different skills, scope and urgency from a test.

---

This template is a general starting point written for US businesses. It is not legal advice, and RapidAgree is not a law firm. Laws differ by state and situation, so have a qualified lawyer review it before you rely on it.
