mem2
Fail
Audited by Gen Agent Trust Hub on Mar 21, 2026
Risk Level: HIGHEXTERNAL_DOWNLOADSREMOTE_CODE_EXECUTIONCOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [EXTERNAL_DOWNLOADS]: The skill uses
npxto download and execute the@codevoyant/agent-kitpackage. This package name does not match the expected naming patterns for the authorcloudvoyant(which would be@cloudvoyant/*orcloudvoyant-*), identifying it as an unverified external dependency. - [REMOTE_CODE_EXECUTION]: The skill performs remote code execution by running the unverified
@codevoyant/agent-kitpackage vianpxacross multiple commands. Additionally, theinitcommand incommands/init.mdestablishes persistence by adding a prompt hook to.claude/settings.jsonthat automatically executes this remote package whenever a user submits a prompt. - [COMMAND_EXECUTION]: The skill interpolates user-derived strings directly into shell commands without explicit sanitization. This occurs in
commands/find.mdandcommands/learn.mdwhere inferredtypeandtagvalues are passed to the CLI tool vianpx @codevoyant/agent-kit mem find --type <type> --tag <tag>, potentially allowing for command injection if these values contain shell metacharacters. - [PROMPT_INJECTION]: The skill is vulnerable to indirect prompt injection through its knowledge management workflow.
- Ingestion points: Knowledge content provided by the user in
commands/learn.mdis captured and saved to markdown files on the local filesystem. - Boundary markers: Absent; the skill does not use delimiters or instructions to isolate stored knowledge content from the rest of the agent's context during retrieval.
- Capability inventory: The skill possesses significant capabilities, including shell command execution (
npx), filesystem write access, and the ability to modify agent configuration files likeCLAUDE.mdand.claude/settings.json. - Sanitization: No sanitization, escaping, or validation is performed on the user-provided knowledge content before it is stored or subsequently loaded back into the active context during "recall" or "remember" operations.
Recommendations
- AI detected serious security threats
Audit Metadata