{"id":31190,"date":"2026-11-19T16:15:29","date_gmt":"2026-11-19T16:15:29","guid":{"rendered":"https:\/\/www.kaspersky.co.uk\/blog\/ai-agent-security-with-existing-controls\/31190\/"},"modified":"2026-11-19T16:15:29","modified_gmt":"2026-11-19T16:15:29","slug":"ai-agent-security-with-existing-controls","status":"publish","type":"post","link":"https:\/\/www.kaspersky.co.uk\/blog\/ai-agent-security-with-existing-controls\/31190\/","title":{"rendered":"How to secure a company&#8217;s AI agents"},"content":{"rendered":"<p>The risks of using AI at work have been known for a while, but new evidence keeps piling up. With AI agents that employees set up to perform actions on company computers, the situation only continues to worsen: attackers are already targeting them. Instead of risking detection by using specific malware, attackers can now just send an agent plain text prompts and make it do what they need, such as <a href=\"https:\/\/snyk.io\/blog\/weaponizing-ai-coding-agents-for-malware-in-the-nx-malicious-package\/\" target=\"_blank\" rel=\"noopener nofollow\">find secrets on the computer<\/a>, or send information somewhere external. Every useful skill of an AI assistant becomes an opportunity for the attacker.<\/p>\n<p>It\u2019s not enough for security teams to keep track of which AI tools are in use. They also need to watch the tools\u2019 permissions, instruction sources, connected components, and actual actions. But it doesn\u2019t require adding more security products to do it. Familiar tools can handle many of these tasks: application control, web filtering, EDR, file analysis, and up-to-date <a href=\"https:\/\/www.kaspersky.co.uk\/enterprise-security\/threat-intelligence?icid=gb_kdailyplacehold_acq_ona_smm__onl_b2b_kasperskydaily_wpplaceholder_______\" target=\"_blank\" rel=\"noopener\">threat intelligence<\/a>. A detailed description of the relevant protection mechanisms can be found in <a href=\"https:\/\/securelist.com\/tr\/how-to-secure-ai-agents\/121444\/\" target=\"_blank\" rel=\"noopener\">Securelist\u2019s guide to safe deployment of AI agents<\/a>. That article is packed with technical details, but here, we\u2019ll walk through the main risks of corporate AI, and the traditional security measures that help minimize them.<\/p>\n<h2>An assistant nobody approved<\/h2>\n<p>Shadow AI refers to AI services and apps that employees use without approval from the company\u2019s security and IT departments. The app or service itself is usually legitimate, but the organization doesn\u2019t know what data it processes, where it sends that data, or what actions it can perform.<\/p>\n<p>To prevent the use of such tools, a registry of approved AI apps and online services should be created and maintained. To restrict access to AI services that security policy doesn\u2019t allow, <a href=\"https:\/\/www.kaspersky.co.uk\/next?icid=gb_kdailyplacehold_acq_ona_smm__onl_b2b_kdaily_wpplaceholder_sm-team___knext____c85c7f718828ada0\" target=\"_blank\" rel=\"noopener\">Kaspersky endpoint security<\/a>, managed through Kaspersky Security Center can be used. The restriction is applied by the Application Control module, which has an AI Tools category. It can be run in a mode that blocks prohibited apps (denylist), or in a stricter mode that allows only explicitly approved ones (allowlist). Access to web-based AI services is managed by a similar tool: Web Control. For approved services, it should be explicitly specified which types of data can be processed in them. The service providers\u2019 contractual commitments on data protection should also be explicitly checked.<\/p>\n<h2>Fake installers instead of AI<\/h2>\n<p>This threat is only indirectly related to AI, but we\u2019re mentioning it because attackers loved it so much in 2026. A user searches for a link or installation instructions for an AI agent, clicks an ad, and lands on a page that looks almost identical to the developer\u2019s real website. The page tells the user to copy a command into Terminal \u2014 and the result is predictable. In March, we described a <a href=\"https:\/\/www.kaspersky.com\/blog\/fake-ai-agents-infostealers\/55412\/\" target=\"_blank\" rel=\"noopener nofollow\">version of this scam that uses fake Claude Code and OpenClaw installation pages<\/a>: instead of a useful tool, users got an infostealer.<\/p>\n<p>Several levels of protection against these attacks \u2014 known as ClickFix \u2014 should be used. Installation packages and instructions for approved tools should be used through the corporate catalog. Web filtering and anti-phishing mechanisms should help block known fake pages, while endpoint protection should detect malicious payloads and suspicious launch chains.<\/p>\n<h2>Excessive agent permissions<\/h2>\n<p>Desktop apps, such as the official ChatGPT app, are often seen as the same chatbot in a separate window. In reality, they\u2019re full-fledged AI agents that can work with files and run programs within the permissions they\u2019ve been given. In practice, an agent often has all the privileges of the current user. If action confirmation and isolation are also turned off, a mistaken or malicious instruction can have very serious consequences.<\/p>\n<p>In September 2026, researchers described the <a href=\"https:\/\/cloud.google.com\/security\/resources\/ai-risk-and-resilience-2026\" target=\"_blank\" rel=\"noopener nofollow\">hijacking of an active AI assistant session at a SaaS provider<\/a>. First, the AI agent recommended infected software from the PyPI repository, and then installed it on its own. The attackers got hold of GitHub OAuth tokens and used them to spread the Shai-Hulud worm further.<\/p>\n<p>Last year\u2019s s1ngularity attack is an even more striking example. The malicious script <a href=\"https:\/\/snyk.io\/blog\/weaponizing-ai-coding-agents-for-malware-in-the-nx-malicious-package\/\" target=\"_blank\" rel=\"noopener nofollow\">searched for installed AI tools<\/a> and launched them in a mode that skips confirmation prompts. The agents were told to look for SSH keys, .env files, and crypto wallets. There was no need to hack the model to do this.<\/p>\n<p>This makes a local AI agent an extremely powerful weapon in <a href=\"https:\/\/www.kaspersky.com\/blog\/lotl-attacks-detection-hardening-guidance\/50826\/\" target=\"_blank\" rel=\"noopener nofollow\">living-off-the-land<\/a> attacks. To spot an agent being used for the wrong purpose, its launch parameters, access to credential stores, and child processes should be monitored closely.<\/p>\n<p>To counter this threat, <a href=\"https:\/\/www.kaspersky.co.uk\/enterprise-security\/edr-security-software-solution?icid=gb_kdailyplacehold_acq_ona_smm__onl_b2b_kasperskydaily_wpplaceholder_______\" target=\"_blank\" rel=\"noopener\">Kaspersky NEXT EDR Optimum<\/a> users have access to special rules that detect dangerous launch modes. A separate group of rules tracks agent access to files with credentials, tokens, and keys. Depending on the situation, the response can include terminating the AI agent process or even isolating the host.<\/p>\n<h2>Dangerous MCP servers<\/h2>\n<p>The MCP protocol allows to connect extra tools and data sources to AI applications. For example, an MCP server can search for documents, call APIs, or work with files. However, the sandbox and restrictive policies that apply to the AI agent don\u2019t extend to MCP. That makes connecting an MCP server about as risky as installing a new software component.<\/p>\n<p>In February 2026, cybersecurity experts discovered the <a href=\"https:\/\/socket.dev\/blog\/sandworm-mode-npm-worm-ai-toolchain-poisoning\" target=\"_blank\" rel=\"noopener nofollow\">SANDWORM_MODE campaign<\/a>. The McpInject module placed a malicious MCP server in a hidden directory, and added it to the configurations of Claude Code, Cursor, Continue, and Windsurf. The tool descriptions contained injected instructions to search for secrets, such as SSH keys and cloud credentials.<\/p>\n<p>To keep MCP risks under control, an organization needs to maintain an allowlist of MCP servers, monitor changes to their configurations, and limit network connections. Local servers should be vetted like any executable software, and remote ones \u2014 like external services with access to corporate information.<\/p>\n<p>Kaspersky EDR has special rules to detect suspicious MCP server scripts that are created or modified in hidden and temporary directories. Such a location doesn\u2019t prove a component is malicious, but it\u2019s a good reason to check where it came from and which process installed it.<\/p>\n<h2>Malware that calls LLMs directly<\/h2>\n<p>Attackers have learned to use LLMs to generate code and scripts on the fly, requesting what they need straight from the infected system. Google\u2019s reports describe two malware families \u2014 <a href=\"https:\/\/cloud.google.com\/blog\/topics\/threat-intelligence\/threat-actor-usage-of-ai-tools\" target=\"_blank\" rel=\"noopener nofollow\">PROMPTSTEAL<\/a> and <a href=\"https:\/\/cloud.google.com\/blog\/topics\/threat-intelligence\/distillation-experimentation-integration-ai-adversarial-use\" target=\"_blank\" rel=\"noopener nofollow\">HONESTCUE<\/a> \u2014 that were found in real-world attacks. The former queried a model through the Hugging Face API to get Windows commands; the latter received C# code from Gemini and compiled it in memory.<\/p>\n<p>From a network monitoring perspective, in both cases the connection goes to a legitimate AI service. That\u2019s why it\u2019s not enough to look at the destination address alone: it\u2019s essential to know which process opens the connection and what it does with the response.<\/p>\n<p>A practical measure is to allow access to model APIs only for the applications and workflows that truly need it, and to investigate any unexpected requests together with endpoint events.<\/p>\n<p>In Kaspersky EDR, two rules can help to spot unusual applications connecting to known external language model APIs and detect local model files. Finding them doesn\u2019t mean a device is infected, but it can help uncover an AI tool that nobody accounted for.<\/p>\n<h2>Malicious skills<\/h2>\n<p>An agent\u2019s capabilities are often increased with ready-made skills: sets of instructions, scripts, and helper files. Installing them effectively adds one more supply chain that the security team has to manage.<\/p>\n<p>In February 2026, researchers found <a href=\"https:\/\/www.esecurityplanet.com\/threats\/hundreds-of-malicious-skills-found-in-openclaws-clawhub\/\" target=\"_blank\" rel=\"noopener nofollow\">341 malicious skills in the ClawHub catalog<\/a>. Many of them suggested users install so-called necessary components, which, if they did, in actual fact saw them run the AMOS infostealer. Later, Unit 42 described <a href=\"https:\/\/unit42.paloaltonetworks.com\/openclaw-ai-supply-chain\/\" target=\"_blank\" rel=\"noopener nofollow\">additional ways to bypass security checks<\/a> that the attackers used, such as inflating the package size to exceed scanner limits.<\/p>\n<p>Skills, along with their related scripts, components, and archives, should be checked before they\u2019re handed over to an agent. This can be done with <a href=\"https:\/\/www.kaspersky.co.uk\/scan-engine?icid=gb_kdailyplacehold_acq_ona_smm__onl_b2b_kasperskydaily_wpplaceholder_______\" target=\"_blank\" rel=\"noopener\">Kaspersky Scan Engine<\/a>, built directly into the extension onboarding process, and by adding the standard checks of the package source, version, and contents.<\/p>\n<h2>How to limit the impact of an attack<\/h2>\n<p>Detection and response are essential, but <a href=\"https:\/\/www.kaspersky.com\/blog\/adopting-cyberimmunity-for-ai-agent-design-rollout\/56619\/\" target=\"_blank\" rel=\"noopener nofollow\">Secure by Design AI implementation<\/a> should reduce potential damage even before protection kicks in.<\/p>\n<p><strong>Least privilege.<\/strong> Whenever possible, run the agent under a separate account or in an isolated environment. Limit access to project directories and only the services the agent needs. A ban written as a text instruction is no substitute for isolation.<\/p>\n<p><strong>Credentials outside the agent\u2019s reach.<\/strong> Don\u2019t keep long-lived tokens and keys in configuration files the agent can read. Whenever possible, use a secrets vault, short-lived credentials, and an intermediary service that strictly performs the requested operation without revealing the secret to the agent.<\/p>\n<p><strong>Verified dependencies.<\/strong> Download skills, packages, and models through an internal repository or a controlled proxy. Pin approved versions, and compare checksums against a trusted reference.<\/p>\n<p><strong>Restricted outbound connections.<\/strong> Allow access only to the model APIs, MCP servers, and other resources that the agent really needs. Don\u2019t forget about child processes: blocking the agent\u2019s main process won\u2019t help much if the shell it launches still has unrestricted internet access.<\/p>\n<p><strong>A dedicated response playbook.<\/strong> After a compromise, check the configuration of agents and development environments, event handlers, and connected MCP servers. Revoke affected tokens and active sessions, and replace any keys that may have been exposed.<\/p>\n<p><strong>An approved alternative instead of a flat ban.<\/strong> Give employees an approved AI tool, clear rules for handling data, and a fast process for approving new features. Otherwise, even a policy that looks strict on paper will only push people toward shadow AI.<\/p>\n<input type=\"hidden\" class=\"category_for_banner\" data-type=\"posts\" value=\"next-optimum\">\n","protected":false},"excerpt":{"rendered":"<p>How to protect an organization from attacks through AI agents, and what problems can be solved with the security tools you already have (primarily ours). <\/p>\n","protected":false},"author":2722,"featured_media":31191,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1836,2360,2361],"tags":[1043,1766,2390,2903,36,76,529,131],"class_list":["post-31190","post","type-post","status-publish","format-standard","has-post-thumbnail","category-business","category-enterprise","category-smb","tag-ai","tag-business","tag-data-breaches","tag-edr","tag-malware-2","tag-phishing","tag-threats","tag-tips"],"hreflang":[{"hreflang":"en-gb","url":"https:\/\/www.kaspersky.co.uk\/blog\/ai-agent-security-with-existing-controls\/31190\/"},{"hreflang":"en-in","url":"https:\/\/www.kaspersky.co.in\/blog\/ai-agent-security-with-existing-controls\/31256\/"},{"hreflang":"en-ae","url":"https:\/\/me-en.kaspersky.com\/blog\/ai-agent-security-with-existing-controls\/26286\/"},{"hreflang":"ru","url":"https:\/\/www.kaspersky.ru\/blog\/ai-agent-security-with-existing-controls\/43017\/"},{"hreflang":"x-default","url":"https:\/\/www.kaspersky.com\/blog\/ai-agent-security-with-existing-controls\/56928\/"},{"hreflang":"ru-kz","url":"https:\/\/blog.kaspersky.kz\/ai-agent-security-with-existing-controls\/31230\/"},{"hreflang":"en-au","url":"https:\/\/www.kaspersky.com.au\/blog\/ai-agent-security-with-existing-controls\/37013\/"},{"hreflang":"en-za","url":"https:\/\/www.kaspersky.co.za\/blog\/ai-agent-security-with-existing-controls\/36688\/"}],"acf":[],"banners":"","maintag":{"url":"https:\/\/www.kaspersky.co.uk\/blog\/tag\/ai\/","name":"AI"},"_links":{"self":[{"href":"https:\/\/www.kaspersky.co.uk\/blog\/wp-json\/wp\/v2\/posts\/31190","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kaspersky.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kaspersky.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kaspersky.co.uk\/blog\/wp-json\/wp\/v2\/users\/2722"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kaspersky.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=31190"}],"version-history":[{"count":0,"href":"https:\/\/www.kaspersky.co.uk\/blog\/wp-json\/wp\/v2\/posts\/31190\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.kaspersky.co.uk\/blog\/wp-json\/wp\/v2\/media\/31191"}],"wp:attachment":[{"href":"https:\/\/www.kaspersky.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=31190"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kaspersky.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=31190"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kaspersky.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=31190"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}