Why it matters
LOAD DATA LOCAL lets a connected client read files from the machine it runs on, which a malicious server or an injected query can abuse.
How to fix it
Set the local_infile database flag as the benchmark recommends and restart if the engine requires it.
What TrustIvan reads
- Google Cloud: the collector reads what this check needs, so it passes or fails.
Cloud accounts are read with read-only access. These results describe configuration; they are not an attestation that a benchmark is met. The access to grant: Google Cloud.
Benchmark controls
- CIS Google Cloud Platform Foundation Benchmark 3.0.0, control
6.1.3: MySQL local_infile is off
Control numbers are the published ones; the titles are TrustIvan's own short descriptions. The benchmarks belong to their publishers, who do not endorse TrustIvan.
Related checks
- PostgreSQL keeps logs for three days or fewer
AzureSeverity: Low
cloud.database.flag.azure-pg-log-retention - MySQL lists every database to every user
Google CloudSeverity: Low
cloud.database.flag.mysql-skip-show-database - PostgreSQL does not log disconnections
AzureSeverity: Low
cloud.database.flag.azure-pg-log-disconnections - PostgreSQL does not log connections
Google CloudSeverity: Low
cloud.database.flag.pg-log-connections - PostgreSQL does not log connections
AzureSeverity: Low
cloud.database.flag.azure-pg-log-connections - PostgreSQL does not log disconnections
Google CloudSeverity: Low
cloud.database.flag.pg-log-disconnections
Terms: CSPM (cloud security posture management), CIS Benchmarks, Least privilege
All cloud posture checks · The whole catalogue · How this works in TrustIvan · Documentation