This page explains how to create and manage
security profiles
of the WILDFIRE_ANALYSIS type by using the Google Cloud console and the
Google Cloud CLI.
To check the progress of the operations listed on this page, make sure that
you have the Compute Network User (roles/compute.networkUser) role and the
following permissions:
networksecurity.operations.getnetworksecurity.operations.list
Before you begin
- You must enable the Network Security API in your project.
- Install the gcloud CLI if you want to run the
gcloudcommand-line examples in this guide.
Roles
To get the permissions that you need to create, view, update, or delete security profiles, ask your administrator to grant you the necessary Identity and Access Management (IAM) roles on your organization. For more information about granting roles, see Manage access to projects, folders, and organizations.
Create a WildFire analysis security profile
When you create a WildFire analysis security profile
(security profile of the type WILDFIRE_ANALYSIS), you can specify the name
of the security profile as a string or as a unique URL identifier.
You can construct the unique URL identifier for the security profile in the following formats:
Organization-scoped:
organizations/ORGANIZATION_ID/locations/global/securityProfiles/SECURITY_PROFILE_NAMEProject-scoped:
projects/PROJECT_ID/locations/global/securityProfiles/SECURITY_PROFILE_NAME
When you use a unique URL identifier, it must contain the security profile name,
the organization or project, and the location (which is always set to global).
Using a unique URL identifier lets you reference the security profile in
other resources (such as security profile groups) or run gcloud commands
without specifying the organization, project, or location flags separately.
For more information about unique URL identifiers, see Security profile specifications.
Console
In the Google Cloud console, go to the Security profiles page.
In the project selector menu, select your organization.
Select the Security profiles tab.
Click Create profile.
Enter a name in the Name field.
Optional: Enter a description in the Description field.
To create a Cloud Next Generation Firewall Enterprise security profile, in the Purpose section, select Cloud NGFW Enterprise.
To create a WildFire analysis security profile, in the Type section, select WildFire analysis.
To prevent the transfer of known malware, select the Hold for WildFire real-time signature look up checkbox.
Optional: To set the WildFire overrides, do one or both of the following:
In the WildFire signature overrides section, do the following:
- Click Add signature by ID.
Enter the signature ID for which you want to override actions.
From the Override action drop-down list, select one of the following:
- Default: the packet takes the predefined default action specific to that individual threat signature.
- Allow: the packet matching the firewall policy rule allows the connection.
- Deny: the packet and all subsequent packets belonging to the
same connection drop completely. The
firewall rule will also generate a
threat_logentry.
Click Add signature.
In the WildFire protocol overrides section, do the following:
- Click edit Edit
for Protocol that you want to override. For example,
HTTP,SMTP, orFTP. - From the WildFire action drop-down list, select the action.
For example,
Alert,Allow, orDeny. - From the WildFire inline ML action drop-down list, select
the action. For example,
Alert,Allow, orDeny. - Click Confirm.
- Click edit Edit
for Protocol that you want to override. For example,
Optional: In the WildFire submission rules section, do the following:
- Click Create rule.
- For File types, select Any or Specific.
For Direction, do one of the following:
- Upload and download: the firewall will monitor traffic in both the upload and download directions for submission rules.
- Upload: the firewall will only monitor outgoing traffic (uploads) for files to submit.
- Download: the firewall will only monitor incoming traffic (downloads) for files to submit.
Click Create.
Optional: In the WildFire inline cloud analysis rules section, do the following:
- Click Create rule.
- For File types, select Any or PE.
For Direction, do one of the following:
- Upload and download: the firewall will monitor traffic in both the upload and download directions for inline cloud analysis.
- Download: the firewall will only monitor incoming traffic (downloads) for inline cloud analysis.
From Action drop-down list, select one of the following:
- Alert: the packet is allowed to communicate, but the firewall
rule generates a
threat_logentry sent to the consumer project. - Allow: the packet matching the firewall policy rule allows the connection.
- Deny: the packet and all subsequent packets belonging to the
same connection drop completely. The
firewall rule will also generate a
threat_logentry.
- Alert: the packet is allowed to communicate, but the firewall
rule generates a
Click Create.
Optional: In the WildFire inline ML configuration section, do the following:
- Click edit Edit
for the File type that you want to configure. For example,
ELF,Shell, orMacho. - From the Action drop-down list, select the action.
For example,
AlertorEnable. - Click Confirm.
- Click edit Edit
for the File type that you want to configure. For example,
Optional: In the WildFire inline ML file exceptions section, do the following:
- Click Add exception.
- Enter the filename for which you want to exclude the WildFire inline machine learning (ML) analysis.
- Enter the machine learning partial hash name for which you want to exclude the WildFire inline ML analysis.
- Click Create.
Click Create.
gcloud
To create the WildFire analysis security profile, run the
gcloud beta network-security security-profiles wildfire-analysis createcommand:gcloud beta network-security security-profiles wildfire-analysis create NAME \ --location=LOCATION \ --organization=ORGANIZATION_ID \ --project=PROJECT_ID \ --description=DESCRIPTIONReplace the following:
NAME: the name of the WildFire analysis security profile; you can specify the name as a string or as a unique URL identifier.If you use a unique URL identifier for the
NAMEflag, you can omit theLOCATIONandORGANIZATIONflags.LOCATION: the location of the WildFire analysis security profile.Location is always set to
global. If you use a unique URL identifier for theNAMEflag, you can omit theLOCATIONflag.ORGANIZATION_ID: the organization where the WildFire analysis security profile is created. If you use a unique URL identifier for thenameflag, you can omit theORGANIZATION_IDflag.PROJECT_ID: the project ID of the WildFire analysis security profile.DESCRIPTION: an optional description for the WildFire analysis security profile.
Optional: To add and manage signature overrides, you can use one or more of the following options:
- To add a protocol-level override to block HTTP or SMTP threats, run
the
gcloud beta network-security security-profiles wildfire-analysis add-overridecommands:
gcloud beta network-security security-profiles wildfire-analysis add-override NAME \ --location=global \ --organization=ORGANIZATION_ID \ --project=BILLING_PROJECT_ID \ --wildfire=HTTP,SMTP \ --action=DENY- To add an inline ML protocol override, run
the
gcloud beta network-security security-profiles wildfire-analysis add-overridecommands:
gcloud beta network-security security-profiles wildfire-analysis add-override NAME \ --location=global \ --organization=ORGANIZATION_ID \ --project=BILLING_PROJECT_ID \ --wildfire-inline-ml=HTTP \ --action=DENY- To add a threat ID override, run
the
gcloud beta network-security security-profiles wildfire-analysis add-overridecommands:
gcloud beta network-security security-profiles wildfire-analysis add-override NAME \ --location=global \ --organization=ORGANIZATION_ID \ --project=BILLING_PROJECT_ID \ --threat-ids=599805 \ --action=ALLOWReplace the following parameters based on your selection:
NAME: the name of the WildFire analysis security profile.ORGANIZATION_ID: the organization ID.BILLING_PROJECT_ID: the project ID used for billing and quotas.--wildfire: the protocol(s) to override action for. Must be one of:SMTP,SMB,POP3,IMAP,HTTP2,HTTP,FTP.--wildfire-inline-ml: local inline ML threats protocol override option.--threat-ids: threat signature IDs to override. Note that action must beDefaultorAllow.ACTION: action to apply. Must be one of:Default,Allow,DenyorAlert.
- To add a protocol-level override to block HTTP or SMTP threats, run
the
Optional: To configure WildFire submission rules, run the
gcloud beta network-security security-profiles wildfire-analysis add-submission-rulecommand:gcloud beta network-security security-profiles wildfire-analysis add-submission-rule NAME \ --location=LOCATION \ --organization=ORGANIZATION_ID \ --project=BILLING_PROJECT_ID \ --file-types=FILE_TYPE1,FILE_TYPE2,... \ --direction=DIRECTIONReplace the following:
NAME: the name of the WildFire analysis security profile.LOCATION: the location of the WildFire analysis security profile.Location is always set to
global. If you use a unique URL identifier for theNAMEflag, you can omit theLOCATIONflag.ORGANIZATION_ID: the organization where the WildFire analysis security profile is created. If you use a unique URL identifier for thenameflag, you can omit theORGANIZATION_IDflag.BILLING_PROJECT_ID: the project ID to use for billing and quotas.FILE_TYPE1,FILE_TYPE2: types of files that will be submitted to WildFire for analysis. File type must be one of:ANY_FILE,APK,ARCHIVE,EMAIL_LINK,FLASH,JAR,LINUX,MS_OFFICE,PDF,PE,SCRIPT. Note that ifANY_FILEis specified, no other types should be specified.DIRECTION: direction of traffic that will be checked for files to submit to WildFire. Direction must be one of:Upload,Download,Both.
Optional: To configure WildFire inline cloud analysis rules, run the
gcloud beta network-security security-profiles wildfire-analysis add-inline-cloud-analysis-rulecommand:gcloud beta network-security security-profiles wildfire-analysis add-inline-cloud-analysis-rule NAME \ --location=LOCATION \ --organization=ORGANIZATION_ID \ --project=BILLING_PROJECT_ID \ --file-types=FILE_TYPE1,FILE_TYPE2,... \ --direction=DIRECTION \ --action=ACTIONReplace the following:
NAME: the name of the WildFire analysis security profile.LOCATION: the location of the WildFire analysis security profile.Location is always set to
global. If you use a unique URL identifier for theNAMEflag, you can omit theLOCATIONflag.ORGANIZATION_ID: the organization where the WildFire analysis security profile is created. If you use a unique URL identifier for thenameflag, you can omit theORGANIZATION_IDflag.BILLING_PROJECT_ID: the project ID to use for billing and quotas.FILE_TYPE1,FILE_TYPE2: types of files that will be submitted to WildFire for analysis.FILE_TYPEmust be one of:ANY_FILE,PE. Note that ifANY_FILEis specified, no other types should be specified.DIRECTION: direction of traffic that will be checked for files to submit to WildFire. Direction must be one of:Upload,Download,Both.ACTION: action to take when a threat is detected by WildFire inline cloud analysis. Action must be one of:Allow,Alert,Deny.
Optional: To add inline ML file exceptions, run the
gcloud beta network-security security-profiles wildfire-analysis add-inline-ml-exceptioncommand:gcloud beta network-security security-profiles wildfire-analysis add-inline-ml-exception NAME \ --location=LOCATION \ --organization=ORGANIZATION_ID \ --project=BILLING_PROJECT_ID \ --partial-hash=PARTIAL_HASH \ --filename=FILENAMEReplace the following:
NAME: the name of the WildFire analysis security profile.LOCATION: the location of the WildFire analysis security profile.Location is always set to
global. If you use a unique URL identifier for theNAMEflag, you can omit theLOCATIONflag.ORGANIZATION_ID: the organization where the WildFire analysis security profile is created. If you use a unique URL identifier for thenameflag, you can omit theORGANIZATION_IDflag.BILLING_PROJECT_ID: the project ID to use for billing and quotas.PARTIAL_HASH: the ML partial hash of the file.FILENAME: name of the partial hash file.
List WildFire analysis security profile
You can list all the WildFire analysis security profiles in an organization.
Console
In the Google Cloud console, go to the Security profiles page.
In the project selector menu, select your organization.
Select the Security profiles tab. The tab shows a list of configured security profiles.
To filter the security profile with profile type, enter Profile type and then WildFire analysis in the Filter search bar.
gcloud
To list all the WildFire analysis security profiles, use the
gcloud beta network-security security-profiles wildfire-analysis list command:
gcloud beta network-security security-profiles wildfire-analysis list \
--organization ORGANIZATION_ID \
--location LOCATION
Replace the following:
ORGANIZATION_ID: the organization where the WildFire analysis security profiles are created.LOCATION: the location of the WildFire analysis security profiles. Location is always set toglobal.
Update a WildFire analysis security profile
You can update the details of a specific WildFire analysis security profile in an organization.
Console
In the Google Cloud console, go to the Security profiles page.
In the project selector menu, select your organization.
Select the Security profiles tab. The tab shows a list of configured security profiles.
Click a security profile of type WildFire analysis to view the profile details.
Click Edit.
gcloud
To update the details of a WildFire analysis security profile, use the
gcloud beta network-security security-profiles wildfire-analysis update command:
gcloud beta network-security security-profiles wildfire-analysis update NAME \
--organization ORGANIZATION_ID \
--project PROJECT_ID \
--location LOCATION \
[--[no-]wildfire-realtime-lookup |
--[no-]analyze-windows-executables |
--[no-]analyze-powershell-script-1 |
--[no-]analyze-powershell-script-2 |
--[no-]analyze-elf |
--[no-]analyze-ms-office |
--[no-]analyze-shell |
--[no-]analyze-ooxml |
--[no-]analyze-macho]
Replace the following:
NAME: the name of the security profile of typeWILDFIRE_ANALYSISthat you want to update.ORGANIZATION_ID: the organization where the WildFire analysis security profile is created. If you use a unique URL identifier for theNAMEflag, you can omit theORGANIZATION_IDflag.LOCATION: the location of the WildFire analysis security profile. Location is always set toglobal. If you use a unique URL identifier for theNAMEflag, you can omit theLOCATIONflag.
View a WildFire analysis security profile
You can view a specific WildFire analysis security profile in an organization.
Console
In the Google Cloud console, go to the Security profiles page.
In the project selector menu, select your organization.
Select the Security profiles tab. The tab shows a list of configured security profiles.
Click a security profile of type WildFire analysis to view the profile details.
gcloud
To view the details of a WildFire analysis security profile, use the
gcloud beta network-security security-profiles wildfire-analysis describe command:
gcloud beta network-security security-profiles wildfire-analysis describe NAME \
[ --organization ORGANIZATION_ID | --project PROJECT_ID ] \
--location LOCATION
Replace the following:
NAME: the name of the security profile of typeWILDFIRE_ANALYSISthat you want to describe; you can specify the name as a string or as a unique URL identifier.ORGANIZATION_ID: the organization ID where the WildFire analysis security profile exists. If you use a unique URL identifier for theNAMEflag, you can omit theORGANIZATION_IDflag.PROJECT_ID: the project ID where the WildFire analysis security profile exists. If you use a unique URL identifier for theNAMEflag, you can omit thePROJECT_IDflag.LOCATION: the location of the WildFire analysis security profile. Location is always set toglobal. If you use a unique URL identifier for theNAMEflag, you can omit theLOCATIONflag.
For example, to describe a security profile named MySecurityProfile by
using its unique URL identifier, run the following command:
gcloud beta network-security security-profiles wildfire-analysis describe organizations/123456789012/locations/global/securityProfiles/MySecurityProfile
Delete a WildFire analysis security profile
You can delete a WildFire analysis security profile by specifying its name, location, and organization. However, if a security profile group references the WildFire analysis security profile, you must remove the security profile from the security profile group before you can delete it.
Console
In the Google Cloud console, go to the Security profiles page.
In the project selector menu, select your organization.
Select the Security profiles tab. The tab shows a list of configured security profiles.
Select the WildFire analysis security profile that you want to delete, and then click Delete.
Click Delete again to confirm.
gcloud
To delete a WildFire analysis security profile, use the
gcloud beta network-security security-profiles wildfire-analysis delete command:
gcloud beta network-security security-profiles wildfire-analysis delete NAME \
--organization ORGANIZATION_ID \
--location LOCATION
Replace the following:
NAME: the name of the WildFire analysis security profile that you want to delete; you can specify the name as a string or as a unique URL identifier.ORGANIZATION_ID: the organization where the WildFire analysis security profile is created. If you use a unique URL identifier for theNAMEflag, you can omit theORGANIZATION_IDflag.LOCATION: the location of the WildFire analysis security profile. Location is always set toglobal. If you use a unique URL identifier for theNAMEflag, you can omit theLOCATIONflag.
Delete signature override
gcloud
To delete a signature override or exception, run the
gcloud beta network-security security-profiles wildfire-analysis delete-override command:
gcloud beta network-security security-profiles wildfire-analysis delete-override NAME \
--location=global \
--organization=ORGANIZATION_ID \
--project=BILLING_PROJECT_ID \
--threat-ids=599805
Replace the following:
NAME: the name of the WildFire analysis security profile.ORGANIZATION_ID: the organization where the WildFire analysis security profile is created. If you use a unique URL identifier for thenameflag, you can omit theORGANIZATION_IDflag.BILLING_PROJECT_ID: the project ID to use for billing and quotas.
Delete submission rule
gcloud
To delete a submission rule, run the
gcloud beta network-security security-profiles wildfire-analysis delete-submission-rule command:
gcloud beta network-security security-profiles wildfire-analysis delete-submission-rule NAME \
--location=global \
--organization=ORGANIZATION_ID \
--project=BILLING_PROJECT_ID \
--file-types=ANY_FILE \
--direction=both
Replace the following:
NAME: the name of the WildFire analysis security profile.ORGANIZATION_ID: the organization where the WildFire analysis security profile is created. If you use a unique URL identifier for thenameflag, you can omit theORGANIZATION_IDflag.BILLING_PROJECT_ID: the project ID to use for billing and quotas.
Delete inline ML exception
gcloud
To delete an inline ML exception, run the
gcloud beta network-security security-profiles wildfire-analysis delete-inline-ml-exception command:
gcloud beta network-security security-profiles wildfire-analysis delete-inline-ml-exception NAME \
--location=global \
--organization=ORGANIZATION_ID \
--project=BILLING_PROJECT_ID \
--partial-hash=PARTIAL_HASH \
--filename=FILENAME
Replace the following:
NAME: the name of the WildFire analysis security profile.ORGANIZATION_ID: the organization where the WildFire analysis security profile is created. If you use a unique URL identifier for thenameflag, you can omit theORGANIZATION_IDflag.BILLING_PROJECT_ID: the project ID to use for billing and quotas.PARTIAL_HASH: the ML partial hash of the file.FILENAME: name of the partial hash file.