TL;DRIntent is not the test for insider threat: CISA, NIST, and CERT all define an insider by access, not malice. By their own definitions, an AI agent with trusted access qualifies as one.Agents act through every credential they can find: Your carefully scoped agent identity covers only part of its reach. Keys in env files, logs, and CLI sessions let it act as someone else entirely.Contain the agent, don’t just instruct it: Prompts are guidance. Sandboxes and deterministic hooks around what enters, what it touches and what leaves are the boundaries that hold.

When most people think of insider threats, they think of a malicious employee seeking revenge or financial gain by exploiting their company. We picture a disgruntled system administrator sabotaging infrastructure or a salesperson stealing customer data before leaving for a competitor. This classical understanding of insider threats has shaped decades of enterprise security programs.

However, a threat does not necessarily imply malicious intent. Some of the world’s most authoritative cybersecurity organizations have long accounted for the possibility that trusted actors can cause tremendous harm through negligence, accidents, or manipulation by outside parties.

Today, enterprises are adding a new class of trusted actors, AI agents, and with them an AI insider threat that needs no malice at all. We are giving these actors access to our files, credentials, internal communications, and production infrastructure. We are empowering them to make decisions and execute commands on our behalf, often with the same privileges we possess.

On Oct. 19, 2026, Microsoft published an article declaring that agents are your newest insiders. As enterprises give AI agents access to increasingly sensitive systems and data, the potential for insider risk grows alongside their capabilities.

Let’s look at established definitions of insider threats alongside the capabilities of modern AI agents to see if AI meets the criteria of being a new insider threat.

What exactly is an insider threat?

The Wikipedia entry for insider threat defines it as “a perceived threat to an organization that comes from people within the organization, such as employees, former employees, contractors or business associates, who have inside information concerning the organization’s security practices, data and computer systems. The threat may involve fraud, the theft of confidential or commercially valuable information, the theft of intellectual property, or the sabotage of computer systems.”

This is the classical definition. Most of the cited sources for that meaning are from 2014 or earlier.  

Early definitions assumed or implied intent from a person trying to do harm or for personal financial gain, hence words like ‘sabotage’ being commonly used. This definition and the realities of how we need to address insider threats have been continually updated over the years. Along the way, intent was removed from the equation. 

How CISA, NIST, and CERT define insider threat today

The Cybersecurity and Infrastructure Security Agency (CISA), in its guidance on Defining Insider Threats, describes the potential for an insider to use their authorized access or organizational knowledge to cause harm. Its definition explicitly includes actions taken “intentionally or unintentionally.”

This understanding of insider threats is consistent with most organizations’ definitions. CISA recognizes intentional and unintentional insider threats, including harm resulting from negligent and accidental actions. The National Institute of Standards and Technology (NIST) takes the same view: NIST SP 800-53 Revision 5 defines insider threats as using authorized access, “wittingly or unwittingly,” to harm organizational operations, assets, and individuals. Carnegie Mellon University’s CERT Division updated its definition in 2017 to explicitly encompass actions taken “either maliciously or unintentionally.”

Two characteristics consistently emerge from any guideline you read:

The insider possesses legitimate access or privileged knowledge.Their actions have the potential to harm the organization.Intent does not define an insider threat, access does

Security professionals have long understood that the consequences of an action can be devastating regardless of the actor’s intentions. It is why you do not give a new intern production access on day one. 

Now, AI agents, which are rapidly being adopted as standard workflow tools across all departments, force us to reconsider who, or what, qualifies as that actor.

Expanding insider from “person” to “identity”

Cybersecurity risk assessments need to extend the working definition of an insider to include any “authorized identity,” not just a “person.” This aligns the term “insider threat” with how modern systems are built to handle authentication and authorization.

The NIST Computer Security Resource Center glossary already includes a definition of an insider, derived from RFC 4949, that begins with:

“An entity inside the security perimeter that is authorized to access system resources”

The definition goes on to describe that entity using resources in ways that exceed the approval of those who granted access.

An AI coding agent running on a developer’s laptop can operate through multiple identities. It might inherit the developer’s operating system permissions, use an authenticated command-line tool, or discover an API key associated with a service account.

In the GitGuardian blog post “Your AI Agents Are Using Your Credentials,” we explain how agents often operate with credentials originally provisioned for other purposes. Most systems receiving requests have no way to distinguish between a human, their automated assistant, or another process using the same credentials.

From the perspective of a production database, a valid credential establishes the authority to perform an operation. Whether the command originated from a human administrator or an AI agent can be immaterial to the authorization decision.

When we give AI agents legitimate access to organizational resources, we introduce actors capable of exhibiting many of the same dangerous behaviors that established insider threat programs were designed to address.

How AI agents fit the types of insider threats CISA defines

CISA’s insider threat definition provides a useful framework for understanding how AI agents can put organizations at risk. Its categories cover accidental behavior, negligence, intentional harm, and collaboration with external threat actors.

Each has a practical parallel in agentic AI.

Accidental insider threats

Even the most experienced employees make mistakes. They can send sensitive information to the wrong recipient, accidentally expose confidential files, or execute commands against the wrong environment.

AI agents can perform all these actions at machine speed.

In April 2026, the PocketOS incident showed the consequences of an AI coding agent gaining unintended access to credentials beyond its assigned task. While working on a staging issue, the agent discovered an unrelated Railway API token. It used that credential to delete the company’s production database and volume-level backups. The entire destructive operation reportedly took nine seconds.

An AI agent's granted identity inside a larger reachable zone of env files, CLI sessions, and logs, where about 40% of high and critical secrets were found.

The agent was attempting to accomplish a legitimate task assigned by an authorized user. Its execution environment contained the credentials necessary to turn a mistake into a production disaster. Agentic automation also drastically reduces the time available to recognize and interrupt a dangerous action.

Negligent insider threats

CISA describes negligent insider threats as carelessness and failures to follow established security practices.

AI-assisted workflows can produce functionally equivalent outcomes. Agents can hardcode credentials, expose sensitive information in debugging output, or implement shortcuts that undermine established security controls.

Giving an agent unrestricted filesystem access, making production credentials available in its environment, and allowing consequential operations without approvals all introduce foreseeable risks. Human insider threats directly enable non-human insider threats. 

The rise of citizen developers, people with access to Claude Code or Cursor who have no formal engineering or coding training, makes this particularly concerning. Employees across marketing, sales, finance, and operations can now build sophisticated integrations and applications using natural language. The underlying implementation could contain long-lived credentials, excessive permissions, and entirely new pathways into sensitive enterprise systems.

Most of these folks have never received any instructions or briefings on secure software development or credential management.

For these employees, an AI-generated application that successfully accomplishes a task might appear perfectly secure. Nothing immediately breaks, so it must be OK. It is easy to think, “Why else would the system let you do it if it is unsafe?” 

The intent is not malicious, but the risks this introduces are very real.

Collusive insider threats and externally manipulated AI agents

CISA identifies collusive threats as a subset of malicious insider threats involving collaboration between insiders and external threat actors.

Prompt injection introduces a comparable attack pathway. An external attacker can influence an internal agent by embedding malicious instructions inside content the agent has been asked to process, such as a GitHub issue, an incoming email, or a webpage. 

If the agent follows those instructions, it can exercise legitimate internal privileges on behalf of the external attacker. Depending on its available access, the agent could retrieve sensitive information, modify internal resources, or transmit confidential data outside the organization. This is essentially what we saw in the Nx “S1ngularity” attack that turned the coding assistant into an accomplice for the attackers.

Traditional collusion involves knowing cooperation between parties. An externally manipulated agent can produce an equivalent security outcome without possessing any intent of its own.

The external attacker effectively gains the assistance of an already trusted internal actor.

Across all these categories, agent access, no matter how it is granted, determines how far the threat can reach. 

An AI agent’s effective permissions include every credential it can access

Giving every AI agent a dedicated identity with narrowly scoped, short-lived permissions is an important architectural goal. Microsoft’s recommendations for securing agentic insiders emphasize granting authority for individual tasks and limiting the duration of that authority. This is great advice for anyone building autonomous production systems, but it doesn’t address the immediate reality AI agents have introduced to most organizations.   

Enterprises must also account for the credentials already present throughout their environments.

A coding agent or agentic assistant running on a developer’s machine can potentially discover API keys in environment files, invoke authenticated CLI sessions, or retrieve credentials preserved in application logs. Each can enable the agent to act through an entirely different identity, with permissions independently defined by the issuing system.

This creates a gap between the access an organization intends to grant an agent and the access actually available to it.

Even an agent with a dedicated, narrowly scoped identity could potentially discover a long-lived cloud credential with administrative privileges. The security architecture governing the agent’s assigned identity would then cover only a fraction of its effective access. GitGuardian research into developer endpoints found that approximately 40% of high and critical secrets identified during endpoint analysis were located in AI tool directories and log files.

Every accessible credential represents another potential identity through which the agent can act. Together, those credentials form the credential layer: the set of credentials that let code, machines, developers, and AI agents access systems, wherever those credentials live or move. It spans repos, pipelines, vaults, developer endpoints, collaboration tools, public code, and AI workflows, cutting across the boundaries of the security tools built to protect each individual system. Understanding an agent’s effective blast radius requires understanding the entire credential layer within its reach. 

How many AI insiders are already operating on your developers’ laptops?

Traditional insider threat programs begin with an understanding of who has access to organizational resources. The rapid proliferation of locally installed AI agents makes establishing that understanding increasingly difficult.

As AI-assisted development expands across the enterprise, the definition of a developer must expand with it. Security teams need to face the reality that employees commonly install AI coding assistants, configure Model Context Protocol (MCP) servers, and build integrations independently of centralized IT processes. 

Security teams need continuous visibility into which agents are installed, which tools they can invoke, and which credentials are available within their execution environments. The scope of this discovery must extend across the entire enterprise fleet, including the machines of employees who have never previously been considered software developers.

How to mitigate the insider threat posed by AI coding agents

Many of the established and tested principles of cybersecurity apply directly to AI coding assistants. Least privilege, zero trust, and separation of duties all help contain the potential consequences of unintended or externally influenced behavior. Applying these principles requires security teams to establish enforceable boundaries around the agent’s paths of ingress, access, and egress.

Establish security boundaries around AI agents

Containing the insider threat posed by AI means establishing explicit boundaries around the agent’s execution environment. We need to control three aspects of how an agent interacts with the world:

Ingress (what comes into the agent): Control what information enters the agent’s context and which external sources it can retrieve information from. Every additional source of information introduces another potential avenue for prompt injection.Local access (what the agent can touch in its environment): Control which files, directories, processes, and credentials the agent can access within its execution environment. Apply least privilege to filesystem permissions and remove unnecessary plaintext credentials that could grant access to additional systems.Egress (what leaves the agent): Control which external systems and services the agent can communicate with. Restrict network access to approved destinations and enforce controls over what sensitive information can be transmitted, including through authorized connections.Three boundaries around every agent: ingress, egress, access

Sandboxing solutions like Docker Sandboxes (sbx) provide a practical foundation for enforcing these boundaries independently of the agent’s reasoning. By combining network ingress and egress policies with filesystem isolation, organizations can restrict external communication and confine agents to explicitly permitted local resources. The agent operates within a defined security perimeter, and any additional access requires an explicit change to that perimeter.

This is just half of the story, though; we still need to account for actions the agent can take with credentials it finds from legitimate sources. 

Establish deterministic checkpoints for dangerous agent actions

AI agents make probabilistic decisions. Organizations need security controls that consistently enforce policy throughout their workflows.

A system prompt instructing an agent to avoid reading credentials provides behavioral guidance. A filesystem restriction creates an enforceable boundary. An instruction to avoid production APIs provides guidance, while network restrictions and appropriately scoped authorization enforce the policy.

AI Hooks give teams a way to enforce security decisions at specific points throughout agentic workflows. These checkpoints must operate independently of the model’s reasoning and be protected from unauthorized modification or bypass.

Combining these controls allows organizations to benefit from increasingly capable AI agents while containing the consequences of unpredictable behavior.

How GitGuardian helps mitigate AI insider threats

At GitGuardian, our approach to AI insider threat mitigation focuses on the credential layer. That extends into every developer machine and into every surface a coding agent can reach. 

The GitGuardian platform can help organizations identify the credentials internal agents can access, prevent secrets from being exposed through agentic workflows, and now we can help teams discover which AI agents operate across their environments. 

Find credentials before your AI agents do

GitGuardian Developer Endpoint Protection extends secrets detection to the machines where AI agents actually operate.

This includes credentials stored in local environment files, shell histories, agent configurations, and other locations beyond traditional repository scanning.

Discovering these credentials gives security teams an opportunity to revoke unnecessary access, rotate exposed secrets, and move credentials into appropriate secrets management systems.

Every unnecessary credential removed from an endpoint eliminates a potential pathway for access abuse by an agent or an external attacker.

Prevent secrets exposure with AI Hooks

GitGuardian AI Hooks introduce deterministic secrets security checkpoints into supported AI coding assistants, including Claude Code, Cursor, and Codex.

Depending on the capabilities of the AI assistant, hooks can scan prompts, inspect tool calls, and examine tool outputs for exposed credentials.

When secrets are detected, supported blocking hooks can interrupt the workflow before the credential reaches the model. This helps prevent secrets exposure originating from an accidental developer action, an autonomous agent decision, or a workflow influenced by an external attacker.

AI Hooks complement sandboxing, authorization policies, and network restrictions by addressing the sensitive credential data flowing through agentic workflows.

The three GitGuardian AI hooks workflow diagramDiscover AI agents and MCP servers across your fleet

GitGuardian’s AI agents and MCP inventory provide visibility into supported AI agents and their configured MCP servers across enterprise endpoints.

Security teams can discover previously unknown AI tooling, identify configured integrations, and understand AI Hooks coverage across individual machines.

The inventory can also help distinguish personal AI subscriptions from company subscriptions, providing additional context about how employees are adopting these technologies.

Organizations can deploy recurring discovery through their existing mobile device management (MDM) infrastructure, maintaining visibility as their agentic environments evolve.

AI Coding Agents view in Endpoint Protectoin menu in the GitGuardian workspaceAI is the new insider threat. Secure it accordingly

The widespread adoption of AI agents forces us to reconsider who can act as an insider. The established definitions of insider threats already recognize the potential for harm through accidents, negligence, and manipulation. Agentic AI extends these risks to automated actors capable of exercising trusted access at unprecedented speed and scale.

As Microsoft put it in Agents are your newest insiders. Security must move at their speed.“This builds on a simple security principle: surround non-deterministic intelligence with deterministic controls, independent evidence, and containment boundaries.”

Securing the credential layer is fundamental to establishing those containment boundaries. Organizations must understand which agents operate across their environments, systematically reduce the credentials available to them, and enforce security policies independently of their reasoning.

Every credential we remove from an agent’s reach is one less opportunity for access abuse.

You can start mitigating AI insider threats today by installing GitGuardian AI Hooks for free on your own machine. To learn how to discover AI agents, inventory MCP servers, and protect credentials across your entire fleet, book a demo with GitGuardian.

Book a demo

FAQ

What is an AI insider threat?

An AI insider threat is the risk that an AI agent with trusted access to files, credentials, or production systems harms the organization. No malicious intent is required.

The agent can cause damage through a mistake, a careless shortcut, or instructions planted by an outside attacker. What makes it an insider is the access it holds.

Does an insider threat require malicious intent?

No. Early definitions implied intent, but current ones do not. CISA’s insider threat categories include unintentional threats caused by negligence and accidents. NIST SP 800-53 Revision 5 says “wittingly or unwittingly,” and Carnegie Mellon’s CERT Division defines an insider threat as access used “either maliciously or unintentionally.”

Two characteristics define an insider threat: legitimate access or privileged knowledge, and the potential to harm the organization.

Why are AI agents an insider threat?

One NIST glossary definition, drawn from RFC 4949, describes an insider as an entity inside the security perimeter that is authorized to access system resources, not specifically a person. An AI agent can inherit a developer’s permissions, use authenticated CLI tools, or find a service account key, and a production database often cannot tell whether a valid credential is used by a human or an agent.

Agents map onto CISA’s categories: accidental (the PocketOS incident), negligent (hardcoded credentials and shortcuts), and collusive in effect (prompt injection, where an outside attacker steers a trusted agent).

What can an AI agent actually access?

More than its assigned identity. A coding agent on a developer’s machine can discover API keys in environment files, invoke authenticated CLI sessions, or retrieve credentials preserved in logs, and each one lets it act through a different identity.

GitGuardian research into developer endpoints found that approximately 40% of high and critical secrets identified during endpoint analysis were located in AI tool directories and log files. Understanding an agent’s blast radius means understanding every credential within its reach.

How do you contain the insider risk from AI coding agents?

Apply least privilege, zero trust, and separation of duties by setting boundaries on three things: ingress (what enters the agent’s context), local access (which files, processes, and credentials it can touch), and egress (which external systems it can reach). Sandboxes such as Docker Sandboxes (sbx) can enforce those boundaries independently of the agent’s reasoning.

Add deterministic checkpoints, such as AI Hooks, because a system prompt is guidance while a filesystem or network restriction is an enforceable boundary.

How does GitGuardian help mitigate AI insider threats?

GitGuardian focuses on the credentials agents can reach. Developer Endpoint Protection finds credentials in environment files, shell histories, and agent configurations, so teams can revoke, rotate, or move them into secrets managers.

AI Hooks add deterministic checkpoints to supported assistants, including Claude Code, Cursor, and Codex, and can scan prompts, tool calls, and tool outputs. The AI agents and MCP inventory discovers agents and configured MCP servers across the fleet, and recurring discovery can be deployed through existing MDM infrastructure.

AI Agent Security: Six Controls From Nine Real Incidents

An AI agent runs with your credentials and acts before you can stop it. Nine incidents show what that costs. Six controls limit the damage: sandbox the agent, scope its credentials, lock its configuration, log every call, scan the workspace first, and deny by default.

Coding Agent Security: Start With What Agents Can Reach

AI coding agents can read files, call tools, and use credentials that never appear in a pull request. For AppSec teams, securing the code is only part of the job.

OWASP Top 10 for Agentic Applications: Credential Risk

Every risk in the OWASP Top 10 for Agentic Applications 2026 gets worse when an agent can reach a valid credential. This guide maps ASI01 through ASI10 to the credential at stake, shows where those credentials live, and lays out five controls to reduce exposure.