Ensure Cloud SQL local_infile database flag is off for MySQL
The local_infile flag should be disabled to prevent file system access.
Security Impact
local_infile enabled allows loading data from the server's file system.
How to Remediate
Set local_infile database flag to off in instance settings.
Affected Resources
Compliance Frameworks
How TigerGate Helps
TigerGate continuously monitors your GCP environment to detect and alert on this misconfiguration. Here's what our platform does for this specific check:
- Continuous Scanning
Automatically scans all Google Cloud SQL resources across your GCP projects every hour
- Instant Alerts
Get notified via Slack, email, or webhooks when this misconfiguration is detected
- One-Click Remediation
Fix this issue directly from the TigerGate dashboard with our guided remediation
- Compliance Evidence
Automatically collect audit evidence for CIS GCP v1.3.0, SOC 2, PCI-DSS compliance
- Drift Detection
Get alerted if this configuration drifts back to an insecure state after remediation
Check Details
- Check ID
- gcp-sql-8
- Service
- Google Cloud SQL
- Category
- Database Security
- Severity
- HIGH
- CIS Benchmark
- 6.3.1
Automate This Check
TigerGate automatically scans your GCP environment for this and 79+ other security checks.
Start Free TrialRelated Google Cloud SQL Checks
View all checksEnsure Cloud SQL instances are not publicly accessible
Ensure Cloud SQL database instances require SSL
Ensure Cloud SQL database instances have backups configured
Ensure Cloud SQL uses CMEK encryption
Ensure Cloud SQL instances have authorized networks configured