|
1 | 1 | { |
2 | 2 | "kics_version": "development", |
3 | 3 | "files_scanned": 1, |
4 | | - "lines_scanned": 278, |
| 4 | + "lines_scanned": 289, |
5 | 5 | "files_parsed": 1, |
6 | | - "lines_parsed": 278, |
| 6 | + "lines_parsed": 289, |
7 | 7 | "files_failed_to_scan": 0, |
8 | | - "queries_total": 495, |
| 8 | + "queries_total": 501, |
9 | 9 | "queries_failed_to_execute": 0, |
10 | 10 | "queries_failed_to_compute_similarity_id": 0, |
11 | 11 | "scan_id": "console", |
12 | 12 | "severity_counters": { |
13 | | - "HIGH": 6, |
| 13 | + "HIGH": 9, |
14 | 14 | "INFO": 3, |
15 | 15 | "LOW": 3, |
16 | | - "MEDIUM": 9, |
| 16 | + "MEDIUM": 10, |
17 | 17 | "TRACE": 0 |
18 | 18 | }, |
19 | | - "total_counter": 21, |
| 19 | + "total_counter": 25, |
20 | 20 | "total_bom_resources": 0, |
21 | | - "start": "2022-05-17T12:57:12.0455501+01:00", |
22 | | - "end": "2022-05-17T12:57:27.2636532+01:00", |
| 21 | + "start": "2022-10-18T15:00:25.226787889+01:00", |
| 22 | + "end": "2022-10-18T15:00:35.433733848+01:00", |
23 | 23 | "paths": [ |
24 | 24 | "/path/e2e/fixtures/samples/positive.yaml" |
25 | 25 | ], |
|
115 | 115 | } |
116 | 116 | ] |
117 | 117 | }, |
| 118 | + { |
| 119 | + "query_name": "Passwords And Secrets - CloudFormation Secret Template", |
| 120 | + "query_id": "e0f01838-b1c2-4669-b84b-981949ebe5ed", |
| 121 | + "query_url": "https://docs.kics.io/latest/secrets/", |
| 122 | + "severity": "HIGH", |
| 123 | + "platform": "Common", |
| 124 | + "cloud_provider": "COMMON", |
| 125 | + "category": "Secret Management", |
| 126 | + "description": "Query to find passwords and secrets in infrastructure code.", |
| 127 | + "description_id": "d69d8a89", |
| 128 | + "files": [ |
| 129 | + { |
| 130 | + "file_name": "/path/e2e/fixtures/samples/positive.yaml", |
| 131 | + "similarity_id": "5f948e5c0c97f3e7c43cd531de50c6c54a2cec221a45f113a34a571165d30553", |
| 132 | + "line": 273, |
| 133 | + "issue_type": "RedundantAttribute", |
| 134 | + "search_key": "", |
| 135 | + "search_line": 0, |
| 136 | + "search_value": "", |
| 137 | + "expected_value": "Hardcoded secret key should not appear in source", |
| 138 | + "actual_value": "Hardcoded secret key appears in source" |
| 139 | + } |
| 140 | + ] |
| 141 | + }, |
| 142 | + { |
| 143 | + "query_name": "Passwords And Secrets - Encryption Key", |
| 144 | + "query_id": "9fb1cd65-7a07-4531-9bcf-47589d0f82d6", |
| 145 | + "query_url": "https://docs.kics.io/latest/secrets/", |
| 146 | + "severity": "HIGH", |
| 147 | + "platform": "Common", |
| 148 | + "cloud_provider": "COMMON", |
| 149 | + "category": "Secret Management", |
| 150 | + "description": "Query to find passwords and secrets in infrastructure code.", |
| 151 | + "description_id": "d69d8a89", |
| 152 | + "files": [ |
| 153 | + { |
| 154 | + "file_name": "/path/e2e/fixtures/samples/positive.yaml", |
| 155 | + "similarity_id": "844945794b3e1dde699997428753e3b29a7b39dd45a49a5010810c87566e41a4", |
| 156 | + "line": 275, |
| 157 | + "issue_type": "RedundantAttribute", |
| 158 | + "search_key": "", |
| 159 | + "search_line": 0, |
| 160 | + "search_value": "", |
| 161 | + "expected_value": "Hardcoded secret key should not appear in source", |
| 162 | + "actual_value": "Hardcoded secret key appears in source" |
| 163 | + } |
| 164 | + ] |
| 165 | + }, |
| 166 | + { |
| 167 | + "query_name": "Passwords And Secrets - Generic Password", |
| 168 | + "query_id": "487f4be7-3fd9-4506-a07a-eae252180c08", |
| 169 | + "query_url": "https://docs.kics.io/latest/secrets/", |
| 170 | + "severity": "HIGH", |
| 171 | + "platform": "Common", |
| 172 | + "cloud_provider": "COMMON", |
| 173 | + "category": "Secret Management", |
| 174 | + "description": "Query to find passwords and secrets in infrastructure code.", |
| 175 | + "description_id": "d69d8a89", |
| 176 | + "files": [ |
| 177 | + { |
| 178 | + "file_name": "/path/e2e/fixtures/samples/positive.yaml", |
| 179 | + "similarity_id": "379b043925f80377f9a5c54a286392202b624f04f71e8d09f87da0ac414a5b04", |
| 180 | + "line": 276, |
| 181 | + "issue_type": "RedundantAttribute", |
| 182 | + "search_key": "", |
| 183 | + "search_line": 0, |
| 184 | + "search_value": "", |
| 185 | + "expected_value": "Hardcoded secret key should not appear in source", |
| 186 | + "actual_value": "Hardcoded secret key appears in source" |
| 187 | + } |
| 188 | + ] |
| 189 | + }, |
118 | 190 | { |
119 | 191 | "query_name": "Unrestricted Security Group Ingress", |
120 | 192 | "query_id": "4a1e6b34-1008-4e61-a5f2-1f7c276f8d14", |
|
310 | 382 | } |
311 | 383 | ] |
312 | 384 | }, |
| 385 | + { |
| 386 | + "query_name": "Secrets Manager Should Specify KmsKeyId", |
| 387 | + "query_id": "c8ae9ba9-c2f7-4e5c-b32e-a4b7712d4d22", |
| 388 | + "query_url": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-secretsmanager-secret.html", |
| 389 | + "severity": "MEDIUM", |
| 390 | + "platform": "CloudFormation", |
| 391 | + "cloud_provider": "AWS", |
| 392 | + "category": "Secret Management", |
| 393 | + "description": "Secrets Manager Secret should explicitly specify KmsKeyId, this will allow the secret to be shared cross-account", |
| 394 | + "description_id": "d78bb871", |
| 395 | + "files": [ |
| 396 | + { |
| 397 | + "file_name": "/path/e2e/fixtures/samples/positive.yaml", |
| 398 | + "similarity_id": "fc5fc7cf72f42a639c6caf58ea2cdefd05811c7487abf44c401ad15225634ead", |
| 399 | + "line": 270, |
| 400 | + "resource_type": "AWS::SecretsManager::Secret", |
| 401 | + "resource_name": "MyAmpAppSecretManagerRotater", |
| 402 | + "issue_type": "MissingAttribute", |
| 403 | + "search_key": "Resources.MyAmpAppSecretManagerRotater.Properties", |
| 404 | + "search_line": 0, |
| 405 | + "search_value": "", |
| 406 | + "expected_value": "Resources.MyAmpAppSecretManagerRotater.Properties.KmsKeyId is defined", |
| 407 | + "actual_value": "Resources.MyAmpAppSecretManagerRotater.Properties.KmsKeyId is undefined" |
| 408 | + } |
| 409 | + ] |
| 410 | + }, |
313 | 411 | { |
314 | 412 | "query_name": "Security Group Ingress With Port Range", |
315 | 413 | "query_id": "87482183-a8e7-4e42-a566-7a23ec231c16", |
|
336 | 434 | }, |
337 | 435 | { |
338 | 436 | "file_name": "/path/e2e/fixtures/samples/positive.yaml", |
339 | | - "similarity_id": "000056cd0b9697e13f2f4561f1963e34c58c042b921c4d0fad0f2fa5214374eb", |
340 | | - "line": 35, |
| 437 | + "similarity_id": "810487007189ac4de717dffc3204a05756e80e910b34f89ee08fd14f612328aa", |
| 438 | + "line": 27, |
341 | 439 | "resource_type": "AWS::EC2::SecurityGroupIngress", |
342 | | - "resource_name": "EcsSecurityGroupALBports", |
| 440 | + "resource_name": "EcsSecurityGroupSSHinbound", |
343 | 441 | "issue_type": "IncorrectValue", |
344 | | - "search_key": "Resources.EcsSecurityGroupALBports.Properties", |
| 442 | + "search_key": "Resources.EcsSecurityGroupSSHinbound.Properties", |
345 | 443 | "search_line": 0, |
346 | 444 | "search_value": "", |
347 | | - "expected_value": "Resources.EcsSecurityGroupALBports.Properties.FromPort should equal to Resources.EcsSecurityGroupALBports.Properties.ToPort", |
348 | | - "actual_value": "Resources.EcsSecurityGroupALBports.Properties.FromPort is not equal to Resources.EcsSecurityGroupALBports.Properties.ToPort" |
| 445 | + "expected_value": "Resources.EcsSecurityGroupSSHinbound.Properties.FromPort should equal to Resources.EcsSecurityGroupSSHinbound.Properties.ToPort", |
| 446 | + "actual_value": "Resources.EcsSecurityGroupSSHinbound.Properties.FromPort is not equal to Resources.EcsSecurityGroupSSHinbound.Properties.ToPort" |
349 | 447 | }, |
350 | 448 | { |
351 | 449 | "file_name": "/path/e2e/fixtures/samples/positive.yaml", |
352 | | - "similarity_id": "810487007189ac4de717dffc3204a05756e80e910b34f89ee08fd14f612328aa", |
353 | | - "line": 27, |
| 450 | + "similarity_id": "000056cd0b9697e13f2f4561f1963e34c58c042b921c4d0fad0f2fa5214374eb", |
| 451 | + "line": 35, |
354 | 452 | "resource_type": "AWS::EC2::SecurityGroupIngress", |
355 | | - "resource_name": "EcsSecurityGroupSSHinbound", |
| 453 | + "resource_name": "EcsSecurityGroupALBports", |
356 | 454 | "issue_type": "IncorrectValue", |
357 | | - "search_key": "Resources.EcsSecurityGroupSSHinbound.Properties", |
| 455 | + "search_key": "Resources.EcsSecurityGroupALBports.Properties", |
358 | 456 | "search_line": 0, |
359 | 457 | "search_value": "", |
360 | | - "expected_value": "Resources.EcsSecurityGroupSSHinbound.Properties.FromPort should equal to Resources.EcsSecurityGroupSSHinbound.Properties.ToPort", |
361 | | - "actual_value": "Resources.EcsSecurityGroupSSHinbound.Properties.FromPort is not equal to Resources.EcsSecurityGroupSSHinbound.Properties.ToPort" |
| 458 | + "expected_value": "Resources.EcsSecurityGroupALBports.Properties.FromPort should equal to Resources.EcsSecurityGroupALBports.Properties.ToPort", |
| 459 | + "actual_value": "Resources.EcsSecurityGroupALBports.Properties.FromPort is not equal to Resources.EcsSecurityGroupALBports.Properties.ToPort" |
362 | 460 | } |
363 | 461 | ] |
364 | 462 | }, |
|
438 | 536 | "description": "It's considered a best practice for AWS Security Group to have a description", |
439 | 537 | "description_id": "f7c62b11", |
440 | 538 | "files": [ |
| 539 | + { |
| 540 | + "file_name": "/path/e2e/fixtures/samples/positive.yaml", |
| 541 | + "similarity_id": "39fec612777f59fb4181dd2330ee465ec860c962acfebb07a4f1ee1f122d24e7", |
| 542 | + "line": 35, |
| 543 | + "resource_type": "AWS::EC2::SecurityGroupIngress", |
| 544 | + "resource_name": "EcsSecurityGroupALBports", |
| 545 | + "issue_type": "MissingAttribute", |
| 546 | + "search_key": "Resources.EcsSecurityGroupALBports.Properties", |
| 547 | + "search_line": 0, |
| 548 | + "search_value": "", |
| 549 | + "expected_value": "Resources.EcsSecurityGroupALBports.Properties.Description should be set", |
| 550 | + "actual_value": "Resources.EcsSecurityGroupALBports.Properties.Description is undefined" |
| 551 | + }, |
441 | 552 | { |
442 | 553 | "file_name": "/path/e2e/fixtures/samples/positive.yaml", |
443 | 554 | "similarity_id": "e96cf20cc6e1e11dce2d40d9e2b37446a00f00c3f541aa7dd13861059f6fcce8", |
|
463 | 574 | "search_value": "", |
464 | 575 | "expected_value": "Resources.EcsSecurityGroupSSHinbound.Properties.Description should be set", |
465 | 576 | "actual_value": "Resources.EcsSecurityGroupSSHinbound.Properties.Description is undefined" |
466 | | - }, |
467 | | - { |
468 | | - "file_name": "/path/e2e/fixtures/samples/positive.yaml", |
469 | | - "similarity_id": "39fec612777f59fb4181dd2330ee465ec860c962acfebb07a4f1ee1f122d24e7", |
470 | | - "line": 35, |
471 | | - "resource_type": "AWS::EC2::SecurityGroupIngress", |
472 | | - "resource_name": "EcsSecurityGroupALBports", |
473 | | - "issue_type": "MissingAttribute", |
474 | | - "search_key": "Resources.EcsSecurityGroupALBports.Properties", |
475 | | - "search_line": 0, |
476 | | - "search_value": "", |
477 | | - "expected_value": "Resources.EcsSecurityGroupALBports.Properties.Description should be set", |
478 | | - "actual_value": "Resources.EcsSecurityGroupALBports.Properties.Description is undefined" |
479 | 577 | } |
480 | 578 | ] |
481 | 579 | } |
|
0 commit comments