Short answer: a penetration testing contract should name the exact scope, carry written authorization from the asset owner, set the rules of engagement and testing windows, list contacts and stop conditions, and fix how test data is handled. Under our standard terms, evidence and working notes are deleted 90 days after the report or retest.

When a contract lands on our desk before kickoff, the first clause we read is the scope annex, not the liability section, because a vague asset list is what stalls a test in the middle of the week. The second is the authorization: who signed it, and whether they own every system on the list. Below: our clause table, our default terms, a case from testing and our verdicts.

What should a penetration testing contract include?

Most engagements run on two documents. A master services agreement (or terms of service) holds the commercial and legal clauses, and a statement of work for each test holds the scope, method, dates and people. The rules of engagement sit in the statement of work or as a signed annex to it. NIST SP 800-115 describes the rules of engagement as the document, set before testing starts, that gives the test team authority to carry out defined activities without asking for more permission. If you are earlier in the process, our penetration testing checklist covers the steps that lead up to signing.

These are the twelve clauses we check in every penetration testing agreement we review:

ClauseWhy it mattersWhat to watch for
Scope and objectivesDefines what the tester may touch and what the test should proveA product name instead of URLs, API base paths, IP ranges, cloud accounts and user roles; no exclude list; no rule for assets found outside the list
Written authorizationTurns simulated attacks into authorized workSigned by someone who doesn’t own every listed system; hosted and third-party systems not mentioned
Rules of engagementLists allowed techniques and prohibited actions“No disruption” with no list of which tests are off limits, such as password spraying against production accounts
Testing windowsKeeps tests away from peak hours and change freezesWindows too short for the tester-days you are paying for, or no time zone stated
Contacts and escalationSomeone must answer when a critical finding or an outage happensOne named contact with no backup; no rule for halting and resuming the test
Data handling and retentionEvidence often holds personal data, credentials and screenshots of your systemsNo retention period, no written deletion, reports sent by plain email
NDAFindings are a map of your weak pointsConfidentiality that covers your data but not the report itself
DPAGDPR Article 28 expects a contract when a processor handles personal data for youEU tests that reach customer records with no DPA
BAASigned when US medical data is in scopeA healthcare test that starts before the BAA is signed
InsuranceShows the provider can stand behind its workA provider that can’t confirm professional indemnity insurance before kickoff
Report and retestDefines what you receive and how fixes are verifiedReport contents undefined; retest terms left out of the quote
Liability, payment and governing lawAllocates the risk of testing live systems and sets commercial termsLiability with no link to the rules of engagement; no cancellation or termination rule; governing law left blank

How do authorization and rules of engagement fit into the contract?

Authorization is the clause everything else depends on. The person who owns the systems should sign it, or someone who can bind the company that does. Written authorization is what separates a penetration test from an attack, and it has to cover every host on the list. Watch the edges: a subsidiary’s domain, a vendor’s hosted portal or a managed service provider’s jump host may not be yours to authorize. For cloud penetration testing, check that the provider’s testing policy allows what the statement of work describes.

The scope list belongs in the statement of work, with every asset named. Our guide to penetration test scope shows how to write it. The rules of engagement then say how the test runs. The NIST template for rules of engagement covers the people and their contacts, the schedule and testing hours, the locations testing comes from, the target list with an exclude list of systems not authorized for testing, the allowable and prohibited activities, and the criteria for halting a test. We go through each item in our article on rules of engagement.

Five-step scope-change rule for a penetration testing contract: spot the unlisted asset, stop, notify, get written approval, update scope
Put this rule in the contract before kickoff: an asset outside the scope list is identified, reported and tested only after the owner approves it in writing.

Have the same person sign the rules of engagement and the authorization. When two different people sign them, the first question at kickoff is which document wins.

What should the contract say about testing windows, contacts and escalation?

A testing window clause names the days, hours and time zone, plus any change freezes or blackout dates. The windows have to fit the effort. If your windows allow four hours a day, a test sized at 5 tester-days takes about two working weeks for one tester. Typical effort for a web application penetration testing engagement with us is 5 to 10 tester-days.

The escalation clause matters most when something goes wrong. When we confirm a critical finding during a test, it doesn’t wait for the report:

  1. We confirm it enough to rule out a false positive and keep exploitation to the minimum that shows impact.
  2. We send a short note to the named contact: the vulnerability, the affected system, the likely consequences, the evidence and the main recommendation.
  3. For very serious issues that note can go out at once, before the rest of the test continues.
  4. Once a quick fix is in place, we check it and carry on with the planned scope.

So the contract should name a primary and a backup contact who are reachable during the windows, the channel for urgent notes, the stop conditions (service degradation, signs of a real intruder, exposure of data beyond what the test needs) and who can authorize a restart. NIST SP 800-115 asks the same question directly: if testers find an actual intruder, should testing stop, and by whose authority does it resume?

How should test data be handled, and for how long?

Test evidence is sensitive: screenshots of admin panels, request logs, sometimes personal data. A data handling clause should state what the tester collects, where it is stored, who can see it, how the report is delivered and when everything is deleted. Our standard engagement terms, to compare with any other offer:

TermWhat we commit to
What we collectOnly what the evidence needs; no copies of production databases; personal data in evidence is masked
StorageEncrypted tester laptops, a separate encrypted vault for each project, servers in the EU
AccessProject team only, with MFA and logged access
Report deliveryEncrypted link or file, password sent through another channel, never plain email
Credentials you give usStored separately and encrypted, deleted after the test; you disable the test accounts
RetentionEvidence and working notes deleted 90 days after the report or retest; final report kept 12 months; a different period can be set in the contract; deletion confirmed in writing
AgreementsWe sign an NDA before testing, a DPA, and a BAA when US medical data is in scope

Under GDPR Article 28(3), processing by a processor is governed by a contract that, among other things, commits the people doing the work to confidentiality and requires the processor to delete or return the personal data, at the controller’s choice, after the service ends. If the test can reach patient records from the US, add a BAA; our guide to HIPAA penetration testing requirements covers the testing side.

One more test of any offer: if a provider can’t tell you its retention period in one sentence, it probably doesn’t have one.

From our testing: an old admin panel that wasn’t on the scope list

In an external test, the scope annex named the main domain and the production hosts behind it. During reconnaissance we found an older version of the application’s admin panel, left running after a migration, on a separate subdomain. Staff no longer used it, but it was still reachable from the internet and ran an outdated component. Because the subdomain wasn’t on the scope list, we stopped at identification: no login attempts, no exploitation. We sent the named contact the hostname and why it mattered, and asked the client to confirm in writing that they owned the host and wanted it tested. With that confirmation, we tested it under the updated scope and reported the outdated component with evidence. A scan focused only on the main domain could have missed it. The client shut down the unused panel and cleaned up its public attack surface; on retest the old panel was no longer reachable, so the finding was closed as fixed.

What most guides miss: the clause that saves the most time is the scope-change rule, not the scope list. Documentation tends to leave out extra subdomains, older APIs and admin panels, so assume every list is incomplete. The contract should say what the tester does with an asset outside it: stop at identification, notify the contact, and test only after written confirmation from the owner.

What should the report, retest, insurance and team clauses say?

  • Report contents: two layers. An executive summary for decision makers with the main risks, attack paths and business consequences, and a technical part with enough detail for your team to reproduce and fix each issue. Every finding should carry a description, the conditions it appears under, evidence, business impact and a remediation step. Our sample penetration test report shows the format we deliver.
  • Attestation letter: we issue an attestation letter, a short document you can show customers and auditors without sharing the full report. It covers the scope, the test window, the methodology and a summary of results and their status after the retest.
  • Retest: a retest is available after fixes. Whether it is in the price depends on the engagement, and it is agreed in the quote, so write the retest terms into the statement of work.
  • Insurance: we carry professional indemnity insurance. Ask any provider to confirm its own before kickoff.
  • People: our testers are employees and subcontractors; the subcontractor list and tester certifications can be shared on request, and references are available under NDA.

How should liability, payment and governing law be handled?

NIST SP 800-115 notes that legal teams may add indemnity or limitation of liability clauses to contracts that govern security assessments. Testing touches live systems, so some risk of slowdowns stays with any test. From the testing side, the split we consider workable ties liability to the rules of engagement: the tester answers for stepping outside the agreed scope or methods, and the client accepts the residual risk of agreed testing, reduced by testing windows, backups and stop conditions. The parties agree the exact wording, caps and indemnities in the contract.

On the commercial side, the contract should fix the price for the agreed scope in tester-days, the payment schedule, and what happens if the start slips because test accounts or VPN access weren’t ready. With us, the start date is agreed with your quote, invoicing is in USD, EUR or GBP, and governing law is set out in the contract. What the quote itself should list, line by line, is in our guide to the penetration testing quote. Our penetration testing pricing page lists each test type; a standard web application or API test runs $2,500 to $5,500.

Which contract terms should you push back on?

  • We advise against signing a contract whose scope is a product name with no asset list and no exclude list. It will cost you tester-days in week one.
  • We advise against starting on an authorization signed by someone who doesn’t own every listed system. Get the hosting company, parent company or vendor sign-off first.
  • Push back on liability terms that make the tester responsible for any outage regardless of cause, and on terms where the tester excludes all liability even for ignoring the rules of engagement.
  • Skip any offer with no retention period and no written deletion; your evidence stays wherever the tester left it.
  • Choose a separate rules of engagement annex when more than one team or vendor is involved, such as a cloud provider and a managed service provider.
  • Choose a master agreement with a statement of work per test when you test more than once a year, for example in a penetration testing as a service program with one NDA and DPA for the whole program.

Our verdict: sign when the scope, the authorization, the contacts and the data retention are concrete. Everything else in a penetration testing contract can be negotiated; those four decide whether the test runs safely.

Fixed-price quote

Want our standard terms with your quote?

Tell us what you want tested and we’ll send a fixed-price quote for the agreed scope, in tester-days, with our NDA and data handling terms available on request. Web application and API tests start at $2,500.

Get a fixed-price quote

Sources: NIST SP 800-115, Technical Guide to Information Security Testing and Assessment, sections 6.5 and 6.6 and Appendix B (Rules of Engagement Template); Regulation (EU) 2016/679 (GDPR), Article 28(3); checked November 2026.

Pentestica - Your Trusted Partner in Penetration Testing

The Pentestica penetration testing team: 25 certified senior pentesters (OSCP, OSCE, CISSP) with 10+ years of offensive security operations and 500+ penetration tests behind them. Our testing is aligned with OWASP, PTES and NIST SP 800-115.