Skip to content

Penetration Testing (Pentest)

Definition

A penetration test is a commissioned, bounded security examination in which specialists use attacker methods to try to break into a target system. Unlike an automated scan, it shows whether a vulnerability is exploitable in the specific environment. Article 26 of DORA requires identified financial entities to carry out threat-led penetration testing at least every three years.

ISMS
By Muhammad Haseeb, Co-Founder & CTOReviewed by Masar Hetemi, Co-Founder & CEO
Last reviewed:

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.

AttributeFormsWhat it means for the result
Level of informationblack box, grey box, white boxThe more the testing team knows in advance, the more depth each testing day yields; black box measures the view from outside.
Starting pointexternal from the internet, internal from inside the networkInternal tests show the paths of lateral movement after a successful first foothold.
Subjectnetwork and infrastructure, web application, API, mobile application, client, physical access, social engineeringEach subject needs its own methodology and its own approvals.
Objectivevulnerability-focused test, threat-led red teamingThe 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:

ItemEntry in the engagementChecked before testing starts when
Targets and exclusionscustomer portal and its API; the connected payment provider is excludedevery address in the engagement demonstrably belongs to the organisation or its operator has consented
Test window3 to 7 November, 8:00 to 18:00operations and monitoring know the window and can attribute alerts
Techniquesno denial of service, no social engineeringevery exception is approved in writing
Real datacustomer data found is recorded only as redacted evidence, no copiesdeletion at the end of the test is agreed in the engagement
Emergency contactsone reachable person on each sideboth numbers have been called before testing starts
Signs of an existing compromisestop the test and inform the emergency contactthe procedure is written into the engagement
Approvalsystem owner; for environments run by others also the operator or cloud providerall 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.

ProvisionWho is boundWhat is requiredInterval
§ 30(2) sentence 2 no. 6 BSIGparticularly 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 securitynot specified
point 6.5.2 of the Annex to Implementing Regulation (EU) 2024/2690entities of the types listed in § 30(3) BSIG, such as cloud computing service providers and managed service providerssecurity tests under a documented test methodology; document type, scope, time and results, with criticality and mitigating action for each findingneed, scope, frequency and type set from the risk assessment
Article 32(1)(d) of Regulation (EU) 2016/679 (GDPR)controllers and processorsa process for regularly testing, assessing and evaluating the effectiveness of technical and organisational measuresregularly, no fixed period
Article 24(6) DORAfinancial entities other than microenterprisesappropriate tests of all ICT systems and applications supporting critical or important functionsat least yearly
Article 26(1) DORAfinancial entities identified by the supervisorthreat-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.

Frequently asked questions

How does a penetration test differ from a vulnerability scan?

A vulnerability scan compares automatically detected versions and configurations against known vulnerabilities and delivers a broad but shallow overview. A penetration test is performed by people, examines actual exploitability in the specific environment and finds chains of several individually unremarkable weaknesses. The BSI mapping table lists both under Annex A control 8.8: OPS.1.1.1.A22 for automated vulnerability tests and OPS.1.1.1.A23 for penetration tests.

What is the difference between a penetration test and red teaming?

A penetration test looks for as many exploitable vulnerabilities as possible within a bounded area. Red teaming pursues a defined attack objective with the methods of real attackers and also tests whether the organisation detects and responds to the attack. For TLPT under DORA, the control team lead selects at least three scenarios proposed by the threat intelligence provider (Article 10(2) and (3) of Delegated Regulation (EU) 2025/1190).

Do we need a penetration test for ISO 27001 certification?

Yes, if your risk treatment provides for it as evidence. The controls of an ISMS follow from risk treatment under clause 6.1.3 of ISO/IEC 27001, and clause 9.1 requires their effectiveness to be evaluated. For technically exposed systems a penetration test is the obvious candidate: the BSI mapping table links Annex A controls 8.8 and 8.29 to IT-Grundschutz requirements for carrying out penetration tests.

Who may carry out a penetration test?

Internal or external testers. For financial entities, Article 24(4) DORA requires independent internal or external parties; with internal testers, conflicts of interest must be avoided. For TLPT, Article 26(8) applies: entities using internal testers engage an external tester for every third test, and significant credit institutions use external testers only.

See compliance run on your real assets

Rizzqo turns framework requirements into owned tasks on the assets you already have, and prices the risk in real money.

  • Made in Germany
  • Hosted in your country
  • Multi-framework
Muhammad Haseeb

About the author

Muhammad Haseeb

Co-Founder & CTO

15 years of experience building software systems, responsible for all technical aspects of Rizzqo.

LinkedIn

Reviewed by Masar Hetemi, Co-Founder & CEO. 15 years of experience in compliance, responsible for governance, risk and compliance (GRC) at Rizzqo.