Agent skill

GCP Workspace Pivot

by wgpsec in wgpsec/AboutSecurity

GCP 到 Google Workspace 的穿越攻击方法论。当已获取 GCP Service Account 或 Project 权限并发现目标组织使用 Google Workspace、需要从云平台穿越到企业邮件/文档/管理控制台、或发现 Domain-Wide Delegation 配置时使用。覆盖 Domain-Wide Delegation 滥用、OAuth…

No licenceAuto-check passedBackend & APIs

Install GCP Workspace Pivot

skills CLI
$ npx skills add wgpsec/AboutSecurity --skill gcp-workspace-pivot -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install wgpsec/AboutSecurity gcp-workspace-pivot --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/wgpsec/AboutSecurity.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/cloud/gcp-workspace-pivot .claude/skills/gcp-workspace-pivot && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
gcp-workspace-pivot
GitHub stars
1.8k
Token cost
~2.9k tokens
SKILL.md length
504 words
Files
2 (incl. references)
Skills in repo
64
Repo updated
First seen
Licence
None found

At a glance

GCP 到 Google Workspace 的穿越攻击方法论。当已获取 GCP Service Account 或 Project 权限并发现目标组织使用 Google Workspace、需要从云平台穿越到企业邮件/文档/管理控制台、或发现 Domain-Wide Delegation 配置时使用。覆盖 Domain-Wide Delegation 滥用、OAuth…

  • Works in 5 steps: :枚举 GCP 项目中的 Service Account → :检查 SA 的密钥和权限 → :识别 DWD 配置 → …
  • Tasks that involve Cloud office suites
  • SKILL.md covers 深入参考, 核心概念:Domain-Wide Delegation(DWD), 攻击链:发现并利用 DWD and 决策树:GCP 权限 → Workspace 穿越路径, plus 6 more sections
  • Calls gcloud, curl and pip; reaches googleapis.com and mail.google.com

What it does

GCP Workspace Pivot is an agent skill from wgpsec/AboutSecurity. GCP 到 Google Workspace 的穿越攻击方法论。当已获取 GCP Service Account 或 Project 权限并发现目标组织使用 Google Workspace、需要从云平台穿越到企业邮件/文档/管理控制台、或发现 Domain-Wide Delegation 配置时使用。覆盖 Domain-Wide Delegation 滥用、OAuth 范围利用、Workspace API 数据窃取(Gmail/Drive/Calendar/Admin Directory)、以及 Workspace 持久化技术

Its SKILL.md is about 2.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/workspace-post-exploit.md`).

It sits in Backend & APIs, covering Cloud office suites, Email management and OAuth and OpenID Connect. It works with Google Cloud, Google Workspace and Gmail. The repository describes itself as: Everything for pentest. | 渗透测试知识库,以 AI Agent 可执行的格式沉淀安全方法论。

When your agent uses it

  • Tasks that involve Cloud office suites
  • Tasks that involve Email management
  • Tasks that involve OAuth and OpenID Connect

Example prompts

  • “/gcp-workspace-pivot”

Requirements

  • Python 3

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. :枚举 GCP 项目中的 Service Account
  2. :检查 SA 的密钥和权限
  3. :识别 DWD 配置
  4. :生成委托令牌并冒充用户
  5. :批量尝试 OAuth Scope

What it can do on your machine

Read from SKILL.md and the folder at commit 914ffb5. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • gcloud
    • curl
    • pip

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • googleapis.com
    • mail.google.com
    • gmail.googleapis.com
    • admin.googleapis.com
    • admin.google.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

GCP Workspace Pivot loads about 2.9k tokens when it runs, and up to ~7k if it reads all its reference files. Until then it costs about 72 tokens; SKILL.md has 504 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~72
When it runs · the whole SKILL.md, loaded when a task matches
~2.9k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 504 words (~2,889 tokens).

“GCP 与 Google Workspace 同属 Google Cloud 生态,二者通过 IAM 和 OAuth 深度绑定。当攻击者拿到 GCP Service Account 或 Project 权限后,若目标组织同时使用 Google Workspace(原 G Suite),就可能从云基础设施穿越到企业办公系统——直接访问全员邮件、文件、日历、通讯录乃至管理控制台。”

— opening of SKILL.md by wgpsec
name
gcp-workspace-pivot
metadata.tags
gcp,google-workspace,gsuite,domain-wide-delegation,dwd,oauth,gmail,drive,calendar,admin-directory,穿越,Workspace攻击
metadata.category
cloud

Read the full SKILL.md on GitHub

Files

SKILL.md and 1 other file (references) in skills/cloud/gcp-workspace-pivot of wgpsec/AboutSecurity.

  • SKILL.md
  • references/workspace-post-exploit.md

Open the folder on GitHubat commit 914ffb5

Compare with similar skills

GCP Workspace Pivot next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

GCP Workspace Pivot compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
GCP Workspace Pivot this skillwgpsec/AboutSecurity1.8k—~2.9kAutomated safety check: PassNone
Google Workspaceericrisco/rsc-harness180—~3.2kAutomated safety check: PassMIT
Google Workspacetaracodlabs/aiden852—~1.1kAutomated safety check: PassApache-2.0
Google WorkspaceRedWoodOG/Hermes-Desktop177—~2.1kAutomated safety check: PassMIT
Pp Workspace Adminmvanhorn/printing-press-library2.1k—~11kAutomated safety check: NotesApache-2.0
Community Google WorkspaceArgentAIOS/argentos-core126—~2.8kAutomated safety check: PassMIT

Similar skills

  • Google Workspace

    ericrisco/rsc-harness

    A skill your agent uses when server-side code reads or writes Gmail, Drive, Calendar, or Sheets with a GCP service account and no human in the OAuth loop: picking the auth mode (app-owned vs…

    180 GitHub stars~3.2k tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • Google Workspace

    taracodlabs/aiden

    Gmail, Calendar, Drive, Sheets, Docs via Google API (SA / OAuth)

    852 GitHub stars~1.1k tokensUpdated 27 days ago
    Documents & OfficeAuto-check passed
  • Google Workspace

    RedWoodOG/Hermes-Desktop

    Gmail, Calendar, Drive, Contacts, Sheets, and Docs integration via Python.

    177 GitHub stars~2.1k tokensUpdated 4 mo ago
    Backend & APIsAuto-check passed
  • Pp Workspace Admin

    mvanhorn/printing-press-library

    GAT-style Google Workspace auditing as an agent-native CLI: sync Directory, Drive, Gmail, Reports, and Alert Center into a local store, then run offline cross-API audits, offboarding, and OAuth-app…

    2.1k GitHub stars~11k tokensUpdated yesterday
    Backend & APIsAuto-check: notes
  • Community Google Workspace

    ArgentAIOS/argentos-core

    Gmail, Calendar, Drive, Contacts, Sheets, and Docs integration for community skills.

    126 GitHub stars~2.8k tokensUpdated 3 mo ago
    Documents & OfficeAuto-check passed
  • Google Workspace

    Tommy-yw/RunbookHermes

    Gmail, Calendar, Drive, Contacts, Sheets, and Docs integration for Hermes.

    546 GitHub starsUsed in 1 repo~2.7k tokens
    Documents & OfficeAuto-check passed

More from wgpsec/AboutSecurity

All 64 skills in this repo
  • A skill your agent uses whenever the user asks to add, absorb, migrate, port, update, merge, compare, or extract security knowledge into the AboutSecurity repository from any external resource such…

    1.8k GitHub stars~1.4k tokensUpdated today
    Auto-check passed
  • Ad Persistence

    wgpsec/AboutSecurity

    AD 域环境持久化技术。当已获取域管/本地管理员权限、需要建立持久访问以确保重启或密码更改后仍能回到目标环境时使用。覆盖主机级持久化(计划任务/注册表Run/COM劫持/WMI事件订阅/Windows服务/启动文件夹)、域级持久化(Golden Ticket/Silver Ticket/Skeleton…

    1.8k GitHub stars~2.3k tokensUpdated today
    Auto-check passed
  • Apt Emulation

    wgpsec/AboutSecurity

    APT 模拟与情报驱动红队方法论。基于已知 APT 组织的 TTP(MITRE ATT&CK)设计红队行动计划。当需要模拟特定威胁组织、设计高仿真攻击演练、或根据威胁情报制定攻击策略时使用

    1.8k GitHub stars~922 tokensUpdated today
    Auto-check passed
  • Argocd Tactics

    wgpsec/AboutSecurity

    ArgoCD 后渗透方法论:Redis缓存投毒集群接管、SSO认证绕过、未授权API枚举、恶意Application部署、Webhook SSRF、默认凭据利用。

    1.8k GitHub stars~510 tokensUpdated today
    Auto-check passed
  • C2 Beacon Analysis

    wgpsec/AboutSecurity

    C2 Beacon 配置提取与分析。当捕获到 Cobalt Strike/Sliver/Havoc 等 C2 框架的 Beacon 样本、内存 dump、或网络流量时使用。提取 C2 地址、通信协议、Malleable Profile、Watermark 等关键情报。红队视角:了解蓝队如何从 Beacon 提取 IOC 以改进 C2 OPSEC

    1.8k GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • C2 Evasion Methodology

    wgpsec/AboutSecurity

    C2框架免杀方法论:分析 C2 源码、搜索检测规则(YARA/Sigma/Snort)、逐规则分析、修改源码绕过检测。当遇到 YARA/Sigma/Snort 规则触发告警、beacon/implant 被杀软检测到时使用。第一步:确认 implant/beacon 语言和架构;第二步:搜索对应检测规则并逐规则分析修改

    1.8k GitHub stars~557 tokensUpdated today
    Auto-check passed

Questions about GCP Workspace Pivot

What does GCP Workspace Pivot do?

GCP 到 Google Workspace 的穿越攻击方法论。当已获取 GCP Service Account 或 Project 权限并发现目标组织使用 Google Workspace、需要从云平台穿越到企业邮件/文档/管理控制台、或发现 Domain-Wide Delegation 配置时使用。覆盖 Domain-Wide Delegation 滥用、OAuth…. GCP Workspace Pivot is an agent skill from wgpsec/AboutSecurity.

When should I use GCP Workspace Pivot?

GCP Workspace Pivot fits situations like: tasks that involve Cloud office suites; tasks that involve Email management; tasks that involve OAuth and OpenID Connect.

How do I install GCP Workspace Pivot in Claude Code?

Run `npx skills add wgpsec/AboutSecurity --skill gcp-workspace-pivot -a claude-code`. Or copy the skill folder (skills/cloud/gcp-workspace-pivot in wgpsec/AboutSecurity) into .claude/skills/gcp-workspace-pivot in your project. Claude Code loads it when a task matches its description.

How do I install GCP Workspace Pivot in Codex?

Run `npx skills add wgpsec/AboutSecurity --skill gcp-workspace-pivot -a codex`. Or copy the skill folder (skills/cloud/gcp-workspace-pivot in wgpsec/AboutSecurity) into .agents/skills/gcp-workspace-pivot in your project. Codex loads it when a task matches its description.

Can I use GCP Workspace Pivot in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add wgpsec/AboutSecurity --skill gcp-workspace-pivot -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/gcp-workspace-pivot, .gemini/skills/gcp-workspace-pivot, .github/skills/gcp-workspace-pivot and .opencode/skills/gcp-workspace-pivot in your project.

What does GCP Workspace Pivot need to run?

Going by SKILL.md and its folder, GCP Workspace Pivot needs the command-line tools its instructions call (gcloud, curl and pip). Our summary lists: Python 3.

Does GCP Workspace Pivot access the network?

SKILL.md names 5 domains. In commands or code: googleapis.com, mail.google.com, gmail.googleapis.com, admin.googleapis.com and admin.google.com; the agent is likely to contact these when it follows the instructions. This is read from the text; nothing was executed.

Is GCP Workspace Pivot safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does GCP Workspace Pivot use?

No licence was found for GCP Workspace Pivot or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does GCP Workspace Pivot use?

About 2.9k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 4.1k tokens, read only when the agent opens those files.

What are the alternatives to GCP Workspace Pivot?

Skills that share tags, products or a category with GCP Workspace Pivot: Google Workspace (ericrisco/rsc-harness, 180 stars), Google Workspace (taracodlabs/aiden, 852 stars), Google Workspace (RedWoodOG/Hermes-Desktop, 177 stars) and Pp Workspace Admin (mvanhorn/printing-press-library, 2.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains GCP Workspace Pivot?

wgpsec (a GitHub organization) maintains it in wgpsec/AboutSecurity, which has 1,778 GitHub stars. The repository holds 64 skills in this directory. The repository was last updated on October 10, 2026.

Source: wgpsec/AboutSecurity on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.