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. ThisPreToolUsehook triggers onWriteandEditoperations across any project the agent interacts with, executingacademic_gate_hook.pyto 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 intosh -cfor installation. - [COMMAND_EXECUTION]: Multiple scripts, including
env_preflight.py,install_gate_hook.py, andstate_manager.py, utilizesubprocess.runto 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.pyscript implements asanitize_fieldfunction 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