python-sdk
Pass
Audited by Gen Agent Trust Hub on Nov 18, 2026
Risk Level: SAFEDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTIONPRIVILEGE_ESCALATION
Full Analysis
- [DYNAMIC_EXECUTION]: The documentation (specifically
references/tool-builder.md) includes code examples that use the Pythoneval()function to process arguments generated by the AI model. This pattern is vulnerable to Remote Code Execution (RCE) via prompt injection, as an attacker could influence the agent to pass malicious code into theevalcall.- [INDIRECT_PROMPT_INJECTION]: The skill describes architecture for agents that ingest data from untrusted external sources, such as web search results (via Tavily) and file uploads. There is a lack of documented sanitization or boundary markers to prevent the agent from following instructions embedded within this external content. - Ingestion points: Web search tool, file upload API, RAG pipelines.
- Boundary markers: None mentioned in the SDK implementation examples.
- Capability inventory: Code execution, webhook calls, file system operations (delete), and image generation.
- Sanitization: No automatic sanitization of model-interpolated data is documented.- [COMMAND_EXECUTION]: The SDK provides a built-in
code_executioncapability viainternal_tools(). This allows the AI agent to write and execute arbitrary Python code on the system where the SDK is running, presenting a significant security risk if the environment is not properly sandboxed.- [PRIVILEGE_ESCALATION]: The documentation includes examples of tools for performing sensitive system actions, such as adelete_filetool. While the documentation suggests using human-in-the-loop approvals, providing these high-privilege templates increases the risk of accidental or malicious system compromise if implemented improperly.
Audit Metadata