AI agents are arriving fast. Here's how to adopt them safely

undefined
Building AI guardrails that can help manage cyber risks without curbing innovation.Image: Getty Images/iStockphoto/maxkabakov
  • As organizations deploy artificial intelligence (AI) agents, they need to manage the resulting cyber risk exposure. AI guardrails provide layers of control around models and agents but require a coordinated approach across technology, operations and governance.

In July 2026, an artificial intelligence (AI) agent tasked with exploiting vulnerabilities escaped the sealed environment in which it was running, reached the open internet and took control of another company’s live servers. The intention was not to attack anyone. The agent was looking for the answer key to the test it was being scored on.

This is a preview, not an outlier. AI models in general and AI agents in particular are becoming more capable. They perform business tasks and can run end-to-end workflows. Organizations have adopted them to increase productivity, reduce costs and better utilize their resources.

Despite the business value these models bring, a hidden risk emerges when organizations embed AI into workflows faster than they can build the controls to govern it.

In the World Economic Forum’s Global Cybersecurity Outlook 2026, 87% of surveyed leaders named AI-related weaknesses as the cyber risk that grew faster than any other through 2025. These concerns are echoed in the Forum’s Global Risks Report 2026, in which adverse outcomes of AI climbed further than any other risk tracked – ranking 30th over a two-year horizon but climbing to fifth place over 10 years.

The rise of autonomous agents is clearly opening up new security risks that conventional defenses were not built for. AI agents can be tricked with malicious prompts, have their instructions tampered with, or unintentionally leak sensitive data when they send or receive information. They may generate incorrect or fabricated answers that users treat as fact, obtain privileges beyond what their tasks require, and access systems they should not interact with.

This happened in June 2026, when OpenAI agents tasked only with looking up statistics gained unauthorized access to non-public Australian Medicare data. Researchers said this was the first reported instance of autonomous agents hacking a government.

It's especially alarming that all of these issues can develop in an instant – at machine speed. This is the gap AI guardrails are designed to close. As the controls that allow agents to act autonomously while keeping risk within defined limits, AI guardrails are a prerequisite for safe deployment, not an optional safeguard.

What are AI guardrails?

AI guardrails are security measures that control and limit the risk of AI systems misbehaving. This could include generating harmful content, disclosing sensitive data or acting on injected instructions that override the original programming and trick the agent into doing unauthorized tasks.

They come in various forms, but the three main types are built-in, middleware and agentic guardrails.

Most frontier large language models (LLMs) have strict guardrails built in during training to prevent them from generating harmful or hateful content and to comply with the safety policies the developer has adopted. These guardrails are limited to general misbehaviour, however, and can be easily bypassed.

Another form of AI guardrail, middleware, sits between the model and applications to monitor inputs and outputs. This type is highly customizable and tailored to specific enterprise policies to block personal data or sensitive information before it reaches the model.

The third type, agentic guardrails, are probably the most important because AI agents can act autonomously and perform end-to-end tasks. These guardrails sit alongside a specific agent and control what it is permitted to do.

The EU has approved the world's ‘first’ law for regulating AI
The EU has approved the world's ‘first’ law for regulating AI
02:02

Why AI guardrails matter

AI systems are inherently non-deterministic, meaning identical inputs may produce different outputs. Current LLMs can also hallucinate, generating fabricated answers that sound authoritative.

An even greater danger comes from agentic systems capable of self‑directed action. These agents rely on underlying LLMs, memory and repeated reasoning cycles to complete their assigned tasks. At any of those points, execution can diverge from what was intended, and this is where the risks hide.

Guardrails provide layers of control around AI models and agents to constrain their behaviour, validate their inputs and outputs, govern access to tools and data, enforce organizational policies and detect abnormal or potentially harmful actions before they trigger real-world consequences.

How to build AI guardrails

Adopting first-principles cybersecurity thinking across three main levels is essential to mitigating the potential risks associated with AI systems:

1. Technical

At the technical level, an enterprise needs to understand the potential risks posed by the AI system that it plans to deploy. Once risks have been identified, AI guardrails should address them through input/output controls, tool restrictions and least privilege. The latter means granting an AI agent only the minimum permissions, access and capabilities needed to complete a specific task, and only for as long as needed. Controls should then undergo rigorous testing before the AI system is deployed.

2. Operational

From an operational perspective, any AI system that might take critical actions should include human-in-the-loop oversight to monitor its behaviour and prevent actions that could jeopardize the business. Companies need continuous visibility into what their AI systems are doing and why.

3. Governance

Companies need policies and controls that comply with regional regulatory requirements and internationally recognized best practices such as frameworks and standards. For example, the US National Institute of Standards and Technology (NIST) publishes the NIST AI Risk Management Framework (AI RMF) and the International Organization for Standardization (ISO) has created ISO/IEC 42001.

Ultimately, securing AI requires a coordinated approach across all three levels to ensure AI systems remain secure, controlled and aligned with enterprise risk appetite.

AI guardrails as innovation enablers

AI guardrails will not block enterprise growth. Rather, they can be a foundational enabler of innovation in the AI era.

These controls allow companies to adopt AI across functions while keeping innovation controlled and responsible, so this technology can eventually be built into products and services.

AI guardrails build the trust, reliability and accountability organizations need to scale AI with confidence.

License and Republishing
World Economic Forum articles may be republished in accordance with the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International Public License, and in accordance with our Terms of Use. The views expressed in this article are those of the author alone and not the World Economic Forum.