Cybersecurity news

Jessica Doner

Back to the list

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

CSO Online,

Researchers demonstrated a technique that lets hackers plant hidden instructions in an AI agent's memory with a single prompt to influence future responses.

AI and security

Overview

Researchers from Shanghai Jiao Tong University and Ant Group demonstrated a new attack technique called InjecMEM that allows hackersA person who explores and manipulates computer systems, either as a criminal intruder or a security researcher to plant hidden instructions in an AI agent's memory using a single promptThe text instruction or question a user or program sends to an artificial intelligence model. This method targets AI systems that store past interactions and reuse them during future tasks, enabling malicious content to persist and affect later outputs. The study evaluated the technique on a memory system called MemoryOS along with an agent framework, MemGPT, showing how injected records can be retrieved and incorporated into subsequent responses. On MemoryOS, InjecMEM achieved up to 35.4% retrieval success rate and 76.6% attack success rate, substantially outperforming baselineThe minimum set of security settings and rules every machine or account in an organization must meet attacks. Unlike traditional prompt injectionHiding instructions inside text or data so an AI model ignores its rules and obeys the attacker attacks that only affect the current interaction, this technique allows attacker-controlled content to remain in the system's memory and be reused later. Organizations using AI agentsArtificial intelligence software that can plan steps, call tools, and take actions on its own that store and retrieve past interactions are affected because malicious content can steer the responses of related queries across different sessionsAn active logged-in period of communication between a user or device and a server.

Terms in this story

hackers
A person who explores and manipulates computer systems, either as a criminal intruder or a security researcher. In news headlines, the word hacker usually means an unauthorized intruder, though the security community also uses it for researchers who find and fix flaws.
prompt
The text instruction or question a user or program sends to an artificial intelligence model. In AI security news, a prompt includes both the visible question typed by a user and the hidden instructions that an attacker might embed in a web page.
baseline
The minimum set of security settings and rules every machine or account in an organization must meet. System administrators compare server settings against a security baseline and also track normal network traffic as a behavioral baseline so sudden spikes stand out.
prompt injection
Hiding instructions inside text or data so an AI model ignores its rules and obeys the attacker. An attacker might hide invisible text on a web page or inside an email so that when an AI assistant summarizes it, the assistant forwards private data to the attacker.
AI agents
Artificial intelligence software that can plan steps, call tools, and take actions on its own. Many stories cover agentic AI when companies connect language models to email, browsers, and databases, creating new risks if a hidden prompt tricks the agent into leaking data.
sessions
An active logged-in period of communication between a user or device and a server. Once you log in to a website, the server tracks your session so you can click from page to page without retyping your password on every screen.
red-teaming
An exercise where security specialists mimic a real adversary to test an organization's people, networks, and detection. Unlike a standard scan that checks one app for bugs, red teaming simulates a full campaign with phishing, lateral movement, and privilege escalation to see how the defending team responds. Security+ objective 5.5 lists the term
domains
The human-readable name for a website or a centrally managed group of workplace computers. In security stories, domain refers either to a web address that criminals register for phishing or to an organization's internal computer network managed by a central server.
persistence
The tricks an attacker uses to keep access to a computer after a reboot or password change. To maintain persistence on an infected laptop, malware might add itself to the startup folder or create a hidden scheduled task that runs every time the machine turns on.

This page is a short description made for this site. The article itself, with its author's name and its own link, is on the CSO Online website. Cite the article, not this page.

Read the full article on CSO Online (opens in a new tab)

Course connections

Each line below connects this story to a Security+ objective (a skill on CompTIA's Security+ exam, a common first cybersecurity certification), a CYBR 101 week, or a cybersecurity job, and quotes the words that made the connection.

How a story is connected to the course, and every objective, week and job role

Related