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_treeinscripts/latex_scanner.pyandparse_bib_fileinscripts/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-apitask directory and a user-specifiedreferencesdirectory. - Sanitization:
scripts/runtime_utils.pyincludes logic to strip LaTeX comments and sanitize verbatim environments, reducing the likelihood of accidental obedience to embedded instructions. - [EXTERNAL_DOWNLOADS]: The
scripts/online_verify.pyscript 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