Skip to main content
Sector público-ENS18 min

Spanish National Security Framework (ENS): complete guide to Royal Decree 311/2022

Complete guide to the ENS (Royal Decree 311/2022): scope, principles, minimum requirements, categories, Annex II measures, self-assessment or certification, suppliers and a checklist.

Hodeitek
HodeitekEquipo Hodeitek
Isometric network of nodes and layers representing the ENS security framework.

Key takeaways

  • The ENS applies to the whole public sector and to the systems of companies that, under contract, provide it with services or solutions for its powers (Article 2).
  • The category (BASIC, MEDIUM or HIGH) is set by the highest level reached by any of the five dimensions: confidentiality, integrity, traceability, authenticity and availability.
  • There are seven basic principles, fifteen minimum requirements and 73 Annex II measures, which are set out in a Statement of Applicability.
  • BASIC is declared through self-assessment; MEDIUM and HIGH are certified through an audit by an ENAC-accredited certification body (or a public-sector technical audit body), at least every two years (Articles 31 and 38).
  • Public-sector suppliers receive the ENS through contract: tender documents must require the declaration or certificate of conformity of the systems supporting the service.

The Spanish National Security Framework (Esquema Nacional de Seguridad, ENS) is Royal Decree 311/2022 of 3 May, the rule that sets the basic principles, minimum requirements and security measures for information across the whole Spanish public sector and the companies that provide it with services or solutions. Conformity is declared through a self-assessment if the system is BASIC category and certified through an audit if it is MEDIUM or HIGH category [1].

This guide walks through the framework end to end: who it applies to, the seven principles and fifteen minimum requirements, the categories, the catalogue of measures, the difference between declaring and certifying, what changes if you supply the public sector, the phases of a project and a checklist. If you want help meeting it, see our ENS compliance service.

What the ENS is and what changed in 2022

Royal Decree 311/2022 was published in the BOE no. 106 of 4 May 2022, came into force the next day and repealed Royal Decree 3/2010, which had regulated the ENS for electronic administration [1]. It has 41 articles, seven chapters and four annexes: categories (Annex I), security measures (Annex II), audit (Annex III) and glossary (Annex IV).

Its preamble sets three goals for the update: to align the ENS with the current legal and strategic framework, to be able to adjust requirements to specific groups or types of system through specific compliance profiles, and to respond better to cybersecurity trends, with more weight on continuous monitoring [1].

The single transitional provision gave 24 months from entry into force for existing systems, including those of private-sector contractors, to reach full alignment; the CCN places that milestone at 5 May 2024 [1] [8]. New systems apply the decree from the design stage.

The decree is completed by pieces worth telling apart:

PieceWhat it isSource
Royal Decree 311/2022The rule itself: principles, minimum requirements, annexes[1]
Technical security instructions (ITS)Mandatory; approved by the competent ministry on a proposal from the Sectoral Commission for Electronic Administration and on the CCN's initiative, and published by resolution of the Secretariat of State for the Civil Service (second additional provision)[1]
CCN-STIC guides, especially the 800 seriesRules, guides and good practice from the CCN for applying the ENS; part of the documents used in audits (second additional provision)[1]
Specific compliance profiles (PCE)A set of measures tailored to a type of entity or service; validated and published by the CCN (Article 30)[1]

The CCN's portal lists four ITS: conformity, audit, security status report and incident notification [2] [3] [4] [5]. They are resolutions from 2016 and 2018, and the CCN itself says the conformity ITS is under review to adapt it to Royal Decree 311/2022 [7], so check the portal for the current text when preparing a certification. The sources are published in Spanish.

Who the ENS applies to

WhoWhat the decree saysArticle
Public sectorThe whole public sector, as defined by Article 2 of Law 40/20152.1
Systems handling classified informationAlso applies, without prejudice to special rules; additional measures may be needed2.2
Private-sector suppliersTheir information systems, including the duty to have a security policy, when under a contract they provide services or solutions to public entities for the exercise of their powers and administrative authority2.3
The contractor's supply chainTender documents extend the safeguard to the supply chain as far as necessary, based on the risk analysis2.3
Public-sector 5G networks and servicesIn addition to the ENS, Royal Decree-law 7/2022 applies2.4
Systems processing personal dataThe GDPR and the Spanish data protection law also apply; measures from the risk analysis or DPIA prevail if stricter3

Source for the table: [1]. Two clarifications that avoid confusion:

  • Scope is per system, not per company. The decree refers to the information systems that support the services provided. A supplier does not certify "the company" in the abstract, but the systems it uses for the contracted service.
  • If your entity is private and does not provide services to the administration for its powers, the ENS is not mandatory on this route. You can adopt it voluntarily as a reference, but the obligation comes from Article 2.

If you are a supplier, the dedicated guide on ENS for public-sector suppliers goes into the tender documents and what the public client will ask of you.

On consequences: the CCN states that the ENS does not provide for a penalty regime, although the administrations' liability for the damage they cause remains [7]. In practice the pressure comes through contracts: tender documents must require the declaration or certification of conformity, and losing it can affect the contract.

The seven basic principles

Article 5 lists the principles that must guide every security decision. The ENS treats security as a process, not a one-off project [1].

PrincipleArticleCore idea
Security as an integral process6Covers human, material, technical, legal and organisational elements; excludes one-off actions
Risk-based security management7Risk analysis is a continuous, up-to-date activity; measures are proportionate
Prevention, detection, response and retention8Security must address prevention, detection and response to minimise vulnerabilities and keep threats from materialising or seriously affecting the system; the system must also ensure data retention
Lines of defence9Several organisational, physical and logical layers, so compromising one does not bring the system down
Continuous monitoring10Detect anomalous activity and permanently assess the security status of assets
Periodic re-evaluation10Review and update measures as risks and protection systems evolve
Differentiation of responsibilities11Information, service, security and system owners, with security separate from operations

The fifteen minimum requirements

The security policy is developed by applying the minimum requirements of Article 12.6, which are demanded in proportion to the risks of each system; some may be set aside in systems with no significant risks [1]. The policy must be approved by the competent body and, in private suppliers, by the body with the highest executive powers.

Minimum requirementArticle
Organisation and implementation of the security process13
Risk analysis and management14
Personnel management15
Professionalism16
Authorisation and access control17
Protection of premises18
Acquisition of security products and contracting of security services19
Least privilege20
System integrity and updating21
Protection of stored and in-transit information22
Protection against other interconnected information systems23
Activity logging and malicious code detection24
Security incidents25
Business continuity26
Continuous improvement of the security process27

Two Article 13 requirements are often missed. The security officer must be different from the system officer, with no hierarchical dependence between them, except in exceptional cases of justified lack of resources, where compensatory measures must be applied. And for outsourced services, the provider must appoint a security point of contact, while ultimate responsibility remains with the public entity receiving the service [1].

Categories: basic, medium and high

A system's category balances the importance of the information and services it handles against the security effort required, under the principle of proportionality (Article 40). It is determined by assessing the impact of an incident across five dimensions: confidentiality (C), integrity (I), traceability (T), authenticity (A) and availability (D, for disponibilidad) [1].

Each affected dimension gets a level according to the harm an incident would cause:

LevelHarmExamples cited in Annex I
LOWLimitedAppreciable reduction in the organisation's capacity while it keeps performing its functions; remediable formal non-compliance
MEDIUMSeriousSignificant reduction in capacity; significant damage to assets; material breach of a law
HIGHVery seriousEffective annulment of the organisation's capacity; very serious or irreparable damage; serious breach of a law

The category follows from the highest level reached by any dimension:

CategoryWhen it appliesConformity
BASICSome dimension reaches LOW and none a higher levelSelf-assessment
MEDIUMSome dimension reaches MEDIUM and none HIGHCertification audit
HIGHSome dimension reaches HIGHCertification audit

An illustrative example, not a real case: a system whose availability would reach MEDIUM and whose other four dimensions would stay at LOW is MEDIUM category, because one dimension at MEDIUM is enough. The category does not change the levels of the other dimensions, which still determine which measures apply to each [1].

Who decides: the information and service owners assess the levels, and the security officer determines the system's category (Article 41). Annex I requires the category to be re-evaluated every year or on significant changes to the criteria. For the method, Annex I refers to the CCN's CCN-STIC guides, which specify the categorisation criteria [1]. If you hesitate between two categories, the comparison of ENS High versus Medium details what changes in practice.

The Annex II security measures

Annex II groups the measures into three frameworks, and each measure applies according to the system's category or, for those tied to a specific dimension, according to that dimension's level [1]. The catalogue contains 73 measures:

FrameworkCodeMeasuresBlocks
Organisational frameworkorg4Policy, rules, procedures and authorisation process
Operational frameworkop33Planning (5), access control (6), operation (10), external services (4), cloud services (1), continuity (4) and monitoring (3)
Protection measuresmp36Facilities (7), personnel (4), equipment (4), communications (4), media (5), applications (2), information (6) and services (4)

Many measures include reinforcements (R1, R2…) that add up as the level rises. These examples, taken from the Annex II table, show how the requirement grows between categories or levels:

MeasureBASIC / LOWMEDIUMHIGH
op.pl.5 Certified componentsNot applicableAppliesApplies
op.exp.5 Change managementNot applicableAppliesApplies + R1
op.ext.3 Supply chain protectionNot applicableNot applicableApplies
op.cont.2 Continuity planNot applicableNot applicableApplies
mp.info.4 Time stampsNot applicableNot applicableApplies
op.mon.3 SurveillanceApplies+ R1 + R2+ R1 to R6

A useful detail: reinforcement R6 of op.mon.3, which is only part of the HIGH category set, provides for periodic configuration checks, vulnerability analysis and penetration testing [1]. It is not a generic yearly obligation for every category.

Statement of Applicability, compensatory measures and profiles

The Annex II measures are enforceable minimums that the security officer may extend (Article 28.2). They can be replaced by compensatory ones if it is documented that they protect equally or better, and the correspondence is detailed in the Statement of Applicability, which the security officer formally approves (Article 28.3). A CCN-STIC guide of those provided for in the second additional provision guides that selection [1]; the CCN cites guide CCN-STIC 819 for compensatory measures [7].

Specific compliance profiles allow a set of measures suited to a particular type of entity or sector. The CCN cites, among the authorised profiles, those for local entities and universities [7], and maintains the µCeENS methodology to certify against a specific compliance profile [10].

Conformity: self-assessment, audit and certification

Article 38 sets two routes by category. MEDIUM or HIGH systems need an audit to certify their conformity; BASIC systems only need a self-assessment to declare it, although they may also undergo a certification audit [1].

BASIC categoryMEDIUM or HIGH category
DocumentDeclaration of conformityCertificate of conformity
How it is obtainedSelf-assessment, which the staff who run the system or their delegate may carry outFormal audit by a certification body
BadgeDeclaration of conformity badgeCertification of conformity badge
Evidence documentedWhether each measure is implemented and subject to regular review, with supporting evidenceReport stating the degree of compliance, with findings, criteria, scope and objective
Voluntary alternativeCertification auditNot applicable

Sources: [1] [2] [9].

Audit cycle rules:

  • At least every two years. Article 31 requires a regular ordinary audit at least every two years, extendable by three months for force majeure beyond the entity's control, and an extraordinary one after substantial changes to the system. The extraordinary audit resets the count for the next two years [1].
  • A certificate lasts two years. The CCN explains that the renewal date cannot exceed two calendar years from the initial certification and that the audit should be planned so the renewal decision falls within the validity period [7].
  • A partial extraordinary audit does not extend validity. If only what differs is audited (for example, moving from MEDIUM to HIGH), the new certification cannot go beyond the date of the previous one; a full audit can have the usual two-year validity [7].
  • Publicity. Those responsible for the systems publish declarations and certifications on their portals or electronic offices (Article 38.2).
  • HIGH category. The system owner may temporarily suspend processing, the service or operation until serious deficiencies in the audit opinion are fixed (Article 31.6).

An audit checks, among other things, that the policy defines the roles, that a risk analysis exists with annual review and approval, that Annex II measures are met, and that a documented information security management system exists, approved by management on the basis of the Statement of Applicability (Annex III). It relies on evidence: documented procedures, incident records and interviews with staff [1]. Guide CCN-STIC 809 describes the declaration and certification of conformity [9].

Who can certify

Certification bodies must be accredited by ENAC under UNE-EN ISO/IEC 17065. Public-sector technical audit bodies recognised by the CCN can also certify [2] [8]. The CCN publishes the list of accredited bodies or bodies in the process. A body in the accreditation process may audit and issue certificates for 12 months; if it does not obtain accreditation in that time, it must stop [8].

If you supply the public sector

For a supplier, the ENS arrives through the contract. Public entities' tender documents must include the requirements to ensure conformity of the systems supporting the service, such as presenting the declaration or certification, and may extend to your supply chain [1].

What the public client will askBasis
Declaration (BASIC) or certification (MEDIUM or HIGH) of the systems supporting the serviceArt. 2.3 and conformity ITS
Security policy approved by the highest executive bodyArt. 2.3
Security point of contact for the outsourced serviceArt. 13.5
Notify incidents that affect you to INCIBE-CERTArt. 33.7
If you offer a cloud service, meet the op.nub.1 measures for your service modelAnnex II
Provide self-assessment or audit reports if the client requests themConformity ITS

Sources: [1] [2]. The CCN also clarifies that the requirement applies to any entity, Spanish or foreign, and that non-Spanish companies hold certifications [7]. Services supported by certified systems benefit from the certification, because they must be listed in the certificate.

Phases of an alignment project

The CCN portal describes the alignment process in five blocks, which work as a planning outline [6]:

PhaseWhat it includesOutput
1. Alignment planScope, categorisation, provisional statement of applicability, risk analysis, final statement or compliance profile, security policyApproved plan
2. ImplementationRoadmap, rules framework, technical and organisational measures, approved security management systemOperating measures
3. Declaration or certificationSelf-assessment (BASIC) or formal audit (MEDIUM and HIGH)Declaration or certificate, plus badge
4. Security status reportReporting through the CCN's INES projectCompleted report
5. Monitoring and continuous improvementReview of policy, categorisation, risk analysis (at least annually), internal audits and improvement planCycle maintained

Typical timelines, without promises. The decree sets no standard duration for alignment. It depends on the category, the scope, prior maturity and available resources. What is fixed is the rhythm afterwards: an audit at least every two years and an annual review of the risk analysis. The certification body submits an offer with the audit days and their format (on site, remote or mixed) once it has studied the prior documentation [7]; there is no single timeline valid for everyone. The CCN suggests starting with the BASIC category only as a roadmap agreed in the security committee, never as an end point if the system is of a higher category [7].

To see the regulatory change from the earlier version, read the whitepaper on migrating to ENS 2022.

Checklist

StepWhat to verifyReference
1. ScopeYou are in the public sector, or provide services or solutions to a public entity for its powersArt. 2
2. SystemsInventory of the systems supporting the service and their scopeArt. 2.3
3. RolesInformation, service, security and system owners appointed; security separate from the systemArts. 11 and 13
4. PolicySecurity policy approved by the competent body, with the contents of Article 12.1Art. 12
5. CategoryLevels per dimension and category determined, re-evaluated yearlyAnnex I, arts. 40 and 41
6. RisksRisk analysis using a recognised methodology, reviewed and approved every yearArt. 14, Annex III
7. MeasuresStatement of Applicability with the measures and reinforcements of your categoryAnnex II, art. 28
8. SuppliersClauses and requirements towards your own suppliers; security point of contactArts. 2.3 and 13.5
9. IncidentsManagement procedure and notification channel (CCN-CERT or INCIBE-CERT)Arts. 25 and 33
10. ConformitySelf-assessment or certification audit with an accredited body; badge publicityArts. 31 and 38
11. MaintenanceAudit at least every two years, extraordinary audit after substantial changesArt. 31

Common mistakes

  • Certifying a narrower scope than the contracted service. The public client requires conformity to cover the systems supporting the service. A trimmed scope may fall short of what the tender requires.
  • Staying at BASIC with a higher-category system. The category is set by impact, not ambition. Reaching BASIC conformity does not meet what a MEDIUM or HIGH category requires [7].
  • Thinking the certificate means you are done. There is an audit at least every two years and, for MEDIUM and HIGH, the CCN says systems must also evidence an annual internal compliance audit aimed at improvement [7].
  • Having the security officer and system officer as the same person or in the same reporting line without documenting the exception and compensatory measures (Article 13.3).
  • A risk analysis done once. Annex III checks that it is reviewed and approved every year.
  • Confusing the ENS with ISO 27001. The ENS is a prescriptive catalogue of measures with its own conformity route (Article 38); an ISO 27001 certificate is not the ENS certification. They are compared in the ISO 27001 guide.
  • Not publishing the badge or reporting the security status. Badge publicity is an Article 38.2 obligation, and the CCN says bodies must complete the security status report through INES [6].
  • Forgetting the extraordinary audit after a substantial change to the system (Article 31.1).

ENS, NIS2, DORA, AI Act and ISO 27001

  • NIS2 is the general cybersecurity directive for essential and important sectors; if your organisation also falls in its scope, read the NIS2 compliance guide.
  • DORA is the digital operational resilience regulation for the financial sector; the DORA guide explains it.
  • The AI Act regulates artificial intelligence systems; the AI Act guide covers its obligations.
  • ISO 27001 is a voluntary information security management standard. It does not replace the ENS certification, which has its own conformity route; the ISO 27001 guide explains how they are alike and how they differ.
  • Technical testing. To validate monitoring and surveillance measures, the difference between Red Team and pentest helps you pick the right exercise, and our pentesting and Red Team service delivers it.

The ENS at Hodeitek

Hodeitek holds ENS certification in the Medium category, certificate no. 34/5704/26/09103, issued on 17 September 2026 by OCA Instituto de Certificación, a body accredited by ENAC. The certificate scope covers the systems supporting the HodeiShield SaaS service, penetration testing services, cybersecurity and ICT systems and services consulting, consulting on AI applied to business and process automation design, in accordance with the current Statement of Applicability. Renewal is due after two years, as the rule requires.

That certification does not certify your organisation and is not a product certification. To track conformity, HodeiShield offers scoring per measure and category based on Annex II, supplier scoring and scheduled scans with periodic follow-up; the use case details what the platform does and does not do. It does not audit, does not certify and is not in the CCN's ICT Security Products and Services Catalogue (CPSTIC), which Annex II cites for choosing certified products (op.pl.5) [1]. For full support, the GRC consulting team and the ENS compliance service cover the diagnosis, the roadmap and audit preparation.

This guide is informational and does not replace the official text or an auditor. Updated on 13 November 2026.

Frequently asked questions

What is the ENS?
It is the Spanish National Security Framework, regulated by Royal Decree 311/2022. It sets the basic principles, minimum requirements and security measures for information in the public sector and in the companies that provide it with services or solutions.
Who must comply with the ENS?
To the whole public sector, as defined by Law 40/2015, and to systems handling classified information. Also to private entities that, under a contract, provide services or solutions to public entities for the exercise of their powers and administrative authority (Article 2).
What are the ENS categories?
BASIC, MEDIUM and HIGH. The category is set by the highest level reached by any of the five security dimensions (confidentiality, integrity, traceability, authenticity and availability), rated LOW, MEDIUM or HIGH (Annex I).
What are the ENS basic principles and minimum requirements?
There are seven basic principles (Articles 5 to 11), including security as an integral process, risk-based management and differentiation of responsibilities, and fifteen minimum requirements (Article 12.6), such as risk analysis, least privilege, incident management or continuity.
How many security measures does Annex II have?
Annex II contains 73 measures in three frameworks: organisational (4), operational (33) and protection (36). Which apply, and with which reinforcements, depends on the system category or the level of the dimension they relate to, and is recorded in the Statement of Applicability.
Is ENS certification mandatory?
It depends on the category. MEDIUM or HIGH systems need an audit to certify their conformity; BASIC systems require a self-assessment to declare it, although they may also undergo a certification audit (Article 38).
How often must the ENS be audited?
At least every two years, with an extraordinary audit after substantial changes to the system (Article 31). According to the CCN, a certificate of conformity is valid for two years.
Who can certify the ENS?
Certification bodies accredited by ENAC under UNE-EN ISO/IEC 17065 and the public-sector technical audit bodies recognised by the CCN. The CCN publishes the list of accredited bodies or bodies in the accreditation process.
What must a public-sector supplier do?
Have a security policy approved by its executive body, appoint a security point of contact, notify incidents to INCIBE-CERT and be able to show the declaration or certificate of conformity of the systems supporting the service, because tender documents must require it.
Are there penalties for breaching the ENS?
The CCN states that the ENS does not provide for a penalty regime, although administrations remain liable for damages. In practice the requirement arrives through contracts: tender documents must ask for conformity and losing it can affect the contracted service.

Sources

  1. Real Decreto 311/2022, de 3 de mayo, por el que se regula el Esquema Nacional de Seguridad (BOE-A-2022-7191) — Boletín Oficial del Estado, 2022-05-04
  2. Resolución de 13 de octubre de 2016, por la que se aprueba la Instrucción Técnica de Seguridad de conformidad con el Esquema Nacional de Seguridad (BOE-A-2016-10109) — Boletín Oficial del Estado, 2016-11-02
  3. Resolución de 27 de marzo de 2018, por la que se aprueba la Instrucción Técnica de Seguridad de Auditoría de la Seguridad de los Sistemas de Información (BOE-A-2018-4573) — Boletín Oficial del Estado, 2018-04-03
  4. Resolución de 7 de octubre de 2016, por la que se aprueba la Instrucción Técnica de Seguridad de Informe del Estado de la Seguridad (BOE-A-2016-10108) — Boletín Oficial del Estado, 2016-11-02
  5. Resolución de 13 de abril de 2018, por la que se aprueba la Instrucción Técnica de Seguridad de Notificación de Incidentes de Seguridad (BOE-A-2018-5370) — Boletín Oficial del Estado, 2018-04-19
  6. ENS: proceso de adecuación — CCN (Centro Criptológico Nacional)
  7. ENS: preguntas frecuentes — CCN (Centro Criptológico Nacional)
  8. ENS: entidades de certificación acreditadas — CCN (Centro Criptológico Nacional)
  9. ENS: distintivos de conformidad — CCN (Centro Criptológico Nacional)
  10. ENS: metodología µCeENS — CCN (Centro Criptológico Nacional)

Self-check your ENS category

Find out which ENS category (basic/medium/high) applies to you and which controls are still missing, in 2 minutes.

Take the self-check

Was this article useful?

Hodeitek

Hodeitek

Equipo Hodeitek

Hodeitek is a Spanish cybersecurity and artificial intelligence company based in Aretxabaleta (Gipuzkoa), founded in 2023. It is certified to ISO/IEC 27001 and to the Spanish National Security Framework (ENS, Medium category) by OCA Instituto de Certificación, and offers compliance consulting (DORA, NIS2, ENS, ISO 27001), pentesting and Red Team services, and the HodeiShield platform.