doc-ai
Pass
Audited by Gen Agent Trust Hub on Nov 12, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill is designed to process untrusted external files (PDF, PNG, JPG, and ZIP archives) through Sarvam's Vision model. This creates a vulnerability surface where malicious instructions embedded within the processed documents (e.g., hidden text or metadata) could influence the AI agent's behavior during the digitization or extraction lifecycle.
- Ingestion points: Untrusted data enters the agent's context through the
fileparameter in thedoc_ai.parse(),doc_ai.extract(),doc_ai.classify(), anddoc_ai.split()methods, as demonstrated inSKILL.md. - Boundary markers: There are no explicit instructions for the agent to use delimiters or "ignore embedded instructions" warnings when handling the content returned from these document processing jobs.
- Capability inventory: The skill enables file system read access (to load documents) and network operations (to upload files and poll status from
api.sarvam.ai). If an injection is successful, these capabilities could be leveraged to exfiltrate data or perform unintended actions. - Sanitization: The provided code snippets do not include sanitization or validation of the content extracted from the documents before it is potentially used in downstream prompts.
Audit Metadata