sympy
Warn
Audited by Gen Agent Trust Hub on Sep 5, 2026
Risk Level: MEDIUMDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [DYNAMIC_EXECUTION]: The skill provides examples for using the
picklemodule to save and load SymPy expressions (e.g.,pickle.load(f)inreferences/code-generation-printing.md). Usingpickle.load()is insecure as it can execute arbitrary code if the input file has been tampered with or originates from an untrusted source. - [DYNAMIC_EXECUTION]: The skill documents the use of
autowrapandufuncifyinreferences/code-generation-printing.md. These utilities dynamically generate, compile, and load C or Fortran code at runtime, which bypasses static security analysis and introduces risks associated with dynamic execution. - [DYNAMIC_EXECUTION]: Documentation in
references/code-generation-printing.mdsuggests thatsrepr()output can be used witheval()to recreate objects. Usingeval()on strings is a high-risk pattern that can lead to arbitrary code execution if the input is influenced by an attacker. - [INDIRECT_PROMPT_INJECTION]: The skill identifies
parse_exprandinput()as methods for interactive computation, creating an attack surface where malicious input could exploit the agent's mathematical processing capabilities. - Ingestion points: Untrusted data enters via
parse_expr(user_input)andinput()as documented inreferences/code-generation-printing.md. - Boundary markers: No explicit delimiters or boundary markers are demonstrated in the provided interactive code patterns.
- Capability inventory: The skill scripts utilize
pickle.load,eval,autowrap, andlambdify, providing a broad set of executable capabilities. - Sanitization: While a general note suggests sanitizing input, the code examples do not implement validation or filtering to mitigate injection risks.
Audit Metadata