Skip to content

Instantly share code, notes, and snippets.

View luisfontes19's full-sized avatar
🤓

Luis Fontes luisfontes19

🤓
View GitHub Profile
#!/usr/bin/env python3
"""
AWS Trust Graph Analyzer
This script analyzes AWS IAM trust relationships across accounts, roles, users, and SSO principals.
It builds a graph of `sts:AssumeRole` relationships, identifies roles with admin-level privileges,
and traces trust chains to help you understand who really has root-equivalent access in your AWS environment.
The tool supports multiple output formats, including: