awsiamprivilegeescalationaudit

Enumerate all IAM roles, policies, and users using boto3 and the AWS IAM Access Analyzer API to identify permission combinations that could allow escalation to AdministratorAccess. Map findings to MITRE ATT&CK TA0004 (Privilege Escalation) and provide remediation guidance plus JSON examples of least-privilege replacement policies.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "awsiamprivilegeescalationaudit" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-47352a13540b326a38fefdba973a7f77555a1e39714684e31f6bd1e3d8daa2a9. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/aws-iam-privilege-escalation-audit before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Enumerate all IAM roles, policies, and users using boto3 and the AWS IAM Access Analyzer API to identify permission combinations that could allow escalation to AdministratorAccess. Map findings to MITRE ATT&CK TA0004 (Privilege Escalation) and provide remediation guidance plus JSON examples of least-privilege replacement policies.

0 Downloads

Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: "AWS IAM Privilege Escalation Audit"
slug: "aws-iam-privilege-escalation-audit"
version: "1.0.0"
displayName: "AWS IAM Privilege Escalation Audit"
summary: "使用 boto3 和 AWS IAM Access Analyzer API 枚举所有角色、策略和用户,然后标记可能允许提升权限至 AdministratorAccess 的权限组合。输出映射到 MITRE ATT&CK TA0004 的发现结果,并提供修复步骤和最小权限替换策略 JSON。"
license: "MIT"
description: "使用 boto3 和 AWS IAM Access Analyzer API 枚举所有角色、策略和用户,然后标记可能允许提升权限至 AdministratorAccess 的权限组合。输出映射到 MITRE ATT&CK TA0004 的发现结果,并提供修复步骤和最小权限替换策略 JSON。"
github_stars: 3607
verification: "security_reviewed"
source: "https://github.com/1991513ccie-png/skills"
category: "Security & Verification"
framework: "Claude Code"
tool_ecosystem:
  github_repo: "1991513ccie-png/skills"
  github_stars: 3607

AWS IAM 权限提升审计

使用 boto3 和 AWS IAM Access Analyzer API 枚举所有角色、策略和用户,然后标记可能允许提升权限至 AdministratorAccess 的权限组合。输出映射到 MITRE ATT&CK TA0004 的发现结果,并提供修复步骤和最小权限替换策略 JSON。

安装

使用与您的环境匹配的上游安装或设置路径:

  • 让我们通过设置一个依赖于 SDK 中 DynamoDB 并进行简单服务调用的项目来演示。以下步骤以 yarn 为例。这些步骤假设您已安装 Node.js 和 yarn。
  • git clone https://github.com/1991513ccie-png/skills
  • yarn && yarn test:all
  • yarn pack .

上游的要求和注意事项:

基本用法或入门说明:

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 提供 AWS IAM 权限提升审计能力,具有明确的实用价值
  • 映射 MITRE ATT&CK TA0004,增强安全审计的标准化
  • 提供修复建议和最小权限策略 JSON 示例,提升可操作性
Trigger Precision90/100

Highlights

  • 触发词精准完整,覆盖多种变体,边界清晰
  • 明确描述了使用 boto3 和 AWS IAM Access Analyzer API 的功能
Structure and Standards60/100

Areas to improve

  • 安装说明中提到了 yarn 和 Node.js,与 description 中提到的 boto3(Python)不一致,存在混淆 Reported severity: Minor

    安装说明中提到了 yarn 和 Node.js,与 description 中提到的 boto3(Python)不一致,存在混淆

    Recommendation: 统一安装说明中的技术栈,确保与 description 中提到的技术栈一致

  • 缺少具体的执行步骤和端到端示例 Reported severity: Minor

    缺少具体的执行步骤和端到端示例

    Recommendation: 补充具体的执行步骤和端到端示例,帮助用户更好地理解和使用 Skill

Highlights

  • frontmatter 完整,包含必要的元数据
Execution Reliability50/100

Areas to improve

  • 未提供具体的代码示例或错误处理机制 Reported severity: Major

    未提供具体的代码示例或错误处理机制

    Recommendation: 提供具体的代码示例和错误处理机制,确保 Skill 的可靠执行

  • 未覆盖主要异常情况,如 API 调用失败、权限不足等 Reported severity: Major

    未覆盖主要异常情况,如 API 调用失败、权限不足等

    Recommendation: 覆盖主要异常情况,如 API 调用失败、权限不足等,提升 Skill 的健壮性

  • 不可逆操作(如修改 IAM 策略)未提及确认机制 Reported severity: Major

    不可逆操作(如修改 IAM 策略)未提及确认机制

    Recommendation: 提及不可逆操作的确认机制,确保用户在进行敏感操作时有明确的确认步骤

Highlights

  • 提到了使用 boto3 和 AWS IAM Access Analyzer API,具有一定的技术基础
Evidence Verifiability (mean of the first four)71/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • github.com
  • raw.githubusercontent.com
  • yarnpkg.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.