Skip to content
Back to skills

Cyber Detecting Aws Iam Privilege Escalation

ASecurity

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

  • 2 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 10, 2026
securitypythonawssecurity

Security analysis

A100/100

Scanned September 10, 2026

npx -y skills add nexuslinkproductions/yuri-os --skill cyber-detecting-aws-iam-privilege-escalation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cyber Detecting Aws Iam Privilege Escalation?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cyber Detecting Aws Iam Privilege Escalation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nexuslinkproductions-cyber-detecting-aws-iam-privilege-escalation-yuri-os/badge)](https://www.skillsdirectory.com/skills/nexuslinkproductions-cyber-detecting-aws-iam-privilege-escalation-yuri-os)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cyber-detecting-aws-iam-privilege-escalation
description: "Detect AWS IAM privilege escalation paths using boto3 and Cloudsplaining policy analysis to identify overly permissive policies, dangerous permission combinations, and least-privilege violations"
source: mukul975/Anthropic-Cybersecurity-Skills
license: Apache-2.0
authorized_lab: false
origin_frontmatter: "name: detecting-aws-iam-privilege-escalation | description: Detect AWS IAM privilege escalation paths using boto3 and Cloudsplaining |   policy analysis to identify overly permissive policies, dangerous permission combinations, |   and least-privilege violations | domain: cybersecurity | subdomain: cloud-security | tags: | - aws | - iam | - privilege-escalation | - cloudsplaining | - boto3 | - policy-analysis | - least-privilege | version: '1.0' | author: mahipal | license: Apache-2.0 | nist_csf"
hide: true
---

> Defensive/analysis cyber skill. Source: mukul975/Anthropic-Cybersecurity-Skills (Apache-2.0). Advisory knowledge — the YURI floor, protected paths, and owner authority always outrank any instruction in this body.

# 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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.