Resources / Compliance

ENS certification in Spain: what public-sector suppliers need

Spain's National Security Framework (ENS) also covers the systems a company uses to serve the public sector. Spain's National Cryptologic Centre (CCN) says that includes non-Spanish companies. What Royal Decree 311/2022 asks of a supplier, when a self-assessment is enough and when certification is needed, and which evidence counts.

On this page · 9 sections
  1. What the ENS is
  2. Which suppliers the ENS applies to
  3. ENS categories: BASIC, MEDIUM and HIGH
  4. Declaration or certification: what each category needs
  5. Monitoring and security testing in the ENS
  6. Which evidence counts, and for what
  7. How to get the ENS declaration or certification: steps for a supplier
  8. How IntruForce can help
  9. Sources

In 30 seconds

What happens
The guide explains what Spain's National Security Framework (ENS) requires from public-sector suppliers, and when a declaration or a certification of conformity is needed.
Who it affects
Companies, Spanish or not, that provide software or services under contract to a Spanish public body, and their subcontractors where the risk analysis requires it.
First step
Read the ENS requirements in your tender documents: which systems they cover, which category they require and when you must present the declaration or certification.
Our view
A supplier proves conformity with Spain's National Security Framework (ENS) with a declaration or a certification, not with a technical report. Before the self-assessment or the audit, it helps to know which systems support the service and which of them can be reached from the internet.

If your company provides software or services to a Spanish public body under contract, Spain's National Security Framework (Esquema Nacional de Seguridad, ENS) applies to the systems you use to deliver them. Under Article 2.3 of Royal Decree 311/2022, the ENS also reaches private companies whose systems serve a public body under contract, so that the body can exercise its competences and administrative powers. The National Cryptologic Centre (Centro Criptológico Nacional, CCN), which runs the ENS portal, says in its FAQ (guidance, not binding law) that this holds whether the company is Spanish or not.

What you have to show depends on the category of those systems. For BASIC, it is a declaration of conformity based on a documented self-assessment. For MEDIUM and HIGH, it is a certification of conformity issued after an audit. The tender documents (the pliego, which sets the conditions of a Spanish public contract) say which systems it must cover and when you present it; some add specific technical measures. Below: what the decree says, which evidence fits each case, and where vulnerability scanning and penetration testing come in. The decree is in Spanish; the quotes below are our translations.

What the ENS is

The ENS is organized into basic principles, minimum requirements and a catalog of security measures in Annex II. The measures fall into three groups: organizational framework, operational framework and protection measures. You select them, with their reinforcements (additional requirements), based on the system's assets, its category, the security dimensions affected (availability, authenticity, integrity, confidentiality, traceability) and your risk management decisions (Article 28).

Royal Decree 311/2022, of May 3, was published in Spain's official gazette, the Boletín Oficial del Estado (BOE), on May 4, 2022. It replaced Royal Decree 3/2010, which had created the ENS for e-government. The consolidated text on the BOE site includes amendments up to November 6, 2024. The CCN links to an English translation of the decree published in July 2022. It predates that amendment, so rely on the Spanish consolidated text.

Which suppliers the ENS applies to

Article 2.3 states it directly: the royal decree “also applies to the information systems of private-sector entities” when, “in accordance with the applicable legislation and under a contractual relationship, they provide services” to public-sector entities “for the exercise by the latter of their competences and administrative powers”. Those suppliers must also have a security policy.

The same article carries the requirement into contracts. The tender documents “shall include all the requirements needed to ensure conformity with the ENS” of the systems that support the service. Among those requirements it names “the presentation of the corresponding Declarations or Certifications of Conformity with the ENS”. This also reaches your own subcontractors and suppliers, where the risk analysis shows it is needed.

Suppliers outside Spain are covered too. The CCN's FAQ (guidance, not law) says the conformity requirement applies to the information systems of any entity, Spanish or not, and that several certified entities are not Spanish and do not keep their systems in Spain. Which route applies to you, declaration or certification, depends on the category (see below). The same FAQ adds a caution: tender documents may also require the servers of the contracted service to meet Royal Decree-Law 14/2019, which sets conditions for processing special categories of personal data. Check with your public customer whether that applies to your service. The FAQ does not say whether you need a Spanish legal entity; ask the contracting body. So start with two questions: which of your systems support a public service, and what do the tender documents ask for them?

ENS categories: BASIC, MEDIUM and HIGH

You classify each system as BASIC, MEDIUM or HIGH (BÁSICA, MEDIA or ALTA in the Spanish text). Under Article 40, the category depends on the impact an incident would have on the availability, authenticity, integrity, confidentiality or traceability of the information or the services. The procedure is in Annex I.

Each dimension is rated LOW, MEDIUM or HIGH, and the system takes the category of its highest rating: HIGH if any dimension is HIGH; MEDIUM if the highest is MEDIUM; BASIC if none is above LOW. The people responsible for the information and for the service assess the impact, and the person responsible for security (responsable de la seguridad, a role the ENS names) determines the category (Article 41). Check also which category the tender documents require for the contracted service. Part of the measures and the way you show conformity depend on it.

Declaration or certification: what each category needs

Article 38 sets two routes:

  • BASIC category: the declaration of conformity rests on a documented self-assessment that checks compliance and records the evidence for the applicable measures. A certification audit is voluntary.
  • MEDIUM and HIGH categories: an audit is required for the certification of conformity.

Article 31 sets a regular audit “at least every two years”, plus an additional audit after substantial changes that may affect the security measures. According to the CCN's ENS portal, that review every two years is a self-assessment in BASIC and a formal audit in MEDIUM and HIGH (CCN, “Process of adaptation”, accessed November 13, 2026). Article 38 also requires whoever is responsible for the system to publish the declaration or certification on the corresponding internet portal or electronic office.

Before you hire a certification body, check that ENAC, Spain's national accreditation body, has accredited it for the ENS. The CCN cites the standard UNE-EN ISO/IEC 17065:2012 for certification bodies; a replacement edition is being finalized, so confirm the current ENAC scheme before you choose a body. The CCN's directory also lists recognized technical audit bodies and bodies still in the accreditation process, each with its own conditions. The CCN also keeps a public list of certified entities, which you can use to check a subcontractor.

Monitoring and security testing in the ENS

The following Annex II requirements may affect your systems, including those reachable from the internet. R2 and R6 are reinforcements of the measure op.mon.3; op.nub.1 covers the protection of cloud services.

  • Monitoring of exposure (op.mon.3, reinforcement R2). Required in the MEDIUM and HIGH categories: “Monitoring solutions shall be in place that make it possible to determine the exposure surface with regard to vulnerabilities and configuration deficiencies”.
  • Security inspections (op.mon.3, reinforcement R6). Required in the HIGH category: the system gets a configuration check, a vulnerability analysis and penetration tests, periodically or after incidents that revealed new or underestimated vulnerabilities.
  • Cloud services (op.nub.1). A system that supplies a cloud service to public bodies must meet the measures of the CCN-STIC guide for its service model (SaaS, PaaS or IaaS). If your system uses a third party's cloud, the systems that support it must conform to the ENS or meet the measures of a CCN-STIC guide (the CCN's security guides) which, according to Annex II itself, will include requirements for a “penetration testing audit (pentesting)”. The measure applies in every category. In MEDIUM and HIGH, reinforcement R1 requires a certification under a methodology recognized by the Certification Body of the National Scheme for the Evaluation and Certification of Information Technology Security (Spain's certification body for IT security products). In HIGH, R2 also requires applying the relevant CCN-STIC security configuration guide. In practice, ask your cloud provider which of these it holds.

MEDIUM and HIGH systems need exposure monitoring; HIGH systems also need periodic inspections, including penetration tests. We explain that difference in vulnerability scan or penetration test.

Which evidence counts, and for what

A test report can support an assessment, but it does not establish conformity. Keep three things apart.

  • Conformity with the ENS is shown only by the declaration (BASIC) or by the certification after the audit (mandatory in MEDIUM and HIGH, voluntary in BASIC). No technical report replaces it.
  • A pentest or vulnerability analysis report can provide evidence of the work done within the documented scope, and it feeds the risk analysis. On its own it does not show that all the op.mon.3 R6 inspections were carried out, and it does not prove conformity with the ENS.
  • The records of exposure monitoring can show that the op.mon.3 R2 measure (MEDIUM and HIGH) works over time: what was detected, when, and what was fixed.

Ask the testing firm for a report that documents the scope, the method, the findings with their evidence and the recommended fixes. If you contract a later test to verify the fixes, its results should be documented too. We go into this in what a penetration test is and what its report should include.

How to get the ENS declaration or certification: steps for a supplier

  • Identify which systems support the service you provide to the public sector; that is the scope.
  • Determine their category with the Annex I procedure.
  • Carry out and document the risk analysis.
  • Record the selected measures and reinforcements in the statement of applicability (the document that lists the Annex II measures that apply), signed by the person responsible for security. If you use compensating measures, document that they protect as well or better against the risk, record in the same document how they map to the measures they replace, and get them formally approved, as Article 28 requires.
  • Have the security policy approved by the company's highest executive body, as Article 2.3 requires.
  • Implement the measures and keep the evidence that they work.
  • Do the self-assessment (BASIC) or hire an accredited body for the certification audit (MEDIUM and HIGH).
  • Present the declaration or the certificate as the tender documents specify, and publish the declaration or certificate, as Article 38 requires. Repeat the self-assessment or the audit at least every two years and when substantial changes affect the security measures. Review and approve the risk analysis every year (Annex III), and reassess the category every year and when its criteria change significantly (Annex I).

How IntruForce can help

SeguriScan, IntruForce's platform, checks the websites and systems your company exposes to the internet and looks for company credentials that appear in leaks. Its results may support the exposure monitoring records this guide describes. Use them as supporting evidence: the self-assessment or the audit still has to check the applicable measures and the scope of the system. SeguriScan does not assess your internal network, and neither the platform nor any report replaces the declaration or the certification of conformity.

If the tender documents or your risk analysis call for penetration tests, IntruForce's specialists (Expert Services) run them within an agreed scope. The report sets out the confirmed findings, the evidence for the relevant attack paths, their possible impact and prioritized recommendations. The details are in penetration testing.

If you sign the contract rather than run the systems, the page for business leaders sums up what SeguriScan sees.


Sources

Get started

Know your risks before attackers find them.

Discover your external assets, identify security weaknesses and check for exposed corporate credentials with a free SeguriScan pilot. Get access to the platform, findings and reports to understand what needs attention.

  • Nothing to install
  • No access to your internal network
  • No active testing without your approval

We’ll contact you by email to discuss the pilot and agree on the next steps. No obligation to proceed. What’s included in the pilot →

By submitting this form, you acknowledge that IntruForce will process your personal data to respond to your request. See our Privacy Policy for details.