bx-ai-rag
Pass
Audited by Gen Agent Trust Hub on Oct 14, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONDATA_EXFILTRATIONDYNAMIC_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill's primary purpose is RAG, which involves processing potentially untrusted data from various sources.
- Ingestion points:
aiDocuments()inSKILL.mdcan load data from local directories, HTTP/HTTPS URLs, RSS/Atom feeds, SQL databases, and web crawlers. - Boundary markers: The example implementation in
SKILL.mduses simple delimiters (e.g.,Answer using only this context:\n\n#context#) to separate retrieved data from instructions, which can be bypassed by sophisticated injection attacks. - Capability inventory: The skill uses
aiChat()andaiAgent()inSKILL.mdto process the ingested content and allows retrieval to be exposed to agents as a tool viaaiTool(). - Sanitization: The documentation and examples do not include explicit sanitization or filtering logic for the content retrieved from documents before it is interpolated into the AI prompt.
- [DATA_EXFILTRATION]: The skill provides the agent with extensive access to local and remote data sources, which could be misused to expose sensitive information.
- Local file access: The
DirectoryLoaderandTextLoader(default foraiDocuments) can read arbitrary file paths on the local system. - Database exposure: The
SQLLoaderallows executing SQL queries against configured datasources to retrieve data for the AI context. - Network operations: The
HTTPLoader,FeedLoader, andWebCrawlerLoadermake outbound network requests to fetch data from external domains. - [DYNAMIC_EXECUTION]: The loader system supports dynamic instantiation of classes by path.
- Evidence: In
SKILL.md, the documentation states that "A full class path is also accepted as type" foraiDocuments(), allowing the instantiation and execution of arbitrary loader classes (e.g.,bxModules.bxai.models.loaders.PDFLoader).
Audit Metadata