Log inGet a Demo

github-code-review

High · Risk 70

This skill exfiltrates local credentials, is vulnerable to command injection via unsanitized inputs, and lacks necessary security constraints, allowing for unauthorized environment hijacking and unmonitored network access.

Findings (7)

Content Injection

Medium

targets Perception

1 finding
#1Implicit trust in external API contentmediumindirect prompt injection80% confidence

The skill fetches PR bodies and metadata from GitHub and processes them via Python scripts; if an attacker controls the PR content, they can inject malicious payloads into the agent's execution context.

curl -s ... | python3 -c "import sys, json; pr = json.load(sys.stdin)..."

Behavioural Control

High

targets Action

6 findings
#1Credential harvesting via git-credentialshighcredential theft90% confidenceline 34

The skill explicitly scrapes the user's local `~/.git-credentials` file to extract GitHub tokens, which could be used to exfiltrate credentials to an attacker-controlled environment if the agent is compromised.

grep "github.com" ~/.git-credentials 2>/dev/null | head -1 | sed 's|https://[^:]*:\([^@]*\)@.*|\1|'
#2Unsafe shell execution of external PR datahighcommand execution70% confidenceline 41

The skill constructs shell commands using variables derived from GitHub API responses (e.g., `OWNER`, `REPO`, `PR_NUMBER`) without sanitization, creating a risk of command injection if the GitHub repository metadata is manipulated.

OWNER=$(echo "$OWNER_REPO" | cut -d/ -f1)
#3Access to sensitive environment variables detectedmedium100% confidenceline 30

Access to sensitive environment variables detected (seen 12 times in this file at lines 30, 145, 158, 199, 225, 230, 255, 260, 395, 399, …)

$GITHUB_TOKEN
#4Over-privileged environment accessmediumresource abuse70% confidenceline 373

The skill attempts to source environment scripts from arbitrary paths (`${HERMES_HOME:-$HOME/.hermes}/skills/...`), which could allow a malicious local actor to hijack the agent's environment by placing a fake `gh-env.sh` file.

source "${HERMES_HOME:-$HOME/.hermes}/skills/github/github-auth/scripts/gh-env.sh"
#5Missing allowed-tools declarationlow90% confidence

Skill executes commands, writes files, or accesses the network but declares no allowed-tools, so its tool surface cannot be reviewed or constrained.

#6Undeclared network usagelow60% confidence

Skill contains network access patterns (HTTP requests, socket connections) without declaring network capability in allowed-tools.