Back to skill

Security audit

thayyilshihab

Security checks for vulnerabilities and agentic risk

Overview

This skill is a coherent Google Workspace CLI helper, but it installs an unpinned third-party executable and documents live Workspace write/delete actions without enough confirmation guidance.

Review this before installing. Use the narrowest OAuth services needed for the current task, verify the gogcli Homebrew tap and release provenance, and require explicit confirmation before any send, create, update, append, clear, copy, or other Workspace write operation.

Vulnerability Patterns
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • 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:5
Finding

Unpinned executable installed from a third-party Homebrew tap

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
SKILL.md:24
Finding

Destructive Workspace operations are not covered by the confirmation policy

Content
View full analysis
"Tab!A1:B2" --values-json '[["A","B"],["1","2"]]' --input USER_ENTERED` - Sheets append: `gog sheets append "Tab!A:C" --values-json '[["x","y","z"]]' --insert INSERT_ROWS` - Sheets clear: `gog sheets clear "Tab!A2:Z"` - Sheets metadata: `gog sheets metadata --json` - Docs export: `gog docs export --format txt --out /tmp/doc.txt` - Docs cat: `gog docs cat ` Notes - Set `GOG_ACCOUNT=you@gmail.com` to avoid repeating `--account`. - For scripting, prefer `--json` plus `--no-input`. - Sheets values can be passed via `--values-json` (recommended) or as inline rows. - Docs supports export/cat/copy. In-place edits require a Docs API client (not in gog). - Confirm before sending mail or creating events. ``` ### Technical Analysis The Skill documents spreadsheet update, append, and clear operations, including an explicitly destructive `sheets clear` command. However, its confirmation requirement only covers sending email and creating calendar events. It does not require confirmation before modifying or clearing spreadsheet data. The recommendation to use `--no-input` for scripting can further reduce interactive safeguards. In an agentic environment, untrusted task text or incorrectly inferred parameters could cause the Agent to invoke a write operation against the wrong spreadsheet, tab, or range without presenting the proposed change to the user. This is a missing safety control rather than evidence of intentional malicious behavior. ### Attack Path 1. The Agent processes untrusted or ambiguous content that requests or induces a spreadsheet operation. 2. That content causes the Agent to select `gog sheets update`, `append`, or `clear`. 3. The Agent suppli ...[truncated 701 chars]
Remediation
View remediation
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 (2)

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 13)May include surrounding context.

md
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`

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

The skill includes modifying Google Workspace operations such as Sheets update, append, and clear without prominently warning about the risk of overwriting or deleting user data. In an agent context, these commands can be executed against live user resources, so omission of guardrails increases the chance of accidental destructive actions.

Content

No source excerpt is available for this finding.