Ensure that the "remote access" database flag is turned off for your Google Cloud SQL Server database instances in order to disable the execution of stored procedures from local or remote servers on which your SQL Server instances are running.
This rule resolution is part of the Conformity Security & Compliance tool for GCP.
By default, the "remote access" database flag is enabled for SQL Server database instances. To prevent local stored procedures from being run from a remote server or remote stored procedures from being run on the local server, the "remote access" option must be disabled. The Remote Access feature, controlled by the "remote access" database flag, can be abused to launch a Denial-of-Service (DoS) attack on remote servers by off-loading query processing to a target.
Note: Some database flag settings can affect instance availability and/or stability, and eventually remove the SQL Server instance from the Google Cloud SQL Service Level Agreement (SLA).
Audit
To determine if the "remote access" flag is disabled for your SQL Server database instances, perform the following operations:
Remediation / Resolution
To turn off the "remote access" database flag for your Google Cloud SQL Server database instances, perform the following operations:
References
- Google Cloud Platform (GCP) Documentation
- Cloud SQL for SQL Server documentation
- Configure database flags
- Edit instances
- CIS Security Documentation
- Securing Google Cloud Computing Platform
- GCP Command Line Interface (CLI) Documentation
- gcloud projects list
- gcloud sql instances list
- gcloud sql instances describe
- gcloud sql instances patch