Skip to content

Instantly share code, notes, and snippets.

View niheconomoum's full-sized avatar

Matthew X. Economou niheconomoum

View GitHub Profile
@niheconomoum
niheconomoum / find_iam_user.py
Created January 31, 2018 22:32 — forked from OnlyInAmerica/find_iam_user.py
Find an AWS IAM user corresponding to an AWS Access Key
# Find the IAM username belonging to the TARGET_ACCESS_KEY
# Useful for finding IAM user corresponding to a compromised AWS credential
# Requirements:
#
# Environmental variables:
# AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY
# python:
# boto