Pentest for ENS
You sell to the Spanish public sector. Here is what the ENS expects of your pentest.
If your SaaS serves a Spanish public body, the tender asks for compliance with the Esquema Nacional de Seguridad (ENS), Spain's national security framework. For the Medium and High categories that means certification by an accredited body — and that body wants to see evidence of security testing. Here is what you need to know.
What the ENS is and who it applies to
The Esquema Nacional de Seguridad (Royal Decree 311/2022) sets the security measures that public-sector systems must meet — and those of the private providers that serve them, for the systems involved in that service. That is why you see it in tenders: without a Declaration or Certificate of Conformity, you don't get in.
Systems are classified as Basic, Medium or High category. For Basic, a self-assessment is enough. For Medium and High you need a formal audit, repeated at least every two years, by an accredited certification body.
What role the pentest plays
The ENS requires you to manage technical vulnerabilities and to verify periodically that the security measures work. A manual penetration test of the in-scope system is the usual way to evidence that, and it is what the certification body expects to find in the file: what was tested, with which method, what was found and what was fixed.
Where does it say so literally? With the words "penetration testing", in two places in Annex II of Royal Decree 311/2022: in the monitoring measure op.mon.3, reinforcement R6 "Security inspections" ([op.mon.3.r6.3] Penetration tests), mandatory only for the High category; and in op.nub.1.2, for third-party cloud services, at every category. For a SaaS there is a third measure that weighs more: mp.s.2 "Protection of web services and applications" requires security audits of the web application at every category — black-box or white-box (R1 or R2) at Basic and Medium, white-box plus reinforcement R3 at High — during development and before production, at a frequency set in your audit procedure. A black-box audit of your application is, in practice, a web-application pentest. So at Medium the certification body won't ask you for "a pentest" under op.mon.3, but it will ask for the application security audit under mp.s.2 — and the report with retest is the most direct way to give it. The detail, measure by measure and category by category, is in the 2026 guide.
What the ENS does not say is "one pentest per quarter". The frequency is set by your risk analysis and your audit cycle. An annual test with retest, plus an interim test if your system changes a lot, is what fits the two-year cycle without gaps.
The scope follows your statement of applicability
The certification body audits the system as you have delimited it. If the pentest covers something else, you have a report but not evidence. That is why I align the scope with your statement of applicability before the test — the same application, the same environment, the same roles — and that is what the attestation letter (TPM) records.
What the certification body gets
- The attestation letter: scope, method, period, outcome.
- The retest statement per round: what was fixed.
- On request: the methodology in detail and answers to their questions, free of charge.
The technical report stays with you. The auditor doesn't need the findings to check that you have resolved them; that is what the statement is for.
About language
Report and attestation letter are delivered in English (I also work in German). Many certification bodies accept that as is; if yours requires the evidence in Spanish, tell me in the scoping call and we'll see whether it fits.
What about NIS2 or DORA?
They ask for the same thing in other words: recent evidence of security testing, vulnerability management and verified remediation. A test with an attestation letter and a retest statement answers all three.
A note on dates: as of September 2026, Spain has still not published the law transposing NIS2 in the official gazette (BOE), and the European Commission referred Spain to the Court of Justice of the EU in July 2026 over the delay. What reaches a SaaS provider today is not an obligation of its own but the questionnaire of a customer who is under NIS2 and has to monitor its suppliers — and that questionnaire is answered with the attestation letter, not the report.
FAQ
Frequently asked questions
Is a pentest mandatory for ENS certification?
With the words "penetration testing", only for the High category (op.mon.3.r6.3) and for third-party cloud services (op.nub.1.2). But if your system is a web application, mp.s.2 requires security audits of the application at every category: black-box or white-box at Basic and Medium, white-box plus reinforcement R3 at High. In practice a SaaS selling to the public sector needs a pentest of its application whatever the category; what changes with the category is the depth and what else gets inspected.
Do I need the ENS if I only have one public-sector customer?
It depends on the tender and on the category of the system serving that public body. More and more contracts require it from the first customer. Ask before you sign, not after.
How often do I need a pentest for the ENS?
The regulation doesn't set a frequency; your risk analysis does. An annual test with retest covers the two-year audit cycle; with the Annual plan, the interim test also covers the changes in between.
Does the same test work for ENS and ISO 27001?
Yes. Scope, method and evidence are the same; only the auditor changes. One attestation letter serves both files.
A 30-minute call is enough to know whether this fits.
Book a scoping callPrefer email? Send your scope to info@hacketico.es — within 24 hours on working days you'll know whether it fits in 5 days and what it costs.