Command Palette

Search for a command to run...

Назад к скиллам
скилл № 66867

google-workspaces

Blue-team IR for Google Workspace BEC and AiTM compromises — audit log pulls, Alert Center, OAuth token review, session revoke, Gmail content search…

БесплатноБез исполняемых скриптов
VigilOSSот VigilOSS★ 35 звёзд на GitHub

Установить google-workspaces в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Google Workspace Incident Response

When to Activate

  • A tenant user is suspected compromised (BEC, AiTM, token theft, malicious OAuth grant, insider misuse).
  • An end-user sees a "new device signed in" alert they do not recognize.
  • A vendor or bank reports an invoice redirection or wire fraud traced to a tenant mailbox.
  • Admin Reports API audit logs, Alert Center alerts, Gmail filters or forwarding, OAuth grants, or session state need to be pulled.
  • Durable admin actions (signOut, password reset, token revoke) need to land with an audit trail.

Operating Rules

Always-active references — load before the first command runs:

  • agent/rules/triage.md — disposition vocabulary, severity recompute, 30-day
    default look-back, UTC, MITRE-on-every-finding rule, writing discipline
    (anti-slop).
  • agent/rules/ir-evidence.md — attribution gates, multi-signal
    corroboration, confidence labels on attribution claims, evidence-file
    conventions. Verify the legitimate-actor hypothesis (travel, VPN, shared
    delegate) before calling an audit event adversarial — a single unfamiliar
    IP is a lead, not a conclusion.
  • agent/shared-constraints-blue.md — read-only by default (§2: every WRITE
    — password reset, suspend, signOut, token revoke, OAuth-app removal,
    filter deletion, role change, MFA enrollment change — goes through
    propose → approve → execute → record, never silent action mid-investigation),
    artifact-index chain of custody (§3: register every durable pull via
    vigil assess artifact register, which computes the hash itself — a
    hand-written SHA256SUMS.txt is an unregistered claim the index cannot
    attest), UTC (§4),
    30-day look-back (§5), host-exec audit pipeline (§6), stay in scope (§7).

This section adds Google-Workspace-specific detail on top of those rules; it
does not restate or replace them.

Tool Roster — Picking the Right CLI

Task Tool Why
Pull login / token / admin / user_accounts / drive / gmail / saml / groups_enterprise / mobile / rules / context_aware_access activities gcloud + curl (Admin Reports API) Read-only, no DWD needed, one ADC token
Alert Center (alertcenter.googleapis.com) GAM apps.alerts requires a DWD-authorized service account
Gmail Mailbox Settings (filters, forwarding, vacation, IMAP/POP, S/MIME) per user GAM (DWD) Per-user impersonation; gcloud ADC cannot impersonate other users
Gmail message content (subject, body, headers, attachments) GAM (DWD + gmail.readonly) or Google Vault Admin Reports Gmail feed contains only ML-flagged delivery metadata; full message access requires impersonation or Vault
Admin Console → Reporting → Email Log Search UI only Envelope-level metadata (sender, recipient, subject, spam verdict), last 30 days; no API equivalent
List / revoke a user's OAuth tokens GAM or curl Directory API (tokens.list, tokens.delete) Equivalent; GAM is shorter
signOut a user (invalidate every refresh token + session cookie) curl Directory API (/users/{key}/signOut) Atomic one-liner with ADC
Reset password / suspend / un-suspend / create user GAM or Admin Console GAM for scripted / bulk
SQL-style queries over pulled JSON jq + python3 Read-only, fast, no tenant calls

Rule of thumb: gcloud for read-heavy Reports pulls; GAM for anything that touches apps.alerts, Gmail mailbox settings, Gmail content, or per-user impersonation; raw curl when neither tool has a direct verb.

Scope Map

Read-only ADC scopes (safe to grant to the investigator's gcloud session):

openid, email, profile
https://www.googleapis.com/auth/admin.reports.audit.readonly
https://www.googleapis.com/auth/admin.reports.usage.readonly
https://www.googleapis.com/auth/admin.directory.user.readonly
https://www.googleapis.com/auth/admin.directory.user.security       # list/delete user tokens + signOut
https://www.googleapis.com/auth/admin.directory.user.alias.readonly
https://www.googleapis.com/auth/admin.directory.group.readonly
https://www.googleapis.com/auth/cloud-platform

Scopes that live on a DWD-authorized service account (not on the gcloud ADC client):

https://www.googleapis.com/auth/apps.alerts                         # Alert Center
https://www.googleapis.com/auth/gmail.settings.basic                # filters, forwarding, vacation
https://www.googleapis.com/auth/gmail.settings.sharing              # IMAP/POP, sendas, delegation
https://www.googleapis.com/auth/gmail.readonly                      # full message bodies, headers, attachments (READ)
https://www.googleapis.com/auth/gmail.modify                        # delete/label messages (WRITE)
https://www.googleapis.com/auth/admin.directory.user                # create / reset password / signOut via GAM (WRITE)
https://www.googleapis.com/auth/ediscovery                          # Google Vault (if licensed)

apps.alerts is restricted by Google to allowlisted OAuth clie

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл google-workspaces?

Blue-team IR for Google Workspace BEC and AiTM compromises — audit log pulls, Alert Center, OAuth token review, session revoke, Gmail content search, browser/endpoint forensics on Windows and macOS. Covers gcloud vs GAM vs raw REST and the scopes each needs.

Как установить скилл google-workspaces?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл google-workspaces запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить google-workspaces с