general-sci-writing

Fail

Audited by Gen Agent Trust Hub on Oct 31, 2026

Risk Level: HIGHPERSISTENCEREMOTE_CODE_EXECUTIONCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
  • [PERSISTENCE]: The skill installs a persistent global hook into the agent's environment by modifying ~/.claude/settings.json. This PreToolUse hook triggers on Write and Edit operations across any project the agent interacts with, executing academic_gate_hook.py to enforce workflow steps defined in the skill's registry.
  • [REMOTE_CODE_EXECUTION]: The skill provides automated hints and instructions to download and execute a setup script for the EDirect toolset from the National Center for Biotechnology Information (ncbi.nlm.nih.gov). The pattern involves piping a remote shell script directly into sh -c for installation.
  • [COMMAND_EXECUTION]: Multiple scripts, including env_preflight.py, install_gate_hook.py, and state_manager.py, utilize subprocess.run to manage the lifecycle of the writing workflow, perform environment checks, and handle version control via git.
  • [INDIRECT_PROMPT_INJECTION]: The skill manages a significant surface for indirect prompt injection by ingesting manuscript drafts, scholarly citation metadata, and external API responses from databases like Crossref and PubMed.
  • Ingestion points: Processes user-provided manuscript files (manuscripts/*.md), literature indexes, and bibliographic data from external web APIs.
  • Boundary markers: Prompts for sub-agents (prep_subagent_prompt.md, section_writer_prompt.md) contain explicit instructions to treat任務包 (task package) content as data and ignore any embedded commands.
  • Capability inventory: The skill has extensive file system access (read/write/delete) and the ability to spawn subprocesses.
  • Sanitization: The context_guard_core.py script implements a sanitize_field function that uses regular expressions to strip invisible characters, control characters, and unauthorized patterns from ingested text before they are used in prompts.
Recommendations
  • HIGH: Downloads and executes remote code from: https://ftp.ncbi.nlm.nih.gov/entrez/entrezdirect/install-edirect.sh - DO NOT USE without thorough review
Audit Metadata
Risk Level
HIGH
Analyzed
Oct 31, 2026, 12:18 PM