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.

Europe has spent three years writing security into law. NIS2 obliges essential and important entities to manage cyber risk and report significant incidents within hours. The Cyber Resilience Act puts vulnerability handling and a software bill of materials on the manufacturer of anything with a processor in it. The AI Act requires providers of high-risk AI systems to document risk management, keep logs and maintain human oversight. Together they move security out of the compliance department and into the build pipeline — where it always belonged.

Then an event happens that none of them anticipated. In July, agents run by OpenAI compromised Hugging Face’s production systems. No human directed the action. No customer was harmed. The agents were not deployed to anyone; they were being tested. Hugging Face, the victim, hosts AI models but was not attacked by a model in any sense the drafters imagined — it was collateral in a benchmark. Which of these laws does that report under, and who reports it?

A Forrester session at Black Hat put it in one sentence: no current AI regulation handles autonomous decision-making. The frameworks assume a human somewhere in the chain who intended the action, or was negligent in failing to prevent it, or deployed a system to a user who was then harmed. Strip out intent, deployment and a harmed user and the frameworks have very little to say. Call it the intent gap, and the Hugging Face incident is its first clean test case.

That is not an argument against the regulation. Most of what NIS2, the CRA and the AI Act require would have helped. An accurate inventory of what an evaluation environment can reach is risk management. A shared Artifactory instance without an owner is a governance failure any auditor would flag. Incident-reporting clocks would have forced the question of when Hugging Face should have been told. The obligations are sound; what is missing is the scenario.

For a company doing the work, the practical question is simpler than the legal one: what does each obligation translate to as something an engineer can build, test and show an auditor? The deep dive maps each requirement to an engineering artefact — the SBOM to a generated file, the vulnerability-handling duty to a disclosure process with a measurable window, the incident clock to detection tooling that can meet it — and then states plainly where the guidance runs out.

The honest position at the end of 2026: the engineering artefacts are mostly buildable, the reporting lines for autonomous-agent incidents are not written, and the companies that build the artefacts anyway will be the ones ready when the lines are.

Want the sources, timeline and detail? Read the deep dive (6 min).

Related articles