Ensure that the "external scripts enabled" database flag is turned off for your Google Cloud SQL Server database instances in order to disable the execution of scripts with certain remote language extensions.
This rule resolution is part of the Conformity Security & Compliance tool for GCP.
The External Scripts Enabled feature, configured by the "external scripts enabled" database flag, allows scripts external to SQL Server such as files located in an R library to be executed, which could negatively affect the security of the system, therefore the "external scripts enabled" flag should be disabled.
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 "external scripts enabled" flag is disabled for your SQL Server database instances, perform the following actions:
Remediation / Resolution
To disable the "external scripts enabled" database flag for your Google Cloud SQL Server database instances, perform the following actions:
References
- Google Cloud Platform (GCP) Documentation
- Cloud SQL for SQL Server documentation
- Configuring 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