Compliance · ENS (Spain)

ENS secure development, with evidence from your own code.

Evidence for the ENS measures on application development, acceptance and supply chain, ready for your conformity audit.

The framework

What does ENS require from software development
and the supply chain?

ENS (Real Decreto 311/2022) applies to the Spanish public sector and to the companies that provide it services. For software, it sets measures for application development, acceptance into service, change management and supply chain protection.

The Esquema Nacional de Seguridad is regulated by Real Decreto 311/2022, of 3 May, in force since 5 May 2022. It applies to the entire Spanish public sector and to private companies that provide services or solutions to public-sector bodies under contract, and public procurement terms must require ENS conformity, which can extend to the contractor’s supply chain. The security measures in Annex II are grouped into an organizational framework, an operational framework and protection measures. For software, the relevant ones include application development (mp.sw.1), acceptance and entry into service (mp.sw.2), acquisition of new components (op.pl.3), asset inventory (op.exp.1), security configuration and its management (op.exp.2 and op.exp.3), maintenance and security updates (op.exp.4), change management (op.exp.5), protection against malicious code (op.exp.6), activity logging (op.exp.8) and supply chain protection (op.ext.3).

Systems are categorized as BÁSICA, MEDIA or ALTA. Systems in the MEDIA and ALTA categories need a certification audit, and BÁSICA systems a self-assessment, with regular audits at least every two years. For a software supplier to the public sector, conformity is often the condition to compete for a tender.

The measures are clear, the evidence is not

Auditors ask how applications are developed, how they are accepted into service and how components are chosen. Policy documents alone do not show that it happens on every release.

Your supply chain is in scope

Open-source packages and subcontracted development reach your systems through the same pipelines. ENS asks you to protect that chain.

Code has to stay where your policy says

Many public bodies and their providers cannot send source code to an external service. The tooling has to run inside their own infrastructure.

How Xygeni helps

Controls for development and supply chain
that leave a record

AI SAST and the other native scanners detect with deterministic rules, on every pull request. ASPM keeps one inventory and one risk model. AI Triage, run at scan time or in bulk, records a verdict, an urgency and its reasoning, and guardrails decide what blocks a merge. Every AI output is labeled so your team can review and override it.

Measure by measure

ENS Annex II measures, mapped to evidence
you can produce

Each row links an ENS measure area to the evidence Xygeni produces and the products behind it. The reinforcements that apply depend on your system’s category and security level.

ENS measure (Annex II)Evidence you can produceXygeni products
mp.sw.1 Desarrollo de aplicaciones (application development)SAST, secrets and IaC findings per pull request; guardrail results; findings mapped to CWE and OWASPAI SAST, Secrets Security, IaC Security, IDE Plugins
mp.sw.2 Aceptación y puesta en servicio (acceptance and entry into service)DAST and API test results before release; guardrail outcome per projectDAST, API Security, ASPM
op.pl.3 Adquisición de nuevos componentes (acquisition of new components)Vulnerability, license and malware checks on every new dependencySCA, Malware Defense
op.ext.3 Protección de la cadena de suministro (supply chain protection)SBOMs; malicious package alerts; pipeline posture; signed build provenanceSCA, Malware Defense, CI/CD Security, Build Security
op.exp.1 Inventario de activos (asset inventory), software assetsInventory of repositories, components, pipelines and collaboratorsASPM
op.exp.2 and op.exp.3 Configuración de seguridad y su gestión (security configuration)Misconfiguration findings in SCM, CI/CD and IaCCI/CD Security, IaC Security
op.exp.4 Mantenimiento y actualizaciones de seguridad (maintenance and security updates)Vulnerable component findings; fix pull requests with breaking-change analysisSCA, Xygeni AI
op.exp.5 Gestión de cambios (change management)Branch protection and code review checks; guardrails on pull requestsCI/CD Security, guardrails
op.exp.6 Protección frente a código dañino (protection against malicious code)Malicious package alerts before a signature exists; malicious code findings (CWE-506) in your repositoriesMalware Defense, AI SAST
op.exp.8 Registro de la actividad (activity logging), for the software factoryPer-asset audit trail; mute decisions with justification and user attributionASPM
op.mon.3 Vigilancia (monitoring), for SCM and CI/CDAlerts on suspicious activity in source code platforms and pipelinesAnomaly Detection

FAQs

What public bodies and their providers ask
about ENS and secure development

ENS (Real Decreto 311/2022) includes specific measures for software in Annex II: application development (mp.sw.1) and acceptance and entry into service (mp.sw.2), alongside acquisition of new components, maintenance and security updates, change management, protection against malicious code and supply chain protection. The detail and reinforcements that apply depend on the system’s category and security level, and CCN-STIC guides describe how to implement them.

Yes, when they provide services or solutions to public-sector bodies. Real Decreto 311/2022 applies to the entire Spanish public sector and to private-sector providers under contract, and public procurement terms must require conformity with ENS, which can extend to the provider’s supply chain. For many software suppliers, ENS conformity is a condition to bid.

No. ENS conformity is assessed through a self-assessment for BÁSICA systems or a certification audit for MEDIA and ALTA systems, carried out under the rules of the scheme. Xygeni helps you produce evidence for the measures that touch software development and the supply chain, so the audit finds working controls with a record behind them.

They are separate. ENS is a Spanish royal decree for the public sector and its providers, in force since 2022. NIS2 is an EU directive that Spain has not yet transposed as of October 2026. Both ask for secure development and supply chain controls, so the same evidence from your SDLC supports the two.

Yes. Xygeni runs on-premise or air-gapped, or as SaaS. In an on-premise or air-gapped deployment, your source code stays inside your network. Air-gapped scanning needs an online license unlock step. Xygeni is headquartered in Spain.

Get started

Prepare your next ENS audit
with evidence from your own code

See your development and supply chain controls working on your repositories, deployed where your policy requires.