Back to skill

Security audit

github-manager

Security checks for vulnerabilities and agentic risk

Overview

This GitHub management skill is mostly purpose-aligned, but it asks users to install an unpinned third-party CLI and grant broad GitHub powers that can affect repositories, workflows, and organization webhooks.

Review this before installing. Use a virtual environment or container, pin and verify the `gh-manager[pro]` package if possible, and prefer fine-grained GitHub tokens limited to the exact repositories and task. Avoid granting `admin:org_hook` or `workflow` unless you are actively managing organization webhooks or workflow files. Run dry-runs and previews before bulk issue, migration, webhook, or automation changes, and audit any long-running automation rules you enable.

Vulnerability Patterns
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • 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
Findings (2)

T08 · Insecure Dependencies

Error
Location
SKILL.md:181
Finding

Unpinned Third-Party CLI Installation Creates a Supply-Chain Execution Risk

Content
View full analysis

Vulnerability Details

File Location: SKILL.md:181
Vulnerability Type: Unpinned executable dependency installed from the default package registry
Risk Level: High

Vulnerable Code Snippet:

bash
pip install gh-manager[pro]

The same unsafe installation instruction is repeated in the dependency table at SKILL.md:263:

markdown
| gh-manager[pro] | CLI tool | Required | `pip install gh-manager[pro]` |

Technical Analysis

The Skill directs the user or Agent to install the latest available version of the gh-manager[pro] Python package without:

  • Pinning an audited version.
  • Verifying package hashes or signatures.
  • Identifying a trusted publisher or canonical source repository.
  • Using a lock file or constrained dependency manifest.
  • Isolating the package from GitHub credentials and other sensitive local resources.

Python package installation can execute package-controlled build logic. The installed CLI also executes with the invoking user's privileges during normal use. Because the package version is mutable and its implementation is absent from the reviewed project, its effective behavior can change after this Skill has been audited.

This creates exposure to malicious package releases, compromised maintainer accounts, dependency confusion, and compromised transitive dependencies. The audit did not establish that the named package is currently malicious; the vulnerability is the unsafe and unverifiable dependency acquisition process.

Attack Path

  1. An attacker compromises the package publisher, publishes a malicious future release, or compromises a transitive dependency.
  2. A user or Agent follows the Skill instruction and runs pip install gh-manager[pro].
  3. The package resolver retrieves the mutable, unpinned release from the configured package index.
  4. Malicious installation logic or CLI runtime code executes with the user's local privileges.
  5. The code ac ...[truncated 975 chars]
Remediation
View remediation

Remediation Suggestions

  1. Pin the dependency to an exact version that has undergone security review, for example:
    bash
    python -m pip install --require-hashes -r requirements.lock
    
  2. Maintain a lock file containing exact versions and cryptographic hashes for the package and every transitive dependency.
  3. Document the package's canonical source repository, expected publisher identity, and verified package-index URL.
  4. Verify release provenance or signatures where supported.
  5. Install the CLI in an isolated virtual environment or container under a non-privileged account.
  6. Prevent installation and build processes from accessing production GitHub tokens or unrelated secrets.
  7. Review package and transitive-dependency changes before updating the pinned version.
  8. Prefer an internally mirrored and approved artifact after source and dependency review.

T05 · Unauthorized Access and Privilege Escalation

Error
Location
SKILL.md:270
Finding

Overprivileged Default GitHub Authorization Scopes

Content
View full analysis

Vulnerability Details

File Location: SKILL.md:270-273
Vulnerability Type: Excessive GitHub token permissions that violate least privilege
Risk Level: High

Vulnerable Code Snippet:

markdown
### API Key Configuration
- **GitHub Authentication**: Complete OAuth through `gh auth login`; the token is stored in `~/.config/gh/hosts.yml`
- **Webhook Secret**: Configure through the `WEBHOOK_SECRET` environment variable and store it encrypted
- **IM Notification Token**: Configure through an environment variable, such as a Slack or DingTalk webhook URL
- **Token Permissions**: Recommended scopes include `repo`, `workflow`, `read:org`, and `admin:org_hook`

The broad permission set is also configured as the default at SKILL.md:285:

json
"default_scope": ["repo", "workflow", "read:org", "admin:org_hook"]

Technical Analysis

The Skill recommends a single OAuth token combining several high-impact permission domains:

  • repo: broad access to private repositories.
  • workflow: authority affecting GitHub Actions workflow files.
  • read:org: access to organization membership and related metadata.
  • admin:org_hook: administrative control over organization webhooks.

These privileges are not uniformly necessary for every documented operation. For example, dashboard generation, issue triage, secret scanning, and repository-level webhook operations require different and usually narrower permissions. Making all scopes the default grants the CLI and any process able to obtain its token substantially more authority than many tasks legitimately require.

This risk is amplified because the token is available to a third-party CLI whose implementation is not included in the reviewed project. Organization-hook administration is particularly sensitive because a principal with this permission can alter webhook destinations and potentially redirect organization event data.

Attack Path

  1. A ...[truncated 1661 chars]
Remediation
View remediation

Remediation Suggestions

  1. Replace the monolithic default scope list with permissions selected for each command and task.
  2. Do not request admin:org_hook unless the user explicitly invokes organization-level webhook administration.
  3. Distinguish repository webhook permissions from organization webhook administration.
  4. Use fine-grained personal access tokens or GitHub App installation tokens restricted to specific repositories and operations.
  5. Prefer short-lived credentials and revoke them immediately after sensitive administrative operations.
  6. Require explicit confirmation before requesting or expanding high-impact scopes such as workflow modification or organization-hook administration.
  7. Use separate credentials for read-only dashboards, issue management, workflow administration, and webhook administration.
  8. Display the exact permissions and affected repositories or organizations before authentication.
  9. Store credentials using an operating-system credential manager where available, and ensure untrusted installation processes cannot access them.
  10. Record and periodically review token use, webhook changes, workflow changes, and bulk repository operations.
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (5)

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The skill prominently advertises bulk close, label, assign, reopen, and migrate operations without an upfront high-visibility warning that these actions can irreversibly alter repository state at scale. In an agent environment, users may trigger destructive operations with insufficient understanding, leading to mass data integrity issues, workflow disruption, or accidental project damage.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

Webhook and automation features are presented without an upfront warning that repository metadata, event payloads, comments, usernames, and possibly sensitive workflow context may be sent to external endpoints. This creates confidentiality and integrity risk because users may configure third-party callbacks without understanding data exposure, origin validation, or the consequences of automated actions triggered by external systems.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The documented input/output contract describes a generic scoring analyzer rather than GitHub management actions, creating a capability mismatch. In an agent setting, this ambiguity can cause the model or orchestrator to invoke the skill for unintended tasks, mis-handle outputs, or apply the skill in workflows it was not designed for, increasing the risk of unsafe execution and privilege misuse.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

Later sections introduce generic file processing, API integration, and command-execution behavior that materially expands the apparent capability beyond the GitHub management manifest. This can mislead an agent into treating the skill as a general-purpose executor, which is dangerous because the skill already declares exec/write tools and could be routed sensitive or destructive tasks outside the intended GitHub scope.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
95% confidence
Finding

The display name, summaries, and primary description are presented in Chinese, and the rest of the skill instructions continue in Chinese without indicating that users may choose another language. This can violate a language/locale policy when a skill mandates a specific language without opt-in or documented regional justification.

Content

No source excerpt is available for this finding.