literature-matrix-builder
Pass
Audited by Gen Agent Trust Hub on Oct 2, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted research data (titles and abstracts) which could contain hidden instructions. It implements a robust defense-in-depth approach:
- Ingestion points: Data is ingested via
scripts/litmatrix.pyfrom the CrossRef API and local PDF files, and viascripts/screen_cascade.pyfrom CSV records. - Boundary markers: The LLM requests in
scripts/screen_cascade.pywrap untrusted content in<record>,<title>, and<abstract>tags. - Capability inventory: The skill is limited to writing JSON/Excel files and making API calls to CrossRef and Anthropic; it does not execute arbitrary shell commands based on data.
- Sanitization: The
_strip_invisiblefunction inscripts/screen_cascade.pyproactively removes zero-width characters (U+200B-200D), BOM (U+FEFF), and bidirectional controls (U+202A-202E) to prevent steganographic prompt injection. The system prompt also explicitly instructs the model to ignore instructions found within the data. - [OBFUSCATION]: A static detection flagged the use of Unicode characters in
scripts/screen_cascade.py. Analysis confirms these characters are part of a regex pattern (_INVISIBLE_RE) designed to detect and remove hidden characters from untrusted input before processing, which is a security feature rather than an attack vector. - [EXTERNAL_DOWNLOADS]: The skill connects to
api.crossref.orgfor citation metadata andapi.anthropic.comfor paper screening. These are legitimate, well-known services relevant to the skill's purpose. - [CREDENTIALS_UNSAFE]: The skill follows security best practices by using environment variables (
ANTHROPIC_API_KEYandCROSSREF_MAILTO) for authentication and contact information rather than hardcoding credentials.
Audit Metadata