We Built Agents That Cannot Tell the Difference Between Instructions and Attacks.

📰 Medium · Cybersecurity

Learn how AI agents can be vulnerable to attacks due to their inability to distinguish between instructions and malicious inputs, and understand the importance of building defenses against such threats.

advanced Published 27 Apr 2026
Action Steps
  1. Build a threat model to identify potential vulnerabilities in AI agents
  2. Implement robust security protocols to distinguish between legitimate instructions and attacks
  3. Deploy defense mechanisms to prevent exploitation of AI agents
  4. Conduct regular security audits to ensure the integrity of AI systems
  5. Develop incident response plans to mitigate the impact of potential attacks
Who Needs to Know This

This article is relevant to cybersecurity teams, AI engineers, and data scientists who work with sensitive data and AI systems. It highlights the potential risks of deploying AI agents without proper security measures and the need for defense strategies.

Key Insight

💡 The financial cost of the gap between building AI agents, deploying them, and building defenses is a critical metric that can prevent costly mistakes.

Share This
🚨 AI agents can't tell instructions from attacks! 🚨 Learn how to build defenses against these threats and protect your sensitive data. #AI #Cybersecurity #Defense

Key Takeaways

Learn how AI agents can be vulnerable to attacks due to their inability to distinguish between instructions and malicious inputs, and understand the importance of building defenses against such threats.

Full Article

Title: We Built Agents That Cannot Tell the Difference Between Instructions and Attacks.

URL Source: https://medium.com/@firalim/we-built-agents-that-cannot-tell-the-difference-between-instructions-and-attacks-cb9b12b2b2a7?source=rss------cybersecurity-5

Published Time: 2026-04-27T01:00:05Z

Markdown Content:
# We Built Agents That Cannot Tell the Difference Between Instructions and Attacks. Then We Deployed Them Across Our Most Sensitive Data. Now Someone Is Building a Defence. The Financial Cost of the Gap Between These Three Events Is the Number That Should Have Prevented the Second One. | by Firuz Alimov | Apr, 2026 | Medium

[Sitemap](https://medium.com/sitemap/sitemap.xml)

[Open in app](https://play.google.com/store/apps/details?id=com.medium.reader&referrer=utm_source%3DmobileNavBar&source=post_page---top_nav_layout_nav-----------------------------------------)

Sign up

[Sign in](https://medium.com/m/signin?operation=login&redirect=https%3A%2F%2Fmedium.com%2F%40firalim%2Fwe-built-agents-that-cannot-tell-the-difference-between-instructions-and-attacks-cb9b12b2b2a7&source=post_page---top_nav_layout_nav-----------------------global_nav------------------)

[](https://medium.com/?source=post_page---top_nav_layout_nav-----------------------------------------)

Get app

[Write](https://medium.com/m/signin?operation=register&redirect=https%3A%2F%2Fmedium.com%2Fnew-story&source=---top_nav_layout_nav-----------------------new_post_topnav------------------)

[Search](https://medium.com/search?source=post_page---top_nav_layout_nav-----------------------------------------)

Sign up

[Sign in](https://medium.com/m/signin?operation=login&redirect=https%3A%2F%2Fmedium.com%2F%40firalim%2Fwe-built-agents-that-cannot-tell-the-difference-between-instructions-and-attacks-cb9b12b2b2a7&source=post_page---top_nav_layout_nav-----------------------global_nav------------------)

![Image 1](https://miro.medium.com/v2/resize:fill:32:32/1*dmbNkD5D-u45r44go_cf0g.png)

# **We Built Agents That Cannot Tell the Difference Between Instructions and Attacks. Then We Deployed Them Across Our Most Sensitive Data. Now Someone Is Building a Defence. The Financial Cost of the Gap Between These Three Events Is the Number That Should Have Prevented the Second One.**

[![Image 2: Firuz Alimov](https://miro.medium.com/v2/resize:fill:32:32/1*zT3pcygxaBHSdnVo9ibqVA.png)](https://medium.com/@firalim?source=post_page---byline--cb9b12b2b2a7---------------------------------------)

[Firuz Alimov](https://medium.com/@firalim?source=post_page---byline--cb9b12b2b2a7---------------------------------------)

Follow

25 min read

·

Just now

[](https://medium.com/m/signin?actionUrl=https%3A%2F%2Fmedium.com%2F_%2Fvote%2Fp%2Fcb9b12b2b2a7&operation=register&redirect=https%3A%2F%2Fmedium.com%2F%40firalim%2Fwe-built-agents-that-cannot-tell-the-difference-between-instructions-and-attacks-cb9b12b2b2a7&user=Firuz+Alimov&userId=4e7bee021b35&source=---header_actions--cb9b12b2b2a7---------------------clap_footer------------------)

[](https://medium.com/m/signin?actionUrl=https%3A%2F%2Fmedium.com%2F_%2Fbookmark%2Fp%2Fcb9b12b2b2a7&operation=register&redirect=https%3A%2F%2Fmedium.com%2F%40firalim%2Fwe-built-agents-that-cannot-tell-the-difference-between-instructions-and-attacks-cb9b12b2b2a7&source=---header_actions--cb9b12b2b2a7---------------------bookmark_footer------------------)

[Listen](https://medium.com/m/signin?actionUrl=https%3A%2F%2Fmedium.com%2Fplans%3Fdimension%3Dpost_audio_button%26postId%3Dcb9b12b2b2a7&operation=register&redirect=https%3A%2F%2Fmedium.com%2F%40firalim%2Fwe-built-agents-that-cannot-tell-the-difference-between-instructions-and-attacks-cb9b12b2b2a7&source=---header_actions--cb9b12b2b2a7---------------------post_audio_button------------------)

Share

Press enter or click to view image in full size

![Image 3](https://miro.medium.com/v2/resize:fit:700/1*Wg0lBSgu3_gZjbRiTkVRzg.png)

We have already established the problem. An AI agent connected to your email
Read full article → ← Back to Reads

Related Videos

How LLMs Use Tools | Tool Binding & Tool Calling in LangChain Explained | @SCALER
How LLMs Use Tools | Tool Binding & Tool Calling in LangChain Explained | @SCALER
SCALER
Google I/O Revealed This Critical AI Security Flaw
Google I/O Revealed This Critical AI Security Flaw
SCALER
Report Generation Agent | Explained in Tamil | Deep Research Agent | AI Agents | GenAI | Agentic AI
Report Generation Agent | Explained in Tamil | Deep Research Agent | AI Agents | GenAI | Agentic AI
AI with Akash
9. Supervisor Agent Implementation - Agent 2 | Explained in Tamil | AI Agents | GenAI | Agentic AI
9. Supervisor Agent Implementation - Agent 2 | Explained in Tamil | AI Agents | GenAI | Agentic AI
AI with Akash
8. Supervisor Agent - Agent 3 Overview | Explained in Tamil | AI Agents | GenAI | Agentic AI
8. Supervisor Agent - Agent 3 Overview | Explained in Tamil | AI Agents | GenAI | Agentic AI
AI with Akash
Context Engineering - Research Agent - Agent 2 | Explained in Tamil | AI Agents | GenAI | Agentic AI
Context Engineering - Research Agent - Agent 2 | Explained in Tamil | AI Agents | GenAI | Agentic AI
AI with Akash