implement

Warn

Audited by Socket on Aug 17, 2026

1 alert found:

Security
SecurityMEDIUM
scripts/cleanup.py

This module is primarily a local automation utility that removes merged Git worktrees/branches using git plus PR state from GitHub via the gh CLI. The dominant security concern is high-impact arbitrary code execution: if the repository contains a file at .agents/hooks/cleanup, the script executes it directly with subprocess.run, and that repository-controlled code runs with the privileges of the cleanup process. The code also performs destructive git operations (worktree/branch deletion) based on external-tool outputs, though it includes some safeguards to avoid deleting the current directory’s worktree and to skip dirty worktrees. No clear evidence of traditional stealth malware or data theft appears in the shown logic, but the hook execution pattern makes supply-chain and local-repo compromise scenarios significantly dangerous.

Confidence: 60%Severity: 70%
Audit Metadata
Analyzed At
Aug 17, 2026, 10:05 AM
Package URL
pkg:socket/skills-sh/limchihi%2Fharness%2Fimplement%2F@05c1954f15f3382410669658c72e543c8c6cddddd409c259a3d9d1ca89027d49
Security Audit — socket — implement