-
Notifications
You must be signed in to change notification settings - Fork 0
/
results.json
executable file
·181 lines (181 loc) · 6.42 KB
/
results.json
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
{
"kics_version": "v1.7.12",
"files_scanned": 6,
"lines_scanned": 328,
"files_parsed": 6,
"lines_parsed": 326,
"lines_ignored": 2,
"files_failed_to_scan": 0,
"queries_total": 1045,
"queries_failed_to_execute": 0,
"queries_failed_to_compute_similarity_id": 0,
"scan_id": "console",
"severity_counters": {
"HIGH": 0,
"INFO": 2,
"LOW": 3,
"MEDIUM": 1,
"TRACE": 0
},
"total_counter": 6,
"total_bom_resources": 0,
"start": "2024-02-29T11:31:53.559474133Z",
"end": "2024-02-29T11:32:06.769199292Z",
"paths": [
"/path"
],
"queries": [
{
"query_name": "VPC Without Network Firewall",
"query_id": "fd632aaf-b8a1-424d-a4d1-0de22fd3247a",
"query_url": "https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/networkfirewall_firewall#vpc_id",
"severity": "MEDIUM",
"platform": "Terraform",
"cloud_provider": "AWS",
"category": "Networking and Firewall",
"experimental": false,
"description": "VPC should have a Network Firewall associated",
"description_id": "2e7d55e6",
"files": [
{
"file_name": "../../path/network.tf",
"similarity_id": "ae78c1a1ee2f5dd4a39cb1812637819abb2f4b29b11d5cb096f41f3ca65efe75",
"line": 1,
"resource_type": "aws_vpc",
"resource_name": "vpc",
"issue_type": "MissingAttribute",
"search_key": "aws_vpc[vpc]",
"search_line": 1,
"search_value": "",
"expected_value": "aws_vpc[vpc] has an 'aws_networkfirewall_firewall' associated",
"actual_value": "aws_vpc[vpc] does not have an 'aws_networkfirewall_firewall' associated"
}
]
},
{
"query_name": "IAM Access Analyzer Not Enabled",
"query_id": "e592a0c5-5bdb-414c-9066-5dba7cdea370",
"query_url": "https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/accessanalyzer_analyzer",
"severity": "LOW",
"platform": "Terraform",
"cloud_provider": "AWS",
"category": "Best Practices",
"experimental": false,
"description": "IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions",
"description_id": "d03e85ae",
"files": [
{
"file_name": "../../path/iam.tf",
"similarity_id": "ffbd6c02d21f6e7a337f82a988b20ad6a693b88b2441d95424e494b2ddd81dbb",
"line": 14,
"resource_type": "n/a",
"resource_name": "n/a",
"issue_type": "MissingAttribute",
"search_key": "resource",
"search_line": -1,
"search_value": "",
"expected_value": "'aws_accessanalyzer_analyzer' should be set",
"actual_value": "'aws_accessanalyzer_analyzer' is undefined"
}
]
},
{
"query_name": "Shield Advanced Not In Use",
"query_id": "084c6686-2a70-4710-91b1-000393e54c12",
"query_url": "https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/shield_protection#resource_arn",
"severity": "LOW",
"platform": "Terraform",
"cloud_provider": "AWS",
"category": "Networking and Firewall",
"experimental": false,
"description": "AWS Shield Advanced should be used for Amazon Route 53 hosted zone, AWS Global Accelerator accelerator, Elastic IP Address, Elastic Load Balancing, and Amazon CloudFront Distribution to protect these resources against robust DDoS attacks",
"description_id": "e09b31c7",
"files": [
{
"file_name": "../../path/network.tf",
"similarity_id": "4a259b240869d964b3ae2dfc289059c59360a0522791ec46504e4f3255d28808",
"line": 51,
"resource_type": "aws_eip",
"resource_name": "ip",
"issue_type": "MissingAttribute",
"search_key": "aws_eip[ip]",
"search_line": 51,
"search_value": "",
"expected_value": "aws_eip has shield advanced associated",
"actual_value": "aws_eip does not have shield advanced associated"
}
]
},
{
"query_name": "VPC FlowLogs Disabled",
"query_id": "f83121ea-03da-434f-9277-9cd247ab3047",
"query_url": "https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc",
"severity": "LOW",
"platform": "Terraform",
"cloud_provider": "AWS",
"category": "Observability",
"experimental": false,
"description": "Every VPC resource should have an associated Flow Log",
"description_id": "cdbdeb30",
"files": [
{
"file_name": "../../path/network.tf",
"similarity_id": "fc3303df4c76c12cf90b1de259419ee1826e48355884147e01b76fc37cdb3f2a",
"line": 1,
"resource_type": "aws_vpc",
"resource_name": "vpc",
"issue_type": "IncorrectValue",
"search_key": "aws_vpc[vpc]",
"search_line": 1,
"search_value": "",
"expected_value": "aws_vpc[vpc] should be the same as Flow Logs VPC id",
"actual_value": "aws_vpc[vpc] is not the same as Flow Logs VPC id"
}
]
},
{
"query_name": "EC2 Instance Monitoring Disabled",
"query_id": "23b70e32-032e-4fa6-ba5c-82f56b9980e6",
"query_url": "https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/instance#monitoring",
"severity": "INFO",
"platform": "Terraform",
"cloud_provider": "AWS",
"category": "Observability",
"experimental": false,
"description": "EC2 Instance should have detailed monitoring enabled. With detailed monitoring enabled data is available in 1-minute periods",
"description_id": "0d5413e6",
"files": [
{
"file_name": "../../path/instances.tf",
"similarity_id": "5ca4ae24d44a911385fbb1dc610d7884b9c40bc40d0bb449bf9f200bc1b760dd",
"line": 45,
"resource_type": "aws_instance",
"resource_name": "Dagger Host",
"issue_type": "MissingAttribute",
"search_key": "aws_instance.{{dagger}}",
"search_line": 45,
"search_value": "",
"expected_value": "'monitoring' should be defined and not null%!(EXTRA string=dagger)",
"actual_value": "'monitoring' is undefined or null%!(EXTRA string=dagger)",
"remediation": "monitoring = true",
"remediation_type": "addition"
},
{
"file_name": "../../path/instances.tf",
"similarity_id": "76f3811d6df24354724ba5a95840fceeac2836e661fc520e0995068b1a3a4cab",
"line": 17,
"resource_type": "aws_instance",
"resource_name": "Gitlab Runner",
"issue_type": "MissingAttribute",
"search_key": "aws_instance.{{runner}}",
"search_line": 17,
"search_value": "",
"expected_value": "'monitoring' should be defined and not null%!(EXTRA string=runner)",
"actual_value": "'monitoring' is undefined or null%!(EXTRA string=runner)",
"remediation": "monitoring = true",
"remediation_type": "addition"
}
]
}
]
}