performing-gcp-penetration-testing-with-gcpbucketbrute
它能做什么
这个工具用于测试 Google Cloud 项目的安全性。它会查找可能被公开访问的“存储桶”(存储位置),检查访问权限是否过于宽松,并搜索暴露在外的服务账号密钥。
适用场景
- ✓当你要测试 Google Cloud 项目的安全性时。
- ✓当你要调查 Google Cloud 存储桶中可能存在的数据泄露时。
- ✓当你要验证 Google Cloud 资源的访问权限设置是否正确时。
技能链接
https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/performing-gcp-penetration-testing-with-gcpbucketbrute/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“检查我的 Google Cloud 存储桶的安全性,并查找未经授权的访问。”
每周 5 个新技能,1 分钟读完。
工作原理
该工具使用名为 GCPBucketBrute 的程序查找开放的存储桶,然后借助其他 Google Cloud 工具,查看谁有权访问它们,以及是否可能获得更多权限。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Performing GCP Penetration Testing with GCPBucketBrute
Overview
This skill covers Google Cloud Platform security testing using GCPBucketBrute for storage bucket enumeration and access permission testing, combined with gcloud CLI IAM enumeration to identify privilege escalation paths. The approach tests for publicly accessible buckets, overly permissive IAM bindings, and service account key exposure.
When to Use
- When conducting security assessments that involve performing gcp penetration testing with gcpbucketbrute
- When following incident response procedures for related security events
- When performing scheduled security testing or auditing activities
- When validating security controls through hands-on testing
Prerequisites
- Python 3.8+ with google-cloud-storage library
- GCPBucketBrute installed from RhinoSecurityLabs GitHub
- gcloud CLI authenticated with test credentials
- Authorized penetration testing scope for target GCP project
- google-api-python-client and google-auth libraries
Steps
- Enumerate Storage Buckets — Use GCPBucketBrute with keyword permutations to discover accessible GCP storage buckets
- Test Bucket Permissions — Call TestIamPermissions API on each discovered bucket to determine read/write/admin access levels
- Audit IAM Bindings — Enumerate project-level IAM policies to identify overly permissive role bindings
- Check Service Account Keys — Identify service accounts with user-managed keys and test for privilege escalation via impersonation
- Test Privilege Escalation Paths — Check for iam.serviceAccounts.actAs, setIamPolicy, and other privilege escalation vectors
- Generate Findings Report — Produce a structured security assessment with risk severity ratings
Expected Output
- JSON report of discovered buckets with permission levels
- IAM privilege escalation path analysis
- Service account security assessment
- Risk-scored findings with remediation recommendations
常见问题
Google Cloud 中的“存储桶”是什么?
它们就像文件夹或存放位置,可以把文件和数据保存在 Google 的云端。
什么是“权限提升”?
指权限有限的人设法获得了本不应拥有的更高权限,就像未经授权拿到了总钥匙。
我需要有技术基础才能使用吗?
这是一个安全测试工具,最好对 Google Cloud 有一定了解。不过描述中已经用简单的方式解释了它的作用。
详情
作者的原始描述
Performs authorized GCP security testing using GCPBucketBrute to enumerate publicly accessible storage buckets, combined with gcloud CLI IAM enumeration to find privilege escalation paths and audit service account permissions. Use when penetration testing a GCP project for exposed buckets, overly permissive IAM bindings, or service account key exposure.
热度
- GitHub 星标
- 35k
- 排名
- #8234
- 许可证
- Apache-2.0
- 更新时间
- 2026/8/31
评论
- …
同一仓库的更多技能
abusing-dpapi-for-credential-access
35k为你的 AI 智能体提供针对特定任务的现成指令,让它完成得更好、更快。
abusing-shadow-credentials-for-privesc
35k教你的 AI 智能体写出清晰、结构良好的文本。
achieving-cmmc-level-2-compliance
35k帮助你的智能体搭建符合 CMMC Level 2 合规要求的环境。它会落实安全要求,并管理必要的文档。
acquiring-disk-image-with-dd-and-dcfldd
35k帮助你的智能体创建硬盘的精确副本。这能确保调查过程中信息不丢失、不被篡改。