Create and manage threat prevention security profiles (original) (raw)

This page explains how to create and manage security profilesof the type threat-prevention by using the Google Cloud console or the Google Cloud CLI.

Before you begin

Roles

To get the permissions that you need to create, view, update, or delete security profiles, ask your administrator to grant you the necessaryIAM roles on your organization. For more information about granting roles, seeManage access.

Create a security profile of typethreat-prevention and specify the name of the security profile as a string or as a unique URL identifier.

Organization-level security profiles

To create an organization-level threat prevention security profile, use the Google Cloud console or the gcloud CLI.

To construct the unique URL for a security profile, use the following format:

organizations/ORGANIZATION_ID/locations/global/securityProfiles/SECURITY_PROFILE_NAME

If you use a unique URL identifier for the security profile name, the organization and location of the security profile is already included in the URL identifier. However, if you use only the security profile name, you must specify the organization and location separately. For more information about unique URL identifiers, seesecurity profile specifications.

Permissions required for this task

To perform this task, you must have been granted the following permissions_or_ one of the following IAM roles on your organization.

Permissions

Roles

Console

  1. In the Google Cloud console, go to the Security profiles page.
    Go to Security profiles
  2. In the project selector menu, select your organization where you want to create the security profile.
  3. Select the Security profiles tab.
  4. Click Create profile.
  5. Enter a name in the Name field.
  6. Optional: Enter a description in the Description field.
  7. To create a Cloud Next Generation Firewall Enterprise security profile, in the Purposesection, select Cloud NGFW Enterprise.
  8. To create a threat prevention security profile, in the Type section, select Threat prevention.
  9. Click Continue.

Optionally, add severity and threat overrides:

  1. Under Severity overrides, click Edit next to the severity level that you want to override.
  2. In the Override action list, select the appropriate action for the severity level.
  3. To add a threat signature override, click Add signature by ID.
  4. In the Signature ID field, enter the threat ID that you want to override. You can view the threat IDs on the threat dashboard.
  5. In the Override action list, select the appropriate action for the threat ID.
  6. Click Create.

gcloud

To create a threat prevention security profile, use thegcloud network-security security-profiles threat-prevention create command:

gcloud network-security security-profiles threat-prevention create NAME
--location LOCATION
--organization ORGANIZATION_ID
--billing-project QUOTA_PROJECT_ID
--description DESCRIPTION

Replace the following:

Project-level security profiles

To create a project-level threat prevention security profile, use the gcloud CLI.

The unique URL for a security profile can be constructed in the following format:

projects/PROJECT_ID/locations/global/securityProfiles/SECURITY_PROFILE_NAME

If you use a unique URL identifier for the security profile name, the project and location of the security profile is already included in the URL identifier. However, if you use only the security profile name, you must specify the project and location separately. For more information about unique URL identifiers, seesecurity profile specifications.

Permissions required for this task

To perform this task, you must have been granted the following permissions_or_ one of the following IAM roles on your project.

Permissions

Roles

gcloud

To create a threat prevention security profile, use the gcloud beta network-security security-profiles threat-prevention createcommand:

gcloud beta network-security security-profiles threat-prevention create NAME
--location LOCATION
--project PROJECT_ID
--description DESCRIPTION

Replace the following:

View a threat prevention security profile

You can view the details of a specific threat prevention security profile in an organization or a project.

Organization-level security profiles

To view an organization-level threat prevention security profile, use the Google Cloud console or the gcloud CLI.

Permissions required for this task

To perform this task, you must have been granted the following permissions_or_ one of the following IAM roles on your organization.

Permissions

Roles

Console

  1. In the Google Cloud console, go to the Security profiles page.
    Go to Security profiles
  2. In the project selector menu, select your organization.
  3. Select the Security profiles tab. The tab shows a list of configured security profiles.
  4. Click a security profile of type Threat prevention to view the profile details.

gcloud

To view the details of a threat prevention security profile, use thegcloud beta network-security security-profiles describe command:

gcloud beta network-security security-profiles describe NAME
--location LOCATION
--organization ORGANIZATION_ID

Replace the following:

Project-level security profiles

To view a project-level threat prevention security profile, use the Google Cloud console or the gcloud CLI.

Permissions required for this task

To perform this task, you must have been granted the following permissions_or_ one of the following IAM roles on your project.

Permissions

Roles

Console

  1. In the Google Cloud console, go to the Security profiles page.
    Go to Security profiles
  2. In the project selector menu, select your project.
  3. Select the Security profiles tab. The tab shows a list of configured security profiles.
  4. Click a security profile of type Threat prevention to view the profile details.

gcloud

To view the details of a threat prevention security profile, use thegcloud beta network-security security-profiles describe command:

gcloud beta network-security security-profiles describe NAME
--location LOCATION
--project PROJECT_ID

Replace the following:

List threat prevention security profiles

You can list all the threat prevention security profiles in an organization or a project.

Organization-level security profiles

To list all organization-level threat prevention security profiles, use the Google Cloud console or the gcloud CLI.

Permissions required for this task

To perform this task, you must have been granted the following permissions_or_ one of the following IAM roles on your organization.

Permissions

Roles

Console

  1. In the Google Cloud console, go to the Security profiles page.
    Go to Security profiles
  2. In the project selector menu, select your organization.
  3. Select the Security profiles tab. The tab shows a list of configured security profiles.

gcloud

To list all the threat prevention security profiles, use thegcloud network-security security-profiles threat-prevention list command:

gcloud network-security security-profiles threat-prevention list
--location LOCATION
--billing-project QUOTA_PROJECT_ID
--organization ORGANIZATION_ID

Replace the following:

Project-level security profiles

To list all project-level threat prevention security profiles, use the Google Cloud console or the gcloud CLI.

Permissions required for this task

To perform this task, you must have been granted the following permissions_or_ one of the following IAM roles on your project.

Permissions

Roles

Console

  1. In the Google Cloud console, go to the Security profiles page.
    Go to Security profiles
  2. In the project selector menu, select your project.
  3. Select the Security profiles tab. The tab shows a list of configured security profiles.

gcloud

To list all the threat prevention security profiles, use thegcloud beta network-security security-profiles threat-prevention list command:

gcloud beta network-security security-profiles threat-prevention list
--location LOCATION
--project PROJECT_ID

Replace the following:

Delete a threat prevention security profile

You can delete a threat prevention security profile by specifying its name, location, and organization or project. However, if a security profile is referenced by a security profile group, that security profile cannot be deleted.

Organization-level security profiles

To delete an organization-level threat prevention security profile, use the Google Cloud console or the gcloud CLI.

Permissions required for this task

To perform this task, you must have been granted the following permissions_or_ one of the following IAM roles on your organization.

Permissions

Roles

Console

  1. In the Google Cloud console, go to the Security profiles page.
    Go to Security profiles
  2. Select the Security profiles tab. The tab shows a list of configured security profiles.
  3. Select the threat prevention security profile that you want to delete, and then click Delete.
  4. Click Delete again to confirm.

gcloud

To delete a threat prevention security profile, use thegcloud network-security security-profiles threat-prevention delete command:

gcloud network-security security-profiles threat-prevention delete NAME
--location LOCATION
--billing-project QUOTA_PROJECT_ID --organization ORGANIZATION_ID

Replace the following:

Project-level security profiles

To delete a project-level threat prevention security profile, use the gcloud CLI.

Permissions required for this task

To perform this task, you must have been granted the following permissions_or_ one of the following IAM roles on your project.

Permissions

Roles

gcloud

To delete a threat prevention security profile, use thegcloud beta network-security security-profiles threat-prevention delete command:

gcloud beta network-security security-profiles threat-prevention delete NAME
--location LOCATION
--project PROJECT_ID

Replace the following:

Import a threat prevention security profile

You can import a threat prevention security profile (either custom-created or previously exported) from a YAML file. When importing a threat prevention security profile, if a profile with the same name already exists, Cloud NGFW updates the existing profile.

Organization-level security profiles

To import an organization-level threat prevention security profile, use the gcloud CLI.

Permissions required for this task

To perform this task, you must have been granted the following permissions_or_ one of the following IAM roles on your organization.

Permissions

Roles

gcloud

To import a threat prevention security profile from a YAML file, use thegcloud beta network-security security-profiles import command:

gcloud beta network-security security-profiles import NAME
--location LOCATION
--organization ORGANIZATION_ID
--source FILE_NAME

Replace the following:

Project-level security profiles

To import a project-level threat prevention security profile, use the gcloud CLI.

Permissions required for this task

To perform this task, you must have been granted the following permissions_or_ one of the following IAM roles on your project.

Permissions

Roles

gcloud

To import a threat prevention security profile from a YAML file, use thegcloud beta network-security security-profiles import command:

gcloud beta network-security security-profiles import NAME
--location LOCATION
--project PROJECT_ID
--source FILE_NAME

Replace the following:

Export a threat prevention security profile

You can export a threat prevention security profile to a YAML file. For example, instead of using the user-interface to modify a large security profile, you can use this functionality to export the security profile, modify it quickly, and import it back.

Organization-level security profiles

To export an organization-level threat prevention security profile, use the gcloud CLI.

Permissions required for this task

To perform this task, you must have been granted the following permissions_or_ one of the following IAM roles on your organization.

Permissions

Roles

gcloud

To export a threat prevention security profile to a YAML file, use thegcloud beta network-security security-profiles export command:

gcloud beta network-security security-profiles export NAME
--location LOCATION
--organization ORGANIZATION_ID
--billing-project BILLING_PROJECT_ID
--destination FILE_NAME

Replace the following:

Project-level security profiles

To export a project-level threat prevention security profile, use the gcloud CLI.

Permissions required for this task

To perform this task, you must have been granted the following permissions_or_ one of the following IAM roles on your project.

Permissions

Roles

gcloud

To export a threat prevention security profile to a YAML file, use thegcloud beta network-security security-profiles export command:

gcloud beta network-security security-profiles export NAME
--location LOCATION
--project PROJECT_ID
--destination FILE_NAME

Replace the following:

Add override actions in a threat prevention security profile

You can override the actions associated with specificthreat signaturesor severity levelsin an existing threat prevention security profile.

Organization-level security profiles

To add an override to an organization-level threat prevention security profile, use the Google Cloud console or the gcloud CLI.

Permissions required for this task

To perform this task, you must have been granted the following permissions_or_ one of the following IAM roles on your organization.

Permissions

Roles

Console

  1. In the Google Cloud console, go to the Security profiles page.
    Go to Security profiles
  2. Select the Security profiles tab. The tab shows a list of configured security profiles.
  3. Select the security profile where you want to override actions, and then click Edit.
  4. Under Severity overrides, click Edit next to the severity level that you want to override.
  5. In Override action list, select the appropriate action for the severity level.
  6. Click Confirm.
  7. Click Save.

gcloud

To add an override to a threat prevention security profile, use thegcloud network-security security-profiles threat-prevention add-override command:

gcloud network-security security-profiles threat-prevention add-override NAME
--location LOCATION
--billing-project QUOTA_PROJECT_ID
--organization ORGANIZATION_ID
[--severities SEVERITIES | --threat-ids THREAT_IDS | --antivirus PROTOCOLS]
--action ACTION

Replace the following:

Project-level security profiles

To add an override to a project-level threat prevention security profile, use the gcloud CLI.

Permissions required for this task

To perform this task, you must have been granted the following permissions_or_ one of the following IAM roles on your project.

Permissions

Roles

gcloud

To add an override to a threat prevention security profile, use thegcloud beta network-security security-profiles threat-prevention add-override command:

gcloud beta network-security security-profiles threat-prevention add-override NAME
--location LOCATION
--project PROJECT_ID
[--severities SEVERITIES | --threat-ids THREAT_IDS | --antivirus PROTOCOLS]
--action ACTION

Replace the following:

List override actions in a threat prevention security profile

You can list all the override actions in a threat prevention security profile.

Organization-level security profiles

To list all override actions in an organization-level threat prevention security profile, use the Google Cloud console or the gcloud CLI.

Permissions required for this task

To perform this task, you must have been granted the following permissions_or_ one of the following IAM roles on your organization.

Permissions

Roles

Console

  1. In the Google Cloud console, go to the Security profiles page.
    Go to Security profiles
  2. Select the Security profiles tab. The tab shows a list of configured security profiles.
  3. Select the security profile to view the configured severity override actions and threat signature override actions.

gcloud

To list all override actions in a threat prevention security profile, use thegcloud network-security security-profiles threat-prevention list-overrides command:

gcloud network-security security-profiles threat-prevention list-overrides NAME
--location LOCATION
--organization ORGANIZATION_ID

Replace the following:

Project-level security profiles

To list all override actions in a project-level threat prevention security profile, use the gcloud CLI.

Permissions required for this task

To perform this task, you must have been granted the following permissions_or_ one of the following IAM roles on your project.

Permissions

Roles

gcloud

To list all override actions in a threat prevention security profile, use thegcloud beta network-security security-profiles threat-prevention list-overrides command:

gcloud beta network-security security-profiles threat-prevention list-overrides NAME
--location LOCATION
--project PROJECT_ID

Replace the following:

Update override actions in a threat prevention security profile

You can update existing override actions for severity levels or threat signatures in a threat prevention security profile.

Organization-level security profiles

To update an override action in an organization-level threat prevention security profile, use the Google Cloud console or the gcloud CLI.

Permissions required for this task

To perform this task, you must have been granted the following permissions_or_ one of the following IAM roles on your organization.

Permissions

Roles

Console

  1. In the Google Cloud console, go to the Security profiles page.
    Go to Security profiles
  2. Select the Security profiles tab. The tab shows a list of configured security profiles.
  3. Select the security profile, and then click Edit.
  4. Under Severity overrides, click Edit next to the severity level where you want to update override action.
  5. In the Override action list, select the appropriate action for the severity level.
  6. Click Confirm.
  7. Click Save.

gcloud

To update an override action in a threat prevention security profile, use thegcloud network-security security-profiles threat-prevention update-override command:

gcloud network-security security-profiles threat-prevention update-override NAME
--location LOCATION
--billing-project QUOTA_PROJECT_ID
--organization ORGANIZATION_ID
[--severities SEVERITIES | --threat-ids THREAT_IDS | --antivirus PROTOCOLS]
--action ACTION

Replace the following:

Project-level security profiles

To update an override action in a project-level threat prevention security profile, use the gcloud CLI.

Permissions required for this task

To perform this task, you must have been granted the following permissions_or_ one of the following IAM roles on your project.

Permissions

Roles

gcloud

To update an override action in a threat prevention security profile, use thegcloud beta network-security security-profiles threat-prevention update-override command:

gcloud beta network-security security-profiles threat-prevention update-override NAME
--location LOCATION
--project PROJECT_ID
[--severities SEVERITIES | --threat-ids THREAT_IDS | --antivirus PROTOCOLS]
--action ACTION

Replace the following:

Delete override actions from a threat prevention security profile

You can delete existing override actions for severity levels or threat signatures from a threat prevention security profile.

Organization-level security profiles

To delete an override action from an organization-level threat prevention security profile, use the Google Cloud console or the gcloud CLI.

Permissions required for this task

To perform this task, you must have been granted the following permissions_or_ one of the following IAM roles on your organization.

Permissions

Roles

Console

  1. In the Google Cloud console, go to the Security profiles page.
    Go to Security profiles
  2. Select the Security profiles tab. The tab shows a list of configured security profiles.
  3. Select the security profile, and then click Edit.
  4. Under Severity overrides, click Edit next to the severity level where you want to delete the override action.
  5. In the Override action list, select No override.
  6. Click Confirm.
  7. Under Signature overrides, select the threat ID that you want to delete.
  8. Click Delete.
  9. Click Save.

gcloud

To delete an override action from a threat prevention security profile, use thegcloud network-security security-profiles threat-prevention delete-override command:

gcloud network-security security-profiles threat-prevention delete-override NAME
--location LOCATION
--organization ORGANIZATION_ID
--billing-project QUOTA_PROJECT_ID
[--severities SEVERITIES | --threat-ids THREAT_IDS | --antivirus PROTOCOLS]

Replace the following:

Project-level security profiles

To delete an override action from a project-level threat prevention security profile, use the gcloud CLI.

Permissions required for this task

To perform this task, you must have been granted the following permissions_or_ one of the following IAM roles on your project.

Permissions

Roles

gcloud

To delete an override action from a threat prevention security profile, use thegcloud beta network-security security-profiles threat-prevention delete-override command:

gcloud beta network-security security-profiles threat-prevention delete-override NAME
--location LOCATION
--project PROJECT_ID
[--severities SEVERITIES | --threat-ids THREAT_IDS | --antivirus PROTOCOLS]

Replace the following:

What's next