Debian Codegraph @

example/example-report.sarif

raw
1 {
2 "version": "2.1.0",
3 "$schema": "https://json.schemastore.org/sarif-2.1.0.json",
4 "runs": [
5 {
6 "tool": {
7 "driver": {
8 "informationUri": "https://tfsec.dev",
9 "name": "tfsec",
10 "rules": [
11 {
12 "id": "AWS006",
13 "shortDescription": {
14 "text": "Resource 'aws_security_group_rule.my-rule' defines a fully open ingress security group rule."
15 },
16 "helpUri": "See https://tfsec.dev/docs/aws/AWS006/ for more information.",
17 "help": {
18 "markdown": "# markdown"
19 },
20 "properties": {
21 "impact": "Your port exposed to the internet",
22 "resolution": "Set a more restrictive cidr range"
23 }
24 },
25 {
26 "id": "AZU003",
27 "shortDescription": {
28 "text": "Resource 'azurerm_managed_disk.source' defines an unencrypted managed disk."
29 },
30 "helpUri": "See https://tfsec.dev/docs/azure/AZU003/ for more information.",
31 "help": {
32 "markdown": "# markdown"
33 },
34 "properties": {
35 "impact": "",
36 "resolution": ""
37 }
38 },
39 {
40 "id": "AWS025",
41 "shortDescription": {
42 "text": "Resource 'aws_api_gateway_domain_name.outdated_security_policy' defines outdated SSL/TLS policies (not using TLS_1_2)."
43 },
44 "helpUri": "See https://tfsec.dev/docs/aws/AWS025/ for more information.",
45 "help": {
46 "markdown": "# markdown"
47 },
48 "properties": {
49 "impact": "Outdated SSL policies increase exposure to known vulnerabilites",
50 "resolution": "Use the most modern TLS/SSL policies available"
51 }
52 },
53 {
54 "id": "AWS018",
55 "shortDescription": {
56 "text": "Resource 'aws_security_group_rule.my-rule' should include a description for auditing purposes."
57 },
58 "helpUri": "See https://tfsec.dev/docs/aws/AWS018/ for more information.",
59 "help": {
60 "markdown": "# markdown"
61 },
62 "properties": {
63 "impact": "Descriptions provide context for the firewall rule reasons",
64 "resolution": "Add descriptions for all security groups anf rules"
65 }
66 },
67 {
68 "id": "AWS004",
69 "shortDescription": {
70 "text": "Resource 'aws_alb_listener.my-alb-listener' uses plain HTTP instead of HTTPS."
71 },
72 "helpUri": "See https://tfsec.dev/docs/aws/AWS004/ for more information.",
73 "help": {
74 "markdown": "# markdown"
75 },
76 "properties": {
77 "impact": "Your traffic is not protected",
78 "resolution": "Switch to HTTPS to benefit from TLS security features"
79 }
80 },
81 {
82 "id": "AWS003",
83 "shortDescription": {
84 "text": "Resource 'aws_db_security_group.my-group' uses EC2 Classic. Use a VPC instead."
85 },
86 "helpUri": "See https://tfsec.dev/docs/aws/AWS003/ for more information.",
87 "help": {
88 "markdown": "# markdown"
89 },
90 "properties": {
91 "impact": "Classic resources are running in a shared environment with other customers",
92 "resolution": "Switch to VPC resources"
93 }
94 },
95 {
96 "id": "AWS092",
97 "shortDescription": {
98 "text": "Resource 'aws_dynamodb_table.bad_example' is not using KMS CMK for encryption"
99 },
100 "helpUri": "See https://tfsec.dev/docs/aws/AWS092/ for more information.",
101 "help": {
102 "markdown": "# markdown"
103 },
104 "properties": {
105 "impact": "Using AWS managed keys does not allow for fine grained control",
106 "resolution": "Enable server side encrytion with a customer managed key"
107 }
108 }
109 ]
110 }
111 },
112 "artifacts": [
113 {
114 "location": {
115 "uri": "/home/billybob/supertfsec/example/main.tf"
116 },
117 "length": -1
118 }
119 ],
120 "results": [
121 {
122 "ruleId": "AWS006",
123 "ruleIndex": 0,
124 "level": "warning",
125 "message": {
126 "text": "Resource 'aws_security_group_rule.my-rule' defines a fully open ingress security group rule."
127 },
128 "locations": [
129 {
130 "physicalLocation": {
131 "artifactLocation": {
132 "uri": "/home/billybob/supertfsec/example/main.tf"
133 },
134 "region": {
135 "startLine": 4,
136 "endLine": 4
137 }
138 }
139 }
140 ]
141 },
142 {
143 "ruleId": "AZU003",
144 "ruleIndex": 1,
145 "level": "error",
146 "message": {
147 "text": "Resource 'azurerm_managed_disk.source' defines an unencrypted managed disk."
148 },
149 "locations": [
150 {
151 "physicalLocation": {
152 "artifactLocation": {
153 "uri": "/home/billybob/supertfsec/example/main.tf"
154 },
155 "region": {
156 "startLine": 22,
157 "endLine": 22
158 }
159 }
160 }
161 ]
162 },
163 {
164 "ruleId": "AWS025",
165 "ruleIndex": 2,
166 "level": "error",
167 "message": {
168 "text": "Resource 'aws_api_gateway_domain_name.missing_security_policy' should include security_policy (defauls to outdated SSL/TLS policy)."
169 },
170 "locations": [
171 {
172 "physicalLocation": {
173 "artifactLocation": {
174 "uri": "/home/billybob/supertfsec/example/main.tf"
175 },
176 "region": {
177 "startLine": 26,
178 "endLine": 27
179 }
180 }
181 }
182 ]
183 },
184 {
185 "ruleId": "AWS025",
186 "ruleIndex": 2,
187 "level": "error",
188 "message": {
189 "text": "Resource 'aws_api_gateway_domain_name.empty_security_policy' defines outdated SSL/TLS policies (not using TLS_1_2)."
190 },
191 "locations": [
192 {
193 "physicalLocation": {
194 "artifactLocation": {
195 "uri": "/home/billybob/supertfsec/example/main.tf"
196 },
197 "region": {
198 "startLine": 30,
199 "endLine": 30
200 }
201 }
202 }
203 ]
204 },
205 {
206 "ruleId": "AWS025",
207 "ruleIndex": 2,
208 "level": "error",
209 "message": {
210 "text": "Resource 'aws_api_gateway_domain_name.outdated_security_policy' defines outdated SSL/TLS policies (not using TLS_1_2)."
211 },
212 "locations": [
213 {
214 "physicalLocation": {
215 "artifactLocation": {
216 "uri": "/home/billybob/supertfsec/example/main.tf"
217 },
218 "region": {
219 "startLine": 34,
220 "endLine": 34
221 }
222 }
223 }
224 ]
225 },
226 {
227 "ruleId": "AWS018",
228 "ruleIndex": 3,
229 "level": "error",
230 "message": {
231 "text": "Resource 'aws_security_group_rule.my-rule' should include a description for auditing purposes."
232 },
233 "locations": [
234 {
235 "physicalLocation": {
236 "artifactLocation": {
237 "uri": "/home/billybob/supertfsec/example/main.tf"
238 },
239 "region": {
240 "startLine": 2,
241 "endLine": 5
242 }
243 }
244 }
245 ]
246 },
247 {
248 "ruleId": "AWS004",
249 "ruleIndex": 4,
250 "level": "error",
251 "message": {
252 "text": "Resource 'aws_alb_listener.my-alb-listener' uses plain HTTP instead of HTTPS."
253 },
254 "locations": [
255 {
256 "physicalLocation": {
257 "artifactLocation": {
258 "uri": "/home/billybob/supertfsec/example/main.tf"
259 },
260 "region": {
261 "startLine": 9,
262 "endLine": 9
263 }
264 }
265 }
266 ]
267 },
268 {
269 "ruleId": "AWS003",
270 "ruleIndex": 5,
271 "level": "error",
272 "message": {
273 "text": "Resource 'aws_db_security_group.my-group' uses EC2 Classic. Use a VPC instead."
274 },
275 "locations": [
276 {
277 "physicalLocation": {
278 "artifactLocation": {
279 "uri": "/home/billybob/supertfsec/example/main.tf"
280 },
281 "region": {
282 "startLine": 12,
283 "endLine": 14
284 }
285 }
286 }
287 ]
288 },
289 {
290 "ruleId": "AWS092",
291 "ruleIndex": 6,
292 "level": "warning",
293 "message": {
294 "text": "Resource 'aws_dynamodb_table.bad_example' is not using KMS CMK for encryption"
295 },
296 "locations": [
297 {
298 "physicalLocation": {
299 "artifactLocation": {
300 "uri": "/home/billybob/supertfsec/example/main.tf"
301 },
302 "region": {
303 "startLine": 41,
304 "endLine": 56
305 }
306 }
307 }
308 ]
309 }
310 ]
311 }
312 ]
313 }
314 ]
315 }