MemGhost Framework and Stealth Memory Injection Risks
Score: 5/10

MemGhost Framework and Stealth Memory Injection Risks

The MemGhost framework automates stealth memory injection into persistent AI agents like OpenClaw, enabling long-term compromise via a single adversarial email.

Executive Summary

A new class of threat known as 'stealth memory injection' targets persistent personal AI agents, specifically OpenClaw, Claude Code SDK, and Hermes Agent. Attackers use the MemGhost framework to generate one-shot adversarial emails that induce agents to write false information into their long-term memory files (e.g., MEMORY.md, AGENTS.md) without user awareness. Unlike traditional prompt injections, this attack achieves persistence across future sessions and bypasses existing XPIA (Cross Prompt Injection Attempt) classifiers and Content Security Policies.

Technically, the attack chains multiple bypasses, including reference-style Markdown link redaction evasion and the abuse of trusted proxies like Microsoft Teams (CVE-2025-32711) for zero-click data exfiltration. The MemGhost framework uses reinforcement learning and shadow environment proxies to optimize payloads for conversational stealth, ensuring the agent's visible response remains non-diagnostic while the background state is compromised.

This trend represents a critical shift from session-based hijacking to permanent agent 'inception,' where the AI assistant becomes a long-term 'double agent.' Sectors relying on automated email processing or RAG-based AI assistants are at high risk for information integrity loss and financial fraud, such as the unauthorized modification of transaction limits or security policies.

Key Details

Threat Name

MEMGHOST Stealth Memory Injection

Affects

Microsoft 365 Copilot, Outlook, Teams

Adversary

—

Malware/Tools

OpenClaw, NanoClaw, Hermes Agent, Claude Code SDK, MemGhost, SpAIware, EchoLeak

Report Score

5out of 10
Quality Score
Fair
IOC Quality5
TTP Details5
Detection Guidance5
Enterprise Relevance5
Clarity & Structure5
Technical Depth5

Sources