Penetration Testing for Compliance: Regulatory Standards Guide

Penetration Testing for Compliance: Regulatory Standards Guide

For many years, cybersecurity compliance was treated primarily as a matter of documentation. Organizations were expected to formalize processes, define responsibilities, and maintain approved policies. If these elements were present and properly recorded, compliance was generally assumed.

That assumption no longer holds.

Across modern regulatory frameworks, compliance has shifted from intent to evidence. Regulators and auditors now expect proof that security controls function under realistic conditions. Documented processes alone are insufficient; implemented measures must withstand credible attack paths and satisfy regulatory scrutiny.

This shift affects how compliance programs are structured. While required controls are usually clear, validation is often less defined, particularly when testing scope must align with specific frameworks or when independence becomes a determining factor. Penetration testing and adversarial validation have therefore moved from supporting activities to formal components of compliance programs. In this context, penetration testing for compliance is no longer optional validation but a structured regulatory requirement.

This article examines how security assessment maps to key regulatory and assurance frameworks across operational resilience, product security, and data protection regimes,including NIS 2, DORA, GLBA, the Cyber Resilience Act (CRA), FDA Medical Devices guidance, PCI DSS, SOC 2, and ISO 27001. It clarifies when technical testing is expected, how validation differs across regulatory families, and how responsibilities should be separated to preserve independence and audit defensibility. Understanding how penetration testing compliance expectations differ across these frameworks is essential for defensible audit outcomes.

At Iterasec, we operate solely at the validation stage. We do not design controls, write policies, or implement compliance programs. Our role is to provide independent, adversarial assessment aligned with the applicable regulatory framework and structured to support both technical remediation and regulatory review.

The Separation of Duties: Implementation vs. Assessment

In compliance-driven security testing, who performs the assessment is often as important as what is tested. The principle that matters here is independence: the party that validates a control should not be the same party that designed, built, or operates it. That separation is what gives the results their evidentiary value.

When the same internal team, or the same consultancy, that designs and implements security controls is also responsible for testing them, independence is compromised. Even with the best intentions, conflicts of interest arise: assumptions go unchallenged, blind spots remain, and findings may be unconsciously softened to avoid internal friction.

In practice, every framework covered in this article separates three parties:

The implementer (internal team and/or GRC consultant) builds and operates the controls — governance, policy writing, system configuration, remediation. They design the ISMS, write the risk registers, and deploy the defenses.

The independent assessor (Iterasec) tests those controls adversarially and produces the evidence. We do not fix the holes; we find them, prove they can be exploited, and document the results in a form that withstands scrutiny.

The auditor or authority judges that evidence and issues the compliance outcome. Depending on the framework, this is the QSA (PCI DSS), the CPA firm (SOC 2), the certification body (ISO 27001), the notified body (CRA), the FDA reviewer, or the TLPT authority (DORA). This party does not perform the testing — it evaluates whether the testing, and the controls it examined, satisfy the requirement.

Keeping the first two parties separate is what auditors and authorities in the third seat are looking for. The exact bar varies by framework. Some, such as PCI DSS and ISO/IEC 27001, require organizational independence rather than a strictly external provider, meaning a sufficiently separated in-house team can qualify; DORA likewise permits internal red-teamers between its mandatory external testing cycles (though significant credit institutions must use external testers exclusively). 

Others make third-party involvement mandatory outright, including DORA’s external-tester requirement for TLPT and the notified-body routes for higher-risk product classes under the CRA. But across all of them, externally validated assessments are consistently treated as higher-quality evidence than internally conducted testing, because independence is easiest to demonstrate, and hardest to dispute, when the assessor sits outside the organization entirely. That holds even where a framework does not explicitly mandate third-party involvement.

Regulatory Standards That Require Penetration Testing for Compliance

Before examining specific testing requirements, it is useful to group these standards not by topic but by the kind of obligation they create, because that is what ultimately determines how rigorous and how independent the testing must be.

Although terminology differs across frameworks, the obligations fall into two broad types.

Legally binding regulations. DORA, NIS 2, GLBA, the Cyber Resilience Act (CRA), and the FDA’s medical device requirements are enforced by regulators or backed by statute, and non-compliance carries legal and financial consequences. These laws differ in focus — operational resilience (DORA, NIS 2), protection of customer data (GLBA), and product security (CRA, FDA) — but they share enforceability and supervisory oversight, which is why they tend to push hardest toward demonstrable, independent validation.

Industry and assurance standards. PCI DSS, SOC 2, and ISO/IEC 27001 are not government legislation. PCI DSS is a contractual standard imposed by the payment card brands; SOC 2 is a voluntary attestation performed by a CPA firm; ISO/IEC 27001 is a voluntary certification against an international standard. Compliance here is driven by contracts, customers, and market expectations rather than by statute — but auditors, assessors, and CPA firms still treat externally validated testing as the higher-quality evidence.

Despite these differences, all of them share a common expectation: implemented controls must be demonstrably effective under realistic threat conditions. The sections below break down how an offensive security assessment maps to each framework — what must be validated, how often, and under what level of independence.

Part 1 — Legally Binding Regulations

DORA (Digital Operational Resilience Act)

DORA formalizes the shift from documentation to evidence most explicitly, and is one of the clearest cases where penetration testing is embedded directly into statutory obligations. It requires financial entities to validate their ability to withstand and recover from severe cyber incidents, and has applied since 17 January 2025.

Applies to: Financial entities (banks, insurers, investment firms, and others), with critical ICT third-party providers brought in through a dedicated oversight framework.

AttributeDetail
External Required?Partly mandatory. For TLPT, external red-teamers must be used at least every third test; internal red-teamers are permitted in between, but only under strict independence conditions approved by the TLPT authority, and the threat-intelligence function is provided externally. For standard testing, external testing is highly recommended to demonstrate independence.
FrequencyStandard testing: at least annually for systems supporting critical/important functions. TLPT: at least every 3 years (the competent authority may increase or decrease this based on the entity's risk profile).
Iterasec SolutionRed Teaming (TLPT) & Annual Pentesting. Advanced simulations aligned with the DORA RTS / TIBER-EU, targeting people, processes, and technology.
MethodologyFor TLPT, the binding rules are set by the RTS on TLPT (Delegated Regulation (EU) 2025/1190); the updated TIBER-EU framework aligns with these. Standard testing follows recognised industry frameworks (e.g., OWASP, NIST).
ScopeCritical ICT systems, applications, and functions. For TLPT, scope expands to live production systems supporting critical or important functions, plus the people and processes around them.
The RequirementArticles 24–25: a mandatory digital operational resilience testing programme, including vulnerability assessments, scans, and penetration testing of systems supporting critical or important functions.

Article 26: advanced Threat-Led Penetration Testing (TLPT) for identified entities. (Article 27 sets the requirements for the testers who carry out TLPT.)

GLBA (FTC Safeguards Rule)

The GLBA Safeguards Rule is a prescriptive US data-security law. Its core concern is protecting the confidentiality and security of customer information (non-public personal information), and the amended rule names penetration testing outright.

Applies to: Non-banking financial institutions (auto dealers, mortgage brokers, tax preparers, payday lenders, and similar).

AttributeDetail
External Required?Highly recommended. The "Qualified Individual" overseeing the program must report in writing to the board; external reports provide the independence that filing relies on.
FrequencyAnnual penetration testing; semi-annual vulnerability assessments.
Iterasec SolutionAnnual Network & App Pentest. A full-scope attack simulation on all systems handling customer data to satisfy the annual requirement.
MethodologyStandard white-box or gray-box penetration testing focused on data exfiltration paths.
ScopeAny information system that handles, processes, or stores "Customer Information" (Non-Public Personal Information – NPI).
The RequirementThe amended Safeguards Rule explicitly mandates annual penetration testing and semi-annual vulnerability assessments, unless 24/7 continuous monitoring is in place.

NIS 2 Directive

NIS 2 requires organizations to assess the effectiveness of their technical risk-management measures on a regular basis. It applies across critical sectors rather than to finance specifically — and notably, financial entities are largely governed by DORA instead, as the more specific law.

Applies to: Essential and Important entities (energy, transport, health, digital infrastructure, and others).

AttributeDetail
External Required?Recommended. Auditors look for independent assessments of effectiveness to validate the internal risk reports.
FrequencyRegular/periodic (standard industry interpretation: annually).
Iterasec SolutionPeriodic Penetration Testing. Technical validation that risk-management measures are functioning effectively.
MethodologyRisk-based approach tailored to the entity's threat landscape.
ScopeCritical assets and the network and information systems supporting essential services.
The RequirementArticle 21 mandates technical and organisational measures to manage risk, explicitly including policies and procedures to assess the effectiveness of those measures.

CRA (Cyber Resilience Act)

The CRA shifts attention from operational continuity to market integrity: the concern is whether the product itself introduces risk into the market. Testing must extend beyond network exposure to firmware, proprietary protocols, backend services, and mobile interfaces. The CRA entered into force on 10 December 2024 and applies in full from 11 December 2027, with vulnerability and incident reporting obligations from 11 September 2026 and the notified-body provisions from 11 June 2026.

Applies to: Products with digital elements (hardware and software) made available on the EU market.

AttributeDetail
External Required?Depends on product class. Default products: self-assessment. Important Class I: self-assessment only if a harmonised standard is applied — otherwise a notified body is required. Important Class II and Critical products: third-party assessment by a notified body is mandatory (or an applicable EU cybersecurity certification scheme). For self-assessed products, an external report still acts as crucial liability protection.
FrequencyPre-market (conformity assessment before the product is placed on the market) and post-market (continuous vulnerability handling across the product's lifecycle).
Iterasec SolutionFull Ecosystem Assessment. We test the firmware, API, and mobile app before the Declaration of Conformity. Beyond an independent security assessment, this includes a review of CRA-relevant controls and processes: factory reset and persistent-memory wipe (secrets/sessions persisted), the vulnerability disclosure process, BLE security, data-at-rest security, integrity controls, attack-surface analysis, SBOM and CVE tracking — and more.
ScopeFull ecosystem: device firmware + mobile app + cloud API/backend.
MethodologyRisk-based assessment focused on exploitable vulnerabilities and security-by-design, mapped to the Annex I essential requirements.
The RequirementProducts must meet the essential cybersecurity requirements in Annex I — including being made available without known exploitable vulnerabilities and with a secure-by-default configuration.

FDA Medical Device Cybersecurity

FDA cybersecurity expectations are now a statutory requirement, not just guidance. Section 524B of the FD&C Act (added by the Consolidated Appropriations Act, 2023, effective 29 March 2023) requires manufacturers to demonstrate that “cyber devices” meet defined cybersecurity requirements as part of their premarket submissions. The current guidance was updated in June 2025 to fold in Section 524B and revised again in February 2026 to align with the Quality Management System Regulation (QMSR / ISO 13485).

Applies to: Manufacturers of “cyber devices” — broadly, devices that include software, can connect to the internet, and have characteristics that could be vulnerable to cybersecurity threats (US; effectively global for any product entering the US market).

AttributeDetail
External Required?Standard practice. Reviewers scrutinize self-generated submissions, and missing cybersecurity content can trigger a Refuse-to-Accept decision or denial of authorization; independent testing provides the credibility needed for clearance.
FrequencyPre-market (submission phase) and post-market (lifecycle management).
Iterasec SolutionMedical Device Pentesting. Specific testing of proprietary protocols and patient-safety logic.
MethodologySecurity testing recommended in FDA guidance — including fuzz/robustness testing, static and dynamic analysis, vulnerability scanning, and penetration testing — with a shift toward exploitability-focused risk assessment.
ScopeThe device (software/firmware), proprietary protocols (e.g., BLE, Zigbee), connected cloud services, and related systems.
The RequirementFor any premarket submission for a cyber device — 510(k), PMA, De Novo, PDP, or HDE (not 510(k) alone) — Section 524B(b) requires a plan to monitor and address postmarket vulnerabilities (including coordinated vulnerability disclosure), processes providing reasonable assurance the device and related systems are cybersecure, and a machine-readable SBOM.

Part 2 — Industry and Assurance Standards

PCI DSS v4.0.1

PCI DSS ties penetration testing directly to compliance status, with penetration testing addressed under Requirement 11.4. Segmentation validation is critical, because scope reduction depends on technical isolation being demonstrable. The current version is v4.0.1, and all v4.x future-dated requirements have been mandatory since 31 March 2025.

Applies to: Entities that store, process, or transmit payment card data.

AttributeDetail
External Required?The tester must be organizationally independent from the team that manages the tested environment (internal or external). For most merchants and processors, an external firm is the practical standard for demonstrating this to the QSA.
FrequencyInternal and external penetration testing: at least annually and after any significant change — for all entities, including service providers. Segmentation testing: annually for most entities; every 6 months for service providers.
Iterasec SolutionPCI-Specific Pentesting. Segmentation verification and application security, delivered as an annual engagement with segmentation testing repeated at 6 months for service providers.
MethodologyDocumented and based on an industry-accepted approach (e.g., NIST SP 800-115, OWASP, PTES), covering both network-layer and application-layer testing, plus segmentation validation by active testing rather than scanning alone.
ScopeThe entire Cardholder Data Environment (CDE) and any connected systems. Application-layer testing must cover the vulnerabilities listed in Requirement 6.2.4 (OWASP-aligned).
The RequirementRequirement 11.4: internal and external penetration testing using a documented methodology, with remediation and retesting, plus segmentation testing under 11.4.5/11.4.6. (Vulnerability scanning is the separate Requirement 11.3; v4.0 added authenticated internal scanning under 11.3.1.2.)

SOC 2

SOC 2 is a voluntary AICPA attestation performed by a CPA firm, typically demanded by customers. It does not prescribe a single testing format; instead it requires organizations to demonstrate that security controls operate effectively within the defined scope of the system. Technical validation supports management’s assertions about control effectiveness and vulnerability management, which is why many SaaS providers run recurring penetration testing to support Type II reporting cycles.

Applies to: SaaS providers and general enterprise security.

AttributeDetail
External Required?Standard practice. While not written as "external only," CPA firms rarely accept internal pentests as sufficient evidence for a SOC 2 Type II report, due to the inherent conflict of interest.
FrequencyAnnually (critical for providing evidence during the Type II observation period).
Iterasec SolutionSaaS & Cloud Pentesting. Deep-dive testing of web application logic and cloud configuration to demonstrate to the CPA firm that the product is secure against modern web attacks.
MethodologyWeb application and API penetration testing (e.g., OWASP ASVS) combined with cloud configuration reviews.
ScopeThe defined "System" or "Service" (product/platform) and its supporting cloud infrastructure.
The RequirementCriteria CC 4.1 & CC 7.1: the entity must evaluate whether security controls (such as detection and response) are present and functioning, and must actively manage vulnerabilities.

ISO/IEC 27001

ISO/IEC 27001 is a voluntary certification against an international standard (current version: ISO/IEC 27001:2022). Like SOC 2, it does not prescribe a single testing format; it requires organizations to demonstrate that security controls operate effectively within the defined scope of the ISMS. Technical validation supports assertions about control effectiveness and vulnerability management, and strengthens surveillance and re-certification audit readiness.

Applies to: Any organization establishing a formal Information Security Management System (ISMS).

AttributeDetail
External Required?Internal allowed (with caveats). ISO permits internal testing if testers are competent and organizationally separate from developers. Because most companies lack this dedicated resource, an external firm is the standard way to satisfy the external auditor.
FrequencyRegular/periodic (standard industry practice: annually, to satisfy surveillance and re-certification audits).
Iterasec SolutionVulnerability Assessment & Pentest (VAPT). Concrete technical evidence that the vulnerability management policy is an active, effective cycle rather than paperwork.
MethodologyRisk-based vulnerability assessments and network/application penetration testing.
ScopeAll critical assets defined within the scope of the ISMS.
The RequirementControl A.8.8 (management of technical vulnerabilities) and Control A.8.25 (secure development lifecycle) require identifying and mitigating technical flaws.

What a Compliance Penetration Testing Report Must Include

Every security assessment concludes with a detailed technical report. In regulated environments, that report becomes part of the compliance record. A generic vulnerability list is rarely sufficient. Auditors expect documentation that clearly demonstrates scope alignment, methodological rigor, and reproducible findings.

A compliance-oriented security report must therefore be structured with regulatory defensibility in mind. This documentation framework reflects the best penetration testing methods for compliance, where traceability and reproducibility are central.

Preparing for DORA, PCI DSS, CRA, or ISO 27001? Let’s define the right independent testing scope for your regulatory requirements.

Methodology & Testing Approach

The report must clearly define how the assessment was conducted and which framework governed the testing. Whether aligned with OWASP ASVS for application security, TIBER-EU for DORA-aligned red teaming, or FDA cybersecurity guidance for medical devices, methodology must map directly to the regulatory requirement. Ambiguity at this stage weakens evidentiary value.

Executive Summary & Narrative

Beyond technical detail, the report should provide a structured overview of the engagement — explaining scope, objectives, key findings, and overall risk posture. This narrative layer allows auditors, compliance teams, and executive stakeholders to understand the assessment context without navigating raw technical output.

Structured Technical Findings

Each finding must be documented with precision. A defensible report includes a clear description of the vulnerability, technical impact, step-by-step reproduction details, affected assets, and specific remediation guidance. Reproducibility and clarity are critical for both remediation and audit review.

Standardized Scoring (CVSS)

Severity classification must follow an accepted industry standard. Adherence to the Common Vulnerability Scoring System (CVSS) ensures objectivity and comparability across assessment cycles. Standardized scoring is a foundational element of mature compliance pentesting programs, reducing interpretation disputes and strengthening audit acceptance.

At Iterasec, report structure is designed with these requirements in mind, ensuring that technical depth and regulatory clarity are maintained simultaneously.

Summary: Building a Penetration Testing Compliance Journey

Compliance programs rarely fail because controls are missing. They fail on the harder problems: unclear scope, inconsistent validation, or testing that doesn’t line up with what the regulation actually asks for.

In practice, compliance comes together in three connected layers.

The first is regulatory definition, working out what actually applies. A financial entity has to establish whether DORA covers it; if it does, the next question is whether it has been designated for threat-led penetration testing. A product manufacturer checks if the CRA or FDA rules are triggered. For everyone else, it usually comes down to PCI DSS scope or NIS 2 coverage. Without clear scoping, technical validation has no direction.

The second is implementation, turning those requirements into operational safeguards. Governance, encryption, access controls, monitoring, and documented procedures all live here, and this is where most compliance budget is spent.

The third is validation, where the claims get tested against reality. Adversarial testing probes whether PCI DSS segmentation truly isolates the CDE, pushes DORA resilience measures against realistic attack paths, hunts for exploitable weaknesses in CRA-regulated products, and confirms that SOC 2 and ISO 27001 controls behave as described. This is the point where implementation is finally measured against the regulation.

How high the bar sits depends on the obligation. Independence matters most where compliance is legally mandated, and less where it is contractual or voluntary. But in every case, a well-run assessment is what separates a checkbox exercise from evidence that holds up under scrutiny.

At Iterasec, this validation stage is the core of our work. We run independent security assessments aligned to the relevant framework, and we structure the results to support both technical remediation and audit review.

If compliance-driven testing is on your roadmap, getting scope and methodology right early is the difference between a formality and a defensible outcome. Done well, pentesting turns regulatory obligations into measurable, attack-tested resilience.

Latest posts

ISO 27001 Implementation: Comprehensive Guide

In this post, we present a comprehensive guide on ISO 27001 implementation for companies: key steps/resources to establish an efficient...

Read more

EN 18031 & RED Cybersecurity: Compliance Status and What Comes Next

Cyber threats targeting connected devices have become a stark reality for every industry, and the radio equipment sector is no

Read more

DORA Is Now in Force: Testing Requirements for Financial Entities

⚠ Enforcement Note The Digital Operational Resilience Act (DORA) — EU Regulation 2022/2554 — has been applicable since 17 January

Read more

Contacts

Please tell us what are you looking for and we will happily support you in that. Feel free to use our contact form or contact us directly.

    Thank you for submission!

    We’ve received your request and will get back to you shortly. If you have any urgent questions, feel free to contact us at [email protected]