citation-management

Pass

Audited by Gen Agent Trust Hub on Nov 17, 2026

Risk Level: SAFEINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
  • [DYNAMIC_EXECUTION]: Multiple scripts, including extract_metadata.py, search_openalex.py, and search_pubmed.py, utilize the __import__ function to load the standard pathlib library. This is used for robust path management, ensuring the shared _common.py module can be imported regardless of the script's execution directory. This is a common and benign developer practice.
  • [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted bibliographic metadata (such as titles and abstracts) retrieved from external academic APIs. This presents an indirect prompt injection surface where malicious content embedded in publication records could attempt to influence the agent.
  • Ingestion points: Untrusted data enters the agent context via extract_metadata.py, search_pubmed.py, and search_openalex.py when fetching records from APIs like CrossRef and PubMed.
  • Boundary markers: The skill provides explicit security warnings in SKILL.md and references/core_workflow.md, instructing the agent to treat metadata as untrusted and avoid direct shell interpolation.
  • Capability inventory: The skill is configured to use Bash and WebFetch tools, providing a surface for command execution if metadata is handled incorrectly.
  • Sanitization: The skill includes a sanitize_key function in _common.py that filters citation keys to alphanumeric characters. The documentation also mandates the use of subprocess argument lists instead of shell strings to mitigate injection risks.
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 17, 2026, 12:25 PM