skills/tnnevol/skills/memos/Gen Agent Trust Hub

memos

Fail

Audited by Gen Agent Trust Hub on Oct 31, 2026

Risk Level: HIGHCOMMAND_EXECUTIONDATA_EXFILTRATIONINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTIONCREDENTIALS_UNSAFE
Full Analysis
  • [COMMAND_EXECUTION]: The upload-attachment action in scripts/actions/attachment.cjs enables the agent to read arbitrary files from the local filesystem using fs.readFileSync. This capability is not restricted to specific directories or file types.\n- [DATA_EXFILTRATION]: The skill facilitates the exfiltration of local files to a remote Memos server. Since the upload-attachment command lacks path validation, an attacker could manipulate the agent (via prompt injection) to read and transmit sensitive files such as ~/.ssh/id_rsa, .env files, or cloud provider credentials (e.g., ~/.aws/credentials).\n- [DYNAMIC_EXECUTION]: In references/actions-comment.md and references/known-issues.md, the skill instructs the agent to generate temporary .cjs files and execute them using the system's JavaScript runtime to bypass shell escaping issues. This pattern of generating and executing code at runtime is a significant security risk as it can be exploited to run arbitrary commands.\n- [INDIRECT_PROMPT_INJECTION]: The skill fetches note content, comments, and tags from a remote Memos instance, which are then processed by the agent. This untrusted data provides a surface for indirect prompt injection attacks where malicious instructions embedded in a note could influence the agent's behavior.\n
  • Ingestion points: Memo listings and details fetched in scripts/actions/memo.cjs, and comment lists in scripts/actions/comment.cjs.\n
  • Boundary markers: None identified in the instructions for processing remote content.\n
  • Capability inventory: The agent has capabilities to read files (fs.readFileSync), delete resources (DELETE API calls), and create/update content on the remote server.\n
  • Sanitization: While scripts/sanitize.cjs redacts secrets from API error messages, it does not sanitize or validate the content retrieved from the Memos instance before it is presented to the agent.\n- [CREDENTIALS_UNSAFE]: The skill manages a sensitive MEMOS_ACCESS_TOKEN. Although scripts/sanitize.cjs attempts to redact this token from logs, the script's instruction to generate temporary files that require the environment loader (scripts/env.cjs) could lead to accidental exposure or theft of the token if those temporary files are intercepted or mismanaged.
Recommendations
  • AI detected serious security threats
Audit Metadata
Risk Level
HIGH
Analyzed
Oct 31, 2026, 01:37 PM