Introduction
Aiden Sochowski from Runlayer analyzes the security and cost challenges in an environment where over 300 AI agents serve 60 employees. He presents methods for monitoring tool calls and limiting excessive permissions to minimize the risk of attacks.
Key takeaways 4 / 6
The gist of the content in a few sentences
- In a company of 60 people, over 300 active agents triggered by users, chatbots, and SaaS applications were identified.
- Giving agents overly broad access to tools increases the potential blast radius in the event of an attack or error.
- Even advanced models can be manipulated, leading to agents acting as reviewers who approve sensitive code changes.
- A classification model was implemented to verify whether every tool call aligns with the agent's defined task.
Show all 6 takeaways
- Poorly written MCP servers generate recurring errors, which drastically increase spending on input and output tokens.
- An unjustified switch to more expensive models once caused costs to spike over 100-fold within a single week.
Video chapters 9Click and the video will play from the selected moment
- 0:37Challenges in securing AI agents
- 4:33Attack surface and risks in AI agents
- 4:33Challenges in implementing security policies
- 6:23Challenges in detecting attacks on agents
- 8:27Monitoring intent and detecting agent drift
- 8:57Session data analysis and permission restriction
- 11:03Securing AI agents against attacks
- 12:55Costs of errors in MCP servers
- 14:21Cost management and AI agent monitoring
Summary
First 3 of 9 partsChallenges in securing AI agents
According to Aiden Sochowski, an engineer at Runlayer, many modern companies suffer from a total lack of visibility regarding the clients and agents running within their organization. This problem is exacerbated by locally running MCP clients and the use of unmanaged devices and external, unverified agent products that connect to MCP servers without proper oversight of authentication processes.
To solve this problem internally, the team implemented a network gateway that enables monitoring every tool call and logging all sessions in a central system. As a result of these actions, it was discovered that in a company of 50 to 60 people, over 300 AI agents operate daily. These are entities triggered not only by users, but also by chatbots, specific events (triggers), or SaaS applications.
A key aspect of managing these agents is mapping them by topic and risk level. Aiden Sochowski notes that some agents possess too many tools, which significantly increases their potential blast radius. A particular threat is the connection of systems from different eras containing different data classes; AI agents can drastically accelerate the risks associated with mixing data, which previously required intentionally writing a program and connecting specific APIs.
Attack surface and risks in AI agents
Visualizing agent actions makes it possible to see which MCP servers are visited and what specific actions are taken, such as data retrieval or the occurrence of errors. According to the speaker, each of these tool calls represents a potential attack surface that could be exploited by third parties to read hostile data, execute destructive actions, or exfiltrate information.
As an example, the speaker cites a situation where a malicious actor sends an email requesting a list of the company's current potential clients. If the agent is too naive and has excessive permissions, it may uncritically list this data from a calendar and pass it outside.
Challenges in implementing security policies
Managing permissions for every user and tool is a difficult process, and defining policies within so-called agent gateways proves to be complicated. The speaker notes that it is not enough to block a specific tool in every scenario, because security depends on the context of the given operation.
Various protection methods are being considered, such as using classifier models to analyze email content for instructions, although the speaker notes that no solution will be 100% effective. Another step could be blocking the transmission of personally identifiable information (PII) externally, for example, by checking if the message content matches specific regular expressions.
Read the full summary – for free
6 parts of text left, key takeaways, facts, questions and answers, action items – with the source minute for every passage. Plus search, collections and the AI assistant.
Keep reading for freeFree, in a minute. Have an account? Log in
