-
Notifications
You must be signed in to change notification settings - Fork 180
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
Tweak existing exfiltration rules; add additional rules #1036
Conversation
2fabc8d
to
0c6073b
Compare
rules/aws_cloudtrail_rules/aws_ami_modified_for_public_access.yml
Outdated
Show resolved
Hide resolved
event.deep_get("requestParameters", "attributeName") == "restore", | ||
] | ||
): | ||
shared_account_ids = event.deep_get("requestParameters", "valuesToAdd", default=[]) |
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.
Can this be compared to userIdentity.accountId and only alert if the valuesToAdd account ID is different?
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.
I don't know if a snapshot can be shared with the account it's created in. We can certainly add the logic to check for it, though.
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.
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.
LGTM!
Background
This PR adds additional exfiltration rules for RDS and tweaks existing rules. Some of the existing rules were only focusing on
group
share events when resource sharing can also be done on an individual user/account basis.I also sorted the strings in
packs/aws.yaml
.Changes
aws_rds_manual_snapshot_created.py
/.yml
aws_rds_snapshot_shared.py
/.yml
aws_ami_modified_for_public_access.py
/.yml
aws_snapshot_made_public.py
Testing
make fmt; make lint; make test