本文へスキップ
Skillpedia
エージェント35k · #7800

detecting-aws-iam-privilege-escalation

できること

このツールは、攻撃者がAmazon Web Services(AWS)アカウントでより強い権限を取得する方法を見つけます。既存の権限を分析し、悪用されるおそれのある危険な設定を見つけ出します。

使う場面

  • ✓AWSアカウントへの不正アクセスが疑われるとき。
  • ✓AWSの権限が安全に設定されているかを確認するとき。
  • ✓不正侵入の可能性について、セキュリティアラートを作成したいとき。

スキルのリンク

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/detecting-aws-iam-privilege-escalation/SKILL.md

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

使い方

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

貼り付け用メッセージ

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

AIへの頼み方の例

“私のAWSアカウントで、権限昇格の経路がないか確認してください。”

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

仕組み

このツールは、AWSアカウントの権限情報をダウンロードし、危険な操作の組み合わせを探します。過度に許可されたポリシーを特定し、その修正方法を提案します。

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

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

Detecting AWS IAM Privilege Escalation

Overview

This skill uses boto3 and Cloudsplaining-style analysis to identify IAM privilege escalation paths in AWS accounts. It downloads the account authorization details, analyzes each policy for dangerous permission combinations (iam:PassRole + lambda:CreateFunction, iam:CreatePolicyVersion, sts:AssumeRole), and flags policies that violate least-privilege principles.

When to Use

  • When investigating security incidents that require detecting aws iam privilege escalation
  • When building detection rules or threat hunting queries for this domain
  • When SOC analysts need structured procedures for this analysis type
  • When validating security monitoring coverage for related attack techniques

Prerequisites

  • Python 3.8+ with boto3 library
  • AWS credentials with IAM read-only access (iam:GetAccountAuthorizationDetails)
  • Optional: cloudsplaining Python package for HTML report generation

Steps

  1. Download IAM Authorization Details — Call iam:GetAccountAuthorizationDetails to retrieve all users, groups, roles, and policies
  2. Analyze Policies for Privilege Escalation — Check each policy for known escalation permission combinations
  3. Identify Wildcard Resource Policies — Flag policies using Resource: "*" with dangerous actions
  4. Map Principal-to-Policy Relationships — Build a graph of which principals can access which escalation paths
  5. Score and Prioritize Findings — Rank findings by severity based on escalation vector type
  6. Generate Report — Produce structured JSON report with remediation guidance

Expected Output

  • JSON report of privilege escalation findings with severity scores
  • List of dangerous permission combinations per principal
  • Wildcard resource policy audit results
  • Remediation recommendations for each finding
よくある質問

「権限昇格(privilege escalation)」とは何ですか?

限られたアクセス権しか持たない人が、本来許されていない、より強い権限を不正に取得することです。たとえば、一般社員が社長室に入れてしまうような状況を指します。

このツールを使うには、技術的な知識が必要ですか?

AWSの基本的な仕組みを知っていることが推奨されますが、このツールは結果をできるだけわかりやすく示すように設計されています。

AWSの「ポリシー」とは何ですか?

ポリシーは、ユーザーやサービスがAWS内で何をできて、何をできないかを定めたルールの集まりです。

詳細

作者による元の説明

Detect AWS IAM privilege escalation paths using boto3 and Cloudsplaining policy analysis to identify overly permissive policies, dangerous permission combinations, and least-privilege violations

repo: mukul975/Anthropic-Cybersecurity-Skills

人気

GitHubのスター
35k
ランキング
#7800
ライセンス
Apache-2.0
更新日
2026/8/31

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

0

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

コメント

  • …

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

似ているスキル