nsfc-qc

Pass

Audited by Gen Agent Trust Hub on Oct 27, 2026

Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTION
Full Analysis
  • [COMMAND_EXECUTION]: The skill uses subprocess.run() across multiple scripts to orchestrate its workflow. scripts/nsfc_qc_run.py and scripts/run_parallel_qc.py execute other internal Python scripts, while scripts/nsfc_qc_compile.py invokes standard LaTeX tools including xelatex and bibtex to test project compilation. These commands are executed as lists without using a shell, significantly reducing the risk of command injection.
  • [EXTERNAL_DOWNLOADS]: The scripts/nsfc_qc_precheck.py script performs network operations to fetch paper metadata from official academic APIs including Crossref (api.crossref.org), arXiv (export.arxiv.org), and Unpaywall (api.unpaywall.org). If enabled, it also downloads Open Access (OA) PDFs from these sources to extract text for verification. These references are used to validate the bibliography in the user's project.
  • [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted external data by fetching paper titles and abstracts from academic APIs and including them in the context for secondary LLM analysis threads (orchestrated via parallel-vibe). While the skill defines clear instructional boundaries and uses the data for reference validation, the inclusion of external, non-user-controlled text in prompts presents a potential surface for indirect prompt injection.
  • Ingestion points: Fetches paper metadata (titles, abstracts) via academic APIs in nsfc_qc_precheck.py; reads *.tex and *.bib source files from the project.
  • Boundary markers: The _mk_thread_prompt function in scripts/run_parallel_qc.py uses specific headers (e.g., '证据包') and clear execution structures to isolate external evidence from instructions.
  • Capability inventory: The skill can execute local LaTeX tools via subprocess.run() and orchestrate multiple LLM threads.
  • Sanitization: The skill extracts specific structured fields (title, abstract) which acts as a filter, but it does not apply specific prompt-injection escaping to the retrieved text.
Audit Metadata
Risk Level
SAFE
Analyzed
Oct 27, 2026, 08:12 AM