-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new: added policy ecc-aws-095-aws_config_configuration_changes_alarm_…
…exists
- Loading branch information
1 parent
3477e96
commit 710bdbb
Showing
19 changed files
with
355 additions
and
50 deletions.
There are no files selected for viewing
20 changes: 0 additions & 20 deletions
20
non-compatible-policies/ecc-aws-095-aws_config_configuration_changes_alarm_exists.yml
This file was deleted.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
policies/ecc-aws-095-aws_config_configuration_changes_alarm_exists.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,22 @@ | ||
# Copyright (c) 2023 EPAM Systems, Inc. | ||
# | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
policies: | ||
- name: ecc-aws-095-aws_config_configuration_changes_alarm_exists | ||
comment: '010016012500' | ||
description: | | ||
Log metric filter and alarm do not exist for AWS Config configuration changes | ||
resource: aws.account | ||
filters: | ||
- type: check-cloudtrail | ||
multi-region: true | ||
running: true | ||
include-management-events: true | ||
log-metric-filter-pattern: | ||
type: value | ||
op: regex | ||
value: '{ ?\(? ?\$\.eventSource ?= ?\"?config\.amazonaws\.com\"? ?\)? ?&& ?\( ?\(? ?\$\.eventName ?= ?\"?StopConfigurationRecorder\"? ?\)? ?\|\| ?\(? ?\$\.eventName ?= ?\"?DeleteDeliveryChannel\"? ?\)? ?\|\| ?\(? ?\$\.eventName ?= ?\"?PutDeliveryChannel\"? ?\)? ?\|\| ?\(? ?\$\.eventName ?= ?\"?PutConfigurationRecorder\"? ?\)? ?\) ?}' | ||
|
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
22 changes: 22 additions & 0 deletions
22
..._config_configuration_changes_alarm_exists/placebo-green/cloudtrail.DescribeTrails_1.json
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,22 @@ | ||
{ | ||
"status_code": 200, | ||
"data": { | ||
"trailList": [ | ||
{ | ||
"Name": "cloudtrail-095-green", | ||
"S3BucketName": "095-bucket-425615-green", | ||
"IncludeGlobalServiceEvents": true, | ||
"IsMultiRegionTrail": true, | ||
"HomeRegion": "us-east-1", | ||
"TrailARN": "arn:aws:cloudtrail:us-east-1:644160558196:trail/cloudtrail-095-green", | ||
"LogFileValidationEnabled": false, | ||
"CloudWatchLogsLogGroupArn": "arn:aws:logs:us-east-1:644160558196:log-group:095_log_group_green:*", | ||
"CloudWatchLogsRoleArn": "arn:aws:iam::644160558196:role/095_role_green", | ||
"HasCustomEventSelectors": false, | ||
"HasInsightSelectors": false, | ||
"IsOrganizationTrail": false | ||
} | ||
], | ||
"ResponseMetadata": {} | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...nfig_configuration_changes_alarm_exists/placebo-green/cloudtrail.GetEventSelectors_1.json
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,15 @@ | ||
{ | ||
"status_code": 200, | ||
"data": { | ||
"TrailARN": "arn:aws:cloudtrail:us-east-1:644160558196:trail/cloudtrail-095-green", | ||
"EventSelectors": [ | ||
{ | ||
"ReadWriteType": "All", | ||
"IncludeManagementEvents": true, | ||
"DataResources": [], | ||
"ExcludeManagementEventSources": [] | ||
} | ||
], | ||
"ResponseMetadata": {} | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
..._config_configuration_changes_alarm_exists/placebo-green/cloudtrail.GetTrailStatus_1.json
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,33 @@ | ||
{ | ||
"status_code": 200, | ||
"data": { | ||
"IsLogging": true, | ||
"LatestDeliveryTime": { | ||
"__class__": "datetime", | ||
"year": 2023, | ||
"month": 12, | ||
"day": 16, | ||
"hour": 19, | ||
"minute": 29, | ||
"second": 47, | ||
"microsecond": 548000 | ||
}, | ||
"StartLoggingTime": { | ||
"__class__": "datetime", | ||
"year": 2023, | ||
"month": 12, | ||
"day": 16, | ||
"hour": 19, | ||
"minute": 28, | ||
"second": 29, | ||
"microsecond": 21000 | ||
}, | ||
"LatestDeliveryAttemptTime": "2023-12-16T17:29:47Z", | ||
"LatestNotificationAttemptTime": "", | ||
"LatestNotificationAttemptSucceeded": "", | ||
"LatestDeliveryAttemptSucceeded": "2023-12-16T17:29:47Z", | ||
"TimeLoggingStarted": "2023-12-16T17:28:29Z", | ||
"TimeLoggingStopped": "", | ||
"ResponseMetadata": {} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...aws_config_configuration_changes_alarm_exists/placebo-green/iam.ListAccountAliases_1.json
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,10 @@ | ||
{ | ||
"status_code": 200, | ||
"data": { | ||
"AccountAliases": [ | ||
"test" | ||
], | ||
"IsTruncated": false, | ||
"ResponseMetadata": {} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...config_configuration_changes_alarm_exists/placebo-green/logs.DescribeMetricFilters_1.json
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,22 @@ | ||
{ | ||
"status_code": 200, | ||
"data": { | ||
"metricFilters": [ | ||
{ | ||
"filterName": "095_AWS_Config_Configuration_Changes_green", | ||
"filterPattern": "{ ($.eventSource = config.amazonaws.com) && (($.eventName=StopConfigurationRecorder)||($.eventName=DeleteDeliveryChannel)||($.eventName=PutDeliveryChannel)||($.eventName=PutConfigurationRecorder)) }", | ||
"metricTransformations": [ | ||
{ | ||
"metricName": "095_AWS_Config_Configuration_Changes_green", | ||
"metricNamespace": "AWS_Config_Configuration_Changes", | ||
"metricValue": "1", | ||
"unit": "None" | ||
} | ||
], | ||
"creationTime": 1702747701410, | ||
"logGroupName": "095_log_group_green" | ||
} | ||
], | ||
"ResponseMetadata": {} | ||
} | ||
} |
59 changes: 59 additions & 0 deletions
59
...onfiguration_changes_alarm_exists/placebo-green/monitoring.DescribeAlarmsForMetric_1.json
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,59 @@ | ||
{ | ||
"status_code": 200, | ||
"data": { | ||
"MetricAlarms": [ | ||
{ | ||
"AlarmName": "095_AWS_Config_Configuration_Changes_green", | ||
"AlarmArn": "arn:aws:cloudwatch:us-east-1:644160558196:alarm:095_AWS_Config_Configuration_Changes_green", | ||
"AlarmConfigurationUpdatedTimestamp": { | ||
"__class__": "datetime", | ||
"year": 2023, | ||
"month": 12, | ||
"day": 16, | ||
"hour": 17, | ||
"minute": 28, | ||
"second": 22, | ||
"microsecond": 772000 | ||
}, | ||
"ActionsEnabled": true, | ||
"OKActions": [], | ||
"AlarmActions": [ | ||
"arn:aws:sns:us-east-1:644160558196:095_sns_green" | ||
], | ||
"InsufficientDataActions": [], | ||
"StateValue": "INSUFFICIENT_DATA", | ||
"StateReason": "Unchecked: Initial alarm creation", | ||
"StateUpdatedTimestamp": { | ||
"__class__": "datetime", | ||
"year": 2023, | ||
"month": 12, | ||
"day": 16, | ||
"hour": 17, | ||
"minute": 28, | ||
"second": 22, | ||
"microsecond": 772000 | ||
}, | ||
"MetricName": "095_AWS_Config_Configuration_Changes_green", | ||
"Namespace": "AWS_Config_Configuration_Changes", | ||
"Statistic": "Sum", | ||
"Dimensions": [], | ||
"Period": 300, | ||
"EvaluationPeriods": 1, | ||
"Threshold": 1.0, | ||
"ComparisonOperator": "GreaterThanOrEqualToThreshold", | ||
"TreatMissingData": "missing", | ||
"StateTransitionedTimestamp": { | ||
"__class__": "datetime", | ||
"year": 2023, | ||
"month": 12, | ||
"day": 16, | ||
"hour": 17, | ||
"minute": 28, | ||
"second": 22, | ||
"microsecond": 772000 | ||
} | ||
} | ||
], | ||
"ResponseMetadata": {} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
...aws_config_configuration_changes_alarm_exists/placebo-green/sns.GetTopicAttributes_1.json
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,21 @@ | ||
{ | ||
"status_code": 200, | ||
"data": { | ||
"Attributes": { | ||
"Policy": "{\"Version\":\"2008-10-17\",\"Id\":\"__default_policy_ID\",\"Statement\":[{\"Sid\":\"__default_statement_ID\",\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"*\"},\"Action\":[\"SNS:GetTopicAttributes\",\"SNS:SetTopicAttributes\",\"SNS:AddPermission\",\"SNS:RemovePermission\",\"SNS:DeleteTopic\",\"SNS:Subscribe\",\"SNS:ListSubscriptionsByTopic\",\"SNS:Publish\"],\"Resource\":\"arn:aws:sns:us-east-1:644160558196:095_sns_green\",\"Condition\":{\"StringEquals\":{\"AWS:SourceOwner\":\"644160558196\"}}}]}", | ||
"LambdaSuccessFeedbackSampleRate": "0", | ||
"Owner": "644160558196", | ||
"SubscriptionsPending": "0", | ||
"TopicArn": "arn:aws:sns:us-east-1:644160558196:095_sns_green", | ||
"EffectiveDeliveryPolicy": "{\"http\":{\"defaultHealthyRetryPolicy\":{\"minDelayTarget\":20,\"maxDelayTarget\":20,\"numRetries\":3,\"numMaxDelayRetries\":0,\"numNoDelayRetries\":0,\"numMinDelayRetries\":0,\"backoffFunction\":\"linear\"},\"disableSubscriptionOverrides\":false,\"defaultRequestPolicy\":{\"headerContentType\":\"text/plain; charset=UTF-8\"}}}", | ||
"FirehoseSuccessFeedbackSampleRate": "0", | ||
"SubscriptionsConfirmed": "1", | ||
"SQSSuccessFeedbackSampleRate": "0", | ||
"HTTPSuccessFeedbackSampleRate": "0", | ||
"ApplicationSuccessFeedbackSampleRate": "0", | ||
"DisplayName": "", | ||
"SubscriptionsDeleted": "0" | ||
}, | ||
"ResponseMetadata": {} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...ws_config_configuration_changes_alarm_exists/placebo-red/cloudtrail.DescribeTrails_1.json
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,22 @@ | ||
{ | ||
"status_code": 200, | ||
"data": { | ||
"trailList": [ | ||
{ | ||
"Name": "cloudtrail-095-red", | ||
"S3BucketName": "095-bucket-9590202-red", | ||
"IncludeGlobalServiceEvents": true, | ||
"IsMultiRegionTrail": false, | ||
"HomeRegion": "us-east-1", | ||
"TrailARN": "arn:aws:cloudtrail:us-east-1:644160558196:trail/cloudtrail-095-red", | ||
"LogFileValidationEnabled": false, | ||
"CloudWatchLogsLogGroupArn": "arn:aws:logs:us-east-1:644160558196:log-group:095_log_group_red:*", | ||
"CloudWatchLogsRoleArn": "arn:aws:iam::644160558196:role/095_role_red", | ||
"HasCustomEventSelectors": false, | ||
"HasInsightSelectors": false, | ||
"IsOrganizationTrail": false | ||
} | ||
], | ||
"ResponseMetadata": {} | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
...config_configuration_changes_alarm_exists/placebo-red/cloudtrail.GetEventSelectors_1.json
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,4 @@ | ||
{ | ||
"status_code": 200, | ||
"data": {} | ||
} |
Oops, something went wrong.