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, andsearch_pubmed.py, utilize the__import__function to load the standardpathliblibrary. This is used for robust path management, ensuring the shared_common.pymodule 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, andsearch_openalex.pywhen fetching records from APIs like CrossRef and PubMed. - Boundary markers: The skill provides explicit security warnings in
SKILL.mdandreferences/core_workflow.md, instructing the agent to treat metadata as untrusted and avoid direct shell interpolation. - Capability inventory: The skill is configured to use
BashandWebFetchtools, providing a surface for command execution if metadata is handled incorrectly. - Sanitization: The skill includes a
sanitize_keyfunction in_common.pythat filters citation keys to alphanumeric characters. The documentation also mandates the use ofsubprocessargument lists instead of shell strings to mitigate injection risks.
Audit Metadata