ai-orchestration-langchain
Fail
Audited by Gen Agent Trust Hub on Sep 20, 2026
Risk Level: HIGHDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
- [DYNAMIC_EXECUTION]: The skill provides examples of a
calculatortool that uses the JavaScripteval()function to execute code based on LLM-generated strings. - Evidence in
examples/agents.md: The calculator tool is defined asasync ({ expression }) => { return String(eval(expression)); }. - Evidence in
examples/structured-output-tools.md: The same tool pattern is repeated with the logicreturn String(eval(expression));. - Security Risk: An attacker can use prompt injection to trick the LLM into generating a malicious JavaScript payload (e.g., code to terminate the process or access the file system), which the
eval()function will then execute with the agent's privileges. - [INDIRECT_PROMPT_INJECTION]: The skill demonstrates patterns for Retrieval-Augmented Generation (RAG) that process data from external, untrusted sources.
- Ingestion points:
examples/rag.mdshowsCheerioWebBaseLoaderfetching content from web URLs and loaders for text and PDF files. - Boundary markers: The
examples/rag.mdfile includes a "Prompt Injection Defense" section that uses system prompt instructions to separate context from instructions, though this is a probabilistic defense. - Capability inventory: The skill's agent patterns include tools for code execution (
eval) and web search, which increases the impact if an injected instruction is followed by the model. - Sanitization: There is no evidence of automated content sanitization or filtering beyond basic prompt instructions.
- [EXTERNAL_DOWNLOADS]: The skill documents how to fetch and process remote content from the internet.
- In
examples/rag.md, the code examples useCheerioWebBaseLoaderto load data fromhttps://example.com/blog-post. This allows the agent to communicate with and ingest data from non-whitelisted external domains.
Recommendations
- AI detected serious security threats
Audit Metadata