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.
| Category | When it applies | How conformity is shown (art. 38) |
|---|---|---|
| BÁSICA (basic) | Some dimension is low and none is higher | Self-assessment and Declaration of Conformity |
| MEDIA (medium) | Some dimension is medium and none is high | Audit and Certification of Conformity |
| ALTA (high) | Some dimension is high | Audit 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.
| Group | Code | Measures | What it covers |
|---|---|---|---|
| Organisational | org | 4 | Security policy, rules, procedures and the authorisation process |
| Operational | op | 33 | Planning, access control, operations, external services, cloud, continuity and monitoring |
| Protection | mp | 36 | Facilities, 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.

