sympy
Pass
Audited by Gen Agent Trust Hub on Oct 29, 2026
Risk Level: SAFEDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [DYNAMIC_EXECUTION]: The skill documents several SymPy features that involve runtime code generation, compilation, and execution.
- The
lambdify,autowrap, andufuncifyutilities described inreferences/code-generation-printing.mdare used to synthesize Python, C, and Fortran code from symbolic expressions and execute it. - The
pickle.loadfunction is mentioned in the "Exporting Results" section for loading persisted mathematical objects, which is a known vector for unsafe deserialization if used with untrusted files. - These findings are inherent to the skill's purpose as a mathematical engine and are accompanied by prominent security warnings advising against the use of untrusted inputs.
- [INDIRECT_PROMPT_INJECTION]: The skill documents capabilities for parsing external mathematical data into symbolic expressions, creating a surface for indirect prompt injection.
- Ingestion points: Functions like
parse_expr,sympify,parse_latex, andparse_mathematicadocumented inreferences/code-generation-printing.mdtake string inputs to build mathematical objects. - Boundary markers: The skill provides defensive guidance in
SKILL.md(Best Practice #7) andreferences/code-generation-printing.md(Parsing and trust), explicitly stating that SymPy is not a sandbox and these functions should not receive untrusted strings. - Capability inventory: Once parsed, expressions can be executed via
lambdifyor used withcodegento write executable files to the file system. - Sanitization: The documentation recommends using restricted allowlisted grammars and resource limits for external data, though it does not provide the sanitization logic itself.
Audit Metadata