APEX 100 · AI-Driven Cybersecurity · #057 · Agentic & Tool Layer — L3 · MCP + tool calls

Directive Injection into Agent Memory Layers

Agentic & Tool Layer · L3 · MCP + tool calls

Episodic and long-term memory are write targets the attacker reaches through ordinary interaction: a harmless session today writes the directive that fires next month. Memory is where indirect injection becomes persistent.

01Control Architecture

How it is defended

Memory-write gate (who/what/when) plus directive detection on the write path. Persistent store versioned and reversible; meta-loop persistent-poisoning tests prove the store can't hold a sleeping payload.

02Why It Breaks Naive Defenses

Episodic and long-term memory are write targets the attacker reaches through ordinary interaction: a harmless session today writes the directive that fires next month. Memory is where indirect injection becomes persistent. Memory-write gate (who/what/when) plus directive detection on the write path. Persistent store versioned and reversible; meta-loop persistent-poisoning tests prove the store can't hold a sleeping payload.

👤 Dr. Deepanjan Saha · Chief AI Security Red Team Principal & Chief Cybersecurity Architect (CAISO) · 15+ yrs · 47+ CVEs · 200+ pentests · 12 patents
📞 +91 98317 43870 · 💬 WhatsApp · ✉️ core.deepanjan@gmail.com · 🔗 LinkedIn: DRDEEPANJANSAHA · 🌐 drdeepanjansaha.github.io

Book the engagement that kills this, measured

Dr. Deepanjan Saha — Chief AI Security Red Team Principal & Chief Cybersecurity Architect. 15+ years · 47+ CVEs · 200+ pentests · 12 patents. Delivered as the release gate — a residual-risk number with a trend line, not a PDF.

03FAQ

How do attackers plant directives in agent memory?

Through unremarkable sessions that write the trigger for later. Gate every write, scan the write path for directives, version the store — memory is a controlled store, not a permanent backdoor.

How do you defend against directive injection into agent memory layers?

Memory-write gate (who/what/when) plus directive detection on the write path. Persistent store versioned and reversible; meta-loop persistent-poisoning tests prove the store can't hold a sleeping payload.

DR. DEEPANJAN SAHA · CHIEF AI SECURITY RED TEAM PRINCIPAL & CHIEF CYBERSECURITY ARCHITECT · AI-DRIVEN CYBERSECURITY · EST. 2010 · 47+ CVEs · 200+ PENTESTS · 12 PATENTS