eval() call detected
High
- Category
- Dangerous Code Execution
- Content
elif tool_name == "calculator": expression = params.get("expression", "0") try: result = eval(expression) data = { "expression": expression, "result": result- Confidence
- 99% confidence
- Finding
- The calculator tool passes user-controlled input directly to Python's eval(), which allows arbitrary code execution rather than mere arithmetic evaluation. In this skill context, the tool-use hub is a generic execution surface exposed through CLI/API-style inputs, so the mismatch with the stated AGI/personality purpose makes the presence of eval especially unjustified and dangerous.
