identity-access-risk

Analyze AWS IAM anomalies and privilege escalation attempts from CloudTrail logs.

3|3|Updated Mar 8, 2026
One-click install
npx skills add https://github.com/jaskaranhundal/usap-skills --skill identity-access-risk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: identity-access-risk
Source: https://github.com/jaskaranhundal/usap-skills/tree/main/identity-access/identity-access-risk
Command: npx skills add https://github.com/jaskaranhundal/usap-skills --skill identity-access-risk

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python-json-logger, boto3, requests, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill identifies and mitigates risks associated with compromised or overprivileged cloud identities, preventing unauthorized access and potential data breaches.

Core Features & Use Cases

  • IAM Anomaly Detection: Detects suspicious activity like privilege escalation, lateral movement, and credential stuffing.
  • Risk Assessment: Analyzes IAM policies and access patterns to identify overprivileged accounts and potential attack paths.
  • Remediation Guidance: Provides specific, actionable recommendations for revoking access, correcting policies, and enforcing security best practices.
  • Use Case: If an alert indicates an unusual AssumeRole activity from an unknown IP, this Skill will analyze the involved roles, assess the blast radius, and recommend immediate session revocation.

Quick Start

Analyze the provided CloudTrail event for identity and access risks.

Frequently Asked Questions about identity-access-risk

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect IAM privilege escalation attempts in AWS CloudTrail logs?

To detect IAM privilege escalation, analyze AWS CloudTrail logs for suspicious patterns like enumeration bursts, backdoor role creation, and defense evasion. This approach maps findings to MITRE ATT&CK techniques and assesses blast radius for critical assets.

What is the best way to identify overprivileged IAM identities and prevent unauthorized access?

The best way to identify overprivileged IAM identities is by analyzing IAM policies and access patterns to uncover potential attack paths. This risk assessment provides specific, actionable recommendations for revoking access, correcting policies, and enforcing security best practices.

Can I use this to analyze unusual AssumeRole activity and assess blast radius?

Yes, you can analyze unusual AssumeRole activity triggered by alerts from unknown IPs. The analysis evaluates the involved roles, assesses the blast radius for critical cloud assets, and recommends immediate session revocation to mitigate risk.

Do I need boto3 to automate IAM anomaly detection and risk assessment?

Yes, you need boto3 along with python-json-logger and requests dependencies to automate IAM anomaly detection. These libraries facilitate AWS API interactions, structured logging, and HTTP requests required for analyzing IAM policies and CloudTrail events.

How does mapping cloud security findings to MITRE ATT&CK techniques improve remediation?

Mapping cloud security findings to MITRE ATT&CK techniques improves remediation by contextualizing IAM anomalies and privilege escalation attempts within known adversary tactics. This mapping helps prioritize responses based on the specific attack behaviors detected in CloudTrail logs.

What are the limitations when analyzing CloudTrail logs for identity and access risks?

Limitations when analyzing CloudTrail logs for identity and access risks include reliance on the completeness of CloudTrail logging and IAM policy configurations. Accurate detection of lateral movement and credential stuffing requires comprehensive visibility into all API events and access patterns.