Create a DNS threat detector (original) (raw)

This page describes how to create and modify a DNS threat detector to monitor VPC networks for malicious, internet-bound DNS activity.

For more information about DNS threat detection, seeDNS Armor overview.

DNS threat monitoring can impact your billing. See Cloud DNS Pricingfor more information.

Before you begin

Complete the following before you create a DNS threat detector.

Permissions required for this task

To perform this task, you must have been granted the following permissions_or_ the following IAM roles.

Permissions

Roles

To create a DNS threat detector for all of your VPC networks in a project, complete the following steps. Any new VPC networks added to the project are monitored automatically.

You can have only one DNS threat detector enabled for a project.

Console

  1. In the Google Cloud console, go to the Advanced threat detection page.
    Go to Advanced threat detection
  2. Click Create DNS threat detector.
  3. Enter a name for your DNS threat detector.
  4. Select All VPC networks in the project.
  5. Click Create.

gcloud

gcloud network-security dns-threat-detectors create NAME
--location=global
--project=PROJECT_ID
--provider="INFOBLOX"

Replace the following:

API

POST https://networksecurity.googleapis.com/v1/projects/PROJECT_ID/locations/global/dnsThreatDetectors?dnsThreatDetectorId=NAME

{ "provider" : "INFOBLOX" }

Replace the following:

Exclude a VPC network from threat monitoring

You can exclude a VPC network from threat monitoring by editing your DNS threat detector. You can also exclude the network when creating a DNS threat detector.

New VPC networks added to the project are monitored automatically.

Console

  1. In the Google Cloud console, go to the Advanced threat detection page.
    Go to Advanced threat detection
  2. Click More, and selectEdit.
  3. In the Scope section, select All VPC networks in the project except excluded networks.
  4. Select the VPC networks that you don't want to monitor.
  5. Click Save.

gcloud

gcloud network-security dns-threat-detectors update NAME
--add-excluded-networks=LIST_OF_NETWORKS
--provider="INFOBLOX"
--location=global

Replace the following:

API

PATCH https://networksecurity.googleapis.com/v1/projects/PROJECT_ID/locations/global/dnsThreatDetectors/NAME

{ "name" : "NAME", "excluded_networks" : [ "LIST_OF_NETWORKs" ], "provider" : "INFOBLOX" }

Replace the following:

Remove your DNS threat detector

You can delete your DNS threat detector.

Console

  1. In the Google Cloud console, go to the Advanced threat detection page.
    Go to Advanced threat detection
  2. Click More, and select Delete.

gcloud

gcloud network-security dns-threat-detectors delete NAME
--project=PROJECT_ID
--location=global

Replace the following:

API

DELETE https://networksecurity.googleapis.com/v1/projects/PROJECT_ID/locations/global/dnsThreatDetectors/NAME

{ "name" : "NAME", }

Replace the following:

Add labels

You can add labels to your DNS threat detector after it has been created.

Console

  1. In the Google Cloud console, go to the Network Security page.
    Go to Network Security
  2. Click More, and select Label.
  3. Enter or select labels for your DNS threat detector.

What's next