Skip to main content
Intelligent Security Governance — 340+ Frameworks Powered by Ayurak AI
Blog/Compliance Guides

Spain's ENS (Esquema Nacional de Seguridad): A Practical Compliance Guide

What Spain's National Security Scheme (ENS, Royal Decree 311/2022) requires, who must comply, how conformity is assessed, and a step-by-step path to certification.

Spain's ENS (Esquema Nacional de Seguridad): A Practical Compliance Guide

The Esquema Nacional de Seguridad (ENS), or National Security Scheme, is Spain's mandatory security baseline for public sector information systems and for the private companies that supply them. It is built around a risk-based categorisation of systems and a catalogue of measures that scale with that category. If you sell cloud, software or managed services to Spanish public bodies, ENS conformity is often a contract prerequisite.

What it is

The ENS is a Spanish legal instrument, not a voluntary standard. It was first established by Royal Decree 3/2010 and was replaced by Royal Decree 311/2022 (May 2022), which updated it to reflect new threats, cloud services, and alignment with European developments. Its legal basis is the Spanish law on the public sector regime (Law 40/2015).

The Government of Spain issues the decree. The Centro Criptológico Nacional (CCN), part of the national intelligence centre, leads its practical development: it publishes the CCN-STIC guidance series, runs the CCN-CERT incident response capability, and provides tools. Technical details are set out in Instrucciones Técnicas de Seguridad (ITS), which cover topics such as conformity assessment, security audits, incident notification and reporting on security status.

The purpose is to create common conditions of trust in the use of electronic means by public administrations, protecting information and services so that citizens and entities can exercise their rights and fulfil their duties electronically.

Who it applies to

  • Spanish public sector entities: the state administration, autonomous communities, local authorities and their dependent public bodies, in their use of electronic means.
  • Private suppliers that provide services or solutions to those entities, where the services touch systems within the ENS scope. The requirement typically flows through procurement: the contracting body must ensure the provider meets ENS, and many tenders ask for a certificate of conformity.

The ENS applies to the systems involved in providing the relevant services, not automatically to everything a company does. Defining that scope carefully is one of the first decisions in any project. Note that the ENS is distinct from, though related to, rules for handling classified information, which follow separate regimes.

Key requirements and control areas

Basic principles and minimum requirements

The decree sets security principles such as integral security, risk management, prevention, detection, response and recovery, defence in depth, periodic reassessment, and differentiated responsibilities. It then lists minimum requirements, including a security policy, risk analysis and management, staff management and professionalism, authorisation and access control, protection of facilities, procurement of security products and services, minimum privilege, system integrity and updating, protection of interconnected systems, activity logging, incident management, continuity and ongoing improvement.

Categorisation of systems

This is the heart of the ENS. Information and services are assessed against five dimensions: availability, authenticity, integrity, confidentiality and traceability. Each is rated Low, Medium or High according to the impact of a compromise. The highest ratings determine the system's overall category: Basic, Medium or High. The category drives which measures apply and how strict the assessment is.

Security measures (Annex II)

Measures are grouped into three frameworks:

  • Organisational framework: security policy, regulations, procedures and authorisation process.
  • Operational framework: planning (risk analysis, architecture, acquisition), access control, operation (inventory, change management, incident management, logging), external resources, cloud services, service continuity and system monitoring.
  • Protection measures: facilities, personnel, equipment, communications, information media, applications, information and services.

Each measure is applied with an intensity that depends on the category and on the affected dimensions. The selection is formalised in a Statement of Applicability signed by the security officer, and adjustments may be justified through compensating measures.

Defined roles

The ENS expects clear responsibilities, typically separating the information owner, the service owner, the security officer and the system officer, with a governance mechanism for resolving conflicts between them. Separating security responsibility from system operation is a notable feature.

Compliance profiles and qualified products

The 2022 revision introduced specific compliance profiles, tailored sets of measures for particular types of entity or technology. It also reinforced the use of security products and services that the CCN has evaluated or qualified, particularly for higher categories.

Assessment, audit and enforcement

ENS conformity is demonstrated through ENS-specific mechanisms rather than a general ISO-style certificate:

  • Basic category: conformity is generally shown through a self-assessment and a declaration of conformity, though a certification can still be obtained and may be requested by customers.
  • Medium and High categories: a formal audit is required, leading to a certificate of conformity issued by a certification body accredited for the ENS (accreditation is through the national accreditation body, ENAC). These audits are repeated periodically, with a regular ordinary audit cycle and additional audits after substantial changes.

Entities also report on their security status through the national reporting mechanism supported by the CCN, and must notify significant security incidents to the CCN-CERT. Oversight is institutional: public bodies are accountable through their own governance and audit functions, and private suppliers face practical enforcement through contractual and tender requirements. Specific financial penalties are not stated here, since the consequences depend mainly on the contract, administrative liability and the applicable sector rules.

The decree has been phased in with transition periods for adapting existing systems to the 2022 text. Check the current deadlines that apply to you rather than relying on a summary.

A practical path to ENS conformity

  1. Define scope. Identify the services and information you provide to the public sector and the systems that support them, including cloud and third-party components.
  2. Appoint roles and approve a security policy. Name the information, service, security and system responsibilities, and have management formally approve the policy.
  3. Categorise. Rate each service and information asset across the five dimensions and derive the system category.
  4. Run a risk analysis. Use a recognised methodology (the CCN supports MAGERIT-based approaches and tooling) and document the risk treatment.
  5. Select measures and write the Statement of Applicability. Apply Annex II according to the category, or adopt an applicable compliance profile, and record any justified deviations.
  6. Implement and document. Put technical and organisational controls in place and write the required procedures, using relevant CCN-STIC guides as implementation references.
  7. Run a gap assessment or internal audit. Fix nonconformities before the external review.
  8. Obtain conformity. Issue the declaration for Basic systems, or engage an accredited certification body for Medium and High.
  9. Operate and improve. Monitor controls, report incidents, update the risk analysis, and plan for periodic audits and re-certification.

How it maps to other frameworks

These are overlaps, not equivalences. An ISO 27001 certificate does not demonstrate ENS conformity.

  • ISO/IEC 27001 and 27002: substantial overlap in risk management, policy, access control, operations, logging and incident handling. An ISMS gives you a strong foundation, but ENS adds mandatory categorisation, specific measure intensities, defined roles and its own assessment route.
  • NIST CSF: useful for organising functions (identify, protect, detect, respond, recover), which resemble the ENS prevention, detection, response and recovery principles. The mapping is at a conceptual level.
  • NIS2 and GDPR: risk management, incident handling and security-of-processing obligations overlap with ENS measures. The ENS has also been used in Spain as a reference for personal data security in the public sector. These regimes have different scopes and reporting duties and must be addressed separately.
  • SOC 2: evidence for access control, change management and monitoring can be reused, but SOC 2 is an attestation against Trust Services Criteria and does not satisfy ENS.

FAQs

Is ENS mandatory for private companies?

Not in general. It becomes mandatory in practice when you supply services or solutions to Spanish public sector entities and the systems involved fall within the ENS scope. Contracting bodies commonly require proof of conformity.

What is the difference between Basic, Medium and High?

They are system categories based on the potential impact of a compromise on availability, authenticity, integrity, confidentiality and traceability. Higher categories require stronger measures and a formal certification audit.

Does ISO 27001 certification replace ENS certification?

No. ISO 27001 helps with many of the same control areas, but ENS has its own categorisation, measures and conformity process, and an ISO certificate is not accepted as ENS conformity.

Who can certify ENS conformity?

Certification bodies that are accredited for the ENS scheme. Always verify the body's current accreditation status before engaging one.

What changed in the 2022 revision?

Royal Decree 311/2022 replaced the 2010 decree. It reworked the measures and categorisation, introduced compliance profiles, strengthened requirements around suppliers and cloud, and emphasised continuous monitoring. Transition periods applied to existing systems.

How Aristiun helps

Aristiun is the AI-powered compliance automation and threat modeling platform, powered by Ayurak AI. It helps you keep compliance evidence current through continuous collection, rather than rebuilding it before each audit. You can explore compliance frameworks to see how controls are organised across regimes.

  • Automated evidence collection from connected systems such as AWS, Azure, GCP and GitHub, without manual screenshots or spreadsheets.
  • Cross-framework mapping across 340+ frameworks, so a single evidence base can address multiple compliance requirements.
  • Real-time control monitoring with alerts when controls drift, so you can remediate before auditors find issues.
  • Gap analysis and audit-ready reports, with evidence pre-mapped to controls and organised by framework requirement, plus automated threat modeling from code, IaC and architecture diagrams to inform your risk analysis.

Found this insightful?

Share it with your security team or save it for later.

Get Started

Ready to secure your organization?

See how Aristiun automates compliance and strengthens your security posture across 340+ frameworks.