-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1319 from panther-labs/release
Prepare for `3.60.0`
- Loading branch information
Showing
25 changed files
with
384 additions
and
94 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
64 changes: 0 additions & 64 deletions
64
correlation_rules/aws_potentially_compromised_service_role.yml
This file was deleted.
Oops, something went wrong.
This file contains 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
14 changes: 14 additions & 0 deletions
14
queries/aws_queries/aws_potentially_compromised_service_role.yml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
AnalysisType: scheduled_rule | ||
RuleID: "AWS.Potentially.Stolen.Service.Role" | ||
DisplayName: "AWS Potentially Stolen Service Role" | ||
Enabled: true | ||
Tags: | ||
- AWS | ||
Severity: High | ||
Reports: | ||
MITRE ATT&CK: | ||
- T1528 # Steal Application Access Token | ||
Description: A role was assumed by an AWS service, followed by a user within 24 hours. This could indicate a stolen or compromised AWS service role. | ||
Filename: scheduled_rule_default.py | ||
ScheduledQueries: | ||
- "AWS Potentially Stolen Service Role" |
23 changes: 23 additions & 0 deletions
23
queries/aws_queries/aws_potentially_compromised_service_role_query.yml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
AnalysisType: scheduled_query | ||
Description: A role was assumed by an AWS service, followed by a user within 24 hours. This could indicate a stolen or compromised AWS service role. | ||
Enabled: false | ||
Query: | | ||
SELECT | ||
requestParameters:roleArn AS role, | ||
ARRAY_AGG(distinct userIdentity:principalId) AS users, | ||
ARRAY_AGG(distinct userIdentity:type) AS types | ||
FROM | ||
panther_logs.public.aws_cloudtrail | ||
WHERE | ||
P_OCCURS_SINCE('1 day') | ||
AND eventName = 'AssumeRole' | ||
AND errorCode IS NULL | ||
GROUP BY role | ||
HAVING | ||
ARRAY_SIZE(types) > 1 | ||
AND ARRAY_CONTAINS('AWSService'::VARIANT, types) | ||
LIMIT 100 | ||
QueryName: "AWS Potentially Stolen Service Role" | ||
Schedule: | ||
RateMinutes: 1440 | ||
TimeoutMinutes: 5 |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.