github-auth

Warn

Audited by Gen Agent Trust Hub on Oct 12, 2026

Risk Level: MEDIUMDATA_EXFILTRATIONCREDENTIALS_UNSAFECOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
  • [DATA_EXFILTRATION]: The skill includes instructions and scripts that access sensitive local files to extract authentication credentials. \n
  • Evidence: The SKILL.md file and scripts/gh-env.sh script both use grep and sed to extract GitHub tokens from the ~/.git-credentials file. \n
  • Evidence: The scripts/gh-env.sh script also reads the GITHUB_TOKEN from ~/.hermes/.env. \n
  • Evidence: The extracted tokens are exported to environment variables (export GITHUB_TOKEN), making them globally accessible to other processes in the environment. \n- [CREDENTIALS_UNSAFE]: The skill recommends several practices that lead to the exposure of credentials in plaintext. \n
  • Evidence: Recommends using git config --global credential.helper store, which saves authentication tokens in plaintext on the filesystem. \n
  • Evidence: Suggests embedding tokens directly in the remote URL using git remote set-url origin https://<username>:<token>@github.com/..., which exposes the secret in command history and git configuration files. \n
  • Evidence: Recommends generating SSH keys without a passphrase (-N ""). \n- [COMMAND_EXECUTION]: Uses shell utilities to process sensitive data and perform network operations. \n
  • Evidence: Extensive use of sed, grep, and curl to manage, parse, and transmit authentication tokens. \n- [DYNAMIC_EXECUTION]: The environment detection script uses a Python subprocess to execute code at runtime for JSON parsing. \n
  • Evidence: python3 -c "import sys,json; print(json.load(sys.stdin).get('login',''))" is used to extract information from GitHub API responses. \n- [INDIRECT_PROMPT_INJECTION]: The skill possesses a surface for indirect prompt injection by processing external data from the GitHub API. \n
  • Ingestion points: scripts/gh-env.sh fetches user profile data from https://api.github.com/user. \n
  • Boundary markers: No delimiters or warnings are present to prevent the agent from interpreting instructions that could be embedded in the API response. \n
  • Capability inventory: The skill can execute shell commands, perform network requests, and modify git configurations. \n
  • Sanitization: While the script uses a JSON parser, there is no explicit sanitization of the values retrieved from the API before they are used in the agent's context.
Audit Metadata
Risk Level
MEDIUM
Analyzed
Oct 12, 2026, 07:09 PM