iai-mcp-memory-server
Fail
Audited by Gen Agent Trust Hub on Sep 16, 2026
Risk Level: HIGHEXTERNAL_DOWNLOADSREMOTE_CODE_EXECUTIONPERSISTENCECOMMAND_EXECUTIONDATA_EXFILTRATIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [EXTERNAL_DOWNLOADS]: The skill instructs the user to clone a repository from a third-party source not listed as a trusted vendor.
- Evidence:
git clone https://github.com/CodeAbra/iai-mcp.gitinSKILL.md. - [REMOTE_CODE_EXECUTION]: The installation process involves executing a shell script downloaded from an external repository, which can perform arbitrary actions on the host system.
- Evidence:
bash scripts/install.shexecuted after cloning the repository inSKILL.md. - [PERSISTENCE]: The skill uses multiple methods to ensure its components run persistently and automatically.
- Evidence: It modifies shell profiles (
~/.zshrcor~/.bashrc) to alter the systemPATH. - Evidence: It registers a daemon with
launchdon macOS during the installation process. - Evidence: It installs lifecycle hooks to
~/.claude/hooks/(iai-mcp-turn-capture.sh,iai-mcp-session-capture.sh,iai-mcp-session-recall.sh) which execute automatically during agent startup, prompt submission, and session termination. - [COMMAND_EXECUTION]: The skill utilizes system-level commands to manage processes and interact with the operating system.
- Evidence: Use of
killall -9 iai-mcp-daemonto force-terminate processes. - Evidence: Programmatic execution of CLI tools via
subprocess.run(["iai-mcp", "query", text, "--json"]). - [DATA_EXFILTRATION]: While the skill claims local-only operation, it establishes a mechanism to capture and store all conversation turns verbatim, creating a high-value data store. It also provides explicit examples of how to send this data to external servers.
- Evidence: Pattern 4 in
SKILL.mddemonstrates usingcurlto POST exported memory data tohttps://my-backup.example.com/syncusing a bearer token. - [INDIRECT_PROMPT_INJECTION]: The skill creates a feedback loop where previous conversation content is stored and then re-injected into future sessions, which is a primary surface for indirect prompt injection attacks.
- Ingestion points: Conversation turns are captured via
~/.claude/hooks/iai-mcp-turn-capture.sh(SKILL.md). - Boundary markers: No explicit boundary markers or "ignore embedded instructions" warnings are documented for the recalled context.
- Capability inventory: The skill possesses file write capabilities, shell command execution via hooks, and the ability to inject arbitrary text into the agent's context during
SessionStart. - Sanitization: The documentation does not mention any sanitization or filtering of the recalled memory content before it is provided back to the AI model.
Recommendations
- AI detected serious security threats
Audit Metadata