翻篇收录说明
翻篇网页快照

Building an AI Detection Engine for Agent Intent | Wiz Blog

https://www.wiz.io/blog/building-an-ai-detection-engine-for-agent-intent

最近抓取:2026-12-03 11:10:09(北京时间)

最近内容变化:2026-11-30 08:52:31(北京时间)

这是最近一次有效抓取的文本快照,不含网页脚本、图片和动态交互内容。实际网页可能已更新。

访问原网页

页面简介

Learn how Wiz is building a detection engine that understand AI agent reasoning to flag manipulated intent that legacy security tools miss.

正文摘录

AI agents are doing real work in production: shipping code and managing infrastructure with broad access and few guardrails. Unlike deterministic software, agents act on intent, which can be hijacked by a poisoned input or can drift toward a goal the agent was never meant to pursue.To effectively secure AI agents, we can no longer evaluate outputs in isolation. Instead, we must analyze an agent’s full reasoning and execution path. In this blog, we explore how a benign task assigned to an OpenAI agent escalated into a security breach, and why model input and output telemetry is key to detecting intent manipulation. We’ll also break down how we’re building a specialized detection engine to distinguish routine operations from malicious attacks, and how we validate it against real-world threat scenarios.Monitoring How AI Agents ThinkHistorically, security tools could never peek inside an attacker's thought process. With AI agents, we have a new opportunity: a direct window into live reasoning. Detecting shifts in intent as they happen lets us capitalize on this visibility, tackling a challenge legacy security was never built to address.The need for this visibility was on full display during the Hugging Face incident, disclosed by OpenAI in the summer of 2026. At Wiz, we have been building and improving our own detection pipeline to tackle the challenge of understanding and detecting shifts in agent intent.A Case Study: The OpenAI Hugging Face IncidentDuring a cybersecurity evaluation, AI agents driven by a combination of OpenAI models circumvented the isolation controls designed to keep them sandboxed, established an unauthorized communication channel using a package manager as an improvised message board, and coordinated over several days to penetrate Hugging Face’s production infrastructure.The complete incident attack chain timeline, disclosed on the Hugging Face blogIn a detailed analysis of the incident, OpenAI shared the full incident analysis, including the messages published by the swarm of agents in the make-shift message board. In the full report, we can clearly see how intent gradually shifted from solving ExploitGym to searching for the answer key to the benchmark on third-party services, including HuggingFace. This is a clear example of what makes AI agents different from traditional applications. The agents were not simply executing a predefined set of actions. They were reasoning about how to accomplish a goal, adapting their approach, and taking actions that, from their perspective, made sense. To understand intent and reasoning patterns, defenders need telemetry coming directly from these models. Understanding Agent Actions Using Model Input & Output TelemetryModel I/O logs from providers give us the opportunity to access the agent’s train of thought. This telemetry record captures every layer of agent interactions, including user requests, system prompts defining intent, tool specifications, and tool results, as well as the model’s full output and internal reasoning. To demonstrate both the power and complexities of this log, let’s take an example from our own internal attack simulations, which we will expand upon later in this blog: an organization deploys an autonomous AI agent to triage and resolve customer support tickets. This simulation, along with all others referenced in this blog, mirror real scenarios we have seen in the wild. They do not contain real-world domains or information. We can see the agent's system prompt directly in the log, defining the agent’s role, behavior and rulesThe log also reveals the tools it has access to and the actions they enableIn its daily workflow, the agent receives a simple instruction: A new support ticket has arrived. Please handle it. The agent receives instruction and gets to workWe can see that the agent is happy to take action. It calls a tool to fetch the ticket and read it.The customer support ticket the agent will action onThis ticket’s request seems typical, but deeper investigation reveals some suspicious activity. The ticket directs the agent to send an email to customers, with a link asking them to “reconfirm” their details. The link looks completely legitimate, and comes from a trusted source. With the context of the model logs, we can see that the link actually leads to a website controlled by an external attacker. The agent recognizes the request (supposedly) came from a member of marketing team The agent uncritically follows the instructions embedded in the ticket, which we can also see in the log. It uses its legitimate credentials to send the email and marks the ticket resolved.The ticket request is completed, and the output log shows the agent's responseTo traditional security tools, this looks like standard, authorized traffic: an authenticated service account calling SES as intended. Only by analyzing the model invocation logs can we really understand and investigate what is really going on! Correlating the untrusted ticket content, the model’s internal reasoning, and the subsequent tool calls reveals that an indirect prompt injection just turned a support agent into a phishing relay.This incident will not make it to the front page of the newspaper, but it is practically the same as the incidents that do. This is precisely why visibility into the model layer is so important, and why analyzing model input and output telemetry is such a critical part of our approach.Building an AI Detection & Response PipelineWhile this example showcases how powerful these logs are, it also highlights the nuance required to work with them, and the keen eye required to uncover what they hold. This makes creating effective detections for this telemetry particularly challenging.This is where LLM-based analysis can really benefit defenders, providing that deep semantic analysis and reasoning. A scalable solution has to account for the fact that different conversations require different levels of analysis. A production-ready solution should efficiently analyze each prompt, applying only as much intelligence as needed at each stage. That is why we created a pipeline that gradually surfaces interesting candidates for strong LLM analysis, ensuring that the most important conversations get analyzed for shifts in intent. The pipeline starts with log collection, where we ingest logs from cloud service and model providers. We then surface the first batch of candidates of potentially malicious activity by matching against common Regex patterns, The Wiz Secrets Engine and various SLMs. This is a great starting point for surfacing malicious activity and catching clear true positives fast.Next, telemetry undergoes light LLM analysis to filter out benign logs, surface interesting ones, and reduce noise. That filtered telemetry then undergoes thorough LLM analysis, enriched with and compared against broader environmental context. This thorough analysis is where the engine can interpret the instruction, understand actions taken, and ultimately deliver a verdict on malicious intent.Finally, the engine correlates these verdicts with cloud and runtime events to determine what the agent's actions actually did in the environment. Prompts and tool calls reveal what an agent intended to do; cloud and runtime telemetry reveals what really happened. This correlation is what separates real threats from noise. A tool call can look entirely innocuous at the model layer, while runtime telemetry shows it spawning a reverse shell. Conversely, a prompt that reads as clearly malicious may have had no real-world impact, because sandboxing, permission boundaries, or network controls stopped the resulting action before it went anywhere. Only by connecting the model's reasoning to the cloud API calls, process executions, and network connections that followed can the engine assess the true impact of an agent's behavior and surface the incidents that matter.Let's see this in action. In another sample scenario, a malicious AI agent called SOC-2 is running in the target environment. The agent is explicitly called “SOC-2” in order to make the LLM more permissive. The agent doesn’t have broader permissions, but it can find other agents in a multi-agent environment. In this particular simulation, the agent tricks CI/CD and Data Analysis agents to exfiltrate sensitive data to the agent managed resource. This is how the detection pipeline would analyze this scenario:The engine will start by running a first candidation check on all agents in the environment, to see if any agent-to-agent interactions raise suspicious flags. Since there are many Secrets and PII in tool results, along with several sensitive interactions documented in inputs and system prompts, the event will proceed in the pipeline for analysis.The pipeline will parse the event into a generic LLM logs structure, including inputs, system prompts, outputs, tool descriptions and identity information.User input and tool input fields are sent to a pre-filter LLM model for initial action analysis. If the action is uncontained, the LLM will pass it to the next stage. In our case, the pre-filter marked the activity as suspicious, so it passed through.Lastly, the full parsed conversation fields move to a stronger LLM analysis, providing a final verdict and threat severity label on the agents. This provides teams the analysis and context to understand what really happened. In our scenario the LLM gives each agent action a malicious verdict with different labels. The pipeline delivers an enriched Cloud Event for correlation against Threat Detection Rules and contextualization within the wider environment, providing a complete picture of activity across your environment.Enriched cloud events can generate detections and threats when rules triggerBuilding a BenchmarkThis new detection pipeline is complex, with many moving pieces and layers. As we continue to build this pipeline, we must ensure we can iteratively test updates, such as new SLM models,