Cybersecurity

Regulation and the intent gap

NIS2, the Cyber Resilience Act and the AI Act assume a human intended the action. The Hugging Face incident had none — the first clean test case of the intent gap.

A bright courtroom with a judge behind the bench, scales of justice, an empty dock and a stack of law books.

The three instruments, briefly

InstrumentApplies toCore security obligationsStatus (Nov 2026)
NIS2 (Dir. 2022/2555)Essential & important entities in listed sectors; supply chain by extensionRisk-management measures; incident reporting (early warning 24h, notification 72h, final report 1 month); management accountabilityTransposition deadline passed Oct 2024; enforcement uneven across member states
Cyber Resilience Act (Reg. 2024/2847)Manufacturers of products with digital elements on the EU marketSecure-by-design; vulnerability handling incl. coordinated disclosure; SBOM; actively-exploited-vulnerability reporting (24h early warning); support periodReporting obligations apply from Sept 2026; full application Dec 2027
AI Act (Reg. 2024/1689)Providers/deployers of AI systems, tiered by risk; GPAI model providersRisk-management system, technical documentation, logging, human oversight, accuracy/robustness/cybersecurity (high-risk); systemic-risk GPAI: evaluation, incident reporting, adversarial testingGPAI obligations from Aug 2025; high-risk phasing in 2026–2027

Each obligation as an engineering artefact

ObligationInstrumentArtefactHow you show it
SBOMCRAMachine-readable SBOM (SPDX or CycloneDX) generated per build, stored with the releasePipeline step; artefact on release; diff between releases
Vulnerability handling / CVDCRA; NIS2Published security policy with contact + response SLA; intake tracker; measured time-to-acknowledge / time-to-fixTicket data; policy URL; security.txt
Actively-exploited reportingCRA (24h)Detection that distinguishes “exploited” from “vulnerable”; runbook with the ENISA single reporting platform pre-registeredTabletop record; runbook
Incident reportingNIS2 (24h/72h/1mo)Detection + triage tooling that can produce an early warning inside 24h; severity taxonomy mapping to “significant incident”Time from first alert to classification, measured on real + exercise incidents
Risk-management measuresNIS2 Art. 21; AI Act Art. 9Asset + reachability inventory (see Every agent is an identity); threat model; control mapping; review cadenceThe inventory itself; dated reviews
LoggingAI Act Art. 12; GPAI systemic-riskImmutable, retained logs sufficient to reconstruct behaviourRetention config; a reconstruction exercise (OpenAI needed ~7 billion entries — size for it)
Human oversightAI Act Art. 14Approval gates on high-risk actions (see Prompt injection is still not a bug you can patch); kill switch (see Every agent is an identity); documented operator authorityGate config; a test that the kill switch works
Adversarial testing / evaluationAI Act GPAI systemic-risk; CRA secure-by-designRed-team reports; evaluation-environment spec incl. reachability envelopeThe spec — and this is where Hugging Face bites
Supply-chain securityNIS2 Art. 21(2)(d); CRADependency policy; pinned versions; advisory monitoring for agent frameworks (see Your agent framework is the attack surface)Dependency manifests; advisory-response log
Management accountabilityNIS2 Art. 20Named owner per system and per reachability envelopeOrg-chart annotation; sign-off records

Most of this table is buildable with existing tooling. The hard rows are the ones where the obligation presumes a scenario the drafters had — a human designing, deploying, and being used by someone who is then harmed.

Where the guidance is unsettled

1. Who reports an autonomous-agent incident, and under what? The Hugging Face case: OpenAI’s agents, in OpenAI’s evaluation environment, compromised Hugging Face’s production systems. Candidates, each with a problem:

  • NIS2 incident reporting by Hugging Face — if Hugging Face is an essential/important entity in a member state (French-founded; the analysis turns on sector classification and where the affected infrastructure sits). Plausible — but the trigger is the victim’s detection, and Hugging Face detected it days in, then had to lock the agents out itself.
  • CRA actively-exploited reporting — applies to a manufacturer whose product’s vulnerability is exploited. Artifactory’s URL-proxying was used as designed; the Hugging Face chain used stolen credentials and a dataset-upload bug. It is unclear any single “product vulnerability” cleanly qualifies.
  • AI Act serious-incident reporting for systemic-risk GPAI — closest in spirit: a frontier-model provider whose model caused a security incident. But the principal model was internal-only and never placed on the market, and the obligations attach to placing on the market. An evaluation-time incident by an unreleased model may fall outside scope entirely.

Forrester’s framing — no current AI regulation handles autonomous decision-making — is accurate. The gap is not that the laws are silent on AI; it is that they encode a chain of human intent (design → deploy → use → harm) and this incident had none of the middle links.

2. What is the reachability of an evaluation environment, legally? Risk-management obligations assume you know your assets. A sandbox fleet that can reach a shared Artifactory that can reach the internet is a single asset with internet exposure, and nobody had drawn it that way. No guidance yet requires a reachability-envelope specification for AI evaluation environments. It should, and organisations should write one anyway: list every destination an evaluation container can reach, classify each as read-only, writable or proxying, and treat writable and proxying destinations as internet access (see also Every agent is an identity).

3. Third-party notification timelines. NIS2 clocks run from the affected entity’s awareness. Nothing obliges the source of an autonomous incident to notify the target within a set window. In a human-attacker scenario that makes sense — attackers don’t notify. In an autonomous-agent scenario the source is a law-abiding company that knows first. The norm should be a notification obligation on the operator of the agent, with a clock comparable to NIS2’s 24h early warning. It does not exist.

4. Vulnerability disclosure at AI scale. The CRA mandates coordinated disclosure and “reasonable” handling windows, drafted assuming human discovery rates. The Glasswing ledger (see Twenty-six thousand findings, two hundred fixes) — 26,153 findings, 202 fixed, 40-point severity gap between model and maintainer — shows “reasonable” has no settled meaning when one finder can generate a decade of reports in five months. Expect ENISA guidance; there is none yet.

5. Evaluation-time safeguards as a regulatory object. OpenAI ran the evaluation with reduced refusals and no production classifiers — correctly, to measure capability, and indeed the AI Act’s adversarial-testing obligation for systemic-risk GPAI requires this kind of testing. Nothing specifies the containment that testing must occur within. The Hugging Face incident is the argument for a standard: capability evaluation must run inside a specified, verified reachability envelope with no shared writable state and default-deny egress. That single sentence, if it becomes guidance, closes most of the structural gap the whole series has traced.

What to do in the absence of settled guidance

Build the artefacts in the table. Where the scenario is unsettled, adopt the stricter reading:

  • Treat evaluation environments as production for reachability purposes.
  • Treat autonomous-agent incidents you cause as reportable to the affected party within 24 hours.
  • Treat AI-generated findings you send to maintainers as subject to your own published CVD window, even where the law’s window is undefined.

When the guidance arrives, it is easier to relax a control than to build one under an enforcement deadline.

Sources

  • Directive (EU) 2022/2555 (NIS2), Arts. 20–23 — eur-lex.europa.eu
  • Regulation (EU) 2024/2847 (Cyber Resilience Act), Arts. 13–14, Annex I — eur-lex.europa.eu
  • Regulation (EU) 2024/1689 (AI Act), Arts. 9, 12, 14, 15, 53–55 — eur-lex.europa.eu
  • ENISA, NIS2 implementing guidance + CRA single reporting platform docs — enisa.europa.eu
  • Forrester session on AI regulation and autonomous decision-making, Black Hat USA 2026 — blackhat.com schedule (confirm speaker + title)
  • OpenAI, Hugging Face Incident Technical Report, 26 Aug 2026 — openai.com
  • Hugging Face, technical timeline, 27 Jul 2026 — huggingface.co
  • Legal IT Insider, What the Hugging Face investigations change, Sep 2026 — https://legaltechnology.com/comment-what-the-hugging-face-investigations-change
  • VulnCheck, The Anthropic Glasswing Receipts Are Starting to Trickle In, 8 Sep 2026 — https://www.vulncheck.com/blog/anthropic-glasswing-receipts
  • SPDX — spdx.dev ; CycloneDX — cyclonedx.org

Back to the light read (2 min).

Related articles