ENS guide

Spain's National Security Framework (ENS): what it is and how to comply

The ENS is the mandatory information-security framework for Spain's public sector and for the companies that serve it. This guide walks through Royal Decree 311/2022 article by article: who is in scope, how a system is categorised, and what it takes to declare or certify conformity.

Updated 1 December 2026

Reviewed by Denise Moreno, Co-founder & CISO

The ENS at a glance

Law
Royal Decree 311/2022 of 3 May
In force since
5 May 2022
Categories
BÁSICA, MEDIA and ALTA
Security measures
73, in three groups (Annex II)
Audit
At least every two years (art. 31)
Conformity
Declaration (BÁSICA) or certification (MEDIA and ALTA)

What the ENS is

The Esquema Nacional de Seguridad (ENS), Spain's National Security Framework, sets the basic principles, minimum requirements and security measures for information systems that handle public-sector data and services in Spain. Its aim is that the administration, and everyone who works for it, protects information in proportion to the risk.

The current version is Royal Decree 311/2022 of 3 May, published in the Boletín Oficial del Estado (BOE) no. 106 on 4 May 2022. It entered into force the next day, 5 May 2022, and repealed Royal Decree 3/2010, the first ENS. Existing systems, including those of private contractors, had twenty-four months to adapt under its single transitional provision.

Unlike ISO 27001, the ENS is not voluntary. It is a legal obligation within its scope, and Spanish public tenders require it as a condition to contract.

Source: BOE, Royal Decree 311/2022

Who the ENS applies to

The ENS covers the whole public sector: central government, the autonomous communities, local authorities and the bodies that depend on them.

For companies, the key provision is article 2.3. The ENS also applies to private-sector information systems when, under a contract, they provide services or solutions to public-sector bodies for the exercise of their powers. In practice: if you sell software, cloud services, managed services or IT consulting to a Spanish public body, your systems are in scope.

The same article requires tender specifications to demand an ENS Declaration or Certification of Conformity from those suppliers, and extends that requirement down their supply chain. A subcontractor of the winning bidder can need it too.

Source: BOE, Royal Decree 311/2022

The seven basic principles

Article 5 lists the principles that guide every security decision. They are not controls in themselves; they are the criteria used to design and interpret the measures:

  • Security as an integral process.
  • Risk-based security management.
  • Prevention, detection, response and preservation.
  • Lines of defence.
  • Continuous monitoring.
  • Periodic reassessment.
  • Separation of responsibilities.

Source: BOE, Royal Decree 311/2022

The BÁSICA, MEDIA and ALTA categories

Annex I defines how a system is categorised. First you assess the impact an incident would have on five security dimensions: confidentiality, integrity, traceability, authenticity and availability. Each affected dimension gets a level of BAJO (low), MEDIO (medium) or ALTO (high).

The system's category is the highest level of any of its dimensions. If a single dimension is high, the whole system is ALTA. The category is reviewed every year, or whenever there are significant changes.

How the category is assigned (Annex I, Royal Decree 311/2022)
CategoryWhen it appliesHow conformity is shown (art. 38)
BÁSICA (basic)Some dimension is low and none is higherSelf-assessment and Declaration of Conformity
MEDIA (medium)Some dimension is medium and none is highAudit and Certification of Conformity
ALTA (high)Some dimension is highAudit and Certification of Conformity

Source: BOE, Royal Decree 311/2022

The 73 security measures in Annex II

Annex II sets out the security measures in three groups. Counting the measure codes in the consolidated text gives 73 measures: 4 organisational, 33 operational and 36 protection measures.

Not every measure applies to every system. The category and the affected dimensions decide which measures are required and with which reinforcements, and the Statement of Applicability records the justified selection. That is why categorisation is the first piece of work in any ENS project: the scope of everything else depends on it.

Structure of Annex II
GroupCodeMeasuresWhat it covers
Organisationalorg4Security policy, rules, procedures and the authorisation process
Operationalop33Planning, access control, operations, external services, cloud, continuity and monitoring
Protectionmp36Facilities, staff, equipment, communications, media, applications, information and services

Source: BOE, Royal Decree 311/2022

Required roles

Article 11 requires four distinct responsibilities: the information owner, the service owner, the security officer and the system owner. Responsibility for security must also be separate from running the systems.

In a small company one person may hold more than one role, but the separation between who decides on security and who operates the systems has to be written into the security policy.

Source: BOE, Royal Decree 311/2022

Declaration and certification of conformity

Article 38 sets two routes. BÁSICA systems only need a self-assessment to issue their Declaration of Conformity. MEDIA and ALTA systems need an audit to obtain a Certification of Conformity.

Entities must publish their declarations and certificates of conformity on their websites or electronic offices (art. 38.2). For a supplier, that public document is what the contracting body checks.

On top of that, article 31 requires systems in scope to pass a regular audit at least every two years, plus an extraordinary audit after substantial changes. Plan the whole cycle from the start, not just the first certificate.

Source: BOE, Royal Decree 311/2022

Incident reporting

Article 33 sets how incidents are reported. Public-sector bodies notify significant incidents to CCN-CERT, the response team of Spain's National Cryptologic Centre. Private organisations that provide services to public bodies notify the incidents that affect them to INCIBE-CERT (art. 33.7).

Settle this before an incident happens: who reports, to which team and with what information. It is also one of the places where the ENS and NIS2 meet.

Source: BOE, Royal Decree 311/2022

How to prepare for the ENS, step by step

A well-run ENS project almost always follows the same sequence. How long it takes depends mostly on the category and on how much is already documented.

  • Define the scope: which systems and services you provide to the public sector.
  • Categorise each system across the five dimensions (Annex I).
  • Approve the security policy and assign the four roles (arts. 11 and 12).
  • Run the risk analysis and write the Statement of Applicability from the Annex II measures.
  • Implement the missing measures and collect evidence for each one.
  • Do the self-assessment (BÁSICA) or the audit with a certification body (MEDIA and ALTA).
  • Publish the declaration or certificate and plan the two-yearly audit.

Source: BOE, Royal Decree 311/2022

How Sekit helps with the ENS

The ENS is in Sekit's framework catalogue, alongside ISO 27001, NIS2 and GDPR. You can run the gap analysis against the ENS measures, keep the risk register, ask each owner for evidence once, and reach the audit with everything traceable. AI agents do the groundwork and a person reviews every result.

Sekit does not certify: the Certification of Conformity is issued by an accredited certification body. What we do is get you to that audit sooner, with less manual work.

ENS frequently asked questions

  • What is Spain's Esquema Nacional de Seguridad (ENS)?

    It is the mandatory information-security framework for Spain's public sector, set by Royal Decree 311/2022. It defines principles, requirements and 73 security measures, and it also binds private companies that provide services or solutions to public bodies.

  • Does the ENS apply to private companies?

    Yes, when they provide services or solutions to public-sector bodies under a contract (art. 2.3 of Royal Decree 311/2022). Tender specifications must require their Declaration or Certification of Conformity, and the requirement extends down their supply chain.

  • What is the difference between an ENS declaration and an ENS certification?

    A Declaration of Conformity is for BÁSICA systems and follows a self-assessment. A Certification of Conformity is required for MEDIA and ALTA systems and needs an audit by a certification body (art. 38 of Royal Decree 311/2022).

  • How often must an ENS system be audited?

    Article 31 requires a regular audit at least every two years for systems in scope. An extraordinary audit is also needed whenever substantial changes to the system could affect its security. Plan for both from the start: conformity is a cycle, not a one-off.

  • How do I know whether my system is BÁSICA, MEDIA or ALTA?

    Assess the impact of an incident on confidentiality, integrity, traceability, authenticity and availability, giving each dimension a low, medium or high level. The category is the highest level: one dimension at high makes the system ALTA (Annex I).

  • How many security measures does the ENS have?

    Annex II of Royal Decree 311/2022 contains 73 measures: 4 organisational, 33 operational and 36 protection measures. Which ones apply depends on the system's category and the dimensions affected, so categorise the system first: that decides the scope of everything else.

  • Is Royal Decree 3/2010 still in force?

    No. Royal Decree 311/2022 repealed Royal Decree 3/2010 and has been in force since 5 May 2022. Existing systems had twenty-four months to adapt to the new framework under its single transitional provision. Any requirement that still cites the 2010 decree is out of date.

  • Does ISO 27001 certification cover the ENS?

    It helps a lot, because both are risk-based and share many controls, but it does not replace the ENS. To contract with Spain's public sector you need an ENS Declaration or Certification of Conformity, with its own categorisation and measures.

Let's talk

Thirty minutes. Zero commitment.

Tell us what you need and we'll say exactly how we can help. If it isn't a fit, we'll save you the time.

Book a consultation

Denise & Ricardo

Sekit team

  • 30 min · Google Meet
  • cal.com/denise-moreno-sekit

General information, not legal advice. Checked on 1 December 2026 against the consolidated text of Royal Decree 311/2022 in the BOE.