Skip to main content
McAfee MVISION Cloud

Integrate GCP with 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.
    clipboard_e647884cca0a8654e1fead2964c6c280f.png
  4. Under Setup, for API, click Enable.
    clipboard_ee6ac4d0c424e8b227aaab236a6a37555.png
  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 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.
      clipboard_e244a7816cd47baf96d8df91f7ad19d14.png
  6. Review Pre-Requisites, copy the Service Account as shown in the following screenshot, and click Next
    clipboard_e49198fd1bea8cc89fd0be81c94fc1f2c.png
  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.
      clipboard_e0f61c3e2f84910783eaa1634b2f1fefb.png
  9. Select an admin from the generated list, or enter an email to search for a specific person. Click Next.
    clipboard_e758a1336093af59bc7f3741a1a0ad7c4.png
  10. In the Summary page, verify your settings and click Save.
    clipboard_e93a114636788bd705dcb24be0754939c.png

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. In order to avoid issues with API rate limiting by GCP while using McAfee's project, MVISION Cloud now leverages your organization's API quota to fetch the activities.
  • Custom role with 'container.nodes.proxy' permission. This role is required only for GKE policies. Alternatively, you may 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.
    clipboard_ef942a5544ce86e5d22f518f1e8890ba5.png
  2. Click Add.
    clipboard_ef6598e51e491cbd25075d43cfa163646.png
  3. Add the roles.
    clipboard_e346ac1564a9fa02ff57d5710a207d29a.png
  4. Click Save

 

Enable APIs & Services for Config audit scan

You need to enable the GCP APIs & Services for the active configuration audit policies before you run the config audit scan. 

Refer the supported resource types to know the corresponding APIs & Services which is depending on the policies you enable. For example when you enable a Configuration audit policy that includes checks for the Key Management service in Google Cloud Platform, make sure you enable the Key Management Services & API.

When you create custom Config audit policies, it might be required to enable additional APIs & Services in Google Cloud Platform to enable MVISION Cloud to use these APIs & Services to check the configuration of the relevant resources.

Some APIs & Services that are required 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 DLP scan

You need to create custom role with permissions mentioned in this section to run GCP DLP scan.

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 DLP scan 

Along with the basic permissions , provide following additional permissions to support quarantine as response action

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

Note: The above permissions are also valid when the cloud storage buckets are encrypted using Customer Managed Key (Generated)

 

 

 

  • Was this article helpful?