The Article 21 measures that testing supports
- Article 21(2)(a) — policies on risk analysis and information system security.
- Article 21(2)(e) — security in network and information systems acquisition, development and maintenance, including vulnerability handling and disclosure.
- Article 21(2)(f) — policies and procedures to assess the effectiveness of cybersecurity risk-management measures.
- Article 21(2)(d) — supply chain security, where testing of suppliers' interfaces and services can be relevant.
Implementing Regulation 2024/2690: point 6.5
For DNS providers, TLD registries, cloud and data-centre providers, CDNs, managed service and managed security service providers, online marketplaces, search engines, social networks and trust service providers, the annex to Implementing Regulation (EU) 2024/2690 includes a section on security testing. Under point 6.5, these entities must:
- Establish, implement and apply a policy and procedures for security testing.
- Decide the need, scope, frequency and type of tests based on their risk assessment.
- Test according to a documented methodology and record type, scope, time, results and the criticality of each finding.
- Apply mitigating actions for critical findings and review the testing policy at planned intervals.
What ENISA's guidance suggests
ENISA's technical implementation guidance (June 2025) recommends considering a range of tests, including vulnerability assessments, penetration testing, code review, red teaming and bug bounty programmes, and testing continuously in CI/CD environments as well as after significant changes. It points to the OWASP Web Security Testing Guide as a reference methodology. ENISA's guidance is not binding, but supervisors are likely to read evidence against it.
Management accountability
Article 20 makes management bodies approve and oversee the risk-management measures and allows them to be held liable for infringements. That changes what testing reports need to do: they should give leadership a clear view of risk and remediation, not just a list of CVEs.
Using Pentest-Swarm in a NIS2 testing programme
Pentest-Swarm can be the continuous, documented application-testing component of a NIS2 security-testing policy for web apps and APIs.
- Run it in CI/CD and after significant changes, as ENISA's guidance suggests, with the CI/CD and OWASP Top 10 playbooks.
- Every run records scope, time and results, and each finding carries evidence, severity and CVSS, matching point 6.5.2's documentation requirements.
- Self-host it in the EU or fully offline with local models, keeping test data inside your own boundary.
- Armur's managed service adds scheduled tests, human-reviewed reports and retests after fixes.
Where it falls short
NIS2 obligations depend on national law and your sector, and some supervisors may expect independent or accredited testing for certain entities. Pentest-Swarm is alpha and covers web applications and APIs, not OT systems, physical security or governance controls. It supports your testing policy; it does not make you NIS2 compliant, and Armur does not offer NIS2-specific compliance reporting.
Questions
Does NIS2 require penetration testing?
Not with a fixed frequency. Article 21 requires procedures to assess the effectiveness of security measures and to handle vulnerabilities. For digital providers, Implementing Regulation 2024/2690 requires a security-testing policy, and ENISA's guidance lists penetration testing among the tests to consider.
How often should NIS2 entities pentest?
As often as your risk assessment justifies. Point 6.5.2 of the implementing regulation requires you to set frequency based on risk; ENISA suggests continuous testing in CI/CD plus testing after significant change.
Is NIS2 the same in every EU country?
No. It is a directive transposed into national law, so details, supervisors and penalties vary by member state.