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 inreferences/section_writer_prompt.mdandreferences/prep_subagent_prompt.md. Additionally,scripts/context_guard_core.pyimplements a robustsanitize_fieldfunction 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) athttps://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
subprocessmodule to execute system commands for project management. These includegitfor version control,pandocfor document format conversion, and academic CLI tools likeesearchfor 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
PreToolUsehook into the user's~/.claude/settings.jsonfile viascripts/install_gate_hook.py. This hook executesscripts/academic_gate_hook.pyacross 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