sympy

Pass

Audited by Gen Agent Trust Hub on Oct 2, 2026

Risk Level: SAFEDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTIONEXTERNAL_DOWNLOADS
Full Analysis
  • [DYNAMIC_EXECUTION]: The skill documents functions that perform dynamic code execution and runtime compilation. Specifically, 'parse_expr' is noted as using 'eval' internally, and 'lambdify' generates executable functions from symbolic expressions. The skill also covers 'autowrap' and 'ufuncify', which compile C or Fortran code at runtime and wrap it for execution. Additionally, it mentions the use of 'pickle' for serializing SymPy objects, which is a risk if untrusted data is loaded. The author provides explicit security warnings and validation patterns to mitigate these risks.
  • [COMMAND_EXECUTION]: The code generation and 'autowrap' features require invoking system compilers (such as gcc or gfortran) to generate and compile executable code.
  • [INDIRECT_PROMPT_INJECTION]: The skill highlights the vulnerability surface when parsing mathematical expressions from potentially untrusted sources. It provides a recommended validation pattern ('parse_trusted_expr') that uses length checks, character filtering, and the rejection of dangerous syntax like 'import' or assignment to protect against injection via the parsing engine.
  • [EXTERNAL_DOWNLOADS]: The skill instructs the user to install standard mathematical libraries including 'sympy', 'numpy', 'scipy', and 'matplotlib' via 'uv pip'.
Audit Metadata
Risk Level
SAFE
Analyzed
Oct 2, 2026, 05:01 PM