跳到正文
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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/detecting-aws-iam-privilege-escalation/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 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
常见问题

什么是“权限提升”?

指一个权限有限的用户,设法获得了超出其本应拥有的权限。打个比方,就像一个普通员工闯进了 CEO 的办公室。

使用这个工具需要专业技术知识吗?

最好了解一些 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

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能