Penetration testing agreement

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

  1. Scope: systems, IP ranges, applications, exclusions
  2. Types of test: black, grey and white box, social engineering, physical access
  3. Authorisation by the entitled party, consent of hosting and cloud providers
  4. Time windows, emergency contacts, abort criteria
  5. Handling of data found, confidentiality, DPA
  6. Report, classification of findings, retest
  7. 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

Last updated: November 2026. Templates do not replace advice on your specific case.