langchain-fundamentals
Pass
Audited by Gen Agent Trust Hub on Mar 12, 2026
Risk Level: SAFECOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- Dynamic Code Evaluation: The
calculatetool examples inSKILL.md(both Python and TypeScript) utilize theeval()function to process mathematical expressions. While functional for demonstration, this pattern allows for the execution of arbitrary code if the input string is not strictly validated or contains unintended commands. It is recommended to use safer alternatives such asast.literal_evalin Python or a dedicated math expression parser.- Indirect Prompt Injection Surface: The skill defines tools such assearchandcalculatethat process inputs which may originate from external sources or user-provided data. The examples do not demonstrate the use of boundary markers or sanitization, which creates a potential surface where instructions embedded in processed data could influence the agent's behavior. Using structured schemas and explicit instructions to ignore embedded commands can help mitigate this area for review.
Audit Metadata