T09 · Insecure Skill Coding Practices
- Location
taichi-framework/core/skills/skill_executor.py:35- Finding
Untrusted user requests are executed through a shell
- Content
View full analysis
dict: return { "nodes": [ { "id": "node1", "description": f"处理: {text}", "depends_on": [], "complexity": 1, } ], "entry_points": ["node1"], "exit_points": ["node1"], } ``` `taichi-framework/core/agents/drafter_agent.py:17-25`: ```python tasks = [] for node in dag.get("nodes", []): tasks.append( { "task_id": node["id"], "skill": "bash_executor", "params": {"command": f"echo 'Executing: {node['description']}'"}, "expected_output": {"stdout": "string"}, "timeout": 30, "retry": 2, } ) ``` `taichi-framework/core/agents/validator_agent.py:14-29`: ```python if message["type"] == "draft.complete": draft = message["payload"] correlation_id = message.get("correlation_id") tasks = draft.get("tasks", []) if not tasks: result = { "status": "rejected", "reasons": ["No tas ...[truncated 3160 chars]- Remediation
View remediation
