goal-mode

Warn

Audited by Socket on Aug 5, 2026

2 alerts found:

SecurityAnomaly
SecurityMEDIUM
scripts/goal-verify.js

Not overtly malicious (no obvious backdoor/exfiltration/persistence), but it is inherently high-risk as a supply-chain execution gadget: it parses commands from a local .cursor/goal.config.yml and executes them verbatim via execSync(..., shell:true) with a workspace-derived cwd. If an attacker can influence the config content or the working directory, this module enables arbitrary command execution in the user/CI context, and it can leak command output via printed output_tail.

Confidence: 72%Severity: 72%
AnomalyLOW
project-scaffold/hooks/goal-session-start.js

No clear evidence of overt malware in this module (no network access, file writes, persistence, or explicit credential theft). The primary security concern is command execution: the file uses execSync with shell-string command interpolation that incorporates `config.active_goal` into the executed shell command. If `active_goal` (directly or indirectly via configuration tampering) is attacker-controlled or not strictly sanitized, this can lead to command injection. Additionally, executing helper scripts from a relative `.cursor/skills/...` path increases impact if those files are compromised.

Confidence: 70%Severity: 62%
Audit Metadata
Analyzed At
Aug 5, 2026, 01:57 PM
Package URL
pkg:socket/skills-sh/shenwell%2Fai-agent-skills%2Fgoal-mode%2F@af3cd616e6a69f781a1fb90f97ee77ab1708127af3b41198d651e13ce64e713f
Security Audit — socket — goal-mode