policy-qa
Pass
Audited by Gen Agent Trust Hub on Jul 10, 2026
Risk Level: SAFEEXTERNAL_DOWNLOADSCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted data from PDF documents that could contain malicious instructions designed to influence the agent's behavior.
- Ingestion points: The
ingest_policy_documentfunction reads content from PDF files and stores them in a PostgreSQL database (policy_chunkstable). - Boundary markers: The prompt uses a clear 'Policy Documents:' header and explicit instructions to answer 'ONLY based on the provided policy documents'.
- Capability inventory: The skill utilizes
psycopg2for database operations andpypdffor file reading; it does not perform arbitrary shell commands or external network requests (other than to the database). - Sanitization: The skill uses parameterized SQL queries (
%splaceholders) which effectively prevents SQL injection during both ingestion and retrieval. - [EXTERNAL_DOWNLOADS]: The skill downloads pre-trained machine learning models from well-known services.
- Evidence: Downloads
sentence-transformers/all-MiniLM-L6-v2andcross-encoder/ms-marco-MiniLM-L-6-v2from HuggingFace repositories. - [COMMAND_EXECUTION]: The skill requires Python code execution to process embeddings, manage database connections, and run the RAG logic.
- Evidence: The frontmatter explicitly enables
code_execution: pythonand the workflow involves executing several Python functions defined in the markdown.
Audit Metadata