exec() call detected
High
- Category
- Dangerous Code Execution
- Content
os.chdir(OUTPUT_DIR) # --- 3. 执行代码 --- exec(processed_code, exec_globals) # 恢复工作目录 os.chdir(original_cwd)- Confidence
- 99% confidence
- Finding
- The tool directly executes user-supplied Python via exec(), and the provided globals expose unrestricted builtins, enabling arbitrary file access, process execution, network access, and data exfiltration. In this skill’s context, the input is expected to come from an LLM, which makes prompt-injection or malicious generated code especially dangerous because the tool’s stated purpose normalizes executing untrusted code.
