Technical controls: the ENS × ISO 42001 × EU AI Act cross-mapping over the on-premise LLM architecture

Contents

Third post in the blog’s AI governance trilogy. The first, ISO/IEC 42001, broke down the certifiable management system. The second, EU AI Act, broke down the directly applicable legal regulation. This one covers the third framework that appears when the client is a Spanish public administration or an essential-services entity: the ENS (Esquema Nacional de Seguridad, Spain’s national security framework, Royal Decree 311/2022). The editorial challenge: triple compliance is not the arithmetic sum of three jobs; it is one single set of technical evidence labelled for three lenses. This post takes apart how that evidence is built, measure by ENS measure.

TL;DR

Royal Decree 311/2022 updated the Spanish Esquema Nacional de Seguridad (ENS), aligning it with NIS2 and with the modern cyber-threat landscape. It applies mandatorily to the entire Spanish public sector (central, regional and local administration, universities, autonomous bodies) and to suppliers that provide IT services to them. The framework defines 74 security measures organised into three blocks (organisational framework org, operational framework op, protection measures mp), three application categories (Basic / Medium / High) according to the assessment of five dimensions (Confidentiality, Integrity, Traceability, Authenticity, Availability), and an Annex II with the measure × category matrix that dictates what is required at each level. This post maps the technical measures relevant to LLM systems (those of the op block: planning, access control, operation, external services, continuity, monitoring; and those of the mp block: communications, applications, information, services) against Annex A of ISO/IEC 42001 and the operational articles of the EU AI Act (Arts. 9 to 15, 17, 72 and 73), and shows that the overlap is massive: a single technical artefact from the blog’s OSS stack, the OTel spans of tracing, the datasets versioned with DVC, the LLM Guard scanners, the guardrail decisions, the incidents of the retrain loop, simultaneously satisfies ENS measures, 42001 controls and AI Act articles, provided it is labelled with the correct codes from the moment it is captured. The editorial thesis: the difference between a system that passes all three audits and one that suffers three separate certifications is not budget, it is disciplined labelling and a common vocabulary. The post builds the master table of triple compliance, walks through the case of the multi-tenant chatbot for a High-category public administration as a live checklist, and closes with the five traps of triple compliance.

The analogy: the triple inspection of a critical building

On-premise AI systemLLM platform with pipeline, guardrails,tracing, retrain, curated RAG, evals(the critical building)ENS inspectorRD 311/2022 · CCN-CERT74 measures in 3 blocksBasic/Medium/High categoriesISO/IEC 42001 inspector7 clauses + 38 Annex A controlsCertification body3-year cycle + annual surveillanceEU AI Act inspectorReg. 2024/1689 — high riskNational surveillance authorityAnnex IV dossier + CE markingOne single set of technical evidence labelled for three lensesOTel `gen_ai.*` spans + DVC + Vault Anonymize + Langfuse + retrain incidents→ tag with ENS code (op.exp.8) + 42001 code (A.8.2) + AI Act article (Art. 12) in metadataThe building is one. The inspectors are three. Evidence is labelled so each of them finds their part in the same drawer.

A critical building, say the control centre of a regional electricity grid, a reference hospital, or a 112 emergency response centre, goes through three different inspections of the same physical elements:

  • The regional inspection reviews the planning permit, local fire regulations and accessibility under regional legislation.
  • The European inspection reviews CE marking of equipment and conformity with EU directives on energy efficiency.
  • The ISO quality inspection reviews processes and maintenance under a management standard.

All three inspectors look at the same fire detector hanging from the ceiling. The regional one wants to see the installation certificate with the installer company’s number; the European one wants to see the CE mark stamped on the casing; the ISO one wants to see the monthly maintenance record with signatures. There is only one detector. The evidence each inspector needs is different. If the building management team kept one folder per inspector, the installation certificate, the photo of the CE mark and the maintenance sheet would live in three places, and on audit day inconsistencies between the three folders would surface. The professional way to operate: one single file per asset, with tags pointing at the three sets of legislation.

The on-premise LLM system is that critical building. The OTel spans from tracing are the fire detector: a single technical piece that satisfies ENS measure op.exp.8 (activity logging), 42001 control A.8.2 (information to interested parties), and EU AI Act article 12 (record-keeping) provided the spans carry the correct metadata: traceparent propagated, gen_ai.* semantic conventions, WORM retention, PII redacted by LLM Guard Vault. Without consistent labelling from capture onwards, audit day produces three folders that do not add up.

The analogy matters because it bounds an architectural decision: labelling evidence is not a compliance topic, it is a technical design topic. It is decided when the OTel Collector is set up, when the Vault schema is designed, when the format of retrain incidents is agreed. Postpone it, and the debt compounds.

ENS in 15 seconds

  • Regulatory framework: Royal Decree 311/2022, of 3 May, in force since 5 May 2022. It replaces RD 3/2010. It implements the update of the Esquema with NIS2, the NCS (Estrategia Nacional de Ciberseguridad, Spain’s national cybersecurity strategy) and the post-2020 reality.
  • Mandatory scope: the Spanish public sector (central, regional and local administration, universities, autonomous bodies), public-sector entities with their own legal personality, and private suppliers that provide IT services to them (a very important clause in consultancy: if your client is the Junta de Andalucía, the Comunidad de Madrid or Bilbao City Council, you fall under ENS by contractual extension).
  • Operational applicability in 2026: any AI project financed with NextGenerationEU European funds, plus any project with public data, plus any integration with electronic administrative systems.
  • Categorisation: three categories, Basic / Medium / High, according to the assessment of the five dimensions (C, I, T, A, D). The category dictates which measures are required and at what depth.
  • Certification: for Medium and High categories, a formal audit by an accredited body. For Basic category, self-assessment. Certification cycle is biennial.
  • Authority: the Centro Criptológico Nacional (CCN-CERT, Spain’s national cryptologic centre), part of the CNI intelligence agency. It maintains the ens.ccn.cni.es portal with the STIC guides (800 series).
  • Total number of measures: 74, organised into three blocks, plus Annex II with the measure × category matrix that defines what applies at each level.

The five security dimensions and their AI mapping

To classify the system as Basic / Medium / High, the ENS requires each dimension to be rated on a scale (not applicable / low / medium / high). The final category is the highest of the five. For LLM systems, the typical rating:

DimensionMeaningTypical LLM ratingReason
C ConfidentialityInformation protected from disclosureMedium-HighPII in prompts, secrets in context, intellectual property in the RAG corpus
I IntegrityInformation protected from modificationMedium-HighAn altered RAG corpus produces false answers; a manipulated model produces directed bias
T TraceabilityActions attributable to usersHighAudit: who asked what, when, what were they answered, which dataset trained the model?
A AuthenticityIdentity of users and origin of informationMediumRobust authentication plus identification of chunks by source
D AvailabilityService available when neededMediumTypical SLA, known recovery time

Typical result: Medium category for internal LLM systems with no sensitive data, High if they handle PII or regulated sectoral data (health, tax, judicial). The category triggers different controls.

The three blocks of measures

Organisational framework (org), 4 measures that always apply, transversal:

  • org.1 Security policy
  • org.2 Security regulations
  • org.3 Security procedures
  • org.4 Authorisation process

Operational framework (op), 31 measures in 6 subgroups, these are how it is operated:

  • op.pl Planning (5)
  • op.acc Access control (6)
  • op.exp Operation (10)
  • op.ext External services (4)
  • op.cont Service continuity (4)
  • op.mon System monitoring (2)

Protection measures (mp), 39 measures in 7 subgroups, these are what is protected:

  • mp.if Facility protection (7)
  • mp.per Personnel management (4)
  • mp.eq Equipment protection (4)
  • mp.com Communications protection (4)
  • mp.si Information media protection (5)
  • mp.sw Application protection (2)
  • mp.info Information protection (6)
  • mp.s Service protection (4)

Of those 74, roughly 25 matter operationally for LLM systems. The rest are either transversal (policies, personnel management, physical facilities) or specific to other layers (telephony, physical media in the literal sense). The rest of this post drops down to the 25 relevant ones.

Technical mapping: key ENS measures × 42001 controls × EU AI Act articles

What follows, by ENS subgroup, are the measures relevant to LLM with their cross-mapping. The Technical evidence from the blog column points to the operational artefact that materialises the measure.

Operational framework — planning (op.pl)

ENS measureRequirement42001 controlAI Act articleTechnical evidence
op.pl.1 Risk analysisFormal periodic analysis, MAGERIT or OCTAVE methodologyA.5.4 (alignment with AI risk treatment)Art. 9 Risk managementRisk document linked to the LLMOps pipeline + evals metrics
op.pl.2 Security architectureArchitecture documentation, layer segregationA.4.2 documented infoArt. 15 (technical robustness)Seven stack layers + seven deployment phases
op.pl.3 AcquisitionAcquisition criteria that include securityA.10.3 suppliersArt. 53 (GPAI obligations)OSS vs hyperscalers lock-in analysis + copyright analysis
op.pl.4 SizingCapacity to support the expected loadA.4.5 system resourcesArt. 15 (consistent performance)Five maturity levels + GPU capacity study
op.pl.5 Certified componentsPreference for certified componentsA.10.5 third partiesArt. 53 + Art. 15OSS inventory with licence analysis + supply chain audit (cosign + SLSA)

Operational framework — access control (op.acc)

ENS measureRequirement42001 controlAI Act articleTechnical evidence
op.acc.1 IdentificationUnique identification of users and processesA.3.2 rolesArt. 14 (human oversight)Keycloak / OIDC + JWT with unique sub + user_id_hashed in OTel spans
op.acc.2 Access requirementsNeed to know, authorisationA.9.4 intended useArt. 14 + Art. 26 (deployer)Per-tenant allowlist in the AI Gateway + RBAC over adapters
op.acc.3 Segregation of dutiesNo incompatible accumulationA.3.2 + A.3.3Art. 17 (QMS)Separate roles: AI lead / data steward / SRE / DPO
op.acc.5 AuthenticationProportionate mechanism, MFA at HighA.4.4 toolingArt. 14Keycloak + WebAuthn + mandatory MFA for High category
op.acc.6 Local accessProtection against physical accessmp.if + A.4.5Art. 15 (cybersec)Cluster in a datacenter with physical control (strictly outside the blog’s scope)
op.acc.7 Remote accessVPN, encryption, endpoint controlA.4.5 + mp.comArt. 15WireGuard / Defguard + mTLS for administrative access to the cluster

Operational framework — operation (op.exp)

This is the densest subgroup and the one that overlaps most with the LLM architecture.

ENS measureRequirement42001 controlAI Act articleTechnical evidence
op.exp.1 Asset inventoryCMDB with all system componentsA.4 resourcesArt. 49 (EU DB registration)Inventory of models, adapters and datasets in a CMDB + Helm tags + OpenLineage lineage
op.exp.2 Security configurationDocumented hardened configurationmp.eq + A.4Art. 15vLLM, KServe and Cilium configurations documented in GitOps + CIS Benchmarks for K8s
op.exp.3 Configuration managementTraceable and authorised changesA.6.2 + A.4.2Art. 9 + Art. 15GitOps with Argo CD / Flux + mandatory PR review + immutable tags
op.exp.5 Change managementChanges planned, authorised, recordedA.6.2.6 + clause 8Art. 9 (lifecycle) + Art. 72 (post-market)CI/CD pipeline from the LLMOps post + change advisory board
op.exp.6 Protection against malicious codeAntivirus, EDR, malware controlmp.eqArt. 15 (cybersec)Image scanning (Trivy / Grype) + container runtime security (Falco / Tetragon)
op.exp.7 Incident managementDetection → response → recovery procedureA.3.3 + clause 10Art. 73 (serious incident reporting)Incident-driven retrain + CCN-CERT channel + notification template
op.exp.8 Activity loggingAuditable logs, minimum 2-year retention at High categoryA.8.2Art. 12 + Art. 19OTel GenAI tracing + Tempo / Jaeger + Loki
op.exp.9 Incident management recordsIncident log with root cause and corrective actionclause 10Art. 73Ticketing system + structured retrain incident events
op.exp.10 Record protectionImmutable logs, cryptographic integrity, guaranteed retentionA.8.2 + A.4.2Art. 12WORM storage (Ceph + immutable bucket) + log signing (sigstore) + 24-36 month retention
op.exp.11 Cryptographic keysKey lifecycle management, HSM at High categorymp.info.4Art. 15HashiCorp Vault / SOPS + HSM (Yubico, AWS KMS on-prem) for High category

Operational framework — external services (op.ext)

Critical when the system integrates GPAI (Llama, Mistral) hosted elsewhere, or when the deployer is a third party.

ENS measureRequirement42001 controlAI Act articleTechnical evidence
op.ext.1 Contracting external servicesContract with security clauses, SLA, right to auditA.10.3 suppliersArt. 25 + Art. 53Contract with ENS clauses + annual audit review + Cloud Act analysis
op.ext.2 Alternative meansPlan B if the supplier goes downA.4.5 + clause 6Art. 15 (resilience)Multi-cluster with failover + qualified alternative GPAI (Llama→Mistral→Qwen)
op.ext.3 Supply chain protectionAssessment of suppliers and sub-suppliersA.10 + clause 6Art. 53 + NIS2 supply chainSBOM + cosign + SLSA + continuous vulnerability scanning
op.ext.4 System interconnectionInterconnection agreements, secure gatewaysmp.com + A.4.5Art. 15API Gateway with mTLS + JWT signing + rate limiting + WAF

Operational framework — continuity (op.cont)

ENS measureRequirement42001 controlAI Act articleTechnical evidence
op.cont.1 Impact analysisBIA per systemA.5.5 (impacts on individuals)Art. 9 (risk management)Documented BIA with RPO / RTO per system
op.cont.2 Continuity planDocumented DRP, RTO/RPOclause 6 + A.4Art. 15 (resilience)DRP + Velero K8s backups + DVC datasets in a secondary bucket
op.cont.3 Periodic testingDrills at a defined frequency (annual at High category)clause 9 (evaluation)Art. 15Annual game-day with a simulated disaster + recovery stopwatches
op.cont.4 Alternative meansCapacity to continue with degraded meansclause 6 + A.4.5Art. 15Secondary cluster in a different datacenter + reserved GPU pool + replicated datasets

Operational framework — monitoring (op.mon)

ENS measureRequirement42001 controlAI Act articleTechnical evidence
op.mon.1 Intrusion detectionIDS/IPS over network and applicationsA.9.2 useArt. 15 (cybersec)Guardrails as a semantic WAF + LLM Guard PromptInjection + Tetragon eBPF runtime
op.mon.2 Metrics systemMeasurable operational metrics, auditable dashboardclause 9 (performance evaluation)Art. 72 (post-market monitoring)Prometheus + VictoriaMetrics + Grafana + Langfuse dashboards
op.mon.3 Surveillance (High category)24×7 monitoring with alertingclause 9 + clause 10Art. 72 + Art. 73SOC with SIEM alerts (Wazuh, OpenSearch, Vector + custom) + on-call rotation

Protection measures — communications (mp.com)

ENS measureRequirement42001 controlAI Act articleTechnical evidence
mp.com.1 Secure perimeterFirewall, segmentation, DMZA.4.5Art. 15Cilium NetworkPolicy + Calico + ingress controllers with WAF (mod_security)
mp.com.2 Confidentiality protectionEncryption in transit (TLS 1.2+ mandatory, 1.3 recommended)A.4.5Art. 15TLS 1.3 mandatory + cert-manager + Let’s Encrypt or an internal CA
mp.com.3 Integrity and authenticity protectionEncryption + origin authenticationA.4.5 + A.4.4Art. 15Intra-cluster mTLS + JWT signing at the gateway + checksums on artifacts
mp.com.4 Flow separationSegmentation of mgmt vs production vs external trafficA.4.5Art. 15Cilium policies + network namespaces + east-west / north-south segregation

Protection measures — applications (mp.sw)

ENS measureRequirement42001 controlAI Act articleTechnical evidence
mp.sw.1 Application developmentSecure SDLC, code review, SAST/SCAA.6.2.3 responsible designArt. 9 + Art. 15Forgejo CI with SAST (Semgrep, CodeQL) + SCA (Trivy, Grype) + mandatory PR review
mp.sw.2 Acceptance and go-liveAcceptance tests, eval gates before productionA.6.2.5 V&VArt. 9 + Art. 15Eval gates from the evals post + canary deploy + pre-go-live metrics

Protection measures — information (mp.info)

ENS measureRequirement42001 controlAI Act articleTechnical evidence
mp.info.1 Personal dataGDPR compliance + technical and organisational measuresA.5.5 + A.7.6Art. 10 + Art. 26LLM Guard Vault + Presidio + minimisation in RAG corpus curation
mp.info.2 Information classificationLabelling by level (public / internal / confidential / restricted)A.7.2 dataArt. 10Schema contracts from data versioning with a classification field
mp.info.3 EncryptionAt-rest minimum at Medium category, High category with HSMA.4.5 + mp.eqArt. 15LUKS / dm-crypt on disks + encryption in the Ceph bucket + keys in Vault
mp.info.4 Electronic signatureDocuments signed with a valid certificate (Medium category and above)A.8.2Art. 12Log signing with sigstore + signing of published models with cosign
mp.info.5 TimestampsQualified timestamp for temporal integrity (High category)A.8.2Art. 12Timestamping with a qualified TSA + RFC 3161 on critical events
mp.info.6 Document cleaningRemoval of unauthorised metadata, anonymisationA.7.6 + A.5.5Art. 10LLM Guard Anonymize (input) + Sensitive (output) + Vault with TTL

Protection measures — services (mp.s)

ENS measureRequirement42001 controlAI Act articleTechnical evidence
mp.s.1 EmailAnti-spam, anti-malware, optional encryptionA.4.5Outside the direct LLM scope
mp.s.2 Protection of web services and applicationsWAF, hardening, vulnerability managementA.9.2 + mp.comArt. 15 (cybersec)AI Gateway (LiteLLM / Envoy AI / Kong AI) with policies + ModSecurity + Cloudflare-like
mp.s.3 Protection against denial of serviceRate limiting, anti-DDoS, capacity planningA.4.5 + A.9.2Art. 15Rate limiting at the gateway + token quotas + circuit breakers
mp.s.4 Protection against external threats (High category)Advanced monitoring, threat intelA.9.2 + clause 9Art. 15 + Art. 72Guardrails, 4 lines + advanced LLM Guard scanners + threat intel feed (CCN-CERT MISP)

Master table of triple compliance — the 25 relevant controls consolidated

Master table of triple compliance — ENS (yellow) · 42001 (green) · EU AI Act (orange) · Technical evidence (violet)one row per technical capability — each cell gives the code of the framework it satisfiesop.exp.8+ op.exp.10A.8.2A.4.2 (documentation)Art. 12 + Art. 19record-keepingOTel `gen_ai.*` spans + Tempo + WORM Ceph + 24-36m retention + sigstoretrace_id propagated + prompt_id + dataset_hash + adapter_version + PII redactedop.mon.1+ mp.s.4A.9.2responsible useArt. 15cybersec + robustnessGuardrails, 4 lines + LLM Guard PromptInjection + Tetragon eBPF + Llama Guard 4jailbreak + indirect injection + tool abuse + PII leakage in output detectionop.mon.2+ op.mon.3clause 9performance evalArt. 72post-market monitoringPrometheus + VictoriaMetrics + Grafana + Langfuse dashboards + continuous evalsF1 per guardrail category + RAG faithfulness + statistical drift + 24×7 cadenceop.exp.7+ op.exp.9clause 10A.3.3 reportingArt. 73serious incidentsStructured incident events + closed retrain loop + CCN-CERT notification15/10/2-day deadline + incident template + root cause + effectiveness checkmp.info.1+ mp.info.6A.7.6data preparationArt. 10data governanceLLM Guard Anonymize Vault + Presidio + RAG corpus curation, 5 layersruntime redaction + anti-contamination + chunk→trace lineage + measured PII F1op.pl.1risk analysisA.5.2-5.6impact assessmentArt. 9risk managementMAGERIT/OCTAVE risk doc + FRIA (if a public deployer applies) + fairness evalsone methodology, three languages — the matrix is exported with three labelsop.ext.1+ op.ext.3A.10.3suppliersArt. 53GPAI + NIS2 supply chainOSS vs hyperscalers lock-in analysis + SBOM + cosign + SLSA + Cloud Act analysissupplier register with licence + jurisdiction + plan B + annual auditmp.sw.1+ mp.sw.2A.6.2.3-2.5SDLC + V&VArts. 9 + 15development + accuracyForgejo CI + Semgrep SAST + Trivy SCA + eval gates + canary + pre-go-live metricsone CI/CD pipeline with triple labelling of the evidence artefact

The key reading of the table: one row per technical capability. The organisation does not build three solutions for “activity log” (ENS) + “information to interested parties” (42001) + “record-keeping” (AI Act). It builds one single piece of OTel tracing with the correct metadata and presents it labelled for whichever inspector is asking.

The labelling typically materialises in three mechanisms:

  1. Tags in the CI/CD pipelines: every artefact produced carries tags ens:op.exp.8, iso42001:A.8.2, aia:art.12 in its Helm / Argo CD metadata.
  2. Semantic OTel attributes: gen_ai.compliance.ens = "op.exp.8", gen_ai.compliance.iso42001 = "A.8.2" as custom attributes on the relevant spans (not standard yet, but useful internally).
  3. A mapping table in the wiki: a living document of ENS measure → 42001 control → AI Act article → technical runbook + owner + last verification. This is the artefact the auditor consults.

Applied case: multi-tenant chatbot for public administration

A variant of the multi-tenant chatbot from the forensic post, where the client is now a Spanish regional government offering citizen assistance on administrative procedures. The three lenses:

  • ENS: applies mandatorily, being public sector plus a service to citizens. Category High (citizens’ PII plus a critical service).
  • ISO 42001: the regional government requires certification from the supplier as a contractual condition.
  • EU AI Act: if the chatbot informs about procedures but decides nothing on the citizen’s behalf, it is limited risk (Art. 50 transparency). If it automates decisions (admission to a programme, refusal of a benefit), it is high risk.

We assume high risk for the most demanding walkthrough.

The chatbot’s 25 key technical capabilities consolidated

Technical capabilityENS42001AI ActStatus
Robust citizen authenticationop.acc.5 (MFA High category)A.4.4Art. 14Cl@ve + digital certificate + WebAuthn
Unique tenant + user identificationop.acc.1A.3.2Art. 14 + 26JWT with tenant_id + user_id_hashed
Per-tenant allowlistop.acc.2A.9.4Art. 14LiteLLM Proxy with policies + Envoy filter
Encryption in transit, mTLSmp.com.2-3A.4.5Art. 15TLS 1.3 + cert-manager + intra-mesh mTLS
Encryption at rest + HSM keysmp.info.3 + op.exp.11A.4.5Art. 15LUKS + Vault + Yubikey or nCipher HSM
PII anonymisation input/outputmp.info.1 + .6A.7.6Art. 10LLM Guard Vault + Presidio + Llama Guard 4
Traceable logging + WORMop.exp.8 + .10A.8.2Arts. 12 + 19OTel + Tempo + Loki + Ceph WORM 36 months
Log signing + timestampsmp.info.4 + .5A.8.2Art. 12sigstore + qualified TSA (FNMT)
Runtime threat detectionop.mon.1 + mp.s.4A.9.2Art. 15Guardrails, 4 lines + Tetragon + Falco
Operational metrics dashboardop.mon.2clause 9Art. 72Prometheus + Grafana + Langfuse
24×7 SOC surveillanceop.mon.3 (High category)clause 9Art. 72SOC with SIEM + on-call rotation
Incident management with notificationop.exp.7 + .9clause 10Art. 73Incident-driven retrain + CCN-CERT channel
CI/CD pipeline with eval gatesmp.sw.1 + .2A.6.2.3-5Arts. 9 + 15Forgejo CI + Semgrep + Trivy + DeepEval gates
Backups + DRPop.cont.1-4clause 6 + A.4Art. 15Velero + DVC datasets in a secondary bucket + annual game-day
Systematic risk analysisop.pl.1A.5 + cl.6Art. 9MAGERIT + FRIA + ISO/IEC 23894 impact assessment
Documented secure architectureop.pl.2A.4.2Art. 15Seven layers + seven phases
Supplier managementop.ext.1 + .3A.10.3Art. 53Contracts with ENS clauses + SBOM + Cloud Act analysis per GPAI
Certified componentsop.pl.5A.10.5Art. 53Inventory with licence + supply chain audit
Configuration hardeningop.exp.2 + .3A.4 + A.6Art. 15CIS Benchmarks for K8s + GitOps + immutable tags
Protection against malicious codeop.exp.6mp.eqArt. 15Image scanning + runtime security
Asset inventoryop.exp.1A.4Art. 49CMDB + Helm tags + OpenLineage
Network segmentationmp.com.4A.4.5Art. 15Cilium NetworkPolicy + namespaces
Rate limiting + anti-DoSmp.s.3A.4 + A.9Art. 15LiteLLM rate limit + token quotas
Information classificationmp.info.2A.7.2Art. 10Schema contracts with a classification field
Transparency towards the userA.9.4Art. 50UI banner + disclaimer in responses

Result: the 25 technical capabilities are common to all three frameworks. Only two require evidence for a single framework in isolation: mp.info.4-5 (qualified signature and timestamp, ENS-specific, not required so literally by 42001 or the AI Act) and Art. 50 (transparency banner, AI Act-specific). The rest are the same technical piece with three labels. A well-organised team certifies all three in series with only marginal extra work between the second and the third.

The five traps of triple compliance

Trap 1 — Measuring the same thing three times. Inexperienced teams create three separate dashboards (one for ENS, another for 42001, another for the AI Act) with the same metrics duplicated. The result: three sources of truth that diverge, three audit teams with different figures, three corrections to resolve one and the same deviation. The rule: one metric, three labels.

Trap 2 — Losing the control that covers only one framework. mp.info.4 (electronic signature) is ENS-specific and gets forgotten while the team is focused on 42001 + AI Act. On ENS audit day, the gap surfaces. Solution: the master table keeps every control visible, orphans included.

Trap 3 — Bias towards the most recent framework. The team spends 80% of the effort on the AI Act because it is the newest, and forgets the rigour of the ENS, which has been in force for 14 years. The ENS measures are technically more prescriptive than the AI Act (which is legally stricter but leaves implementation freedom). Moving up a level to ENS High category introduces specific requirements (HSM, qualified timestamps, 24×7 surveillance) that the AI Act does not spell out. The ENS deserves respect for its technical detail, not for its legal stature.

Trap 4 — Mixing ENS Medium and High categories. The Annex II matrix of RD 311/2022 dictates which measures are required and at what depth per category. Moving from Medium to High changes 15-20 controls, which is not marginal. The category is decided at the start of the project and documented; changing it halfway forces a complete re-audit.

Trap 5 — Audit fatigue inside the technical team. Three audits a year (biennial ENS + annual 42001 surveillance + ad-hoc AI Act by the authority) exhausts the team if they are not planned and if evidence is not reused. The professional approach: one single quarterly internal audit cycle with rotating scope, producing evidence consumable by all three external auditors. The difference between 30 days a year and 90 days a year lost to audits is the discipline of single evidence plus disciplined labelling.

What we have not covered (upcoming posts)

  • The CCN-CERT STIC series applicable to AI systems: STIC 800-159 (web service operation), STIC 800-105 (cryptography), STIC 800-150 (cloud environments). Each adds technical detail on how to materialise the ENS measures.
  • The GDPR as a fourth lens: privacy and personal data protection. It overlaps with mp.info.1 and with A.7.6 of 42001 plus Art. 10 of the AI Act. Material for an analogous pass over LOPDGDD + GDPR + AEPD against the three frameworks seen here.
  • Concrete templates of technical evidence with minimum fields: a log entry with every attribute required by the three lenses, an incident report with every field demanded by the three frameworks, a unified ENS / AI Act / 42001 declaration of conformity.
  • The NextGenerationEU funds case: specific compliance requirements for AI projects financed with European funds, where the AI Act + ENS are contractually mandatory.
  • 42001 + ENS High category combined with DORA (Digital Operational Resilience Act, Reg. 2022/2554) for Spanish financial entities deploying AI.

References

  • RD 311/2022por el que se regula el Esquema Nacional de Seguridad. https://www.boe.es/buscar/act.php?id=BOE-A-2022-7191.
  • CCN-CERT — Portal ENS: https://ens.ccn.cni.es/. Guías STIC Series 800.
  • CCN-STIC 803Valoración de los sistemas y de la información. Metodología para asignar categoría ENS.
  • CCN-STIC 804Esquema Nacional de Seguridad. Guía de implantación.
  • CCN-STIC 824Informe del estado de seguridad. Plantilla para auditoría ENS.
  • MAGERIT v3 — Metodología de Análisis y Gestión de Riesgos del Ministerio de Asuntos Económicos. Insumo de op.pl.1.
  • ISO/IEC 42001:2023 — Sistema de gestión IA. Norma certificable que solapa con ENS.
  • Regulation (EU) 2024/1689 (EU AI Act) — texto consolidado.
  • NIS2 (Dir. 2022/2555) — directiva de ciberseguridad que el ENS implementa parcialmente en su versión 2022.

See also