AI safety
AI safety asks one question of every AI system: does it do what it was meant to do, and nothing harmful beyond that? Answering it takes work at three points:
- Before release, AI labs train models to follow human intent and test them for dangerous capabilities
- At deployment, organizations decide which AI systems run, what data they can reach, and what actions they can take
- At runtime, guardrails check what a system sends and does, and a person can approve or stop it
The term means different things depending on who uses it. For AI labs and researchers, AI safety is a research field about aligning increasingly capable models with human values and preventing severe or catastrophic outcomes. For an organization rolling out AI assistants and agents, AI safety is an operational question: whether those systems leak data, give harmful answers, or take actions nobody approved.
Both meanings matter, and AI agents have changed the second one most. Agents hold credentials, call tools, and change real systems, so an unsafe output can become an unsafe action. This page covers both sides and links to the deeper references for each control.
What does AI safety cover?
Credo AI’s glossary describes AI safety as “a range of technical and governance measures, from ensuring a model behaves reliably to preventing misuse.” Those measures fall into five areas.
AI alignment
AI alignment means making a system’s goals and outputs match what its developers and users intend. A misaligned system can pursue the wrong objective without any malicious design. The 2016 paper Concrete Problems in AI Safety gave the field much of its vocabulary for this, including reward hacking, where a system games the measure it was trained on instead of doing the task, and negative side effects, where it completes the task while causing harm nobody specified.
Robustness
Robustness means a system keeps behaving reliably on inputs it wasn’t trained on, including noisy, unusual, and adversarial ones. A systematic review of 383 peer-reviewed AI safety papers, published as AI Safety for Everyone in Nature Machine Intelligence, found that noise and outliers were the most studied risk type, ahead of better-known topics such as adversarial attacks.
Monitoring and interpretability
Interpretability research tries to explain how a model reaches its outputs. Monitoring watches what a deployed system actually does. Both exist because a model’s internal workings are hard to inspect, and a failure nobody can see can’t be corrected.
Human oversight
Human oversight keeps a person able to review, override, or stop an AI system, especially for high-stakes decisions such as hiring, credit, medical care, or changes to production systems.
Misuse prevention
AI misuse is the deliberate use of an AI system to cause harm, such as generating disinformation, writing malware, or producing abusive content. Misuse prevention covers model refusals, content filters, and limits on who can use a system for what.
The same review places AI safety in the tradition of safety engineering in aviation, pharmaceuticals, and nuclear power, alongside the debate about existential risk. For organizations, that framing points to familiar tools: defined failure modes, layered controls, and records of what happened.
What are the main AI safety risks and concerns?
The International AI Safety Report 2026, chaired by Yoshua Bengio and written by more than 100 independent experts, groups the risks of general-purpose AI into three categories:
| Risk category | What goes wrong | Examples |
|---|---|---|
| Malicious use | People use AI on purpose to cause harm | Disinformation, scams, AI-assisted cyberattacks, abusive content |
| Malfunctions | The AI system behaves in ways its builders and users didn’t intend | Hallucinated facts, biased decisions, an agent taking an action it was told not to take |
| Systemic risks | Harm builds up across society from wide deployment | Labor market disruption, overreliance on AI, loss of human oversight at scale |
For an organization, malfunctions are usually the most immediate AI safety concern, because they need no attacker. The report also flags a problem for anyone relying on pre-release testing: some models can now tell when they are being evaluated and change their behavior, so a model that passes its tests can still behave differently in deployment.
AI safety vs AI security: what’s the difference?
AI safety and AI security are often used together, and the difference is about intent:
| AI safety | AI security | |
|---|---|---|
| Main question | Does the system behave as intended? | Can someone make it do what they want? |
| Source of harm | Flaws in design, training, or deployment | Attackers |
| Typical failures | Hallucinations, bias, misalignment, unintended actions | Prompt injection, data poisoning, model theft, credential abuse |
| Typical controls | Alignment, evaluations, oversight, guardrails | Threat modeling, red teaming, access control, guardrails |
Alice sums it up: “safety protects people from AI, while security protects AI from people.”
In practice, the line is blurring. The UK renamed its AI Safety Institute the AI Security Institute in February 2025, and in June 2025 the US AI Safety Institute became the Center for AI Standards and Innovation.
AI agents make the overlap concrete. A prompt injection hidden in a support ticket is a security problem, but its result, an agent emailing customer records to an outside address, is a safety failure. The controls that stop it are often the same. AI security covers the attacker’s side in depth.
The diagram below sets the two side by side and follows that support ticket through an agent.
What is AI agent safety?
AI agent safety applies AI safety to systems that take actions. When a chatbot hallucinates, the result is a wrong paragraph, but when an agent misbehaves, the result can be a deleted table, a merged pull request, or a leaked file, because the agent holds credentials and calls tools.
In July 2025, an AI coding agent on Replit deleted a company’s production database during a code freeze, after being told not to make changes without permission and with no attacker involved. Replit’s CEO called the deletion unacceptable, and the company added automatic separation between development and production databases.
The instruction not to touch production lived in the prompt, which is a request the model can follow or ignore. A permission the agent never received blocks the action whatever the model decides.
AI safety for agents comes down to three principles:
- Every AI agent is a privileged identity. It holds credentials, acts on its own, and carries the access of the person who deployed it, so it needs the protection given to the most privileged people in the company.
- Runtime is the control point. Labs test a model before it ships, but a policy document doesn’t stop an agent in the middle of a task.
- Humans always hold the final say. Accountability stays with people, and so does the decision to stop an agent.
Put into practice, those principles become controls that live outside the model, in the environment the agent runs in:
- An identity for each agent, so every action traces back to a person or service
- Least-privilege access, so an agent can only reach the tools and data its task needs
- Runtime checks on prompts, tool calls, and tool responses
- Human approval before destructive or irreversible actions
- A kill switch that stops a live agent session without the agent’s cooperation
- A complete record of what each agent did
The diagram below shows the three layers where AI safety controls sit, and who owns each one. Model and application controls shape what an agent tends to do, while the action layer decides what it is allowed to do.
These controls apply to user-steered agents like Claude Code and Cursor, where a person watches each step, and even more to background agents that run with no one watching.
Which AI safety frameworks apply to organizations?
AI safety frameworks exist at two levels. AI labs publish frontier safety frameworks, such as Anthropic’s Responsible Scaling Policy, OpenAI’s Preparedness Framework, and Google DeepMind’s Frontier Safety Framework. These set capability thresholds at which a lab adds safeguards before releasing a model. The International AI Safety Report counts 12 companies that published or updated such frameworks in 2025.
Organizations deploying AI work with a different set, built around AI risk management:
| Framework | Type | What it gives an organization |
|---|---|---|
| NIST AI RMF | Voluntary US framework | A process to govern, map, measure, and manage AI risks |
| EU AI Act | Binding EU regulation | Risk-based obligations, including human oversight for high-risk AI systems |
| ISO/IEC 42001 | Certifiable standard | Requirements for an AI management system |
| OWASP Top 10 for LLM Applications | Vulnerability list | The most critical weaknesses in LLM and agent applications |
| MITRE ATLAS | Threat catalog | Known adversary techniques against AI systems |
These frameworks define what to manage, but none of them enforces anything at runtime. AI security frameworks compares NIST AI RMF, MITRE ATLAS, and OWASP side by side, and ISO 42001 for agentic AI covers what the standard asks of agent deployments.
How do AI guardrails put AI safety into practice?
AI guardrails are the runtime controls that turn frameworks and policies into enforced behavior. For an organization running AI assistants and agents, AI safety in practice comes down to seven controls.
Find every AI system
An organization can’t make AI safe if it doesn’t know which AI is running. Shadow AI covers detecting unapproved tools, and agent inventory and MCP inventory cover counting the agents and the servers they connect to.
Give every agent an identity
Each action should trace back to a named person or service. Agent identity and non-human identity cover how agents get identities, and shared credentials vs user-delegated identity covers why a shared API key breaks attribution.
Limit what agents can reach
An agent should hold only the access its task needs, for only as long as it needs it. Agent access management and task-scoped credentials cover least privilege for agents, and MCP tool allowlists vs per-call authorization covers where tool-level permissions belong.
Check traffic at runtime
Guardrails inspect prompts, responses, tool calls, and tool results, and flag or block what breaks policy. Agent guardrails covers the four layers guardrails run at, agent DLP covers stopping sensitive data from leaving, and prompt injection and MCP tool poisoning cover the attacks guardrails need to catch.
Keep a person on destructive actions
Deleting data, moving money, and changing production should wait for a person to approve them. AI agent governance covers how to gate destructive actions and put agent grants into review.
Keep an AI kill switch
An instruction to stop is only a prompt, so stopping a misbehaving agent takes a control the agent can’t ignore. An AI kill switch ends a live agent session, or a whole class of sessions, without the agent’s cooperation, and revokes the credentials it was using. AI agent kill switch covers where a kill switch can act and what it has to do in an incident, and agent session management covers kill switches, session quarantine, and who in an organization should hold them.
Record every action
When something goes wrong, the organization needs to know which agent did what, on whose behalf, and with which data. Agent hooks capture prompts and tool calls inside coding agents, where a gateway can’t see them.
AI governance sets the policies these controls enforce, and the AI control plane runs them together on one path between every agent and every system it can reach.
How does the Speakeasy AI Control Plane support AI safety?
The Speakeasy AI Control Plane puts the deployment-side controls on one path. Agents reach tools through its MCP gateway, so every tool call crosses a point where identity, policy, and logging apply:
- One identity for every call. The gateway authenticates the calling agent before forwarding a tool call, so every action is attributable to a specific user and agent rather than an anonymous process.
- Tool-level access policy. The gateway enforces which tools each user and agent can call, and keeps upstream credentials centralized in the platform rather than in agent configs.
- Runtime guardrails. Risk policies evaluate user prompts, assistant messages, tool calls, and tool responses, with built-in detectors for secrets, financial data, and personal identifiers, and LLM-judged policies for behaviors such as external data transfer. Policies audit by default, and enforcement to warn or deny is opt-in per policy.
- A kill switch and quarantine. An admin can turn off one person’s MCP tool calls on all or selected servers, and the gateway refuses those calls before they reach the server. A quarantine policy freezes a flagged session’s prompts and tool calls until an admin releases it.
- Coding agent visibility. Hooks for Claude Code, Codex, Cursor, GitHub Copilot, and other coding agents capture every prompt submission, tool call, and model response as a structured event.
- A full record. Every tool call is logged with the person and agent behind it, along with its arguments and result when tool I/O recording is on, and every guardrail finding ties back to the session transcript and the audit log.
To see how this applies to the agents already running in your organization, talk to us.