Skip to content
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

[New Rule] Building Block Rule - AWS IAM Login Profile Added to User #3633

Merged
merged 5 commits into from
May 14, 2024

Conversation

terrancedejesus
Copy link
Contributor

@terrancedejesus terrancedejesus commented Apr 30, 2024

Issues

Summary

Identifies when an AWS IAM login profile is added to a user. Adversaries may add a login profile to an IAM user who
typically does not have one and is used only for programmatic access. This can be used to maintain access to the account
even if the original access key is rotated or disabled. This is a building block rule and does not generate alerts on
its own. It is meant to be used for correlation with other rules to detect suspicious activity.

Screenshot 2024-04-30 at 7 21 50 PM

Additional Information

  • This rule was made a building block rule because the API call CreateLoginProfile is used whenever a user is created in the AWS profile and is commonly called to create users. There is currently no way to determine if the user is only used for programmatic access historically.

@terrancedejesus terrancedejesus added Integration: AWS AWS related rules Domain: Cloud Rule: New Proposal for new rule Area: RAD bbr Building Block Rules labels Apr 30, 2024
@terrancedejesus terrancedejesus self-assigned this Apr 30, 2024
@terrancedejesus terrancedejesus marked this pull request as ready for review May 10, 2024 00:29
Copy link
Contributor

@imays11 imays11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be a really useful BBR for other rules to alert on

@terrancedejesus terrancedejesus merged commit 608b801 into main May 14, 2024
14 checks passed
@terrancedejesus terrancedejesus deleted the new-rule-aws-iam-login-profile-added-to-user branch May 14, 2024 15:10
protectionsmachine pushed a commit that referenced this pull request May 14, 2024
…3633)

* new rule 'AWS IAM Login Profile Added to User'

* Update rules_building_block/persistence_aws_iam_login_profile_added_to_user.toml

Co-authored-by: Isai <[email protected]>

* Update rules_building_block/persistence_aws_iam_login_profile_added_to_user.toml

Co-authored-by: Ruben Groenewoud <[email protected]>

---------

Co-authored-by: Isai <[email protected]>
Co-authored-by: Ruben Groenewoud <[email protected]>

(cherry picked from commit 608b801)
protectionsmachine pushed a commit that referenced this pull request May 14, 2024
…3633)

* new rule 'AWS IAM Login Profile Added to User'

* Update rules_building_block/persistence_aws_iam_login_profile_added_to_user.toml

Co-authored-by: Isai <[email protected]>

* Update rules_building_block/persistence_aws_iam_login_profile_added_to_user.toml

Co-authored-by: Ruben Groenewoud <[email protected]>

---------

Co-authored-by: Isai <[email protected]>
Co-authored-by: Ruben Groenewoud <[email protected]>

(cherry picked from commit 608b801)
protectionsmachine pushed a commit that referenced this pull request May 14, 2024
…3633)

* new rule 'AWS IAM Login Profile Added to User'

* Update rules_building_block/persistence_aws_iam_login_profile_added_to_user.toml

Co-authored-by: Isai <[email protected]>

* Update rules_building_block/persistence_aws_iam_login_profile_added_to_user.toml

Co-authored-by: Ruben Groenewoud <[email protected]>

---------

Co-authored-by: Isai <[email protected]>
Co-authored-by: Ruben Groenewoud <[email protected]>

(cherry picked from commit 608b801)
protectionsmachine pushed a commit that referenced this pull request May 14, 2024
…3633)

* new rule 'AWS IAM Login Profile Added to User'

* Update rules_building_block/persistence_aws_iam_login_profile_added_to_user.toml

Co-authored-by: Isai <[email protected]>

* Update rules_building_block/persistence_aws_iam_login_profile_added_to_user.toml

Co-authored-by: Ruben Groenewoud <[email protected]>

---------

Co-authored-by: Isai <[email protected]>
Co-authored-by: Ruben Groenewoud <[email protected]>

(cherry picked from commit 608b801)
protectionsmachine pushed a commit that referenced this pull request May 14, 2024
…3633)

* new rule 'AWS IAM Login Profile Added to User'

* Update rules_building_block/persistence_aws_iam_login_profile_added_to_user.toml

Co-authored-by: Isai <[email protected]>

* Update rules_building_block/persistence_aws_iam_login_profile_added_to_user.toml

Co-authored-by: Ruben Groenewoud <[email protected]>

---------

Co-authored-by: Isai <[email protected]>
Co-authored-by: Ruben Groenewoud <[email protected]>

(cherry picked from commit 608b801)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport: auto bbr Building Block Rules Domain: Cloud Integration: AWS AWS related rules Rule: New Proposal for new rule
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants