Skip to content

Commit e11c799

Browse files
authored
Merge pull request #17 from opengovern/fix-control-primarytables
fix: update controls
2 parents f25718e + 1ea09b4 commit e11c799

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

compliance/controls/aws/aws_cis_v130_4_13.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ IntegrationType:
55
Query:
66
Engine: CloudQL-v0.0.1
77
ListOfTables:
8+
- aws_account
89
- aws_cloudtrail_trail
910
- aws_cloudwatch_alarm
1011
- aws_sns_topic_subscription
1112
- aws_cloudwatch_log_metric_filter
12-
- aws_account
1313
Parameters: []
14-
PrimaryTable: aws_cloudtrail_trail
14+
PrimaryTable: aws_account
1515
QueryToExecute: |
1616
WITH trails AS (
1717
SELECT

compliance/controls/aws/aws_cis_v200_3_9.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ Query:
1414
SELECT
1515
arn,
1616
account_id,
17+
og_account_id,
18+
og_resource_id,
1719
region,
1820
owner_id,
1921
vpc_id,
@@ -36,8 +38,8 @@ Query:
3638
)
3739
SELECT
3840
v.arn AS resource,
39-
v.account_id AS og_account_id,
40-
v.vpc_id AS og_resource_id,
41+
v.og_account_id AS og_account_id,
42+
v.og_resource_id AS og_resource_id,
4143
CASE
4244
WHEN v.account_id <> v.owner_id THEN 'skip'
4345
WHEN f.resource_id IS NOT NULL THEN 'ok'

compliance/controls/azure/azure_cis_v150_2_6.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Query:
88
- azure_policy_assignment
99
- azure_subscription
1010
Parameters: []
11-
PrimaryTable: azure_policy_assignment
11+
PrimaryTable: azure_subscription
1212
QueryToExecute: |
1313
WITH policy_assignment_parameters AS (
1414
SELECT

compliance/controls/azure/azure_cis_v210_5_2_1.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Query:
88
- azure_log_alert
99
- azure_subscription
1010
Parameters: []
11-
PrimaryTable: azure_log_alert
11+
PrimaryTable: azure_subscription
1212
QueryToExecute: |
1313
WITH alert_rule AS (
1414
SELECT

compliance/controls/azure/azure_cis_v210_6_6.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Query:
99
- azure_network_watcher
1010
- azure_subscription
1111
Parameters: []
12-
PrimaryTable: azure_network_watcher
12+
PrimaryTable: azure_location
1313
QueryToExecute: |
1414
SELECT
1515
loc.id AS resource,

0 commit comments

Comments
 (0)