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, and ufuncify utilities described in references/code-generation-printing.md are used to synthesize Python, C, and Fortran code from symbolic expressions and execute it.
  • The pickle.load function 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, and parse_mathematica documented in references/code-generation-printing.md take string inputs to build mathematical objects.
  • Boundary markers: The skill provides defensive guidance in SKILL.md (Best Practice #7) and references/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 lambdify or used with codegen to 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
Risk Level
SAFE
Analyzed
Oct 29, 2026, 10:59 PM