Enterprise AI agents are being deployed with exactly the access they need to be useful — which is to say, far more access than any security team is comfortable with. An agent that summarizes documents, triages tickets, or writes code on a user's behalf typically inherits broad read access to file shares, SaaS repositories, and internal APIs. Traditional access control — RBAC, ACLs, group membership — answers one question: is this identity permitted to touch this object? It cannot answer the question that actually matters in 2026: is this action what the user actually intended the agent to do?
Varonis has introduced Agent IBAC (Intent-Based Access Control) to close that gap. As described in their announcement, Agent IBAC is designed to detect intent drift — the moment an agent's behavior diverges from the user's original request — and enforce real-time guardrails that keep the agent operating within its intended boundaries rather than merely its permitted ones.
This matters to every SOC and IR team right now because agentic AI deployments are outpacing governance. Prompt injection, tool-abuse chains, and simple agent misinterpretation can all turn a legitimately-authorized agent into an insider-grade data exposure risk. The agent has valid credentials. Every action is "allowed." Legacy controls see nothing wrong. This post breaks down the intent-drift problem, what IBAC-style enforcement means architecturally, and how to hunt for boundary violations in your environment today — with or without a commercial control in place.
Technical Analysis: Why Authorization Is Not Intent
The Intent Gap
Consider a concrete scenario we have seen variants of in IR engagements over the past year:
- A user asks an internal copilot agent to "summarize the Q1 sales pipeline documents."
- The agent — legitimately authenticated via an OAuth token or service account with SharePoint and file-share read access — begins retrieving content.
- Through prompt injection embedded in a retrieved document, a malformed instruction, or plain model error, the agent expands its scope: it crawls the entire sales share, then HR folders, then begins exfiltrating summarized content to an external endpoint or pasting it into a broadly-visible channel.
At no point did the agent violate an ACL. Every file read was authorized. DLP might catch the egress if you have it tuned for that channel — most organizations don't. UEBA might flag the volume anomaly days later. The core failure is that no control in the chain evaluated whether the action aligned with the user's expressed intent.
What Agent IBAC Does Differently
Based on Varonis's description, Agent IBAC inserts an intent-evaluation layer between the agent and the data plane:
- Intent capture: The user's request establishes an intent context — what data domains, actions, and scope are expected.
- Real-time action evaluation: Each agent action (file read, API call, tool invocation, data egress) is evaluated against that intent context, not just against static permissions.
- Intent drift detection: When the agent's behavior pattern diverges from the declared intent — touching unrelated data classifications, escalating scope, invoking unplanned tools — the system flags or blocks the action in real time.
- Guardrail enforcement: Rather than post-hoc alerting, enforcement happens inline: step-up verification, action denial, or session termination.
Varonis is positioned to do this credibly because their platform already maintains a data-centric graph: who accesses what, data classification, sensitivity labels, and behavioral baselines across file systems and SaaS. Layering agent telemetry onto that existing data-access intelligence is a logical extension.
Threat Model: What Defenders Should Worry About
There is no CVE here — this is an architectural risk class, not a patchable bug. The relevant threat techniques map to:
- Prompt injection (direct and indirect) manipulating agent behavior mid-session — the indirect variant, where malicious instructions ride in on retrieved content, is the dominant real-world vector we see.
- Confused deputy abuse: the agent acts as a deputy with the user's (or a service account's) privileges, performing actions the user never intended.
- Scope creep / excessive agency: agents that chain tool calls beyond the task, writing files, sending messages, or executing code without human confirmation.
- Data staging and exfiltration via agent channels: bulk reads followed by egress through sanctioned API paths, defeating volume-based DLP thresholds.
Exploitation status: Intent drift and prompt-injection-driven agent abuse are actively demonstrated in the wild and in red team engagements throughout 2025–2026. This is not theoretical. Any organization deploying agents with production data access should assume these failure modes will occur.
Detection & Response
Even without an IBAC-style control deployed, the behavioral signatures of intent drift are observable in standard telemetry. The indicators below are grounded in how agents actually misbehave: runtimes (Python, Node) touching credential stores and sensitive configuration, agent frameworks spawning unexpected shells, and bulk access patterns against sensitive paths.
Sigma Rules
---
title: AI Agent Runtime Accessing Credential or Sensitive Configuration Files
id: 3f8a2c71-9b4e-4d1a-b6c2-7e5f0a8d9c3b
status: experimental
description: Detects scripting runtimes commonly used by AI agents (Python, Node) accessing credential stores, SSH keys, cloud CLI credentials, or environment files — a strong indicator of intent drift or prompt-injection-driven scope expansion.
references:
- https://www.bleepingcomputer.com/news/security/varonis-agent-ibac-keeps-ai-agents-within-their-intended-boundaries/
- https://attack.mitre.org/techniques/T1552/
author: Security Arsenal
date: 2026/04/06
tags:
- attack.credential_access
- attack.t1552.001
logsource:
category: process_creation
product: windows
detection:
selection_runtime:
Image|endswith:
- '\python.exe'
- '\python3.exe'
- '\node.exe'
- '\deno.exe'
selection_target:
CommandLine|contains:
- '\.aws\credentials'
- '\.ssh\id_rsa'
- '\.ssh\id_ed25519'
- '\.kube\config'
- '\.azure\accessTokens'
- '\.env'
- 'ntds.dit'
- 'sam.hive'
condition: selection_runtime and selection_target
falsepositives:
- Legitimate automation scripts and developer tooling; baseline known agent workloads and tune by host and parent process
level: high
---
title: AI Agent Runtime Spawning Interactive Shell or Command Interpreter
id: 8c1d4e62-2a7f-4b39-9d5e-1c6b3f8a2e47
status: experimental
description: Detects Python or Node-based agent frameworks spawning command shells or PowerShell — consistent with tool-abuse chains, prompt injection leading to command execution, or agents exceeding their intended tool boundaries.
references:
- https://www.bleepingcomputer.com/news/security/varonis-agent-ibac-keeps-ai-agents-within-their-intended-boundaries/
- https://attack.mitre.org/techniques/T1059/
author: Security Arsenal
date: 2026/04/06
tags:
- attack.execution
- attack.t1059
logsource:
category: process_creation
product: windows
detection:
selection_parent:
ParentImage|endswith:
- '\python.exe'
- '\python3.exe'
- '\node.exe'
selection_child:
Image|endswith:
- '\cmd.exe'
- '\powershell.exe'
- '\pwsh.exe'
- '\wscript.exe'
- '\cscript.exe'
filter_known_frameworks:
ParentCommandLine|contains:
- 'node_modules\\.bin'
- 'jupyter'
condition: selection_parent and selection_child and not filter_known_frameworks
falsepositives:
- Build pipelines, legitimate agent tool-execution features; investigate the initiating user session and agent task context before dismissing
level: high
KQL — Microsoft Sentinel / Defender Hunt
This query hunts for agent runtimes exhibiting boundary-violation behavior: spawning shells or touching sensitive file paths, enriched with the initiating account so analysts can pivot to the user's original agent session.
let SensitivePaths = dynamic(["\\.aws\\credentials", "\\.ssh\\", "\\.kube\\config", "\\.env", "secrets", "credential"]);
let AgentRuntimes = dynamic(["python.exe", "python3.exe", "node.exe", "deno.exe"]);
DeviceProcessEvents
| where TimeGenerated > ago(24h)
| where FileName has_any (AgentRuntimes) or InitiatingProcessFileName has_any (AgentRuntimes)
| where ProcessCommandLine has_any (SensitivePaths)
or (InitiatingProcessFileName has_any (AgentRuntimes) and FileName in~ ("cmd.exe","powershell.exe","pwsh.exe"))
| summarize FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated),
Commands = make_set(ProcessCommandLine, 20), ChildProcs = make_set(FileName, 20)
by DeviceName, AccountName, InitiatingProcessFileName, InitiatingProcessCommandLine
| order by FirstSeen desc
For Linux agent workloads ingested via Syslog/CEF, hunt network egress from agent processes to unsanctioned destinations:
Syslog
| where TimeGenerated > ago(24h)
| where ProcessName has_any ("python", "node")
| where SyslogMessage has_any ("CONNECT", "Outbound", "ESTABLISHED")
| summarize ConnectionCount = count(), Samples = make_set(SyslogMessage, 10)
by Computer, ProcessName, bin(TimeGenerated, 1h)
| where ConnectionCount > 500
| order by ConnectionCount desc
Velociraptor VQL
Hunt across the fleet for live agent-runtime processes holding network connections — useful for identifying unauthorized or drifted agent deployments before they stage data.
-- Enumerate AI agent runtimes with active outbound network connections
-- to identify unauthorized agent deployments and potential exfil channels
SELECT Pid, Name, CommandLine, Exe, Username, CreateTime
FROM pslist()
WHERE Name =~ '(?i)python|node|deno'
AND CommandLine =~ '(?i)agent|copilot|mcp|langchain|autogen|crewai|llm'
-- Correlate agent processes with their network connections
SELECT p.Pid, p.Name, p.CommandLine, p.Username,
n.LocalAddr, n.LocalPort, n.RemoteAddr, n.RemotePort, n.State
FROM pslist() AS p
JOIN netstat() AS n ON p.Pid = n.Pid
WHERE p.Name =~ '(?i)python|node'
AND n.State =~ 'ESTABLISHED'
AND NOT n.RemoteAddr =~ '^(10\\.|192\\.168\\.|172\\.(1[6-9]|2[0-9]|3[01])\\.|127\\.)'
Hardening & Audit Script
Use this PowerShell script to inventory agent-capable runtimes on Windows endpoints and servers, identify service accounts with broad group memberships (prime confused-deputy candidates), and enable object-access auditing on sensitive directories so agent file activity is captured.
# AI Agent Boundary Audit & Hardening — Security Arsenal
# Run elevated on endpoints/servers hosting or accessible to AI agent workloads.
# 1. Inventory agent-capable runtimes and any processes referencing agent frameworks
Write-Host "=== Agent Runtime Inventory ===" -ForegroundColor Cyan
Get-Process | Where-Object { $_.Name -match 'python|node|deno' } |
Select-Object Name, Id, Path, StartTime |
Format-Table -AutoSize
Get-CimInstance Win32_Process |
Where-Object { $_.CommandLine -match 'agent|copilot|mcp|langchain|autogen|crewai|llm' } |
Select-Object Name, ProcessId, CommandLine |
Format-List
# 2. Identify service accounts with broad privileged group membership (confused-deputy risk)
Write-Host "=== Service Accounts in Privileged Groups ===" -ForegroundColor Cyan
foreach ($group in @('Domain Admins','Enterprise Admins','Administrators')) {
try {
Get-ADGroupMember -Identity $group -Recursive -ErrorAction Stop |
Where-Object { $_.objectClass -eq 'user' -and $_.SamAccountName -match 'svc|svc-|agent|bot|app' } |
Select-Object @{n='Group';e={$group}}, Name, SamAccountName
} catch { Write-Host "Skipping $group (not available on this host)" -ForegroundColor Yellow }
}
# 3. Enable file-system auditing on a sensitive directory (adjust path per environment)
$TargetDir = "D:\SensitiveData"
if (Test-Path $TargetDir) {
$acl = Get-Acl $TargetDir
$auditRule = New-Object System.Security.AccessControl.FileSystemAuditRule(
"Everyone","Read,Write,Delete","ContainerInherit,ObjectInherit","None","Success")
$acl.AddAuditRule($auditRule)
Set-Acl $TargetDir $acl
Write-Host "Audit SACL applied to $TargetDir" -ForegroundColor Green
}
# 4. Confirm audit policy captures object access
auditpol /get /subcategory:"File System"
auditpol /set /subcategory:"File System" /success:enable /failure:enable
Remediation & Hardening Recommendations
There is no patch for intent drift — it is an architectural control gap. Remediation is layered:
-
Deploy intent-aware enforcement for production agents. Evaluate Varonis Agent IBAC or equivalent controls that evaluate agent actions against declared user intent in real time, not just static permissions. Review the announcement at the BleepingComputer coverage and engage Varonis directly for capability scoping against your data estate.
-
Apply least privilege to agent identities — aggressively. Agents should operate under scoped, task-specific credentials, not inherited user tokens with full mailbox/share access. Use short-lived tokens, per-task service accounts, and just-in-time elevation where supported.
-
Constrain the tool surface. Enumerate every tool/function your agent frameworks can invoke (shell execution, file write, email send, HTTP egress). Disable or require human-in-the-loop confirmation for any tool not strictly required by the agent's documented purpose.
-
Segment data access by intent domain. Map agent use cases to specific data classifications and shares. Block agent identities from credential stores, HR repositories, and regulated data unless the use case explicitly requires it — and log every touch.
-
Treat retrieved content as untrusted input. Indirect prompt injection is the primary drift vector. Enforce content sanitization, instruction/data separation, and retrieval allow-listing in your agent pipelines.
-
Baseline and alert on agent behavior volume. Bulk-read patterns, novel destination domains, and after-hours agent activity are your highest-signal drift indicators. Tune UEBA and the detections above against known-good agent workloads.
-
Add agents to your IR playbooks. Define containment now: how do you revoke an agent's tokens, kill its sessions, and forensically reconstruct its action chain (prompt history, tool calls, data accessed) when drift is detected? Test it in a tabletop before you need it.
The organizations that get agent security right in 2026 will be the ones that stop treating authorization as a proxy for intent. IBAC-style enforcement is where the industry is heading — but the detection and hygiene work above is available to you today.
Related Resources
Security Arsenal Penetration Testing Services AlertMonitor Platform Book a SOC Assessment vulnerability-management Intel Hub
Is your security operations ready?
Get a free SOC assessment or see how AlertMonitor cuts through alert noise with automated triage.