local-rag
Pass
Audited by Gen Agent Trust Hub on Aug 8, 2026
Risk Level: SAFECOMMAND_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The skill invokes external tools for document processing, specifically
textutilon macOS and themineru-open-apiutility for PDF OCR. These invocations insrc/parser.pyuse secure argument lists rather than raw shell strings, which prevents shell injection. - [COMMAND_EXECUTION]: In
src/cli.py, thesetxcommand is used on Windows to persist API keys in the user environment. This is a standard functionality for CLI tools to maintain state across sessions. - [INDIRECT_PROMPT_INJECTION]: The skill processes external documents (.pdf, .docx, .md) which are chunked and stored in a vector database. This creates an indirect prompt injection surface common to RAG systems, as the agent will eventually process the retrieved text which may contain adversarial instructions. The skill does not implement specific sanitization for this content, but this is consistent with its primary purpose and carries low risk.
- [SAFE]: The detection of
eval()insrc/reranker.pyby static analysis tools is a false positive; the code calls the PyTorch.eval()method to set a machine learning model to evaluation mode, which is distinct from the dangerous Pythoneval()built-in function.
Audit Metadata