Skip to content

Commit 6c75e60

Browse files
committed
fix: update views and queries structure
1 parent 8d308b7 commit 6c75e60

File tree

2,110 files changed

+29935
-38428
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,110 files changed

+29935
-38428
lines changed
Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1-
Description: List of lambda functions which are not encrypted with CMK
2-
ID: aws_insight_lambda_function_not_cmk_encrypted
3-
IntegrationType:
1+
id: aws_insight_lambda_function_not_cmk_encrypted
2+
type: query
3+
title: Unencrypted Lambda
4+
description: List of lambda functions which are not encrypted with CMK
5+
integration_type:
46
- aws_cloud_account
5-
Query:
6-
Engine: CloudQL-v0.0.1
7-
ListOfTables:
8-
- aws_lambda_function
9-
Parameters: []
10-
PrimaryTable: aws_lambda_function
11-
QueryToExecute: |
7+
query: |
128
SELECT
139
name,
1410
kms_key_arn,
@@ -19,7 +15,6 @@ Query:
1915
aws_lambda_function
2016
WHERE
2117
kms_key_arn IS NULL;
22-
Tags:
23-
category:
24-
- Security
25-
Title: Unencrypted Lambda
18+
tags:
19+
category:
20+
- Security
Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,15 @@
1-
Description: List certificates for which transparency logging is disabled
2-
ID: aws_insight_acm_certificate_transparency_logging_disabled
3-
IntegrationType:
1+
id: aws_insight_acm_certificate_transparency_logging_disabled
2+
type: query
3+
title: Certificates with no Logging
4+
description: List certificates for which transparency logging is disabled
5+
integration_type:
46
- aws_cloud_account
5-
Query:
6-
Engine: CloudQL-v0.0.1
7-
ListOfTables:
8-
- aws_acm_certificate
9-
Parameters: []
10-
PrimaryTable: aws_acm_certificate
11-
QueryToExecute: |
7+
query: |
128
SELECT certificate_arn, domain_name, status, account_id, platform_account_id, platform_resource_id
139
FROM aws_acm_certificate
1410
WHERE certificate_transparency_logging_preference <> 'ENABLED';
15-
Tags:
16-
category:
17-
- Security
18-
- Technical Debt
19-
- Resiliency
20-
Title: Certificates with no Logging
11+
tags:
12+
category:
13+
- Security
14+
- Technical Debt
15+
- Resiliency
Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1-
Description: List of expired certificates
2-
ID: aws_insight_acm_certificate_expired
3-
IntegrationType:
1+
id: aws_insight_acm_certificate_expired
2+
type: query
3+
title: Expired Certificates
4+
description: List of expired certificates
5+
integration_type:
46
- aws_cloud_account
5-
Query:
6-
Engine: CloudQL-v0.0.1
7-
ListOfTables:
8-
- aws_acm_certificate
9-
Parameters: []
10-
PrimaryTable: aws_acm_certificate
11-
QueryToExecute: |
7+
query: |
128
SELECT certificate_arn,
139
domain_name,
1410
status,
@@ -17,10 +13,9 @@ Query:
1713
platform_resource_id
1814
FROM aws_acm_certificate
1915
WHERE status = 'EXPIRED';
20-
Tags:
21-
category:
22-
- Security
23-
- Technical Debt
24-
- Resiliency
25-
- Cost Management
26-
Title: Expired Certificates
16+
tags:
17+
category:
18+
- Security
19+
- Technical Debt
20+
- Resiliency
21+
- Cost Management
Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,15 @@
1-
Description: List Snapshots older than 365 days
2-
ID: aws_insight_ebs_snapshot_older_than_year
3-
IntegrationType:
1+
id: aws_insight_ebs_snapshot_older_than_year
2+
type: query
3+
title: Snapshots older than a year
4+
description: List Snapshots older than 365 days
5+
integration_type:
46
- aws_cloud_account
5-
Query:
6-
Engine: CloudQL-v0.0.1
7-
ListOfTables:
8-
- aws_ebs_snapshot
9-
Parameters: []
10-
PrimaryTable: aws_ebs_snapshot
11-
QueryToExecute: |
7+
query: |
128
SELECT snapshot_id, arn, start_time, account_id, platform_account_id, platform_resource_id
139
FROM aws_ebs_snapshot
1410
WHERE start_time < NOW() - INTERVAL '1 year';
15-
Tags:
16-
category:
17-
- Security
18-
- Technical Debt
19-
- Cost Management
20-
Title: Snapshots older than a year
11+
tags:
12+
category:
13+
- Security
14+
- Technical Debt
15+
- Cost Management
Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1-
Description: List all Classic Load Balancer. Link here.
2-
ID: aws_insight_ec2_classic_load_balancer
3-
IntegrationType:
1+
id: aws_insight_ec2_classic_load_balancer
2+
type: query
3+
title: Classic Load Balancers
4+
description: List all Classic Load Balancer. Link here.
5+
integration_type:
46
- aws_cloud_account
5-
Query:
6-
Engine: CloudQL-v0.0.1
7-
ListOfTables:
8-
- aws_ec2_classic_load_balancer
9-
Parameters: []
10-
PrimaryTable: aws_ec2_classic_load_balancer
11-
QueryToExecute: |
7+
query: |
128
SELECT
139
NAME,
1410
ARN,
@@ -17,13 +13,12 @@ Query:
1713
PLATFORM_RESOURCE_ID
1814
FROM
1915
AWS_EC2_CLASSIC_LOAD_BALANCER
20-
Tags:
21-
category:
22-
- Security
23-
- Technical Debt
24-
- Resiliency
25-
persona:
26-
- Executive
27-
- Product
28-
- FinOps
29-
Title: Classic Load Balancers
16+
tags:
17+
category:
18+
- Security
19+
- Technical Debt
20+
- Resiliency
21+
persona:
22+
- Executive
23+
- Product
24+
- FinOps

queries/14-aws_insight_elb_classic_lb_use_ssl_certificate.yaml

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1-
Description: List all Load Balancers without SSL
2-
ID: aws_insight_elb_classic_lb_use_ssl_certificate
3-
IntegrationType:
1+
id: aws_insight_elb_classic_lb_use_ssl_certificate
2+
type: query
3+
title: Load Balancers with no SSL
4+
description: List all Load Balancers without SSL
5+
integration_type:
46
- aws_cloud_account
5-
Query:
6-
Engine: CloudQL-v0.0.1
7-
ListOfTables:
8-
- aws_ec2_classic_load_balancer
9-
Parameters: []
10-
PrimaryTable: aws_ec2_classic_load_balancer
11-
QueryToExecute: |
7+
query: |
128
WITH detailed_classic_listeners AS (
139
SELECT
1410
name
@@ -36,8 +32,7 @@ Query:
3632
FROM
3733
aws_ec2_classic_load_balancer AS a
3834
LEFT JOIN detailed_classic_listeners AS b ON a.name = b.name;
39-
Tags:
40-
category:
41-
- Security
42-
- Technical Debt
43-
Title: Load Balancers with no SSL
35+
tags:
36+
category:
37+
- Security
38+
- Technical Debt
Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1-
Description: List all ELB with no WAF.
2-
ID: aws_insight_elb_application_lb_waf_enabled
3-
IntegrationType:
1+
id: aws_insight_elb_application_lb_waf_enabled
2+
type: query
3+
title: Load Balancers with no WAF
4+
description: List all ELB with no WAF.
5+
integration_type:
46
- aws_cloud_account
5-
Query:
6-
Engine: CloudQL-v0.0.1
7-
ListOfTables:
8-
- aws_ec2_application_load_balancer
9-
Parameters: []
10-
PrimaryTable: aws_ec2_application_load_balancer
11-
QueryToExecute: |
7+
query: |
128
SELECT
139
arn AS resource,
1410
account_id,
@@ -25,8 +21,7 @@ Query:
2521
region
2622
FROM
2723
aws_ec2_application_load_balancer;
28-
Tags:
29-
category:
30-
- Security
31-
- Technical Debt
32-
Title: Load Balancers with no WAF
24+
tags:
25+
category:
26+
- Security
27+
- Technical Debt
Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1-
Description: List VPCs with public CIDR blocks
2-
ID: aws_insight_vpc_with_public_cidr
3-
IntegrationType:
1+
id: aws_insight_vpc_with_public_cidr
2+
type: query
3+
title: VPCs with Public IP Range
4+
description: List VPCs with public CIDR blocks
5+
integration_type:
46
- aws_cloud_account
5-
Query:
6-
Engine: CloudQL-v0.0.1
7-
ListOfTables:
8-
- aws_vpc
9-
Parameters: []
10-
PrimaryTable: aws_vpc
11-
QueryToExecute: |
7+
query: |
128
SELECT
139
vpc_id,
1410
cidr_block,
@@ -23,10 +19,9 @@ Query:
2319
(NOT cidr_block <<= '10.0.0.0/8'
2420
AND NOT cidr_block <<= '192.168.0.0/16'
2521
AND NOT cidr_block <<= '172.16.0.0/12');
26-
Tags:
27-
category:
28-
- Security
29-
- Technical Debt
30-
- Resiliency
31-
- Cost Management
32-
Title: VPCs with Public IP Range
22+
tags:
23+
category:
24+
- Security
25+
- Technical Debt
26+
- Resiliency
27+
- Cost Management
Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1-
Description: List of unattached Disks
2-
ID: azure_insight_compute_disk_unattached
3-
IntegrationType:
1+
id: azure_insight_compute_disk_unattached
2+
type: query
3+
title: Unused Azure Disks
4+
description: List of unattached Disks
5+
integration_type:
46
- azure_subscription
5-
Query:
6-
Engine: CloudQL-v0.0.1
7-
ListOfTables:
8-
- azure_compute_disk
9-
Parameters: []
10-
PrimaryTable: azure_compute_disk
11-
QueryToExecute: |
7+
query: |
128
SELECT
139
name,
1410
disk_state,
@@ -19,8 +15,7 @@ Query:
1915
azure_compute_disk
2016
WHERE
2117
disk_state = 'Unattached';
22-
Tags:
23-
category:
24-
- Technical Debt
25-
- Cost Management
26-
Title: Unused Azure Disks
18+
tags:
19+
category:
20+
- Technical Debt
21+
- Cost Management
Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1-
Description: List of compute disks which are not available in multiple az
2-
ID: azure_insight_compute_disk_unavailable_in_multiple_az
3-
IntegrationType:
1+
id: azure_insight_compute_disk_unavailable_in_multiple_az
2+
type: query
3+
title: Non-Resiliency Azure Disks
4+
description: List of compute disks which are not available in multiple az
5+
integration_type:
46
- azure_subscription
5-
Query:
6-
Engine: CloudQL-v0.0.1
7-
ListOfTables:
8-
- azure_compute_disk
9-
Parameters: []
10-
PrimaryTable: azure_compute_disk
11-
QueryToExecute: |
7+
query: |
128
SELECT
139
name,
1410
az,
@@ -21,9 +17,8 @@ Query:
2117
CROSS JOIN jsonb_array_elements(zones) az
2218
WHERE
2319
zones IS NOT NULL;
24-
Tags:
25-
category:
26-
- Security
27-
- Technical Debt
28-
- Resiliency
29-
Title: Non-Resiliency Azure Disks
20+
tags:
21+
category:
22+
- Security
23+
- Technical Debt
24+
- Resiliency

0 commit comments

Comments
 (0)