nccgroup / PMapper

A tool for quickly evaluating IAM permissions in AWS.
GNU Affero General Public License v3.0
1.37k stars 169 forks source link

Does PMapper support cross-account graphing, querying, and analysis? #88

Closed mdb-vzeddie closed 2 years ago

mdb-vzeddie commented 2 years ago

Question

Does PMapper support cross-account graphing, querying, and analysis?

Wiki

https://github.com/nccgroup/PMapper/wiki does not have an answer. I suggest putting it in the FAQ section or create a new section about cross-account architecture.


If a role in account A can assume a role in account B, can this be caught by PMapper? What does the CLI syntax look like to analyze for such scenarios?

ncc-erik-steringer commented 2 years ago

Mostly!

Right now cross-account querying is not available via CLI, we need to figure out how to gracefully allow that type of query. If your accounts are all under an AWS Organization, you can use pmapper orgs update after you finish graphing the accounts, and it'll print a list of inter-account edges.

There are library functions that handle generating cross-account edges between two arbitrary graphs (no organizations link required) as well as running queries against multiple accounts:

Good call on updating the wiki for cross-account work. I'll leave this issue open until I knock that out.

ncc-erik-steringer commented 2 years ago

Wiki updated: https://github.com/nccgroup/PMapper/wiki/Frequently-Asked-Questions#how-do-i-do-cross-account-authorization-checks

Thank you!