rag-architect
Warn
Audited by Gen Agent Trust Hub on Jul 31, 2026
Risk Level: MEDIUMREMOTE_CODE_EXECUTIONPROMPT_INJECTION
Full Analysis
- [REMOTE_CODE_EXECUTION]: The
LateChunkerclass implementation inreferences/chunking-strategies.mdutilizestrust_remote_code=Truewithin theAutoModel.from_pretrainedcall. This setting allows the execution of arbitrary Python code contained within the model repository on Hugging Face, creating a significant security risk if the repository is compromised or points to an untrusted source. - [PROMPT_INJECTION]: The skill processes untrusted document content for RAG pipelines but fails to implement robust boundary markers when interpolating this data into LLM prompts. In
references/rag-evaluation.md, theevaluate_with_llmfunction embeds raw retrieved context and answers directly into user messages without delimiters or sanitization, creating a surface for indirect prompt injection attacks. - [COMMAND_EXECUTION]: The skill provides examples of interacting with databases and remote APIs (OpenAI, Cohere, Pinecone, Qdrant) using user-defined inputs. While instructional, these patterns represent an attack surface if an agent executes these operations on unvalidated external data.
Audit Metadata