exec() call detected
High
- Category
- Dangerous Code Execution
- Content
# 直接调用脚本 sys.argv = ['script', '--account_id', '疯狂小杨哥'] exec(open('scripts/douyin_similar_account.py', encoding='utf-8').read())- Confidence
- 96% confidence
- Finding
- The wrapper reads a local Python file and executes its contents with exec(), which bypasses normal module import safety and executes arbitrary code in the current interpreter context. If the target file is modified, replaced, or sourced from an untrusted workspace, this becomes arbitrary code execution with the privileges of the agent process.
