Terraform

Terraform

Made by DeepSource
Ensure all Cloud SQL database instance requires all incoming connections to use SSL TF-S2006
Security
Critical

Incoming connections should use SSL while making connections with Cloud SQL database instances.

Ensure Stackdriver Logging is set to Enabled on Kubernetes Engine Clusters TF-S2001
Security
Major

Stackdriver is the default logging solution for clusters deployed on GKE. GKE should have logging enabled so that access can be audited.

Ensure that Cloud SQL database instances are not open to the world TF-S2011
Security
Critical

Ensure that Cloud SQL database instances is not publicly accessible to lower the attack surface.

An ingress security group rule allows traffic from /0 TF-AWS006
Security
Major

Opening up unwanted CIDR ranges to the public internet is generally to be avoided.

An egress security group rule allows traffic to /0 TF-AWS007
Security
Major

Opening up unwanted CIDR ranges to connect out to the public internet is generally to be avoided.

Elasticsearch domain endpoint is using outdated TLS policy TF-AWS034
Security
Major

It is not recommended to use outdated/insecure TLS versions for encryption.

EKS should have the encryption of secrets enabled TF-AWS066
Security
Major

EKS cluster resources should have the encryption_config block set with protection of the secrets resource.

Ensure 'Automatic node upgrade' is enabled for Kubernetes Clusters TF-S2010
Security
Major

Node auto-upgrade keeps nodes up-to-date with the latest cluster master version when your master is updated on your behalf, and it should enabled.

S3 Access block should block public ACL TF-AWS074
Security
Major

S3 buckets should block public ACLs on buckets and any objects they contain.

Azure instance is using basic authentication TF-S1001
Security
Critical

Ensure Azure instance does not use basic authentication but should prefer SSH-based authentication instead.

Azure AKS is not using RBAC TF-S1005
Security
Critical

Ensure Azure AKS has RBAC (Role-based Access Control) enabled.

Standard pricing tier is not selected TF-S1019
Security
Critical

The "standard" tier in Azure's Security Center enables threat detection for networks and virtual machines. It allows greater (compared to "free" tier) in-depth defense like threat detection for networks and virtual machines, providing threat intelligence, anomaly detection, and behavior analytics. It is highly recommended to opt for the "standard" tier instead of the "free" tier.

Master authorized networks are not enabled in GKE clusters TF-S2019
Security
Major

Authorized networks permit allowlisting of specific CIDR ranges and allow IP addresses in those ranges to access the cluster master endpoint using HTTPS. GKE uses TLS and authentication to secure access to the cluster master endpoint from the public Internet enabling the flexibility to administer the cluster from anywhere. Using authorized networks, you will be able to restrict access to specified sets of IP addresses further.

We recommend you enable "master authorized networks" in GKE clusters.

Load balancer is exposed to the internet TF-AWS005
Security
Critical

Warns against to prevent accidental exposure of internal assets.

An inline ingress security group rule allows traffic from /0 TF-AWS008
Security
Major

Opening up unwanted CIDR ranges to the public internet is generally to be avoided.

An inline egress security group rule allows traffic to /0 TF-AWS009
Security
Major

Opening up unwanted CIDR ranges to the public internet is generally to be avoided.

An outdated SSL policy is in use by a load balancer TF-AWS010
Security
Critical

It is not recommended to use outdated/insecure TLS versions for encryption.

A resource is marked as publicly accessible TF-AWS011
Security
Critical

Database resources should not publicly available.

A resource has a public IP address TF-AWS012
Security
Major

You should limit the provision of public IP addresses for resources.

Task definition defines sensitive environment variable(s) TF-AWS013
Security
Major

You should not make secrets available to a user in plaintext in any scenario.