Canada's national AI safety institute has published guidance developed by researchers from the University of Toronto and the Vector Institute on how to keep AI agents from causing harm beyond their intended tasks, providing a playbook organizations can adapt to their own level of risk.
The Technical Guidelines for AI Agent Containment , released Monday by the Canadian AI Safety Institute (CAISI) , adapt decades of cybersecurity best practices to AI systems that can act on their own - from sending emails to probing computer networks.
Nicolas Papernot, who led the work with fellow researchers from U of T and Vector, says the guidance is meant to evolve as AI advances, laying the groundwork for researchers and governments worldwide to develop common safety practices.
The guidance is intended as a resource for anyone who develops, tests or deploys AI agents, ranging from the AI companies building the technology to the IT staff or security teams of banks, hospitals and other organizations that use it in their operations.
"We already know how to prevent many of the failures we've seen with AI agents, and we need to work together to prepare for the vast array of challenges still to come," says Papernot, an associate professor in the Faculty of Applied Science & Engineering and a Canada CIFAR (Canadian Institute for Advanced Research) AI Chair at Vector.
"These guidelines provide the foundational guardrails that organizations everywhere can adapt to deploy AI agents with confidence in their safety."
CAISI draws on Canada's AI research community through the CAISI Research Program at CIFAR , the safety institute's independent research arm. It was established in 2024 with federal support and in collaboration with three national AI institutes: Vector, Amii (Alberta Machine Intelligence Institute) and Mila - Quebec Artificial Intelligence Institute.
A faculty affiliate at U of T's Schwartz Reisman Institute for Technology and Society, Papernot developed the guidance alongside U of T researchers Meenatchi Sundaram Muthu Selva Annamalai, Jonas Guan, Gururaj Saileshwar, Thomas Ristenpart and David Lie.
It builds on an open letter Papernot co-authored with Lie and Ristenpart that was signed by more than 500 scientists from 39 countries, calling for stronger measures to contain AI systems, citing a string of incidents in which AI agents acted unpredictably. Among the signatories were U of T University Professor Emeritus Geoffrey Hinton, who won the 2024 Nobel Prize in Physics , and Université de Montréal's Yoshua Bengio, both considered "godfathers" of modern AI.
"Canada's ability to navigate the opportunities and risks of advanced AI depends on world-class research, infrastructure and expertise," says Leah Cowen, U of T vice-president, research and innovation, and strategic initiatives. "As a leader in AI research, safety and security, the University of Toronto and its partners are helping Canada meet challenges no single sector can solve alone."
The guidance is designed to be tailored to varying risk levels, but three principles apply across the board:
- First, safeguards should be built so the agent itself can't switch them off. It's not enough to instruct an AI model not to break its rules; it shouldn't have the means to.
- Second, agents should only have access to the tools they need for the task at hand. "The more tools models have access to, the more likely one of them will have a vulnerability that the model can exploit to weaken its containment," Papernot says.
- Third, containment shouldn't only be viewed as a problem for technology to manage. People need to be able to see what an agent is doing and shut it down quickly if something goes wrong.
At the lower end of the risk spectrum, following the guidelines could be as simple as barring an email assistant from hitting send without human sign-off. For the highest-risk scenarios, like testing AI hacking capabilities, the authors drew on the safeguards Papernot's team used in its AI-powered worm research , including denying the agent live internet access and giving it only a stored copy of what it needed.
"AI is moving quickly, and we expect this guidance will change alongside it," Papernot says. "But these core principles, established over decades of cybersecurity research and practice, give organizations a reliable foundation to build on."
Ristenpart, a professor of computer science in the Faculty of Arts & Science, says the guidance builds on efforts by government and research bodies to respond to growing concerns about AI systems acting in unexpected and potentially harmful ways. "This fast-moving area needs more guidance like this from government and experts on how to responsibly do research on potentially malicious AI systems," Ristenpart says.