shadow-ai-google-workspace
Installation
SKILL.md
Google Workspace Shadow AI Detection
Use this skill to identify AI tool usage and OAuth exposure in Google Workspace audit evidence.
Workflow
- Start from a Google Workspace evidence directory containing
token.ndjson,access_evaluation.ndjson,admin.ndjson, and optionallygemini_in_workspace_apps.ndjson. - Run
scripts/analyze_shadow_ai.py --input-dir <evidence> --output-dir <analysis> --internal-domain <domain>. - Review confidence levels before making claims:
confirmed_oauth_grant: token feed evidence for an AI-like app or AI-related scope context.access_evaluation_context: access-evaluation evidence that may indicate policy evaluation, attempted access, or contextual allow/block decisions.workspace_gemini_usage: Gemini Workspace utilization events.admin_oauth_control: Admin app trust, limited, block, exempt, or OAuth-scope control changes.keyword_only: weak signal from naming only; validate manually.
- Check
broad_oauth_events.csvfor non-AI apps with risky Gmail, Drive, Calendar, Admin, Apps Script, or broad identity scope exposure. - Validate current state in Admin Console before recommending block, trust, limited, or remediation actions.