eval() call detected
High
- Category
- Dangerous Code Execution
- Content
response = "def solution():\n return 'mock answer'" else: response = _call_adapter(adapter, model_name, case["prompt"]) if response and eval(case["check"])(response): correct += 1 except Exception: pass- Confidence
- 97% confidence
- Finding
- This is a true code-execution risk: eval() turns a string into executable Python code. Although the current check strings are hardcoded in this file, the pattern is dangerous because any future refactor, externalized test case source, or compromised modification of CODE_CASES would allow arbitrary code execution during calibration. In a router skill that already handles external configs and model metadata, this becomes more concerning because calibration may be run in developer environments with access to API keys and local files.
