This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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: |