arxiv

Warn

Audited by Gen Agent Trust Hub on Nov 10, 2026

Risk Level: MEDIUMCOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
  • [COMMAND_EXECUTION]: The skill constructs shell commands using the $ARGUMENTS variable and the PAPER_DIR constant. The user-overridable directory path (- dir: PATH) is passed directly to mkdir -p without sanitization. An attacker providing a malicious path (e.g., "; touch RCE; #") could execute arbitrary shell commands. Similarly, the search query is placed inside shell command strings for the arxiv_fetch.py script call.
  • [DYNAMIC_EXECUTION]: The skill utilizes Python heredocs (`python3
  • <<'PYEOF') and command-line execution strings (python3 -c`) to run dynamically generated logic. This pattern executes code stored as string literals within the instruction set rather than from a static, verified source file.
  • [DYNAMIC_EXECUTION]: The skill implements logic to resolve the path of a script named arxiv_fetch.py at runtime by checking local directories, environment-variable-derived paths ($ARIS_REPO), and home directory locations. It then executes the resolved file, which is a form of dynamic loading from computed paths that can be exploited if an attacker gains write access to any of the checked locations.
  • [INDIRECT_PROMPT_INJECTION]: The skill fetches external data (paper titles and abstracts) from the arXiv API and incorporates it into the agent's context for summarization. This creates a vulnerability surface where a maliciously crafted arXiv paper could influence the agent's actions or bypass its safety protocols.
  • Ingestion points: arXiv API search results and paper details (titles, abstracts) in Step 2 and Step 3.
  • Boundary markers: The skill does not use explicit boundary markers or instructions to the agent to disregard potentially malicious commands embedded in the fetched text.
  • Capability inventory: The agent has capabilities for shell execution (mkdir), file system writes, and Python execution.
  • Sanitization: The skill performs minimal sanitization (newline removal) which is insufficient to prevent instruction injection.
  • [EXTERNAL_DOWNLOADS]: The skill downloads PDF files from arxiv.org. While arxiv.org is a well-known and generally trusted service for academic content, these downloads are initiated via shell commands and Python scripts that are subject to the injection risks noted above.
Audit Metadata
Risk Level
MEDIUM
Analyzed
Nov 10, 2026, 09:37 AM