nsfc-ref-alignment

Pass

Audited by Gen Agent Trust Hub on Oct 27, 2026

Risk Level: SAFEINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
  • [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted user-provided LaTeX (.tex) and BibTeX (.bib) files to extract citation data. This presents an indirect prompt injection surface where malicious instructions or deceptive metadata could be embedded in the scientific text or bibliography fields to influence the AI's semantic verification logic.
  • Ingestion points: Files are read via discover_tex_dependency_tree in scripts/latex_scanner.py and parse_bib_file in scripts/bib_utils.py.
  • Boundary markers: The skill uses a structured JSON intermediate format (ai_ref_alignment_input.json) to pass data to the AI, which helps maintain context separation.
  • Capability inventory: The skill is explicitly read-only for project source files, with write operations restricted to a dedicated .bensz-api task directory and a user-specified references directory.
  • Sanitization: scripts/runtime_utils.py includes logic to strip LaTeX comments and sanitize verbatim environments, reducing the likelihood of accidental obedience to embedded instructions.
  • [EXTERNAL_DOWNLOADS]: The scripts/online_verify.py script performs network requests to the Crossref (api.crossref.org) and OpenAlex (api.openalex.org) APIs. These are well-known, authoritative academic services used specifically to verify DOI metadata, which is consistent with the skill's primary purpose. No executable code is downloaded or executed via these channels.
Audit Metadata
Risk Level
SAFE
Analyzed
Oct 27, 2026, 08:12 AM