make_result( array( 'id' => 'wpconfig_permissions', 'title' => __( 'wp-config.php has loose permissions', 'aipatch-security-scanner' ), 'description' => sprintf( /* translators: %s: Octal file permissions for wp-config.php. */ __( 'Current permissions: %s. Recommended: 0644 or more restrictive.', 'aipatch-security-scanner' ), decoct( $perms ) ), 'severity' => 'high', 'confidence' => 'high', 'category' => 'server', 'why_it_matters' => __( 'wp-config.php contains database credentials and secret keys. Loose permissions may allow other users on the server to read it.', 'aipatch-security-scanner' ), 'recommendation' => __( 'Set wp-config.php permissions to 0644 or 0640 via your hosting file manager or SSH.', 'aipatch-security-scanner' ), 'dismissible' => false, 'evidence' => sprintf( 'wp-config.php permissions: 0%s', decoct( $perms ) ), ) ), ); } }