content-memory
Fail
Audited by Gen Agent Trust Hub on Mar 2, 2026
Risk Level: HIGHREMOTE_CODE_EXECUTIONCOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [REMOTE_CODE_EXECUTION]: The script
convert_to_markdown.pycontains a function_load_transformersthat dynamically imports and executes Python modules from file paths. - The function searches for
.pyfiles inmemory/<domain>/transformers/and.content-memory/transformers/. - It uses
importlib.util.spec_from_file_locationandspec.loader.exec_module(mod)to load these files and then calls aconvertfunction defined within them. - This mechanism allows for the execution of arbitrary code if a user or an automated process (like the skill's own sync feature) places a malicious Python script in those directories.
- [COMMAND_EXECUTION]: The script
sync_and_chunk.pyutilizessubprocess.runto invoke secondary scripts. - It programmatically executes
chunk_markdown.pyusing the current Python interpreter (sys.executable). - While the target script is internal to the skill, this pattern establishes a capability for spawning new processes and executing shell commands.
- [PROMPT_INJECTION]: The skill's primary function is to ingest, convert, and chunk external document formats (PDF, DOCX, PPTX) for use in an agent's memory, which is a vector for indirect prompt injection.
- Ingestion points: Files are ingested from the
workspace/andsource/directories inconvert_to_markdown.pyandsync_and_chunk.py. - Boundary markers: The scripts append a source reference header (e.g.,
<!-- Source: path | url -->) to the converted markdown, but they do not include explicit 'ignore instructions' delimiters or warnings to prevent the agent from obeying instructions found within the documents. - Capability inventory: The skill has the capability to write to the local filesystem, execute subprocesses, and dynamically load Python code.
- Sanitization: There is no evidence of sanitization, filtering, or validation performed on the text content extracted from external documents before it is stored in the memory partitions accessed by the agent.
Recommendations
- AI detected serious security threats
Audit Metadata