You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Top 5 findings (all Critical severity, CWE-78 Command Injection) from the latest Sighthound scan.
1. Command Injection — pkg/gitutil/gitutil.go:176
Severity: Critical | Confidence: High Snippet:exec.Command("git", "-C", gitRoot, "show", "HEAD:"+relPath) Function:ReadFileFromHEAD Remediation:relPath is concatenated into a git argument. Validate/sanitize relPath or use -- separator. Ensure it originates from trusted input only.
Severity: Critical | Confidence: High Snippet:exec.Command(npmPath, "install", "--package-lock-only") Remediation:npmPath is derived dynamically. Validate it is an absolute path within expected system directories.
Severity: Critical | Confidence: High Snippet:exec.Command(pipCmd, "index", "versions", pkgName, "--pre") Remediation:pkgName may come from user/workflow input. Validate against a strict allowlist (alphanumeric, -, _, .) before use.
Severity: Critical | Confidence: High Snippet:exec.Command(exe, newArgs...) Function:relaunchWithSameArgs Remediation: Validate exe is an absolute, trusted path; restrict newArgs to prevent injection of unexpected flags.
Severity: Critical | Confidence: High Snippet:exec.Command("docker", "run", ..., gitRoot+":/workdir", ..., scanPath) Function:runRunnerGuardOnDirectory Remediation: Validate gitRoot and scanPath are absolute paths without shell metacharacters; use filepath.Clean and assert within an expected base directory.
Scan root: /tmp/gh-aw/sighthound/repo | Total findings: 134 | Shown: top 5 actionable (non-test)
Warning
Firewall blocked 1 domain
The following domain was blocked by the firewall during workflow execution:
awmgmcpg
To allow these domains, add them to the network.allowed list in your workflow frontmatter:
Sighthound Security Scan Findings
Top 5 findings (all Critical severity, CWE-78 Command Injection) from the latest Sighthound scan.
1. Command Injection —
pkg/gitutil/gitutil.go:176Severity: Critical | Confidence: High
Snippet:
exec.Command("git", "-C", gitRoot, "show", "HEAD:"+relPath)Function:
ReadFileFromHEADRemediation:
relPathis concatenated into a git argument. Validate/sanitizerelPathor use--separator. Ensure it originates from trusted input only.2. Command Injection —
pkg/workflow/dependabot.go:339Severity: Critical | Confidence: High
Snippet:
exec.Command(npmPath, "install", "--package-lock-only")Remediation:
npmPathis derived dynamically. Validate it is an absolute path within expected system directories.3. Command Injection —
pkg/workflow/pip_validation.go:80Severity: Critical | Confidence: High
Snippet:
exec.Command(pipCmd, "index", "versions", pkgName, "--pre")Remediation:
pkgNamemay come from user/workflow input. Validate against a strict allowlist (alphanumeric,-,_,.) before use.4. Command Injection —
pkg/cli/upgrade_command.go:482Severity: Critical | Confidence: High
Snippet:
exec.Command(exe, newArgs...)Function:
relaunchWithSameArgsRemediation: Validate
exeis an absolute, trusted path; restrictnewArgsto prevent injection of unexpected flags.5. Command Injection —
pkg/cli/runner_guard.go:68-78Severity: Critical | Confidence: High
Snippet:
exec.Command("docker", "run", ..., gitRoot+":/workdir", ..., scanPath)Function:
runRunnerGuardOnDirectoryRemediation: Validate
gitRootandscanPathare absolute paths without shell metacharacters; usefilepath.Cleanand assert within an expected base directory.Scan root: /tmp/gh-aw/sighthound/repo | Total findings: 134 | Shown: top 5 actionable (non-test)
Warning
Firewall blocked 1 domain
The following domain was blocked by the firewall during workflow execution:
awmgmcpgSee Network Configuration for more information.