Skip to content
This repository was archived by the owner on Sep 17, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions security_monkey/watchers/iam/iam_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@ class IAMUser(CloudAuxWatcher):
index = 'iamuser'
i_am_singular = 'IAM User'
i_am_plural = 'IAM Users'
honor_ephemerals = True
ephemeral_paths = [
"PasswordLastUsed",

def __init__(self, *args, **kwargs):
super(IAMUser, self).__init__(*args, **kwargs)
self.honor_ephemerals = True
self.ephemeral_paths = [
"PasswordLastUsed",
"AccessKeys$*$LastUsedDate",
"AccessKeys$*$Region",
"AccessKeys$*$ServiceName"]
override_region = 'universal'
self.override_region = 'universal'

def get_name_from_list_output(self, item):
return item['UserName']
Expand Down
9 changes: 6 additions & 3 deletions security_monkey/watchers/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@ class S3(CloudAuxWatcher):
index = 's3'
i_am_singular = 'S3 Bucket'
i_am_plural = 'S3 Buckets'
honor_ephemerals = True
ephemeral_paths = ['GrantReferences']
service_name = 's3'

def __init__(self, *args, **kwargs):
super(S3, self).__init__(*args, **kwargs)
self.honor_ephemerals = True
self.ephemeral_paths = ['GrantReferences']
self.service_name = 's3'

def list_method(self, **kwargs):
buckets = list_buckets(**kwargs)['Buckets']
Expand Down