langchain-architecture
Pass
Audited by Gen Agent Trust Hub on Oct 15, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill documents patterns for Retrieval-Augmented Generation (RAG) and autonomous agents that ingest data from external sources (databases, vector stores, and user-provided text).
- Ingestion points: Data enters the context via
retriever.ainvoke,search_databasetool calls, and state variables likestate['text']in workflows. - Boundary markers: The RAG prompt template includes basic delimiters and instructions to avoid hallucination ("Answer based on the context below. If you cannot answer, say so.").
- Capability inventory: Agents are configured with tools for database searching and calculation.
- Sanitization: The skill provides a hardened
calculatetool using Python'sastmodule to prevent arbitrary code execution. - [DYNAMIC_EXECUTION]: The
calculatetool processes string-based mathematical expressions. It uses a recursive Abstract Syntax Tree (AST) evaluation method with a strict whitelist of allowed operators (ast.Add,ast.Sub, etc.), which is the industry-standard approach for safe runtime evaluation of arithmetic expressions. - [CREDENTIALS_UNSAFE]: The skill mentions sensitive configuration parameters such as
PINECONE_API_KEY,LANGCHAIN_API_KEY, and database connection strings. However, these are implemented using secure practices (environment variable access viaos.environ) or use obvious placeholders likeuser:passandyour-api-key. No actual secrets are exposed.
Audit Metadata