-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
⭐ Draft: Enhancing Users Key Metadata retrieval (aws) #3453
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Hossein Rouhani <[email protected]>
Signed-off-by: Hossein Rouhani <[email protected]>
@@ -1662,6 +1662,10 @@ resources: | |||
desc: | | |||
Use the `aws.iam` resource to assess the configuration of the AWS IAM service. The resource provides a list of `aws.iam.user` resources representing GuardDuty Detectors deployed across all enabled regions. | |||
fields: | |||
accessKeyMetadata: | |||
min_mondoo_version: latest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
min_mondoo_version: latest | |
min_mondoo_version: 9.0.0 |
accessKeyMetadata: | ||
min_mondoo_version: latest | ||
accessKeys: | ||
min_mondoo_version: latest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
min_mondoo_version: latest | |
min_mondoo_version: 9.0.0 |
accessKeyId: {} | ||
createDate: {} | ||
status: {} | ||
min_mondoo_version: latest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
min_mondoo_version: latest | |
min_mondoo_version: 9.0.0 |
@@ -1817,6 +1843,9 @@ resources: | |||
accessKey2LastUsedDate: {} | |||
accessKey2LastUsedRegion: {} | |||
accessKey2LastUsedService: {} | |||
accessKeyMetadata: | |||
min_mondoo_version: latest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
min_mondoo_version: latest | |
min_mondoo_version: 9.0.0 |
Problems:
it seems it fetch access keys for one specific IAM user, not for all users
need to check if a.Name.Data returns all usernames, or there is another mechanism in place that calls accessKeys() multiple times
The modified function, by explicitly handling each relevant field of the access key metadata, might offer better clarity and maintainability, especially in contexts where specific data handling or additional processing is required for each field.
Goals:
The motivation behind this approach was to enable a direct comparison between data obtained from aws.iam.usercredentialreportentry and aws.iam.accessKey through an MQL query, thereby facilitating a more comprehensive data analysis and correlation within the AWS IAM framework.