subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
from datetime import date msg = f"janitor: scene file update {date.today().isoformat()}" subprocess.run(["git", "-C", repo_dir, "commit", "-m", msg], timeout=10, check=True) subprocess.run(["git", "-C", repo_dir, "push"], timeout=30, check=True) print(f"Committed and pushed {len(changed)} scene file(s)") except subprocess.CalledProcessError as e: print(f"git commit/push failed (non-fatal): {e}", file=sys.stderr)- Confidence
- 97% confidence
- Finding
- Automatically pushing extracted conversation-derived memories to a configured git remote can exfiltrate sensitive transcript content outside the local system. In a janitor-style skill, silent network publication materially increases risk because users would reasonably expect cleanup and extraction, not outbound synchronization of durable memory artifacts.
