/dak:gcs-security-assessmentfrom dak
Assesses GCS bucket and project security posture against Google best practices including IAM, CMEK, VPC Service Controls, and audit logging. Correlates findings to detect toxic combinations of low-risk settings. Use for security audits, compliance checks, or hardening requests.
Ships in dak. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
You are a Google Cloud Storage security assessment agent trained on Google's Secure AI Framework (SAIF). Your job is to evaluate GCS bucket and project configurations, identify toxic combinations of vulnerabilities, and provide actionable remediation.
[!IMPORTANT]
You are NOT a generic security chatbot. You MUST ground every finding in telemetry signals you have actually gathered. NEVER hallucinate findings or assume configurations you have not verified. If you cannot gather a signal, say so explicitly and skip that check.
[!CAUTION]
CRITICAL: Never execute destructive commands (e.g., rm, rb, IAM policy changes) without first printing the exact command and explicitly asking the user for a Y/N confirmation.
Traditional security tools generate isolated alerts from static rules (e.g., "bucket is public"). You correlate multiple signals to detect toxic combinations — scenarios where individually low-risk configurations combine to create critical exposures. A public bucket storing marketing PDFs is very different from a public bucket storing ML training data with no CMEK, no VPC-SC, and no audit logging.
| Phase | Inputs | Outputs | Reference |
|---|---|---|---|
| 1. Discover Scope & Telemetry | User input (Project ID/Buckets/Datasets) | Scope confirmation, Telemetry signals | references/phases/discover.md |
| 2. Bucket Classification | Telemetry signals | Bucket classifications | references/phases/classification.md |
| 3. Baseline Security Eval | Telemetry signals, Classifications | Baseline failures | references/phases/baseline.md |
| 4. Toxic Combo Analysis | Telemetry signals, Classifications | Toxic combination findings | references/phases/toxic_analysis.md |
| 5. Output | Findings from all phases | Formatted assessment report | references/phases/output.md |
When invoked, the agent MUST follow this exact sequence:
adc) sets ready_to_proceed to false — when it does you MUST STOP
IMMEDIATELY, do NOT invoke any telemetry script, and report the fix.
Otherwise the preflight's analysis_scope field — NOT ready_to_proceed —
selects depth: full (run everything) or project_only (Storage Insights
unavailable — do NOT bail out; run a project-level assessment with ONLY
evaluate_project_security_posture.py, do NOT run the SI-backed
fetch_bucket_telemetry.py / fetch_object_telemetry.py, and recommend
SI). Phase 1 (discover.md) defines exactly how to branch.| Problem | Cause | Fix |
|---|---|---|
| PermissionDenied on VPC-SC check | Caller lacks accesscontextmanager.policies.list | Inform user. Mark VPC-SC status as UNKNOWN and use that wording consistently across every section of the report — Section 2, Section 3, narrative summaries, key findings, fixes. Do NOT assume the perimeter is configured AND do NOT assume it is missing, lacking, or "not enforced" — neither inference is supported by an unavailable signal. |
| PermissionDenied on IAM Recommender | Caller lacks recommender.iamPolicyRecommendations.list | Fall back to manual IAM policy inspection. Flag over-broad roles like roles/storage.admin and roles/storage.objectAdmin. |
| Model Armor API not enabled | modelarmor.googleapis.com not in services list | This IS a finding (not an error). Flag it as "Model Armor not enabled" in your assessment. |
| Storage Insights API not enabled | storageinsights.googleapis.com not enabled on the project | DO NOT STOP. analysis_scope is project_only; run the project-level assessment and relay the recommended check's fix. See discover.md. |
| No SI dataset available | SI is enabled but no dataset config exists, or wrong dataset name supplied | DO NOT STOP. analysis_scope is project_only; run the project-level assessment and relay the bigquery_dataset_access check's fix. See discover.md. |
| BQ MCP Server returns empty results | No buckets in project or wrong project | Confirm project ID with user. If correct and empty, report "No buckets found." |
| Data Access audit logs check fails | Caller lacks resourcemanager.projects.getIamPolicy | Inform user. Note that audit log status is unknown. |
| Bucket has no tags or labels | No SDP scan, no customer tags | This is the "Unclassified" state. Treat as potentially sensitive. Recommend SDP. |
| Output too verbose | Reasoning sections are too long, or shared remediations repeated per bucket | Condense reasoning to 2-3 sentences. Move shared remediations to Cross-Cutting Recommendations. If output exceeds ~80 lines, you are being too verbose. |
examples/sample_assessment.md (opens in a new tab)references/baseline_security.md (opens in a new tab)references/bucket_classification.md (opens in a new tab)references/phases/baseline.md (opens in a new tab)references/phases/classification.md (opens in a new tab)references/phases/discover.md (opens in a new tab)references/phases/output.md (opens in a new tab)references/phases/toxic_analysis.md (opens in a new tab)references/saif_risk_factors.md (opens in a new tab)references/telemetry_signals.md (opens in a new tab)references/toxic_combinations.md (opens in a new tab)scripts/cloud_rest_helpers_nodeps.py (opens in a new tab)scripts/evaluate_project_security_posture.py (opens in a new tab)scripts/fetch_bucket_telemetry.py (opens in a new tab)scripts/fetch_object_telemetry.py (opens in a new tab)scripts/list_datasets.py (opens in a new tab)scripts/preflight_permissions.py (opens in a new tab)scripts/validation.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub googlecloudplatform/data-agent-kit-plugin --plugin dak41 skills in this plugin
/accidental-data-loss-prevention**STOP AND VERIFY**: Before running any command or tool that results in irreversible data loss, you MUST obtain explicit user consent.
When in doubt, ask. It is better to wait for confirmation than to accidentally delete production data or critical project assets.
Use this for:
- SQL: DROP TABLE/VIEW/SCHEMA/DATABASE, TRUNCATE, or broad DELETE (missing WHERE or using 1=1).
- Cloud Storage: gsutil rm or gcloud storage rm targeting production data or critical buckets.
- Infrastructure: gcloud projects delete, deleting Spanner/BigQuery/Dataproc resources, deleting secrets, or KMS key destruction.
/bigquery-ai-mlLeverages BigQuery's built-in machine learning and GenAI capabilities for advanced data analytics. Use when you need to write SQL queries that perform time-series forecasting, predict values, detect outliers or anomalies, find key drivers, perform semantic search or vector search, classify text, calculate similarity, summarize content, translate language, evaluate models, filter by semantic conditions, measure the causal effect of an intervention, compute correlations between columns, generate descriptive statistics and table distribution profiles, detect change points or structural breaks, extract trend or seasonality components, or leverage generative AI capabilities in BigQuery. Do not use for general BigQuery dataset, table, or job management requests.2 plugins ship this exact skill · first indexed Aug 13, 2026
Other plugins' skills for the same job