Skip to content

Commit f3bd7ec

Browse files
IevIeievgeniia ieromenko
andauthored
adding updated guardduty features to easy setup and quick setup deployments (#154)
Co-authored-by: ievgeniia ieromenko <ieviero@amazon.com>
1 parent 161e0e3 commit f3bd7ec

File tree

7 files changed

+182
-3
lines changed

7 files changed

+182
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Table of Contents<!-- omit in toc -->
44

55
- [Introduction](#introduction)
6+
- [2023-06-21](#2023-06-21)
67
- [2023-06-20](#2023-06-20)
78
- [2023-06-01](#2023-06-01)
89
- [2023-05-12](#2023-05-12)
@@ -39,6 +40,11 @@ All notable changes to this project will be documented in this file.
3940

4041
---
4142

43+
## 2023-06-21
44+
45+
- Added [GuardDuty Organization](aws_sra_examples/solutions/guardduty/guardduty_org) EKS, Malware, RDS, and Lambda protections to [Easy Setup](aws_sra_examples/easy_setup) and [Quick Setup](aws_sra_examples/quick_setup/) deployment options
46+
- Added [Inspector Organization](aws_sra_examples/solutions/inspector/inspector_org) solution to [Quick Setup](aws_sra_examples/quick_setup/) deployment option
47+
4248
## 2023-06-20
4349

4450
### Changed<!-- omit in toc -->

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Follow the instructions within the [Quick Setup](aws_sra_examples/quick_setup) t
9797
| [Macie](aws_sra_examples/solutions/macie/macie_org) | Configures Macie within a delegated admin account for all accounts within the organization. | | |
9898
| [S3 Block Account Public Access](aws_sra_examples/solutions/s3/s3_block_account_public_access) | Configures the account-level S3 BPA settings for all accounts within the organization. | Configures S3 BPA settings on buckets created by Control Tower only. | |
9999
| [Security Hub](aws_sra_examples/solutions/securityhub/securityhub_org) | Configures Security Hub within a delegated admin account for all accounts and governed regions within the organization. | | <ul><li>[Config Management Account](aws_sra_examples/solutions/config/config_management_account)</li></ul> |
100-
| [Inspector](aws_sra_examples/solutions/inspector/inspector_org) | Configure Inspector within a delegated admin account for all accounts and governed regions within the organization. **Note:** As of 01/19/2023, this solution is not included in the quick setup (it will be in a future code release) | | |
100+
| [Inspector](aws_sra_examples/solutions/inspector/inspector_org) | Configure Inspector within a delegated admin account for all accounts and governed regions within the organization. | | |
101101
| [Detective](aws_sra_examples/solutions/detective/detective) | The Detective Organization solution will automate enabling Amazon Detective by delegating administration to an account (e.g. Audit or Security Tooling) and configuring Detective for all the existing and future AWS Organization accounts. **Note:** As of 06/07/2023, this solution is not included in the quick setup (it will be in a future code release) | | <ul><li>[GuardDuty](aws_sra_examples/solutions/guardduty/guardduty_org)</li></ul> |
102102
## Utils
103103

aws_sra_examples/easy_setup/customizations_for_aws_control_tower/manifest.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,18 @@ resources:
137137
parameter_value: 'No'
138138
- parameter_key: pAutoEnableS3Logs
139139
parameter_value: 'true'
140+
- parameter_key: pAutoEnableKubernetesAuditLogs
141+
parameter_value: 'true'
142+
- parameter_key: pAutoEnableMalwareProtection
143+
parameter_value: 'true'
144+
- parameter_key: pEnableRdsLoginEvents
145+
parameter_value: 'true'
146+
- parameter_key: pEnableEksRuntimeMonitoring
147+
parameter_value: 'true'
148+
- parameter_key: pEnableEksAddonManagement
149+
parameter_value: 'true'
150+
- parameter_key: pEnableLambdaNetworkLogs
151+
parameter_value: 'true'
140152
- parameter_key: pGuardDutyFindingPublishingFrequency
141153
parameter_value: 'FIFTEEN_MINUTES'
142154
- parameter_key: pGuardDutyOrgDeliveryBucketPrefix

aws_sra_examples/easy_setup/templates/sra-easy-setup.yaml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,12 @@ Metadata:
110110
Parameters:
111111
- pDisableGuardDuty
112112
- pAutoEnableS3Logs
113+
- pAutoEnableKubernetesAuditLogs
114+
- pAutoEnableMalwareProtection
115+
- pEnableRdsLoginEvents
116+
- pEnableEksRuntimeMonitoring
117+
- pEnableEksAddonManagement
118+
- pEnableLambdaNetworkLogs
113119
- pGuardDutyFindingPublishingFrequency
114120
- pGuardDutyOrgDeliveryBucketPrefix
115121
- pGuardDutyOrgDeliveryKeyAlias
@@ -207,6 +213,18 @@ Metadata:
207213
default: All Supported
208214
pAutoEnableS3Logs:
209215
default: Auto Enable S3 Logs
216+
pAutoEnableKubernetesAuditLogs:
217+
default: Auto Enable Kubernetes Audit Logs
218+
pAutoEnableMalwareProtection:
219+
default: Auto Enable Malware Protection
220+
pEnableRdsLoginEvents:
221+
default: Auto enable RDS Login Events
222+
pEnableEksRuntimeMonitoring:
223+
default: Auto enable EKS Runtime Monitoring
224+
pEnableEksAddonManagement:
225+
default: Auto enable EKS Add-on Management
226+
pEnableLambdaNetworkLogs:
227+
default: Auto enable Lambda Network Logs
210228
pBillingContactAction:
211229
default: Billing Alternate Contact Action
212230
pBillingEmail:
@@ -469,6 +487,36 @@ Parameters:
469487
Default: 'true'
470488
Description: Auto enable S3 logs
471489
Type: String
490+
pAutoEnableKubernetesAuditLogs:
491+
AllowedValues: ['true', 'false']
492+
Default: 'true'
493+
Description: Auto enable Kubernetes Audit Logs
494+
Type: String
495+
pAutoEnableMalwareProtection:
496+
AllowedValues: ['true', 'false']
497+
Default: 'true'
498+
Description: Auto enable Malware Protection
499+
Type: String
500+
pEnableRdsLoginEvents:
501+
AllowedValues: ['true', 'false']
502+
Default: 'true'
503+
Description: Auto enable RDS Login Events
504+
Type: String
505+
pEnableEksRuntimeMonitoring:
506+
AllowedValues: ['true', 'false']
507+
Default: 'true'
508+
Description: Auto enable EKS Runtime Monitoring
509+
Type: String
510+
pEnableEksAddonManagement:
511+
AllowedValues: ['true', 'false']
512+
Default: 'true'
513+
Description: Auto enable EKS Add-on Management
514+
Type: String
515+
pEnableLambdaNetworkLogs:
516+
AllowedValues: ['true', 'false']
517+
Default: 'true'
518+
Description: Auto enable Lambda Network Logs
519+
Type: String
472520
pBillingContactAction:
473521
AllowedValues: ['add', 'delete', 'ignore']
474522
Default: add
@@ -1736,6 +1784,12 @@ Resources:
17361784
Parameters:
17371785
# pAuditAccountId: !Ref pAuditAccountId
17381786
pAutoEnableS3Logs: !Ref pAutoEnableS3Logs
1787+
pAutoEnableKubernetesAuditLogs: !Ref pAutoEnableKubernetesAuditLogs
1788+
pAutoEnableMalwareProtection: !Ref pAutoEnableMalwareProtection
1789+
pEnableRdsLoginEvents: !Ref pEnableRdsLoginEvents
1790+
pEnableEksRuntimeMonitoring: !Ref pEnableEksRuntimeMonitoring
1791+
pEnableEksAddonManagement: !Ref pEnableEksAddonManagement
1792+
pEnableLambdaNetworkLogs: !Ref pEnableLambdaNetworkLogs
17391793
# pControlTowerRegionsOnly: !Ref pControlTowerRegionsOnly
17401794
pCreateLambdaLogGroup: !If [cCreateLambdaLogGroup, true, false]
17411795
pDisableGuardDuty: !If [cDisableGuardDuty, true, false]

aws_sra_examples/quick_setup/customizations_for_aws_control_tower/manifest-v2.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ resources:
134134
parameter_value: 'true'
135135
- parameter_key: pEnableLambdaNetworkLogs
136136
parameter_value: 'true'
137-
- parameter_key: pControlTowerRegionsOnly
138137
- parameter_key: pGuardDutyFindingPublishingFrequency
139138
parameter_value: 'FIFTEEN_MINUTES'
140139
- parameter_key: pGuardDutyOrgDeliveryBucketPrefix
@@ -174,6 +173,14 @@ resources:
174173
- parameter_key: pRequireUppercaseCharacters
175174
parameter_value: 'true'
176175

176+
# Inspector Solution
177+
- parameter_key: pDeployInspectorSolution
178+
parameter_value: 'Yes'
179+
- parameter_key: pScanComponents
180+
parameter_value: 'EC2, ECR, LAMBDA'
181+
- parameter_key: pEcrRescanDuration
182+
parameter_value: 'LIFETIME'
183+
177184
# Macie Solution
178185
- parameter_key: pDeployMacieSolution
179186
parameter_value: 'Yes'

aws_sra_examples/quick_setup/templates/sra-quick-setup-ssm.yaml

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,12 @@ Metadata:
8484
- pDeployGuardDutySolution
8585
- pDisableGuardDuty
8686
- pAutoEnableS3Logs
87+
- pAutoEnableKubernetesAuditLogs
88+
- pAutoEnableMalwareProtection
89+
- pEnableRdsLoginEvents
90+
- pEnableEksRuntimeMonitoring
91+
- pEnableEksAddonManagement
92+
- pEnableLambdaNetworkLogs
8793
- pGuardDutyFindingPublishingFrequency
8894
- pGuardDutyOrgDeliveryBucketPrefix
8995
- pGuardDutyOrgDeliveryKeyAlias
@@ -107,6 +113,12 @@ Metadata:
107113
- pRequireNumbers
108114
- pRequireSymbols
109115
- pRequireUppercaseCharacters
116+
- Label:
117+
default: Inspector Solution
118+
Parameters:
119+
- pDeployInspectorSolution
120+
- pScanComponents
121+
- pEcrRescanDuration
110122
- Label:
111123
default: Macie Solution
112124
Parameters:
@@ -159,6 +171,18 @@ Metadata:
159171
default: All Supported
160172
pAutoEnableS3Logs:
161173
default: Auto Enable S3 Logs
174+
pAutoEnableKubernetesAuditLogs:
175+
default: Auto Enable Kubernetes Audit Logs
176+
pAutoEnableMalwareProtection:
177+
default: Auto Enable Malware Protection
178+
pEnableRdsLoginEvents:
179+
default: Auto enable RDS Login Events
180+
pEnableEksRuntimeMonitoring:
181+
default: Auto enable EKS Runtime Monitoring
182+
pEnableEksAddonManagement:
183+
default: Auto enable EKS Add-on Management
184+
pEnableLambdaNetworkLogs:
185+
default: Auto enable Lambda Network Logs
162186
pBillingContactAction:
163187
default: Billing Alternate Contact Action
164188
pBillingEmail:
@@ -213,6 +237,8 @@ Metadata:
213237
default: Deploy the IAM Access Analyzer Solution
214238
pDeployIAMPasswordPolicySolution:
215239
default: Deploy the IAM Password Policy Solution
240+
pDeployInspectorSolution:
241+
default: Deploy the Inspector Solution
216242
pDeployMacieSolution:
217243
default: Deploy the Macie Solution
218244
pDeployS3BlockAccountPublicAccessSolution:
@@ -225,6 +251,8 @@ Metadata:
225251
default: Disable Macie
226252
pDisableSecurityHub:
227253
default: Disable Security Hub
254+
pEcrRescanDuration:
255+
default: ECR Rescan Duration
228256
pEnableBlockPublicAcls:
229257
default: S3 Enable Block Public ACLs
230258
pEnableBlockPublicPolicy:
@@ -317,6 +345,8 @@ Metadata:
317345
default: (Optional) SRA Alarm Email
318346
pSRAStagingS3BucketName:
319347
default: SRA Staging S3 Bucket Name
348+
pScanComponents:
349+
default: Comma separated list of scan components (EC2, ECR, LAMBDA)
320350
pSecurityContactAction:
321351
default: Security Alternate Contact Action
322352
pSecurityEmail:
@@ -357,6 +387,36 @@ Parameters:
357387
Default: 'true'
358388
Description: Auto enable S3 logs
359389
Type: String
390+
pAutoEnableKubernetesAuditLogs:
391+
AllowedValues: ['true', 'false']
392+
Default: 'true'
393+
Description: Auto enable Kubernetes Audit Logs
394+
Type: String
395+
pAutoEnableMalwareProtection:
396+
AllowedValues: ['true', 'false']
397+
Default: 'true'
398+
Description: Auto enable Malware Protection
399+
Type: String
400+
pEnableRdsLoginEvents:
401+
AllowedValues: ['true', 'false']
402+
Default: 'true'
403+
Description: Auto enable RDS Login Events
404+
Type: String
405+
pEnableEksRuntimeMonitoring:
406+
AllowedValues: ['true', 'false']
407+
Default: 'true'
408+
Description: Auto enable EKS Runtime Monitoring
409+
Type: String
410+
pEnableEksAddonManagement:
411+
AllowedValues: ['true', 'false']
412+
Default: 'true'
413+
Description: Auto enable EKS Add-on Management
414+
Type: String
415+
pEnableLambdaNetworkLogs:
416+
AllowedValues: ['true', 'false']
417+
Default: 'true'
418+
Description: Auto enable Lambda Network Logs
419+
Type: String
360420
pBillingContactAction:
361421
AllowedValues: ['add', 'delete', 'ignore']
362422
Default: add
@@ -526,6 +586,11 @@ Parameters:
526586
Default: 'Yes'
527587
Description: Deploy the IAM Password Policy solution
528588
Type: String
589+
pDeployInspectorSolution:
590+
AllowedValues: ['Yes', 'No']
591+
Default: 'No'
592+
Description: Deploy the Inspector solution
593+
Type: String
529594
pDeployMacieSolution:
530595
AllowedValues: ['Yes', 'No']
531596
Default: 'Yes'
@@ -556,6 +621,11 @@ Parameters:
556621
Default: 'No'
557622
Description: Disable the Security Hub solution in all accounts and regions before deleting the stack.
558623
Type: String
624+
pEcrRescanDuration:
625+
AllowedValues: [LIFETIME, DAYS_30, DAYS_180]
626+
Default: LIFETIME
627+
Description: ECR Rescan Duration
628+
Type: String
559629
pEnableBlockPublicAcls:
560630
AllowedValues: ['true', 'false']
561631
Default: 'true'
@@ -831,6 +901,11 @@ Parameters:
831901
SSM Parameter for SRA Staging S3 bucket name for the artifacts relevant to solution. (e.g., lambda zips, CloudFormation templates) S3 bucket
832902
name can include numbers, lowercase letters, uppercase letters, and hyphens (-). It cannot start or end with a hyphen (-).
833903
Type: AWS::SSM::Parameter::Value<String>
904+
pScanComponents:
905+
AllowedValues: [EC2, ECR, LAMBDA]
906+
Default: EC2, ECR, LAMBDA
907+
Description: Lambda Function Logging Level
908+
Type: CommaDelimitedList
834909
pSecurityContactAction:
835910
AllowedValues: ['add', 'delete', 'ignore']
836911
Default: add
@@ -956,6 +1031,7 @@ Conditions:
9561031
cDeployGuardDutySolution: !Equals [!Ref pDeployGuardDutySolution, 'Yes']
9571032
cDeployIAMAccessAnalyzerSolution: !Equals [!Ref pDeployIAMAccessAnalyzerSolution, 'Yes']
9581033
cDeployIAMPasswordPolicySolution: !Equals [!Ref pDeployIAMPasswordPolicySolution, 'Yes']
1034+
cDeployInspectorSolution: !Equals [!Ref pDeployInspectorSolution, 'Yes']
9591035
cDeployMacieSolution: !Equals [!Ref pDeployMacieSolution, 'Yes']
9601036
cDeployS3BlockAccountPublicAccessSolution: !Equals [!Ref pDeployS3BlockAccountPublicAccessSolution, 'Yes']
9611037
cDeploySecurityHubSolution: !And
@@ -1124,6 +1200,12 @@ Resources:
11241200
Parameters:
11251201
# pAuditAccountId: !Ref pAuditAccountId
11261202
pAutoEnableS3Logs: !Ref pAutoEnableS3Logs
1203+
pAutoEnableKubernetesAuditLogs: !Ref pAutoEnableKubernetesAuditLogs
1204+
pAutoEnableMalwareProtection: !Ref pAutoEnableMalwareProtection
1205+
pEnableRdsLoginEvents: !Ref pEnableRdsLoginEvents
1206+
pEnableEksRuntimeMonitoring: !Ref pEnableEksRuntimeMonitoring
1207+
pEnableEksAddonManagement: !Ref pEnableEksAddonManagement
1208+
pEnableLambdaNetworkLogs: !Ref pEnableLambdaNetworkLogs
11271209
# pControlTowerRegionsOnly: !Ref pControlTowerRegionsOnly
11281210
pCreateLambdaLogGroup: !If [cCreateLambdaLogGroup, true, false]
11291211
pDisableGuardDuty: !If [cDisableGuardDuty, true, false]
@@ -1180,6 +1262,24 @@ Resources:
11801262
# pRootOrganizationalUnitId: !Ref pRootOrganizationalUnitId
11811263
# pSRAStagingS3BucketName: !Ref pSRAStagingS3BucketName
11821264

1265+
rInspectorSolutionStack:
1266+
Type: AWS::CloudFormation::Stack
1267+
Condition: cDeployInspectorSolution
1268+
DeletionPolicy: Delete
1269+
UpdateReplacePolicy: Delete
1270+
Properties:
1271+
TemplateURL: !Sub https://${pSRAStagingS3BucketName}.s3.${AWS::Region}.${AWS::URLSuffix}/sra-inspector-org/templates/sra-inspector-org-main-ssm.yaml
1272+
Parameters:
1273+
pScanComponents: !Join
1274+
- ','
1275+
- !Ref pScanComponents
1276+
pEcrRescanDuration: !Ref pEcrRescanDuration
1277+
pLambdaLogGroupKmsKey: !Ref pLambdaLogGroupKmsKey
1278+
pLambdaLogGroupRetention: !Ref pLambdaLogGroupRetention
1279+
pLambdaLogLevel: !Ref pLambdaLogLevel
1280+
pSRAAlarmEmail: !Ref pSRAAlarmEmail
1281+
pComplianceFrequency: !Ref pComplianceFrequency
1282+
11831283
rMacieSolutionStack:
11841284
Type: AWS::CloudFormation::Stack
11851285
Condition: cDeployMacieSolution

aws_sra_examples/solutions/guardduty/guardduty_org/templates/sra-guardduty-org-configuration.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ Metadata:
112112
Parameters:
113113
pAutoEnableS3Logs:
114114
AllowedValues: ['true', 'false']
115-
Default: 'false'
115+
Default: 'true'
116116
Description: Auto enable S3 logs
117117
Type: String
118118
pAutoEnableKubernetesAuditLogs:

0 commit comments

Comments
 (0)