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-attachmentaction inscripts/actions/attachment.cjsenables the agent to read arbitrary files from the local filesystem usingfs.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 theupload-attachmentcommand lacks path validation, an attacker could manipulate the agent (via prompt injection) to read and transmit sensitive files such as~/.ssh/id_rsa,.envfiles, or cloud provider credentials (e.g.,~/.aws/credentials).\n- [DYNAMIC_EXECUTION]: Inreferences/actions-comment.mdandreferences/known-issues.md, the skill instructs the agent to generate temporary.cjsfiles 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 inscripts/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 (DELETEAPI calls), and create/update content on the remote server.\n - Sanitization: While
scripts/sanitize.cjsredacts 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 sensitiveMEMOS_ACCESS_TOKEN. Althoughscripts/sanitize.cjsattempts to redact this token from logs, the script's instruction to generate temporary files thatrequirethe 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