跳到主要内容
知仓学习社ZHICANG

performing-gcp-penetration-testing-with-gcpbucketbrute

Performs authorized GCP security testing using GCPBucketBrute to enumerate

执行命令写文件严重 0 · 高危 7mukul975/Anthropic-Cybersecurity-Skills

它会碰到什么

扫了多少4 个文本文件,25 KB
它会碰到什么执行命令写文件
命中总数8 处
命中统计严重 0 · 高 7 · 中 1 · 低 0
逐条看命中(7 条严重或高危)
  • scripts/agent.py:41exec-spawn
    result = subprocess.run(
  • scripts/agent.py:59exec-spawn
    result = subprocess.run(
  • scripts/agent.py:82exec-spawn
    result = subprocess.run(
  • scripts/agent.py:106exec-spawn
    result = subprocess.run(
  • scripts/agent.py:117exec-spawn
    keys_result = subprocess.run(
  • scripts/agent.py:136exec-spawn
    result = subprocess.run(
  • scripts/agent.py:146exec-spawn
    role_result = subprocess.run(

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

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

  1. Enumerate Storage Buckets — Use GCPBucketBrute with keyword permutations to discover accessible GCP storage buckets
  2. Test Bucket Permissions — Call TestIamPermissions API on each discovered bucket to determine read/write/admin access levels
  3. Audit IAM Bindings — Enumerate project-level IAM policies to identify overly permissive role bindings
  4. Check Service Account Keys — Identify service accounts with user-managed keys and test for privilege escalation via impersonation
  5. Test Privilege Escalation Paths — Check for iam.serviceAccounts.actAs, setIamPolicy, and other privilege escalation vectors
  6. 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

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。