A penetration test is an authorised attack. Without clear written approval, it may be a criminal offence (sections 202a and 303b of the Criminal Code (StGB)). The agreement protects both tester and client.
Structure of the template
- Scope: systems, IP ranges, applications, exclusions
- Types of test: black, grey and white box, social engineering, physical access
- Authorisation by the entitled party, consent of hosting and cloud providers
- Time windows, emergency contacts, abort criteria
- Handling of data found, confidentiality, DPA
- Report, classification of findings, retest
- Liability for outages, insurance
Four practical examples
1. Testing in the cloud
A client wanted its cloud environment tested. We incorporated the provider’s testing policies.
2. Production outage
A test brought an ERP system down for hours. Thanks to clear liability rules, the damage was quickly resolved.
3. Social engineering
For a phishing simulation, we involved the works council and data protection and anonymised the evaluation.
4. Red teaming under DORA
For a TLPT, we drafted the contracts with threat intelligence and red team providers in line with the TIBER framework.
IT security law · NIS2 clauses · Request a template
Use a template right away or have a contract reviewed: Ready-made templates as Word files (German-language service) are available at mustervertrag-anwalt.de, or tailored to your case via the contract generator, each EUR 14.99. A contract from your counterparty can be reviewed by vertragoo.de (German-language service) online at a fixed price.
Last updated: November 2026. Templates do not replace advice on your specific case.