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
Mediumtargets Perception
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
Hightargets Action
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|'
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)
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
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"Skill executes commands, writes files, or accesses the network but declares no allowed-tools, so its tool surface cannot be reviewed or constrained.
Skill contains network access patterns (HTTP requests, socket connections) without declaring network capability in allowed-tools.