Back to skill

Security audit

Gog

Security checks for vulnerabilities and agentic risk

Overview

This skill is a small, disclosed wrapper for using a Google Workspace CLI, but users should understand the broad Google account permissions they grant.

Install only if you trust the gog CLI and its Homebrew tap, and authorize the minimum Google services needed for your task. Be especially careful with Gmail send, Calendar event creation, and Sheets update, append, or clear commands because they can change account data.

Vulnerability Patterns
  • 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
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (1)

T08 · Insecure Dependencies

Warning
Location
SKILL.md:5
Finding
Unpinned Third-Party Homebrew Dependency## Vulnerability Details **File Location**: `SKILL.md`, line 5 **Vulnerability Type**: Unpinned third-party dependency from a mutable package source **Risk Level**: Medium ### Vulnerable Code Snippet ```yaml metadata: {"clawdbot":{"emoji":"🎮","requires":{"bins":["gog"]},"install":[{"id":"brew","kind":"brew","formula":"steipete/tap/gogcli","bins":["gog"],"label":"Install gog (brew)"}]}} ``` ### Technical Analysis The skill delegates installation of the `gog` executable to the third-party Homebrew tap `steipete/tap/gogcli`. The dependency declaration does not pin a reviewed version or source commit and does not specify a cryptographic checksum. As a result, the software installed when the skill is used may differ from the software that existed when this artifact was audited. If the tap, formula, upstream release infrastructure, or maintainer account is compromised, the mutable installation source could distribute modified installation logic or an altered executable. This finding does not establish that the current `gog` package is malicious. It identifies a supply-chain trust boundary that is not cryptographically constrained by the audited project. ### Attack Path 1. An attacker compromises the third-party Homebrew tap, its maintainer account, the referenced upstream distribution channel, or another component of the package publication process. 2. The attacker changes the formula or distributed artifact so that installation supplies a malicious `gog` executable or runs malicious installation logic. 3. A user follows the skill metadata and installs `steipete/tap/gogcli`. 4. The malicious executable runs in the user's environment. 5. The user subsequently configures Google OAuth credentials and authorizes one or more Workspace services. 6. Depending on the granted OAuth scopes and local execution privileges, the altered executable could access local credential material or misuse authorized Gmail, Calendar, Drive, Contacts, Sheets, or Docs operations. ### ...[truncated 701 chars]
Remediation
## Remediation Suggestions 1. Pin the dependency to a specific, reviewed release rather than relying solely on a mutable Homebrew formula. 2. Verify downloaded release artifacts using a documented cryptographic checksum or signature from a trusted source. 3. Where supported, bind the installation process to a reviewed source commit or immutable artifact. 4. Document the canonical upstream repository and release verification procedure so users can validate package provenance. 5. Regularly review the Homebrew tap, formula ownership, release source, and checksum changes. 6. Request only the Google Workspace services and OAuth scopes required for the user's intended task instead of authorizing all supported services by default. 7. Store OAuth credentials using operating-system-protected credential storage and restrict access to the relevant local files. 8. Consider separating read-only and write-capable authorization profiles to reduce the impact of a compromised CLI.
Vulnerability Patterns
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (1)

Credential Access

High
Category
Privilege Escalation
Content
Use `gog` for Gmail/Calendar/Drive/Contacts/Sheets/Docs. Requires OAuth setup.

Setup (once)
- `gog auth credentials /path/to/client_secret.json`
- `gog auth add you@gmail.com --services gmail,calendar,drive,contacts,sheets,docs`
- `gog auth list`
Confidence
70% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Static analysis

No suspicious patterns detected.