nsfc-proposal

Fail

Audited by Gen Agent Trust Hub on Oct 31, 2026

Risk Level: HIGHINDIRECT_PROMPT_INJECTIONREMOTE_CODE_EXECUTIONCOMMAND_EXECUTIONPERSISTENCE
Full Analysis
  • [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted external data from user-supplied manuscript drafts (.docx, .pdf, .md) and bibliography files in the data/ directory. This creates a surface for indirect prompt injection. Mitigations include explicit 'Data and Instruction Isolation' prompts for sub-agents in references/section_writer_prompt.md and references/prep_subagent_prompt.md. Additionally, scripts/context_guard_core.py implements a robust sanitize_field function that uses regular expressions to strip invisible characters and filter inputs against a whitelist before they are interpolated into prompts.
  • [REMOTE_CODE_EXECUTION]: The skill's instructions and environment setup script (scripts/env_preflight.py) include a command to download and execute an installation script for Entrez Direct (edirect) from the National Center for Biotechnology Information (NCBI) at https://ftp.ncbi.nlm.nih.gov. NCBI is a well-known academic service provided by the US National Institutes of Health (NIH), and the tool is used legitimately for bibliographic database queries.
  • [COMMAND_EXECUTION]: Multiple scripts utilize the Python subprocess module to execute system commands for project management. These include git for version control, pandoc for document format conversion, and academic CLI tools like esearch for PubMed queries. These operations are intended for the skill's primary functionality but allow for arbitrary command execution if project state files are manipulated.
  • [PERSISTENCE]: The skill implements a persistence mechanism by installing a PreToolUse hook into the user's ~/.claude/settings.json file via scripts/install_gate_hook.py. This hook executes scripts/academic_gate_hook.py across sessions to enforce 'Structure Sign-off' gates, preventing the agent from autonomously drafting manuscript sections until the user has explicitly confirmed the project structure and outline.
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:17 PM