Web & Technology Agreements Templates
Penetration Testing Agreement
- Typical length: 4–6 pages
- AI Assisted
- Export: PDF & DOCX
- Multi-jurisdiction ready
Document preview
Preview unavailable
On this page
- Penetration Testing Agreement
- What is a penetration testing agreement?
- When should you use this penetration testing agreement?
- What to collect before you begin
- What should a penetration testing agreement include?
- How to complete the penetration testing agreement step by step
- Get authorization from the right system owner
- Define targets using exact technical identifiers
- Create a practical rules-of-engagement document
- Separate non-disruptive checks from risky exploits
- Agree on testing hours and change freezes
- Protect production accounts and personal data
- Set an urgent finding and incident protocol
- Describe the final penetration test report
- Plan retesting and verification separately
- Allocate commercial risk and insurance carefully
- Define ownership and reuse of test results
- Separate the contract from live test execution
- Example: A SaaS company authorizes an API security review
- Sample wording you can customize
- Common mistakes to avoid
- Review checklist before using this template
- What to do after completing the document
- Frequently asked questions
- Official references and further reading
- Download and customize the Penetration Testing Agreement
Penetration Testing Agreement
Quick answer: A penetration testing agreement authorizes a named security provider to test specified systems within defined boundaries. It should identify the legal system owner, in-scope assets, permitted methods, testing window, emergency contacts, prohibited actions, data handling, reporting, payment and liability allocation. Written authorization should exist before testing begins, and permission from one organization does not automatically cover third-party infrastructure.
An effective security assessment starts with more than choosing a testing tool. The customer and penetration tester must agree on exactly what systems can be accessed and what happens if testing disrupts a service. This penetration testing agreement template helps companies document approval, scope and rules of engagement while protecting confidential data and making test results actionable.
Standard Penetration Testing Agreement — Sample Contract Language
A SaaS platform hires an independent security firm to assess its staging API and selected production endpoints. The company approves two named domains, five test accounts and a five-day window. Its cloud provider policies are reviewed, and the contract excludes payment processing, customer exports, service disruption and third-party integrations.
What is a penetration testing agreement?
A penetration testing agreement is a contract between the organization commissioning a security test and the provider performing it. It sets commercial terms, legal authorization, operational boundaries, reporting and responsibilities. An accompanying statement of work and rules of engagement often supply the technical detail. The combined documents should be consistent so the tester is not left relying on vague verbal permission.
Penetration testing goes beyond a simple automated vulnerability scan because authorized testers may attempt controlled exploitation to confirm impact. It is also distinct from a vulnerability disclosure policy that invites reports from independent researchers. Neither a standard IT services contract nor a nondisclosure agreement alone gives sufficient authorization to attack unlisted networks, use stolen credentials or access another company’s environment.
When should you use this penetration testing agreement?
Use this agreement for an external network assessment, web application or API penetration test, internal security exercise, cloud configuration attack simulation or scoped retest. It is useful when a SaaS customer requests third-party assurance or an organization needs evidence for an audit program. Specialized government, regulated or critical-system engagements may require stronger controls and additional approvals.
What to collect before you begin
Identify the customer with authority to permit the test, service provider legal name, security contacts, IP ranges, domains, applications, environments and third-party dependencies. List dates, hours, allowed user accounts and whether production data is involved. Confirm hosting-provider permissions and maintenance windows. Collect applicable incident escalation requirements, insurance terms and security or privacy policies.
What should a penetration testing agreement include?
Use this checklist to adapt the form to the actual transaction. Not every field belongs in every version of the document.
- Customer entity and authorized signatory
- Testing provider and individual technical contacts
- Written proof of authority over each target system
- In-scope IP addresses, domains, applications and cloud accounts
- Explicit excluded systems and third-party assets
- Permitted test categories and prohibited techniques
- Testing dates, daily windows and time zone
- Credentials, test accounts and access provisioning rules
- Production safeguards, backups and monitoring arrangements
- Real-time suspension authority and emergency contacts
- Rules for handling vulnerabilities and limited exploit evidence
- Restrictions on persistence, destructive tests and data exfiltration
- Confidentiality, encryption, retention and secure deletion
- Report format, severity method, delivery and retest scope
- Fees, liability allocation, insurance, governing law and signatures
How to complete the penetration testing agreement step by step
Work through the following steps before signing or issuing a final copy.
- Verify that the customer can legally authorize testing of every target.
- Describe the business goal and testing methodology.
- List exact targets, exclusions and third-party dependencies.
- Agree on safe techniques and prohibited operations.
- Schedule the testing window and identify the time zone.
- Set escalation contacts and a stop-work procedure.
- Define confidential data capture and deletion boundaries.
- Agree on a vulnerability reporting and urgent-notice process.
- Set retest, evidence and final report deliverables.
- Confirm fees, insurance and proportionate risk allocation.
- Approve a written statement of work and rules of engagement.
- Record final authorization before running any technical tests.
Get authorization from the right system owner
Written permission must come from an individual or entity with authority over each target. A business may operate a website while a hosting provider owns network infrastructure, and its contract may restrict scanning or exploitation. Do not assume permission to review a public webpage permits testing the underlying cloud platform.
Identify all owners, managed service providers and required third-party approvals. Document boundaries before the first packet is sent. When a newly discovered subdomain or vendor system is outside the authorized list, pause and obtain fresh permission rather than silently expanding the engagement.
Define targets using exact technical identifiers
A contract saying test our systems creates avoidable uncertainty. Name approved domains, API endpoints, IP ranges, application environments and cloud accounts in an attached scope. If the project covers authenticated workflows, specify the permitted user roles and accounts.
List explicit exclusions such as payroll systems, medical databases, production payment gateways or shared infrastructure. Confirm whether indirect dependencies may receive traffic during testing. Mark any change to scope with a dated authorization rather than relying on informal chat messages.
Create a practical rules-of-engagement document
NIST SP 800-115 describes planning, execution, reporting and rules of engagement for security testing. The ROE should tell testers what they may do and when. Cover reconnaissance, scanning rates, exploitation depth, social engineering, phishing simulations and password testing as separate permission decisions.
If an activity is not affirmatively authorized, the tester should seek clarification before proceeding. Define a single source of truth for scope changes and incidents. The customer should distribute approved test windows to its security operations team, as appropriate, so defensive alerts are handled safely.
Separate non-disruptive checks from risky exploits
Not every vulnerability needs full exploitation. A proof of concept may demonstrate risk without extracting sensitive records or crashing a service. Prohibit destructive testing, ransomware simulation, denial of service, persistence and large data exports unless specifically scoped with additional controls.
Decide what minimum evidence suffices for a credible finding. Place rate limits and test-data boundaries in writing. If the assessor encounters sensitive customer data, it should collect as little as needed, notify the designated contact and follow an approved secure handling process.
Agree on testing hours and change freezes
Even careful testing can increase traffic or trigger security controls. Schedule activity around peak order hours, major product releases and scheduled maintenance. Identify the time zone, start and end dates and whether out-of-window approval must be written.
Include a process for customer-requested pauses and emergency suspension. If an outage or unexplained alert appears, both teams need an immediate way to stop testing and preserve logs. A phone number with backup contact can matter more than a generic email inbox during an incident.
Protect production accounts and personal data
Authenticated testing often requires user credentials and sample data. Provision limited-purpose accounts whenever possible, and avoid sending passwords in unencrypted messages. Define what personal information, trade secrets and access tokens the provider may encounter.
Require appropriate safeguards, access restrictions and disposal deadlines. If the test involves regulated data or cross-border transfers, review data-processing contracts, confidentiality terms and notification duties. Do not assume a confidentiality clause alone resolves every privacy obligation.
Set an urgent finding and incident protocol
A tester may discover a critical exploitable flaw while the formal report is still being written. Define which discoveries require immediate contact, the contact channel, minimum evidence and escalation timing. Urgency should be tied to the actual risk and confirmed context.
If testing appears to cause disruption, stop and coordinate triage under the agreed procedure. Preserve records without compromising sensitive customer material. Distinguish a vulnerability finding from a confirmed security incident, and avoid stating that an intrusion occurred without evidence.
Describe the final penetration test report
An actionable deliverable identifies the approved scope, test dates, methodology, limitations and each material finding with evidence. Useful reports also describe severity, affected assets, reproduction requirements and remediation priorities in language the customer can use.
Specify whether raw exploitation notes or sensitive screenshots will be shared and who may access them. Executive summaries should distinguish observed facts from potential impact. A test report reflects the agreed conditions at a point in time; it is not a guarantee that all vulnerabilities have been discovered.
Plan retesting and verification separately
A company may remediate major findings and ask the tester to verify the changes. State whether a retest is included, which findings qualify, the time allowed after the report and whether new testing conditions require extra approval.
A successful retest can confirm that a particular flaw was not reproduced under the new conditions. It should not be worded as a blanket certification that a whole platform is secure. Include any limitations caused by changed systems, unavailable accounts or untested fixes.
Allocate commercial risk and insurance carefully
A penetration tester should not promise zero downtime, while a customer should not shift every business risk through an unlimited penalty without review. Discuss liability caps, exclusions, damage procedures, indemnities and insurance in light of the authorized methods.
Certain obligations, including confidentiality or unauthorized conduct, may be treated differently in the contract. Regulatory duties and some liabilities cannot simply be waived. Have counsel evaluate the allocation, particularly for critical infrastructure, financial services and sensitive production data.
Define ownership and reuse of test results
A report may contain the customer’s architecture, credentials and proprietary vulnerabilities. State who owns the report and whether the provider may reuse generalized methods, anonymized statistics or sample deliverables. Public disclosure of findings should require a deliberate and lawful process.
Consider whether the provider can retain internal workpapers for quality assurance or regulatory purposes. Define secure retention and deletion periods that do not conflict with lawful record obligations. Prevent vendors from advertising the client name or publishing technical details without proper permission.
Separate the contract from live test execution
Signing the master agreement is only one operational step. Immediately before testing, confirm that the scope still matches the running infrastructure, the authorized users remain valid and monitoring teams know the window. New cloud addresses or a transferred product may require amended authority.
Use a kickoff checklist with customer and test lead sign-off. Record approvals and incident contacts in a shared secure workspace. At completion, revoke temporary credentials, deliver results through an agreed secure channel and confirm disposition of collected artifacts.
Example: A SaaS company authorizes an API security review
A SaaS platform hires an independent security firm to assess its staging API and selected production endpoints. The company approves two named domains, five test accounts and a five-day window. Its cloud provider policies are reviewed, and the contract excludes payment processing, customer exports, service disruption and third-party integrations.
The rules of engagement permit targeted authenticated testing and limited proof of concept but prohibit broad denial-of-service traffic and copying customer records. A 24-hour emergency contact is listed. The provider agrees to deliver a risk-ranked report, notify critical findings promptly and securely delete temporary evidence after the agreed retention period.
Sample wording you can customize
The sample wording below illustrates how clear information can be organized. It is not a substitute for all other necessary contract provisions or jurisdiction-specific requirements.
Customer [legal name] authorizes Provider [legal name] to conduct only the security testing expressly described in the executed Scope and Rules of Engagement dated [date] for the systems listed in Schedule A during [approved dates and times]. No third-party systems, destructive techniques, persistence or data exfiltration are authorized unless separately approved in writing by a person with authority. Provider will suspend testing when instructed by [contact] or upon reasonably suspected service disruption, promptly report critical findings through [channel] and protect all accessed data according to Schedule B.
Replace the bracketed fields with verified details. Review the complete document, surrounding contracts and any mandatory law before relying on the example wording.
Common mistakes to avoid
Watch for these problems when preparing or checking your document.
- Testing systems the customer does not control
- Describing scope only as all company servers
- Failing to exclude vendors and shared infrastructure
- Allowing denial-of-service methods by accident
- Not providing a real emergency stop contact
- Using live personal data without clear safeguards
- Assuming an NDA is sufficient testing authorization
- Promising that the test will identify every vulnerability
- Failing to identify urgent finding notification times
- Publishing exploit details without permission
Review checklist before using this template
- Confirm all parties, dates, numbers and references are correct.
- Replace every placeholder and delete provisions that do not apply.
- Check consistency with existing contracts and internal policies.
- Verify current state, federal and local requirements for the transaction.
- Check any sensitive information, signatures and required approvals.
- Give each authorized party the right document and retain an accurate copy.
What to do after completing the document
After both parties sign, conduct a final authorization and scope check before testing. Preserve any changed approvals, follow the emergency notification process and deliver findings through a secure channel. On completion, revoke temporary access and handle collected data according to the signed rules.
Frequently asked questions
What is a penetration testing agreement?
It is a contract authorizing a security assessor to test defined assets under specific operational and legal conditions. It often incorporates a statement of work and rules of engagement.
Why is written authorization important?
Security testing can involve activities that are unlawful or contractually prohibited without proper authority. Written scope makes the limits and permissions clearer.
Is a pentest contract the same as an NDA?
No. An NDA addresses confidential information. A penetration testing agreement also addresses testing authority, targets, methods, timing, safety, deliverables and payment.
Should the agreement include rules of engagement?
Yes. Define approved systems, hours, methods, exclusions, escalation contacts and emergency stop procedures before technical work begins.
Does a penetration test certify that a system is secure?
No. It reports findings under the scoped conditions and timing. It cannot establish the absence of all possible vulnerabilities.
Who can authorize penetration testing?
A party with sufficient legal and contractual authority over the targeted assets. Third-party infrastructure may require additional permissions.
Official references and further reading
These public resources offer useful background for checking the applicable rules. They do not replace a review of the facts and current law in your jurisdiction.
- NIST SP 800-115: Security Testing and Assessment
- NIST: Rules of Engagement glossary
- NIST: Security testing technical guide
Download and customize the Penetration Testing Agreement
Download the penetration testing agreement template and tailor its schedules to your assets, risk tolerance and authorized testing methods. Have technical leadership and qualified counsel review the scope before any active penetration test begins.
This page provides general educational information and drafting guidance, not individualized legal, financial, employment, tax or cybersecurity advice. Laws, policies and requirements vary by jurisdiction and can change. Review the relevant facts and current law with a qualified professional before relying on a completed document.
Get your complete legal document in minutes
-
Step 1
Select a template
Start with a ready-made legal template built for common real-world needs.
-
Step 2
Add your details
Fill in the key facts and tailor the document to your situation.
-
Step 3
Review & export
Check the finished document, make edits if needed, then download or export it.
Penetration Testing Agreement FAQs
What is a penetration testing agreement?
It is a contract authorizing a security assessor to test defined assets under specific operational and legal conditions. It often incorporates a statement of work and rules of engagement.
Why is written authorization important?
Security testing can involve activities that are unlawful or contractually prohibited without proper authority. Written scope makes the limits and permissions clearer.
Is a pentest contract the same as an NDA?
No. An NDA addresses confidential information. A penetration testing agreement also addresses testing authority, targets, methods, timing, safety, deliverables and payment.
Should the agreement include rules of engagement?
Yes. Define approved systems, hours, methods, exclusions, escalation contacts and emergency stop procedures before technical work begins.
Does a penetration test certify that a system is secure?
No. It reports findings under the scoped conditions and timing. It cannot establish the absence of all possible vulnerabilities.
Who can authorize penetration testing?
A party with sufficient legal and contractual authority over the targeted assets. Third-party infrastructure may require additional permissions.
Similar
Similar templates
Other published templates that share a group, a category, or meaningful words in the title.
Api License Agreement
Use an API license agreement template to define developer access, usage rights, fees, security, data controls and termination. Includes examples and FAQs.
View templateApi Terms of Use
Use an API terms of use template to set developer permissions, rate limits, data rules, security, pricing and termination. Practical examples and…
View templateApp Development Agreement
Download an app development agreement template and learn how to define features, milestones, code ownership, acceptance, payments and handoff.
View templateBiometric Information Privacy Policy Template Data Use Rules
Use a biometric information privacy policy template to explain data use, consent, retention, security and deletion. Review BIPA and state-specific rules.
View templateAsk Lex
Start with the right legal document.
Find a template, fill in your facts, and use LawyerAI when you want a clause explained before you finish the draft.
