sympy
Warn
Audited by Gen Agent Trust Hub on Oct 23, 2026
Risk Level: MEDIUMDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
- [DYNAMIC_EXECUTION]: The skill documents the use of
autowrapandufuncifyinreferences/code-generation-printing.md. These functions generate C or Fortran source code from symbolic expressions, compile them at runtime (using Cython or f2py), and execute the resulting binary. This pattern represents dynamic code generation and execution. - [DYNAMIC_EXECUTION]: The documentation includes instructions for using
pickle.load()inreferences/code-generation-printing.mdto load saved SymPy expressions. Python'spicklemodule is known for being vulnerable to arbitrary code execution if used with untrusted data files. - [INDIRECT_PROMPT_INJECTION]: The skill exposes a surface for indirect prompt injection by documenting the
parse_expr()function inreferences/code-generation-printing.md. This function is a wrapper for Python'seval()and can be exploited if an agent processes untrusted strings containing mathematical expressions. - Ingestion points: Untrusted mathematical strings are processed via
parse_expr(),parse_latex(), andparse_mathematica()inreferences/code-generation-printing.md. - Boundary markers: No explicit boundary markers or 'ignore embedded instructions' prompts are suggested for the data ingestion phase.
- Capability inventory: The skill has access to
codegenfor file writing,autowrapfor shell-level compilation, andevalvia the parsing functions, all documented inreferences/code-generation-printing.md. - Sanitization: The skill provides a
parse_trusted_exprexample inreferences/code-generation-printing.mdthat uses a regex-based whitelist (re.search(r'__|import|=')) to filter some malicious Python patterns, though this is not a comprehensive sandbox. - [EXTERNAL_DOWNLOADS]: The skill facilitates the installation of the
sympylibrary and its dependencies (NumPy, SciPy, Matplotlib) from the official Python Package Index (PyPI).
Audit Metadata