Skip to main content
McAfee Enterprise MVISION Cloud

Integrate GCP with MVISION Cloud

To integrate GCP with MVISION Cloud, add a service instance in MVISION Cloud, then add a service account in GCP, then enable APIs and Services for a Config Audit scan.

Add a GCP Service Instance in MVISION Cloud

To integrate GCP with MVISION Cloud, perform the following steps

  1. In MVISION Cloud go to Settings > Service Management.
  2. Click Add Service Instance. 
  3. Select Google Cloud Platform, enter an Instance Name, and click Done.
  4. Under Setup, for API, click Enable.
  5. Select the features you want to enable for your GCP account.
    • DLP. Use On-Demand Scans to examine cloud services for content that violates your policies and support targeted investigations. Enable an On-Demand Scan to run your scan immediately or set the scan schedule to daily or weekly.
    • Activity Monitoring. Activity Monitoring allows forensic auditing and investigation of individual activities.
    • Security Configuration Audit. Security Configuration Audit allows your policy team to monitor and discover if your cloud services have been configured per industry best practices.
  6. Review prerequisites, copy the Service Account as shown in the following screenshot, and click Next
  7. Add the Service Account to the GCP project in your GCP console. This is needed to allow MVISION Cloud to access your GCP resources. To do this, refer Add a Service Account in GCP.
  8. Under Project Settings, add projects using one of two options:
    • Enter my projects info manually. Enter the Project ID of an existing project.
    • Discover projects under my organization. Select a project from the list of available projects under your organization, and click Authenticate Projects.
  9. Select an admin from the generated list, or enter an email to search for a specific person. Click Next.
  10. In the Summary page, verify your settings and click Save.

Once authenticated, the API is enabled and the Instance setup is complete.

Add a Service Account in GCP

You need a Service Account to allow MVISION Cloud to access your GCP resources. To do this, use the Service Account to your GCP project (or organization) as an IAM member, and grant the following roles:

  • Project > Viewer
  • IAM > Security Reviewer
  • Service Usage > Service Usage Consumer. This role is required to fetch GCP activities using your organization's API quota. To avoid issues with API rate limiting by GCP while using McAfee Enterprise's project, MVISION Cloud now uses your organization's API quota to fetch the activities.
  • Custom role with 'container.nodes.proxy' permission. This role is required only for GKE policies. Or, you can also use predefined roles like Kubernetes Engine Developer or Kubernetes Engine Admin. 
  • Custom role with 'Storage Legacy Bucket Writer' permission. This role is required if you want to Quarantine files as part of DLP or Malware On Demand Scans.

To add a service account, perform the following steps:

  1. In the GCP console, go to the IAM page.
  2. Click Add.
  3. Add the roles.
  4. Click Save

NOTE: If you have domain restrictions, update your organization's policy to allow MVISION Cloud. See the GCP article on how to set an organization policy. Set the following organization ID in the allowed_values list: 

Org ID : C02hf3cs5 

Enable APIs and Services for a Config Audit Scan

Enable the GCP APIs and services for the active Configuration Audit policies before you run the scan. 

See the supported resource types to discover the corresponding APIs and services, which depend on the policies you enable. For example, when you enable a Configuration Audit policy that includes checks for the Key Management Service in GCP, make sure you enable the Key Management Services and API.

When you create custom Config Audit policies, you might have to enable other APIs and services in GCP to allow MVISION Cloud to scan the configuration of the relevant resources.

Some required APIs and services for several policies from the policy template list for GCP are:

  • Compute Engine API
  • Cloud Storage
  • Cloud DNS API
  • Cloud Key Management Service (KMS) API
  • Cloud Logging API

Granular Permissions for a DLP Scan

Create a custom role with the following permissions to run the DLP scan for GCP.

Basic Permissions to run DLP scan 

Provide the following permissions if you want to run DLP scan without quarantine as response action.

  • accessapproval.requests.get
  • accessapproval.requests.list
  • accessapproval.settings.get
  • monitoring.timeSeries.list
  • resourcemanager.projects.get
  • storage.buckets.get
  • storage.buckets.list
  • storage.objects.get
  • storage.objects.list

Additional Permissions to run a DLP scan 

In addition to the basic permissions, provide following permissions to support quarantine as a response action.

  • storage.buckets.create
  • storage.buckets.setIamPolicy
  • storage.objects.delete
  • storage.objects.update
  • storage.objects.create

NOTE: These permissions are also valid when the cloud storage buckets are encrypted using Customer-Managed Key (Generated).

  • Was this article helpful?