Benchmark: VCN
Description
This benchmark provides a set of controls that detect Terraform OCI Network resources deviating from security best practices.
Usage
Install the mod:
mkdir dashboardscd dashboardspowerpipe mod initpowerpipe mod install github.com/turbot/steampipe-mod-terraform-oci-compliance
Start the Powerpipe server:
steampipe service startpowerpipe server
Open http://localhost:9033 in your browser and select VCN.
Run this benchmark in your terminal:
powerpipe benchmark run terraform_oci_compliance.benchmark.vcn
Snapshot and share results via Turbot Pipes:
powerpipe benchmark run terraform_oci_compliance.benchmark.vcn --share
Controls
- Ensure the Network default security list of every VCN restricts all traffic except ICMP
- Ensure VCN has at least one inbound security list configured
- Ensure VCN inbound security lists are stateless
- Ensure no Network security groups allow ingress from 0.0.0.0/0 to port 3389
- Ensure no Network security groups allow ingress from 0.0.0.0/0 to port 22
- Ensure Network Security Group has stateless ingress security rules
- Ensure no security lists allow ingress from 0.0.0.0/0 to port 3389
- Ensure no security lists allow ingress from 0.0.0.0/0 to port 22
- Ensure subnets are not publicly accessible