-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathconfig.js
216 lines (213 loc) · 10.7 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
/*
* Configuration of identification for account, user, environment, and checks
*/
var config = {
/*
* Cloud Insight API URL
* US: api.cloudinsight.alertlogic.com
* UK: api.cloudinsight.alertlogic.co.uk
*/
"api_url": "api.cloudinsight.alertlogic.com",
/*
* Supported Regions for AWS Lambda
*/
"supported": [
'us-east-1',
'us-east-2',
'us-west-1',
'us-west-2',
'eu-west-1',
'eu-west-2',
'eu-west-3',
'eu-central-1',
'ap-northeast-1',
'ap-northeast-2',
'ap-southeast-1',
'ap-southeast-2',
'ap-south-1',
'ca-central-1',
'sa-east-1'
],
/*
* Cloud Insight Check Configurations
*/
"checks": {
/*
* Check names must match file names in checks/*.js
*/
"sg": {
"name": "sg",
"enabled": false,
"mode": ["configurationItem", "snapshotEvent"],
"configuration": {
"resourceTypes": [
"AWS::EC2::SecurityGroup"
],
"approved_ports": [
3389,
22
]
},
"vulnerability": {
id: "custom-001",
name: "Security Group Ingress Rules Policy Violation",
description: "Security groups were found to have rules that allow access to ports not officially approved by the security department.",
remediation: "Restrict security group ingress rules to only include approved port ranges.",
resolution: "Restrict security group ingress rules to only include approved port ranges. To restrict access to a approved port ranges, set the 'Port Range' field to a range/ranges approved by the security department. Be sure to delete unapproved rules after creating rules that follow official policy.",
risk: "High",
scope: "security group",
ccss_score: "5.4",
resolution_type:"Reconfigure Security Groups",
reference:"http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/authorizing-access-to-an-instance.html",
pci_concern:"N/A",
ccss_vector: "N/A",
evidence: "{sg_configuration,0}",
type : "application/json"
}
},
"namingConvention": {
"name": "namingConvention",
"enabled": false,
"mode": ["configurationItem", "snapshotEvent"],
"configuration": {
/*
* Your callback will only be called when message are received for the following AWS resource types
*/
"resourceTypes": ["AWS::EC2::Subnet", "AWS::EC2::SecurityGroup", "AWS::EC2::Instance"],
"conventions": [
{
"resourceTypes": [
"AWS::EC2::Subnet", "AWS::EC2::SecurityGroup", "AWS::EC2::Instance"
],
"patterns": ["^[pP](rod)*$", ".*[pP](rod)"]
// "patterns": [".*"]
}
]
},
"vulnerability": {
id: "custom-002",
name: "AWS Resource Naming Convention Policy Violation",
description: "AWS Resources were found that do not follow naming convention policy.",
remediation: "Change the name of the AWS Resource to follow naming convention policy.",
resolution: "Change the name of the AWS Resource to follow naming convention policy. To change the name of an AWS Resource, set the Name tag to the value that confirms to the naming policy.",
risk: "Medium",
scope: "any",
ccss_score: "3.0",
resolution_type:"Reconfigure Assets",
reference:"http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html",
pci_concern:"N/A",
ccss_vector: "N/A",
evidence: "{sg_configuration,0}",
type : "application/json"
}
},
"requiredTags": {
"name": "requiredTags",
"enabled": false,
"mode": ["configurationItem", "snapshotEvent"],
"configuration": {
"resourceTypes": ["AWS::EC2::Subnet", "AWS::EC2::SecurityGroup", "AWS::EC2::Instance"],
"policies": [
{
"resourceTypes": ["AWS::EC2::Subnet", "AWS::EC2::SecurityGroup", "AWS::EC2::Instance"],
"tags": [
{
"key": "Name"
}
]
}
]
},
"vulnerability": {
id: "custom-003",
name: "AWS Resource Required Tags Policy Violation",
description: "AWS Resources were found that do are not tagged according to resource tagging policy.",
remediation: "Add required tags to the AWS Resource to follow resource tagging policy.",
resolution: "Add required tags to the AWS Resource to follow resource tagging policy. To add required tags to the AWS Resource, select a resource from the AWS console, go to the tags tab and add requied tags.",
risk: "Medium",
scope: "any",
ccss_score: "3.0",
resolution_type:"Reconfigure Assets",
reference:"http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html",
pci_concern:"N/A",
ccss_vector: "N/A",
evidence: "{sg_configuration,0}",
type : "application/json"
}
},
"enableVpcScanning": {
"name": "enableVpcScanning",
"enabled": false,
"mode": ["configurationItem", "snapshotEvent"],
"configuration": {
"resourceTypes": ["AWS::EC2::VPC", "AWS::EC2::Instance"]
}
},
"awsConfigRules": {
"name": "awsConfigRules",
"enabled": false,
"mode": ["configurationItem", "snapshotEvent", "configRule"],
"configuration": {
"resourceTypes": ["AWS::EC2::Subnet", "AWS::EC2::SecurityGroup", "AWS::EC2::Instance",
"AWS::EC2::NetworkAcl", "AWS::EC2::RouteTable", "AWS::EC2::VPC",
"AWS::EC2::InternetGateway"],
"vulnerabilities": {
"required-tags": {
id: "custom-aws-config-rule-required-tags",
name: "AWS Config 'required-tags' Rule Violation",
description: "AWS Config Rules detected AWS Resources that do not have all required tags.",
remediation: "AWS Config Rule Remediation: Add required tags to the AWS Resources to satisfy AWS Config 'required-tags' rule.",
resolution: "Add required tags to the AWS Resources to satisfy AWS Config 'required-tags' rule. To add required tags to the AWS Resource, select a resource from the AWS console, go to the tags tab and add requied tags.",
risk: "Low",
scope: "any",
ccss_score: "3.0",
resolution_type:"Reconfigure Assets",
reference:"http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html",
pci_concern:"N/A",
ccss_vector: "N/A",
evidence: {},
type : "application/json"
},
"restricted-common-ports": {
id: "custom-aws-config-rule-restricted-common-ports",
name: "AWS Config 'restricted-common-ports' Rule Violation",
description: "AWS Config Rules detected AWS Security Groups allowing unrestricted incoming TCP traffic to the specified ports.",
remediation: "AWS Config Rule Remediation: Ensure that security groups restrict incoming TCP traffic to specific IP address or CIDR ranges.",
resolution: "Update AWS Security Group to only allow incoming TCP traffic from specific IP addresses or CIDR ranges. To update security group setting select offending security group from the AWS EC2 console and update/delete offending entries.",
risk: "High",
scope: "any",
ccss_score: 10.0,
resolution_type:"Reconfigure Assets",
reference:"http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html",
pci_concern:"PCI DSS 3.1 Requirement 1.1.7 Requirement to review firewall and router rule sets at least every six months",
ccss_vector: "AV:N/AC:L/Au:N/C:C/I:C/A:C/PL:ND/EM:A",
evidence: {},
type : "application/json"
},
"restricted-ssh": {
id: "custom-aws-config-rule-restricted-ssh",
name: "AWS Config 'restricted-ssh' Rule Violation",
description: "AWS Config Rules detected AWS Security Groups allowing unrestricted incoming SSH traffic.",
remediation: "AWS Config Rule Remediation: Ensure that security groups restrict SSH traffic to specific IP address or CIDR ranges.",
resolution: "Update AWS Security Group to only allow SSH traffic from specific IP addresses or CIDR ranges. To update security group setting select offending security group from the AWS EC2 console and update/delete offending entries.",
risk: "High",
scope: "any",
ccss_score: 10.0,
resolution_type:"Reconfigure Assets",
reference:"http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html",
pci_concern:"PCI DSS 3.1 Requirement 1.1.7 Requirement to review firewall and router rule sets at least every six months",
ccss_vector: "AV:N/AC:L/Au:N/C:C/I:C/A:C/PL:ND/EM:A",
evidence: {},
type : "application/json"
}
}
}
},
"awsInspector": {
"name": "awsInspector",
"enabled": false,
"mode": ["scheduledEvent", "inspectorEvent"]
}
}
};
module.exports = config;