subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
Keep it concise and actionable.""" try: result = subprocess.run( ["claude", "-p", "--model", "sonnet"], input=prompt, capture_output=True, text=True, timeout=120, )- Confidence
- 89% confidence
- Finding
- The code launches an external Claude CLI and feeds it a prompt built from private lifelog conversation content. While the subprocess invocation is not shell-injection prone because it uses an argument list, it still creates a real data-exfiltration path to another tool/service outside the stated integration scope.
