{"id":31180,"date":"2026-10-29T18:38:48","date_gmt":"2026-10-29T13:08:48","guid":{"rendered":"https:\/\/www.kaspersky.co.in\/blog\/adopting-cyberimmunity-for-ai-agent-design-rollout\/31180\/"},"modified":"2026-10-29T18:38:48","modified_gmt":"2026-10-29T13:08:48","slug":"adopting-cyberimmunity-for-ai-agent-design-rollout","status":"publish","type":"post","link":"https:\/\/www.kaspersky.co.in\/blog\/adopting-cyberimmunity-for-ai-agent-design-rollout\/31180\/","title":{"rendered":"Cyber Immunity lessons for AI agents"},"content":{"rendered":"<p>AI systems are much harder to protect than traditional IT\u00a0\u2014 whether from operator mistakes, malicious interference, or just plain unstable behavior. There are two main reasons for this. First, <a href=\"https:\/\/www.kaspersky.com\/blog\/autonomous-soc-2026-challenges-and-solutions\/55977\/\" target=\"_blank\" rel=\"noopener nofollow\">AI outputs are probabilistic<\/a>, so the same prompt can give different answers each time you run it. Second, today\u2019s LLMs <a href=\"https:\/\/www.kaspersky.com\/blog\/new-llm-attack-vectors-2025\/54323\/\" target=\"_blank\" rel=\"noopener nofollow\">can\u2019t reliably tell commands apart from data<\/a>. Despite the <a href=\"https:\/\/www.kaspersky.com\/blog\/top-agentic-ai-risks-2026\/55184\/\" target=\"_blank\" rel=\"noopener nofollow\">demonstrated security issues of AI<\/a> systems that we\u2019ve covered many times, it\u2019s impossible to ignore the potential economic payoff of adopting them. That\u2019s why many companies are moving beyond simple AI assistants to AI agents. These agents carry out tasks on their own and have direct access to the same tools as humans\u00a0\u2014 from reading databases to changing settings in production processes. Our experts, in their <a href=\"https:\/\/lp.kaspersky.com\/global\/ai-agent-cyber-immunity\/\" target=\"_blank\" rel=\"noopener nofollow\">new study<\/a>, examine how to clearly define and minimize the resulting risks to keep potential problems to a minimum. The approach borrows and adapts the principles of Cyber Immunity and Security by Design.<\/p>\n<h2>The basic principles of Security by Design<\/h2>\n<p>All the principles of this discipline are universally applicable to the design of any computer system \u2014 AI agents included. What differs is how deeply each principle needs to be adapted and reworked for AI scenarios.<\/p>\n<ol>\n<li>Security is a separate and important factor right from the design stage. Security goals and assumptions are set on day one and followed throughout every stage of development. For AI agents, these assumptions should include three key points: (i) the language model is treated as untrusted, (ii) external data of any kind is considered potentially malicious, and (iii) irreversible actions can\u2019t be performed autonomously without mandatory human approval.<\/li>\n<li>The system is designed on the assumption that it will be attacked.<\/li>\n<li>The trusted computing base and attack surface are kept to a minimum. Agents get only the tools they actually need, limited permissions, and the smallest amount of context possible. Security policy enforcement is handled entirely by deterministic components: the policy monitor, the agent harness, and isolation mechanisms (sandboxes).<\/li>\n<li>The principle of least privilege applies. Each agent has its own set of credentials and access privileges (identity), limited to the bare minimum it needs to do its job. If an agent temporarily needs elevated privileges, it gets them only after external approval, and they last exactly as long as the task that requires them.<\/li>\n<li>Components are isolated. In agent-based systems, this is one of the most complex and multi-layered architecture problems. The agent harness should run in an isolated environment (sandbox or virtual machine), and agents should be kept as isolated from each other as possible. Data processing in trusted and untrusted contexts is also kept separate. For example, one agent reads a pull request and writes a draft of the code, while another reviews that work without ever seeing the potentially malicious text of the request.<\/li>\n<li>Default deny is the rule. Security policies follow the rule: anything not explicitly allowed is forbidden. This includes tool calls, interactions between agents, and network traffic.<\/li>\n<li>Defense in depth is in place. Different measures should work at the same time and reinforce each other. Probabilistic defenses \u2014 like AI guardrails (a \u201cfirewall\u201d for language models) or alignment (the model\u2019s own sense of what\u2019s acceptable and what isn\u2019t) \u2014 can\u2019t offer any formal security guarantees. Nevertheless, they make the system more secure overall and serve as a valuable source of telemetry.<\/li>\n<li>The supply chain is protected. Some agents can install skills, libraries, and other software components on their own, so these abilities need strict rules. Either block them completely, or limit them to a closed, pre-approved list of specific versions of specific components. Systems built on cloud LLMs face an extra risk: model updates. One day, the same API request might be answered by a different language model with different security properties.<\/li>\n<\/ol>\n<h2>Pitfalls of AI security<\/h2>\n<p>The general principles of Security by Design are well known and look simple on paper. But applying them to AI systems is tricky because agents are incredibly flexible. For example, a security team might believe that an agent on a developer\u2019s computer runs in a sandbox and can\u2019t change anything outside it. But an attacker, or even the agent itself, can come up with dozens of ways around this seemingly solid protection: from running commands through a local MCP server that the sandbox doesn\u2019t restrict, to <a href=\"https:\/\/embracethered.com\/blog\/posts\/2025\/cross-agent-privilege-escalation-agents-that-free-each-other\/\" target=\"_blank\" rel=\"noopener nofollow\">reconfiguring another AI agent<\/a> installed on the system. To make things even harder, the range of attack vectors is huge: from arbitrary <a href=\"https:\/\/github.com\/anthropics\/claude-code\/security\/advisories\/GHSA-j4h9-wv2m-wrf7\" target=\"_blank\" rel=\"noopener nofollow\">fields in the agent\u2019s configuration<\/a> to innocent-looking <a href=\"https:\/\/arxiv.org\/html\/2602.06547v1\" target=\"_blank\" rel=\"noopener nofollow\">text strings in a skill file<\/a>.<\/p>\n<p>One serious problem that designers often underestimate is user fatigue. A busy agent can throw up dozens of requests every minute, asking the user to confirm potentially dangerous actions. Within an hour, the person is <a href=\"https:\/\/nhimg.org\/community\/agentic-ai-and-nhis\/ai-agent-approvals-and-alert-fatigue-what-teams-are-missing\/\" target=\"_blank\" rel=\"noopener nofollow\">clicking <em>Approve<\/em> on autopilot<\/a> without reading what they\u2019re approving. That\u2019s why it\u2019s important to carefully tune both how often these requests appear and how they\u2019re worded. Nobody will read a request description that\u2019s too long. And one that\u2019s too short can <a href=\"https:\/\/adversa.ai\/blog\/the-approval-prompt-is-lying-to-you-symlink-rce-in-five-ai-coding-agents-claude-code-cursor-antigravity-copilot-grok-build\/\" target=\"_blank\" rel=\"noopener nofollow\">hide the key details<\/a> the user needs in order to make the right call.<\/p>\n<p>Vulnerabilities in agents and related tools are a pressing problem\u00a0\u2014 and it\u2019s made worse by how quickly these categories of software evolve and receive updates. Industry-standard platforms and apps \u2014 such as <a href=\"https:\/\/labs.cloudsecurityalliance.org\/research\/csa-research-note-langgraph-rce-chain-20260614-csa-styled\/\" target=\"_blank\" rel=\"noopener nofollow\">LangGraph<\/a>, <a href=\"https:\/\/www.microsoft.com\/en-us\/security\/blog\/2026\/05\/07\/prompts-become-shells-rce-vulnerabilities-ai-agent-frameworks\/\" target=\"_blank\" rel=\"noopener nofollow\">MS Semantic Kernel<\/a>, and <a href=\"https:\/\/phoenix.security\/critical-ci-cd-nightmare-3-command-injection-flaws-in-claude-code-cli-allow-credential-exfiltration\" target=\"_blank\" rel=\"noopener nofollow\">Claude Code<\/a> \u2014 have had critical vulnerabilities patched more than once. Architects should always consider swapping a large, do-it-all framework for a compact, stripped-down system that has only the features a specific agent actually needs.<\/p>\n<p>On top of that, carefully implementing standard, long-established security measures in the available tools greatly reduces the damage if an agent is attacked or behaves unexpectedly. One example is a strict allowlist of domains that the web fetch tool can open when asked by the agent. But designers rarely account for the hidden problems and overhead associated with maintaining the list. As a result, it slowly goes out of date and leaves loopholes for attackers. The most striking example is the <a href=\"https:\/\/www.securityweek.com\/echoleak-ai-attack-enabled-theft-of-sensitive-data-via-microsoft-365-copilot\/\" target=\"_blank\" rel=\"noopener nofollow\">EchoLeak<\/a> attack. Microsoft 365 Copilot had a properly implemented and fairly effective allowlist for accessing external sites, but attackers circumvented it through a feature in a secondary tool and the MS Teams domain.<\/p>\n<h2>Practical tips for architects and security teams<\/h2>\n<p>AI system architects and heads of engineering and security teams should build in agent security from the design stage. They should rely primarily on verifiable, deterministic mechanisms: isolating components, controlling interactions, and keeping the trusted computing base to a minimum.<\/p>\n<p>Key architectural decisions include defining acceptable autonomy for the agents, limiting access to confidential data and dangerous combinations of capabilities, and using sandboxes, separate roles for different models, and access control gateways. Restrictions added as an afterthought reduce risks, but they\u2019re no substitute for secure architecture.<\/p>\n<p>At the organizational and operational levels, companies need to keep an inventory of their agents, coordinate the efforts of security and deployment teams, protect container environments, manage the supply chain (AIBOM), and integrate multi-layered defense.<\/p>\n<p>Observability requires special attention. For AI systems, this should include logging the LLM\u2019s requests, responses, and reasoning, as well as detailed telemetry from the hosts and cloud environments where the agent harness runs.<\/p>\n<p>The hardest part of designing agents is balancing security, performance, and usefulness. To learn how to strike that balance with threat modeling and clearly defined security goals, read the <a href=\"https:\/\/lp.kaspersky.com\/global\/ai-agent-cyber-immunity\/\" target=\"_blank\" rel=\"noopener nofollow\">full version of the study<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to apply Secure by Design ideas when rolling out AI agents.<\/p>\n","protected":false},"author":2706,"featured_media":31181,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[2036,2609,2610],"tags":[1094,3446,1924,97],"class_list":["post-31180","post","type-post","status-publish","format-standard","has-post-thumbnail","category-business","category-enterprise","category-smb","tag-ai","tag-llm","tag-machine-learning","tag-security-2"],"hreflang":[{"hreflang":"en-in","url":"https:\/\/www.kaspersky.co.in\/blog\/adopting-cyberimmunity-for-ai-agent-design-rollout\/31180\/"},{"hreflang":"en-ae","url":"https:\/\/me-en.kaspersky.com\/blog\/adopting-cyberimmunity-for-ai-agent-design-rollout\/26212\/"},{"hreflang":"en-gb","url":"https:\/\/www.kaspersky.co.uk\/blog\/adopting-cyberimmunity-for-ai-agent-design-rollout\/31022\/"},{"hreflang":"x-default","url":"https:\/\/www.kaspersky.com\/blog\/adopting-cyberimmunity-for-ai-agent-design-rollout\/56619\/"},{"hreflang":"en-au","url":"https:\/\/www.kaspersky.com.au\/blog\/adopting-cyberimmunity-for-ai-agent-design-rollout\/36921\/"},{"hreflang":"en-za","url":"https:\/\/www.kaspersky.co.za\/blog\/adopting-cyberimmunity-for-ai-agent-design-rollout\/36592\/"}],"acf":[],"banners":"","maintag":{"url":"https:\/\/www.kaspersky.co.in\/blog\/tag\/ai\/","name":"AI"},"_links":{"self":[{"href":"https:\/\/www.kaspersky.co.in\/blog\/wp-json\/wp\/v2\/posts\/31180","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kaspersky.co.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kaspersky.co.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kaspersky.co.in\/blog\/wp-json\/wp\/v2\/users\/2706"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kaspersky.co.in\/blog\/wp-json\/wp\/v2\/comments?post=31180"}],"version-history":[{"count":0,"href":"https:\/\/www.kaspersky.co.in\/blog\/wp-json\/wp\/v2\/posts\/31180\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.kaspersky.co.in\/blog\/wp-json\/wp\/v2\/media\/31181"}],"wp:attachment":[{"href":"https:\/\/www.kaspersky.co.in\/blog\/wp-json\/wp\/v2\/media?parent=31180"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kaspersky.co.in\/blog\/wp-json\/wp\/v2\/categories?post=31180"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kaspersky.co.in\/blog\/wp-json\/wp\/v2\/tags?post=31180"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}