Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed yml formatting and errors #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion RBI/AWS/api-gw-associated-with-wafv2.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
policies:
- name: api-gw-associated-with-waf
- name: api-gw-associated-with-wafv2
resource: rest-stage
filters:
- type: wafv2-enabled
Expand Down
10 changes: 5 additions & 5 deletions RBI/AWS/api-gw-execution-logging-enabled.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
policies:
- name: api-gw-execution-logging-enabled
resource: rest-stage
filters:
- type: value
key: 'methodSettings."*/*".loggingLevel'
value: absent
resource: rest-stage
filters:
- type: value
key: 'methodSettings."*/*".loggingLevel'
value: absent
3 changes: 2 additions & 1 deletion RBI/AWS/cloud-trail-cloud-watch-logs-enabled.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
- name: cloud-trail-cloud-watch-logs-enabled
policies:
- name: cloud-trail-cloud-watch-logs-enabled
resource: aws.cloudtrail
filters:
- type: value
Expand Down
3 changes: 2 additions & 1 deletion RBI/AWS/rds-instance-public-access-check.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
- name: rds-instance-public-access-check
policies:
- name: rds-instance-public-access-check
resource: rds
filters:
- PubliclyAccessible: true
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ policies:
resource: rest-stage
filters:
- type: value
key: client-certificate
key: "`client-certificate`"
value: absent
2 changes: 1 addition & 1 deletion RBI/AWS/restricted-common-ports.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
policies:
- name: restricted-common-ports
resource: security-group
filters:
filters:
- or:
- type: ingress
Ports: [22, 3389, 20, 21, 3306, 4333]
Expand Down
2 changes: 1 addition & 1 deletion RBI/AWS/restricted-ssh.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
policies:
- name: restricted-ssh
resource: security-group
filters:
filters:
- or:
- type: ingress
Ports: [22, 3389,]
Expand Down
10 changes: 5 additions & 5 deletions RBI/AWS/s3-access-point-block-public-access.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
policies:
- name: s3-access-point-block-public-access
resource: aws.s3-access-point
filters:
- type: value
key: PublicAccessBlockConfiguration.BlockPublicAcls.WriteAccess
value: false
resource: aws.s3-access-point
filters:
- type: value
key: PublicAccessBlockConfiguration.BlockPublicAcls.WriteAccess
value: false
2 changes: 1 addition & 1 deletion RBI/AWS/s3-account-level-public-access-blocks-periodic.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
policies:
- name: s3-bucket-level-public-access-prohibited
- name: s3-account-level-public-access-prohibited
resource: aws.s3
filters:
- type: check-public-block
Expand Down
5 changes: 1 addition & 4 deletions RBI/AWS/subnet-auto-assign-public-ip-disabled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,4 @@ policies:
filters:
- type: value
key: MapPublicIpOnLaunch
value: true
actions:
- type: modify
MapPublicIpOnLaunch: false
value: true