T02 · Agent Memory Poisoning
- Location
scripts/shared-context.py:23- Finding
Persistent Cross-Agent Context Poisoning Through Untrusted Shared Content
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill is transparent about sharing local files between agents, but it creates a persistent channel where one agent can influence what other agents do later without provenance or trust controls.
Install only in agent groups where all writers are trusted or where you can tolerate shared context influencing later actions. Treat trends, titles, URLs, and summaries as untrusted data, avoid letting shared context alone authorize public posting or sensitive actions, and consider adding per-agent write paths, provenance, length limits, and audit/approval controls before using it in cron-driven workflows.
scripts/shared-context.py:23Persistent Cross-Agent Context Poisoning Through Untrusted Shared Content
The skill explicitly instructs agents to read from and write to shared files, but it declares no tool scope or permission boundaries. In a multi-agent environment, undeclared file capabilities increase the chance that agents can access or modify shared state without clear user awareness, review, or restriction, which can enable prompt-injection persistence and unintended data tampering.
This skill is intentionally designed to persist cross-agent context in shared files so future agents read and act on prior outputs. That creates a session-persistence channel where untrusted or compromised agent output can influence later decisions, effectively propagating prompt injection, poisoned content, or malicious coordination across agents without direct messaging.
name: agent-relay
version: 1.0.0
description: |
Cross-agent context sharing via shared files. Agents write trends, highlights,
and signals to a shared folder. Other agents read before acting — creating
coordinated behavior without direct messaging.
Use when: multi-agent setups need coordination, agents should know what other
The skill includes commands that add data and delete entries via cleanup, but it does not warn users that running it will modify or remove shared JSON data used by other agents. Because this shared state influences later agent behavior, silent modification or deletion can cause integrity issues, coordination mistakes, or erase evidence of prior activity.
No suspicious patterns detected.