- Notifications
You must be signed in to change notification settings - Fork 603
[New Rule] Adding Coverage for AWS SNS Email Subscription by Rare User
#4224
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
Merged
terrancedejesus merged 11 commits into main from new-rule-aws-sns-exfiltration-subscription Nov 6, 2024
Merged
[New Rule] Adding Coverage for AWS SNS Email Subscription by Rare User
#4224
terrancedejesus merged 11 commits into main from new-rule-aws-sns-exfiltration-subscription Nov 6, 2024
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Rule: New - GuidelinesThese guidelines serve as a reminder set of considerations when proposing a new rule. Documentation and Context
Rule Metadata Checks
New BBR Rules
Testing and Validation
|
Aegrah approved these changes Nov 4, 2024
shashank-elastic approved these changes Nov 5, 2024
imays11 approved these changes Nov 6, 2024
imays11 reviewed Nov 6, 2024
rules/integrations/aws/exfiltration_sns_email_subscription_by_rare_user.toml Outdated Show resolved Hide resolved
imays11 reviewed Nov 6, 2024
rules/integrations/aws/exfiltration_sns_email_subscription_by_rare_user.toml Outdated Show resolved Hide resolved
…rare_user.toml Co-authored-by: Isai <59296946+imays11@users.noreply.github.com>
…rare_user.toml Co-authored-by: Isai <59296946+imays11@users.noreply.github.com>
protectionsmachine pushed a commit that referenced this pull request Nov 6, 2024
…er` (#4224) * adding new rule 'AWS SNS Email Subscription by Rare User' * updated mitre; adjusted non-ecs schema; fixed query * removed protocol inclusion in query * fixed risk score * Update rules/integrations/aws/exfiltration_sns_email_subscription_by_rare_user.toml Co-authored-by: Isai <59296946+imays11@users.noreply.github.com> * Update rules/integrations/aws/exfiltration_sns_email_subscription_by_rare_user.toml Co-authored-by: Isai <59296946+imays11@users.noreply.github.com> --------- Co-authored-by: Isai <59296946+imays11@users.noreply.github.com> (cherry picked from commit d5f36b3)
protectionsmachine pushed a commit that referenced this pull request Nov 6, 2024
…er` (#4224) * adding new rule 'AWS SNS Email Subscription by Rare User' * updated mitre; adjusted non-ecs schema; fixed query * removed protocol inclusion in query * fixed risk score * Update rules/integrations/aws/exfiltration_sns_email_subscription_by_rare_user.toml Co-authored-by: Isai <59296946+imays11@users.noreply.github.com> * Update rules/integrations/aws/exfiltration_sns_email_subscription_by_rare_user.toml Co-authored-by: Isai <59296946+imays11@users.noreply.github.com> --------- Co-authored-by: Isai <59296946+imays11@users.noreply.github.com> (cherry picked from commit d5f36b3)
protectionsmachine pushed a commit that referenced this pull request Nov 6, 2024
…er` (#4224) * adding new rule 'AWS SNS Email Subscription by Rare User' * updated mitre; adjusted non-ecs schema; fixed query * removed protocol inclusion in query * fixed risk score * Update rules/integrations/aws/exfiltration_sns_email_subscription_by_rare_user.toml Co-authored-by: Isai <59296946+imays11@users.noreply.github.com> * Update rules/integrations/aws/exfiltration_sns_email_subscription_by_rare_user.toml Co-authored-by: Isai <59296946+imays11@users.noreply.github.com> --------- Co-authored-by: Isai <59296946+imays11@users.noreply.github.com> (cherry picked from commit d5f36b3)
protectionsmachine pushed a commit that referenced this pull request Nov 6, 2024
…er` (#4224) * adding new rule 'AWS SNS Email Subscription by Rare User' * updated mitre; adjusted non-ecs schema; fixed query * removed protocol inclusion in query * fixed risk score * Update rules/integrations/aws/exfiltration_sns_email_subscription_by_rare_user.toml Co-authored-by: Isai <59296946+imays11@users.noreply.github.com> * Update rules/integrations/aws/exfiltration_sns_email_subscription_by_rare_user.toml Co-authored-by: Isai <59296946+imays11@users.noreply.github.com> --------- Co-authored-by: Isai <59296946+imays11@users.noreply.github.com> (cherry picked from commit d5f36b3)
protectionsmachine pushed a commit that referenced this pull request Nov 6, 2024
…er` (#4224) * adding new rule 'AWS SNS Email Subscription by Rare User' * updated mitre; adjusted non-ecs schema; fixed query * removed protocol inclusion in query * fixed risk score * Update rules/integrations/aws/exfiltration_sns_email_subscription_by_rare_user.toml Co-authored-by: Isai <59296946+imays11@users.noreply.github.com> * Update rules/integrations/aws/exfiltration_sns_email_subscription_by_rare_user.toml Co-authored-by: Isai <59296946+imays11@users.noreply.github.com> --------- Co-authored-by: Isai <59296946+imays11@users.noreply.github.com> (cherry picked from commit d5f36b3)
protectionsmachine pushed a commit that referenced this pull request Nov 6, 2024
…er` (#4224) * adding new rule 'AWS SNS Email Subscription by Rare User' * updated mitre; adjusted non-ecs schema; fixed query * removed protocol inclusion in query * fixed risk score * Update rules/integrations/aws/exfiltration_sns_email_subscription_by_rare_user.toml Co-authored-by: Isai <59296946+imays11@users.noreply.github.com> * Update rules/integrations/aws/exfiltration_sns_email_subscription_by_rare_user.toml Co-authored-by: Isai <59296946+imays11@users.noreply.github.com> --------- Co-authored-by: Isai <59296946+imays11@users.noreply.github.com> (cherry picked from commit d5f36b3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport: auto Domain: Cloud Workloads Integration: AWS AWS related rules Rule: New Proposal for new rule
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
Pull Request
Issue link(s):
Summary - What I changed
Adds new rule
AWS SNS Email Subscription by Rare User
.This rule identifies when an SNS topic is subscribed to by an email address by a user who does not typically perform this action. While subscribing to SNS topics is a common practice, adversaries may exploit this feature to collect sensitive information or exfiltrate data via an external email address.
This technique is not unique to AWS, but exfiltration through pub/sub topics in general across CSPs.
Note
The subscriber address is not visible in CloudTrail logs, therefore we are unable to filter on address domain != org domain, indicating an external account. As such, we have made this a new terms rule to at least identify this unusual occurrence for a user.
How To Test
Checklist
bug
,enhancement
,schema
,Rule: New
,Rule: Deprecation
,Rule: Tuning
,Hunt: New
, orHunt: Tuning
so guidelines can be generatedmeta:rapid-merge
label if planning to merge within 24 hoursContributor checklist