<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/new-attack-lets-hackers-plant-hidden-instructions-in-ai-memory-with-a-single-prompt-m5onlbsa9" -->

---
title: New attack lets hackers plant hidden instructions in AI...
description: Researchers from Shanghai Jiao Tong University and Ant Group demonstrated InjecMEM, an attack technique that plants hidden instructions into an AI agent's...
canonical: https://daily.dev/posts/new-attack-lets-hackers-plant-hidden-instructions-in-ai-memory-with-a-single-prompt-m5onlbsa9
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: New attack lets hackers plant hidden instructions in AI memory with a single prompt | daily.dev
og:description: Researchers from Shanghai Jiao Tong University and Ant Group demonstrated InjecMEM, an attack technique that plants hidden instructions into an AI agent's...
og:url: https://daily.dev/posts/new-attack-lets-hackers-plant-hidden-instructions-in-ai-memory-with-a-single-prompt-m5onlbsa9
og:image: https://api.daily.dev/og/posts/m5ONlbsa9.png
og:image:alt: New attack lets hackers plant hidden instructions in AI memory with a single prompt
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# New attack lets hackers plant hidden instructions in AI memory with a single prompt

**[CSO Online](https://daily.dev/sources/csoonline)** · 5 min read · 1 upvotes · 0 comments

## Summary

Researchers from Shanghai Jiao Tong University and Ant Group demonstrated InjecMEM, an attack technique that plants hidden instructions into an AI agent's memory using a single interaction, without needing read or write access to the memory store. Tested on MemoryOS and MemGPT, the attack achieved up to a 35.4% retrieval success rate and 76.6% attack success rate, allowing attacker-controlled content to persist and influence responses across future sessions rather than just the current conversation. Security researcher Vibhum Dubey notes this shifts AI memory into a security boundary that enterprises must actively govern, since most current defenses filter prompts and outputs but not stored memory.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.csoonline.com/article/4213632/new-attack-lets-hackers-plant-hidden-instructions-in-ai-memory-with-a-single-prompt.html>

## Questions this post answers

### What is the InjecMEM attack and how does it differ from regular prompt injection?

InjecMEM is a red-teaming attack technique that plants hidden malicious content into an AI agent's memory using a single interaction, without needing direct access to the memory store. Unlike traditional prompt injection, which only affects the current conversation, InjecMEM persists across sessions because memory systems retrieve stored content later based on relevance, letting the attacker influence future unrelated queries.

_daily.dev surfaces research like this for teams evaluating how to secure AI agent memory against poisoning._

### How effective was the InjecMEM attack against the MemoryOS system?

Against MemoryOS, InjecMEM achieved up to a 35.4% retrieval success rate and a 76.6% attack success rate, substantially outperforming baseline attacks. Researchers from Shanghai Jiao Tong University and Ant Group also tested the technique against the MemGPT agent framework across several domains to show injected records could be retrieved and reused in later responses.

_Teams benchmarking agent memory defenses can track findings like these through daily.dev._

### Why don't existing AI security defenses catch memory poisoning attacks like InjecMEM?

Existing defenses primarily filter inputs and outputs at the moment of interaction, but malicious content injected into memory can appear benign when first introduced and only influence behavior when retrieved later. Security researcher Vibhum Dubey noted that most controls focus on the prompt and model input while memory sits further down the application stack, largely unmonitored for who can write to it or how poisoned entries get identified and removed.

_Developers hardening agent architectures can follow emerging memory-security guidance via daily.dev._

## Similar posts on daily.dev

- [Your AI’s Memory Is Not a Diary. It’s a Target.](https://daily.dev/posts/your-ai-s-memory-is-not-a-diary-it-s-a-target--ybcyihj8j) · Medium · 0 upvotes · 0 comments
- [Prompt Injection Attacks In Agentic AI Security Risks](https://daily.dev/posts/prompt-injection-attacks-in-agentic-ai-security-risks-0poqxk9z7) · Cyble · 1 upvotes · 0 comments
- [Schneier on Security](https://daily.dev/posts/schneier-on-security-jadoaksxv) · Schneier on Security · 0 upvotes · 0 comments
- [Your Agent’s Memory Is a Liability: Defending Against Context Poisoning in Persistent AI Systems](https://daily.dev/posts/your-agent-s-memory-is-a-liability-defending-against-context-poisoning-in-persistent-ai-systems-v3mtyis8r) · gitconnected · 1 upvotes · 0 comments

---

Tags: [#security](https://daily.dev/tags/security), [#ai-agents](https://daily.dev/tags/ai-agents), [#prompt-injection](https://daily.dev/tags/prompt-injection), [#red-teaming](https://daily.dev/tags/red-teaming)

[View this post on daily.dev](https://daily.dev/posts/new-attack-lets-hackers-plant-hidden-instructions-in-ai-memory-with-a-single-prompt-m5onlbsa9)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"New attack lets hackers plant hidden instructions in AI memory with a single prompt","url":"https://daily.dev/posts/new-attack-lets-hackers-plant-hidden-instructions-in-ai-memory-with-a-single-prompt-m5onlbsa9","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/new-attack-lets-hackers-plant-hidden-instructions-in-ai-memory-with-a-single-prompt-m5onlbsa9"},"datePublished":"2026-08-25T12:05:51.946Z","dateModified":"2026-09-14T07:19:50.468Z","description":"Researchers from Shanghai Jiao Tong University and Ant Group demonstrated InjecMEM, an attack technique that plants hidden instructions into an AI agent's...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c7c7354466a1a856f951b12d6f826d74?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c7c7354466a1a856f951b12d6f826d74?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"CSO Online","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"CSO Online","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/98667e4b5cac46cf9c470819c6cf71cd","url":"https://daily.dev/sources/csoonline"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/new-attack-lets-hackers-plant-hidden-instructions-in-ai-memory-with-a-single-prompt-m5onlbsa9","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"security,ai-agents,prompt-injection,red-teaming","timeRequired":"PT5M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"CSO Online","item":"https://daily.dev/sources/csoonline"},{"@type":"ListItem","position":3,"name":"New attack lets hackers plant hidden instructions in AI memory with a single prompt"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/new-attack-lets-hackers-plant-hidden-instructions-in-ai-memory-with-a-single-prompt-m5onlbsa9#faq","mainEntity":[{"@type":"Question","name":"What is the InjecMEM attack and how does it differ from regular prompt injection?","acceptedAnswer":{"@type":"Answer","text":"InjecMEM is a red-teaming attack technique that plants hidden malicious content into an AI agent's memory using a single interaction, without needing direct access to the memory store. Unlike traditional prompt injection, which only affects the current conversation, InjecMEM persists across sessions because memory systems retrieve stored content later based on relevance, letting the attacker influence future unrelated queries. daily.dev surfaces research like this for teams evaluating how to secure AI agent memory against poisoning."}},{"@type":"Question","name":"How effective was the InjecMEM attack against the MemoryOS system?","acceptedAnswer":{"@type":"Answer","text":"Against MemoryOS, InjecMEM achieved up to a 35.4% retrieval success rate and a 76.6% attack success rate, substantially outperforming baseline attacks. Researchers from Shanghai Jiao Tong University and Ant Group also tested the technique against the MemGPT agent framework across several domains to show injected records could be retrieved and reused in later responses. Teams benchmarking agent memory defenses can track findings like these through daily.dev."}},{"@type":"Question","name":"Why don't existing AI security defenses catch memory poisoning attacks like InjecMEM?","acceptedAnswer":{"@type":"Answer","text":"Existing defenses primarily filter inputs and outputs at the moment of interaction, but malicious content injected into memory can appear benign when first introduced and only influence behavior when retrieved later. Security researcher Vibhum Dubey noted that most controls focus on the prompt and model input while memory sits further down the application stack, largely unmonitored for who can write to it or how poisoned entries get identified and removed. Developers hardening agent architectures can follow emerging memory-security guidance via daily.dev."}}]}
```

