Back to skill

Security audit

GitHub PAT Debugging

Security checks for vulnerabilities and agentic risk

Overview

This skill gives disclosed troubleshooting steps for GitHub token authentication and does not show hidden execution, persistence, or unrelated data handling.

Install only if you need GitHub PAT troubleshooting. Treat any PAT used with this skill as highly sensitive: do not paste full tokens into chat or logs, confirm commands target GitHub-owned endpoints, and rotate the token if it has already been exposed.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (4)

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 5)May include surrounding context.

md
name: github-pat-debugging
slug: github-pat-debugging
displayName: GitHub PAT Debugging
description: 排查 GitHub PAT 认证失败、401、Bad credentials、推送失败、token 看起来失效等问题。先检查命令、变量传递、路径和请求参数,再用 curl、Node、Python 或 PowerShell 交叉验证,确认后才判断权限、撤销或网络原因。适用于 GitHub API、Contents API、GitHub Pages 和 Skill 镜像推送。 Diagnose GitHub Personal Access Token failures before declaring a token expired or revoked.
description_zh: GitHub PAT 认证排障
description_en: Debug GitHub PAT failures
version: "1.0.4""

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The natural-language metadata presents the primary description in Chinese with an English sentence appended, plus separate Chinese and English short descriptions, but it does not tell users how language is selected or offer an opt-in choice. This can violate a language/locale policy when a skill implicitly forces or defaults users into a language without explicit preference handling.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · SKILL.md (reported line 26)May include surrounding context.

  1. Test the same token with an independent client. In Bash, use direct expansion for curl:
    bash
    TOKEN=$(cat "$HOME/.workbuddy/connectors/default/tokens/github.txt")
    curl -sS -D - -o /dev/null \\
      -H "Authorization: Bearer $TOKEN" \\
      -H "User-Agent: workbuddy-probe" \\
      -H "Accept: application/vnd.github+json" \\
    

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · SKILL.md (reported line 30)May include surrounding context.

-H "Authorization: Bearer $TOKEN" \ -H "User-Agent: workbuddy-probe" \ -H "Accept: application/vnd.github+json" \ https://api.github.com/user

text
4. When handing the token to a child process, export it explicitly. This is a critical Bash distinction:
- Wrong for a later command: `TOKEN=$(cat file) && node script.js` (shell variable is not exported).

Static analysis

No suspicious patterns detected.