eval() call detected
High
- Category
- Dangerous Code Execution
- Content
"np": np, } try: result = eval(expr, {"__builtins__": {}}, safe_ns) return float(result) except Exception as e: error_exit(- Confidence
- 95% confidence
- Finding
- This evaluates untrusted user input with Python eval(). Although __builtins__ is removed and a restricted namespace is provided, exposing the numpy module as np still gives attackers a large object graph that can often be abused for sandbox escape, introspection, file access through imported modules, or denial-of-service via expensive expressions. In an agent skill that may receive arbitrary model-composed expressions, this is especially risky.
