refactor

Warn

Audited by Socket on Aug 16, 2026

1 alert found:

Security
SecurityMEDIUM
scripts/context-verify.mjs

The fragment’s primary risk is direct synchronous OS command execution via `execSync` using a command string derived from externally influenced configuration/environment inputs, with no visible allowlist or sanitization. If an attacker can control either the provided value or the environment variable, this becomes a command injection/RCE vector in the repository context. Additionally, error messages are serialized into the JSON output, which may leak sensitive execution details in failure scenarios. No explicit malicious payload or exfiltration behavior is evident from this snippet alone.

Confidence: 62%Severity: 72%
Audit Metadata
Analyzed At
Aug 16, 2026, 01:31 PM
Package URL
pkg:socket/skills-sh/printpractical%2Fagent-toolkit%2Frefactor%2F@2791eccb31b0eb8c05b123d6a812cf23028d63a36731fc5f41784ef2b7a91317
Security Audit — socket — refactor