What is a penetration test?
A penetration test (pentest) uses an attacker's methods to check whether a defined objective can be reached with realistic effort. The test shows chains that no vulnerability scan finds. One example is a harmless-looking misconfiguration that, combined with an outdated service and overly broad permissions, opens a path to production data.
The BSI mapping table links Annex A controls 8.8 and 8.29 of ISO/IEC 27001 to IT-Grundschutz requirements, among them OPS.1.1.1.A23 and OPS.1.1.6.A14 (IT-Grundschutz Compendium, Edition 2023). Both are titled “Durchführung von Penetrationstests” (carrying out penetration tests). Where the test fits into building an ISMS is covered in the guide to ISMS implementation.
A penetration test is a sample, not proof of security
The result holds for one point in time, a defined area, and the knowledge and time budget of the team engaged. A report with no findings means that nothing was found within those limits, not that nothing is there.
A penetration test therefore does not replace ongoing vulnerability management, which picks up new vulnerabilities between tests and tracks them until they are fixed.
Which types of penetration test are there?
Penetration tests differ in four attributes. Each attribute changes what the result tells you.
| Attribute | Forms | What it means for the result |
|---|---|---|
| Level of information | black box, grey box, white box | The more the testing team knows in advance, the more depth each testing day yields; black box measures the view from outside. |
| Starting point | external from the internet, internal from inside the network | Internal tests show the paths of lateral movement after a successful first foothold. |
| Subject | network and infrastructure, web application, API, mobile application, client, physical access, social engineering | Each subject needs its own methodology and its own approvals. |
| Objective | vulnerability-focused test, threat-led red teaming | The pentest looks for as many vulnerabilities as possible; red teaming pursues one attack objective and tests detection and response along the way. |
How does a penetration test work?
A penetration test runs in five steps: engagement and approval, testing in the agreed window, report, remediation of the findings and retest. Its quality is decided before the first day of testing, in the written engagement.
Fictional example of an engagement for an online retailer's customer portal:
| Item | Entry in the engagement | Checked before testing starts when |
|---|---|---|
| Targets and exclusions | customer portal and its API; the connected payment provider is excluded | every address in the engagement demonstrably belongs to the organisation or its operator has consented |
| Test window | 3 to 7 November, 8:00 to 18:00 | operations and monitoring know the window and can attribute alerts |
| Techniques | no denial of service, no social engineering | every exception is approved in writing |
| Real data | customer data found is recorded only as redacted evidence, no copies | deletion at the end of the test is agreed in the engagement |
| Emergency contacts | one reachable person on each side | both numbers have been called before testing starts |
| Signs of an existing compromise | stop the test and inform the emergency contact | the procedure is written into the engagement |
| Approval | system owner; for environments run by others also the operator or cloud provider | all signatures are in place |
The written engagement also protects the testers: § 202a StGB (German Criminal Code) makes it an offence to gain unauthorised access to specially protected data by circumventing the access protection.
Then treat the findings like any other vulnerability, with an owner, a deadline and a re-check. A finding is closed only when a retest after remediation shows it.
The report: attack path, impact, recommendation
A usable report contains a summary for management and, for each finding, the traceable attack path with evidence. It also states the impact in the specific environment and an actionable recommendation. Unfiltered tool output replaces none of these parts.
For financial entities, Article 24(5) of Regulation (EU) 2022/2554 (DORA) requires procedures for prioritising, classifying and remedying all issues revealed by testing, together with internal validation methods.
Five provisions and their testing intervals
The following provisions require testing or an evaluation of effectiveness. A penetration test is one way to meet them.
| Provision | Who is bound | What is required | Interval |
|---|---|---|---|
| § 30(2) sentence 2 no. 6 BSIG | particularly important entities (besonders wichtige Einrichtungen; “essential entities” in the NIS2 Directive) and important entities, except financial entities under DORA (§ 28(6) BSIG) | concepts and procedures for assessing the effectiveness of risk-management measures in the field of IT security | not specified |
| point 6.5.2 of the Annex to Implementing Regulation (EU) 2024/2690 | entities of the types listed in § 30(3) BSIG, such as cloud computing service providers and managed service providers | security tests under a documented test methodology; document type, scope, time and results, with criticality and mitigating action for each finding | need, scope, frequency and type set from the risk assessment |
| Article 32(1)(d) of Regulation (EU) 2016/679 (GDPR) | controllers and processors | a process for regularly testing, assessing and evaluating the effectiveness of technical and organisational measures | regularly, no fixed period |
| Article 24(6) DORA | financial entities other than microenterprises | appropriate tests of all ICT systems and applications supporting critical or important functions | at least yearly |
| Article 26(1) DORA | financial entities identified by the supervisor | threat-led penetration testing (TLPT) | at least every three years, adjustable by the authority |
For planning: under the BSIG and the GDPR, the organisation sets method and interval itself and has to be able to justify both.
How often should a penetration test take place?
Neither § 30 BSIG nor Article 32 GDPR names an interval; the implementing regulation requires the frequency to follow from the risk assessment. Derive the interval from four factors: the system's protection needs, its exposure to the internet, its rate of change and contractual commitments to customers.
On top of the interval, a test is due when an externally reachable application goes live for the first time or the architecture changes materially. An annual test that always examines the same area leaves the rest of the estate unexamined.
TLPT under DORA: at least every three years, on live systems
Article 3(17) DORA defines threat-led penetration testing as a framework that mimics the tactics, techniques and procedures of real-life attackers. The framework enables a red-team test of the entity's critical live production systems. Under Article 26(2), each TLPT covers several or all critical or important functions. The financial entity assesses which ones; the competent authority validates the scope.
The details are set out in Commission Delegated Regulation (EU) 2025/1190. These regulatory technical standards were developed in accordance with the TIBER-EU framework. How TLPT fits into the other DORA obligations is set out in the DORA guide.

