subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
) try: result = subprocess.run( ["claude", "-p", "--output-format", "json"], input=prompt, capture_output=True,- Confidence
- 93% confidence
- Finding
- The script sends attacker-controlled SKILL.md content to an external `claude` CLI and then consumes the returned result to drive automated repository modifications. Even though `subprocess.run` is used without a shell, this is still dangerous because untrusted prompt content can induce hostile model output or exfiltrate sensitive skill content to an external service, matching the output-injection/data-exposure concern in this context.
