knowledge-base
Pass
Audited by Gen Agent Trust Hub on Oct 13, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONDATA_EXFILTRATION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill implements a RAG pipeline that reads content from diverse file types (.pdf, .docx, .md, .py) and interpolates this untrusted data into an LLM prompt.
- Ingestion points: The
index_directoryandload_filefunctions inSKILL.mdingest content from any file in a specified directory tree. - Boundary markers: The
format_contextfunction uses simple labels (e.g.,[Fuente 1: path]), but theanswer_with_ragfunction lacks robust delimiters or instruction-isolation markers between the retrieved context and the final instruction. - Capability inventory: The skill uses
openai.chat.completions.createto process the aggregated context. - Sanitization: No sanitization, filtering, or instruction-override detection is performed on the ingested text before it is sent to the LLM.
- [DATA_EXFILTRATION]: The
load_filefunction explicitly includes.env.examplein its list of readable text files. While intended for documentation, a user or agent targeting a directory might inadvertently index actual.envfiles or other sensitive configuration if the extension filter is modified or if credentials exist in.env.examplefiles. - Evidence:
if suffix in [".txt", ".md", ".py", ".ts", ".js", ".json", ".yaml", ".yml", ".env.example"]: return path.read_text(encoding="utf-8")inSKILL.md.
Audit Metadata