Get desktop application:
View/edit binary Protocol Buffers messages
Cloud Web Security Scanner Service identifies security vulnerabilities in web applications hosted on Google Cloud Platform. It crawls your application, and attempts to exercise as many user inputs and event handlers as possible.
Creates a new ScanConfig.
Request for the `CreateScanConfig` method.
Required. The parent resource name where the scan is created, which should be a project resource name in the format 'projects/{projectId}'.
Required. The ScanConfig to be created.
Deletes an existing ScanConfig and its child resources.
Request for the `DeleteScanConfig` method.
Required. The resource name of the ScanConfig to be deleted. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
Gets a ScanConfig.
Request for the `GetScanConfig` method.
Required. The resource name of the ScanConfig to be returned. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
Lists ScanConfigs under a given project.
Request for the `ListScanConfigs` method.
Required. The parent resource name, which should be a project resource name in the format 'projects/{projectId}'.
A token identifying a page of results to be returned. This should be a `next_page_token` value returned from a previous List request. If unspecified, the first page of results is returned.
The maximum number of ScanConfigs to return, can be limited by server. If not specified or not positive, the implementation will select a reasonable value.
Response for the `ListScanConfigs` method.
The list of ScanConfigs returned.
Token to retrieve the next page of results, or empty if there are no more results in the list.
Updates a ScanConfig. This method support partial update of a ScanConfig.
Request for the `UpdateScanConfigRequest` method.
Required. The ScanConfig to be updated. The name field must be set to identify the resource to be updated. The values of fields not covered by the mask will be ignored.
Required. The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
Start a ScanRun according to the given ScanConfig.
Request for the `StartScanRun` method.
Required. The resource name of the ScanConfig to be used. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
Gets a ScanRun.
Request for the `GetScanRun` method.
Required. The resource name of the ScanRun to be returned. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
Lists ScanRuns under a given ScanConfig, in descending order of ScanRun stop time.
Request for the `ListScanRuns` method.
Required. The parent resource name, which should be a scan resource name in the format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
A token identifying a page of results to be returned. This should be a `next_page_token` value returned from a previous List request. If unspecified, the first page of results is returned.
The maximum number of ScanRuns to return, can be limited by server. If not specified or not positive, the implementation will select a reasonable value.
Response for the `ListScanRuns` method.
The list of ScanRuns returned.
Token to retrieve the next page of results, or empty if there are no more results in the list.
Stops a ScanRun. The stopped ScanRun is returned.
Request for the `StopScanRun` method.
Required. The resource name of the ScanRun to be stopped. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
List CrawledUrls under a given ScanRun.
Request for the `ListCrawledUrls` method.
Required. The parent resource name, which should be a scan run resource name in the format 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
A token identifying a page of results to be returned. This should be a `next_page_token` value returned from a previous List request. If unspecified, the first page of results is returned.
The maximum number of CrawledUrls to return, can be limited by server. If not specified or not positive, the implementation will select a reasonable value.
Response for the `ListCrawledUrls` method.
The list of CrawledUrls returned.
Token to retrieve the next page of results, or empty if there are no more results in the list.
Gets a Finding.
Request for the `GetFinding` method.
Required. The resource name of the Finding to be returned. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
List Findings under a given ScanRun.
Request for the `ListFindings` method.
Required. The parent resource name, which should be a scan run resource name in the format 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
Required. The filter expression. The expression must be in the format: <field> <operator> <value>. Supported field: 'finding_type'. Supported operator: '='.
A token identifying a page of results to be returned. This should be a `next_page_token` value returned from a previous List request. If unspecified, the first page of results is returned.
The maximum number of Findings to return, can be limited by server. If not specified or not positive, the implementation will select a reasonable value.
Response for the `ListFindings` method.
The list of Findings returned.
Token to retrieve the next page of results, or empty if there are no more results in the list.
List all FindingTypeStats under a given ScanRun.
Request for the `ListFindingTypeStats` method.
Required. The parent resource name, which should be a scan run resource name in the format 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
Response for the `ListFindingTypeStats` method.
The list of FindingTypeStats returned.
A CrawledUrl resource represents a URL that was crawled during a ScanRun. Web Security Scanner Service crawls the web applications, following all links within the scope of sites, to find the URLs to test against.
Used in:
The http method of the request that was used to visit the URL, in uppercase.
The URL that was crawled.
The body of the request that was used to visit the URL.
A Finding resource represents a vulnerability instance identified during a ScanRun.
Used as response type in: WebSecurityScanner.GetFinding
Used as field type in:
The resource name of the Finding. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'. The finding IDs are generated by the system.
The type of the Finding. Detailed and up-to-date information on findings can be found here: https://cloud.google.com/security-scanner/docs/scan-result-details
The http method of the request that triggered the vulnerability, in uppercase.
The URL produced by the server-side fuzzer and used in the request that triggered the vulnerability.
The body of the request that triggered the vulnerability.
The description of the vulnerability.
The URL containing human-readable payload that user can leverage to reproduce the vulnerability.
If the vulnerability was originated from nested IFrame, the immediate parent IFrame is reported.
The URL where the browser lands when the vulnerability is detected.
The tracking ID uniquely identifies a vulnerability instance across multiple ScanRuns.
An addon containing information reported for a vulnerability with an HTML form, if any.
An addon containing information about outdated libraries.
An addon containing detailed information regarding any resource causing the vulnerability such as JavaScript sources, image, audio files, etc.
An addon containing information about vulnerable or missing HTTP headers.
An addon containing information about request parameters which were found to be vulnerable.
An addon containing information reported for an XSS, if any.
A FindingTypeStats resource represents stats regarding a specific FindingType of Findings under a given ScanRun.
Used in:
The finding type associated with the stats.
The count of findings belonging to this finding type.
! Information about a vulnerability with an HTML.
Used in:
! The URI where to send the form when it's submitted.
! The names of form fields related to the vulnerability.
Information reported for an outdated library.
Used in:
The name of the outdated library.
The version number.
URLs to learn more information about the vulnerabilities in the library.
A ScanConfig resource contains the configurations to launch a scan.
Used as response type in: WebSecurityScanner.CreateScanConfig, WebSecurityScanner.GetScanConfig, WebSecurityScanner.UpdateScanConfig
Used as field type in:
, ,The resource name of the ScanConfig. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are generated by the system.
Required. The user provided display name of the ScanConfig.
The maximum QPS during scanning. A valid value ranges from 5 to 20 inclusively. If the field is unspecified or its value is set 0, server will default to 15. Other values outside of [5, 20] range will be rejected with INVALID_ARGUMENT error.
Required. The starting URLs from which the scanner finds site pages.
The authentication configuration. If specified, service will use the authentication configuration during scanning.
The user agent used during scanning.
The blacklist URL patterns as described in https://cloud.google.com/security-scanner/docs/excluded-urls
The schedule of the ScanConfig.
Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.
Controls export of scan configurations and results to Cloud Security Command Center.
Latest ScanRun if available.
The risk level selected for the scan
Scan authentication configuration.
Used in:
Required. Authentication configuration
Authentication using a Google account.
Authentication using a custom account.
Describes authentication configuration that uses a custom account.
Used in:
Required. The user name of the custom account.
Required. Input only. The password of the custom account. The credential is stored encrypted and not returned in any response nor included in audit logs.
Required. The login form URL of the website.
Describes authentication configuration that uses a Google account.
Used in:
Required. The user name of the Google account.
Required. Input only. The password of the Google account. The credential is stored encrypted and not returned in any response nor included in audit logs.
Controls export of scan configurations and results to Cloud Security Command Center.
Used in:
Use default, which is ENABLED.
Export results of this scan to Cloud Security Command Center.
Do not export results of this scan to Cloud Security Command Center.
Scan risk levels supported by Cloud Web Security Scanner. LOW impact scanning will minimize requests with the potential to modify data. To achieve the maximum scan coverage, NORMAL risk level is recommended.
Used in:
Use default, which is NORMAL.
Normal scanning (Recommended)
Lower impact scanning
Scan schedule configuration.
Used in:
A timestamp indicates when the next run will be scheduled. The value is refreshed by the server after each run. If unspecified, it will default to current server time, which means the scan will be scheduled to start immediately.
Required. The duration of time between executions in days.
Cloud platforms supported by Cloud Web Security Scanner.
Used in:
The target platform is unknown. Requests with this enum value will be rejected with INVALID_ARGUMENT error.
Google App Engine service.
Google Compute Engine service.
Type of user agents used for scanning.
Used in:
The user agent is unknown. Service will default to CHROME_LINUX.
Chrome on Linux. This is the service default if unspecified.
Chrome on Android.
Safari on IPhone.
Defines a custom error message used by CreateScanConfig and UpdateScanConfig APIs when scan configuration validation fails. It is also reported as part of a ScanRunErrorTrace message if scan validation fails due to a scan configuration error.
Used in:
Indicates the reason code for a configuration failure.
Indicates the full name of the ScanConfig field that triggers this error, for example "scan_config.max_qps". This field is provided for troubleshooting purposes only and its actual value can change in the future.
Output only. Defines an error reason code. Next id: 44
Used in:
There is no error.
There is no error.
Indicates an internal server error. Please DO NOT USE THIS ERROR CODE unless the root cause is truly unknown.
One of the seed URLs is an App Engine URL but we cannot validate the scan settings due to an App Engine API backend error.
One of the seed URLs is an App Engine URL but we cannot access the App Engine API to validate scan settings.
One of the seed URLs is an App Engine URL but the Default Host of the App Engine is not set.
Google corporate accounts can not be used for scanning.
The account of the scan creator can not be used for scanning.
This scan targets Compute Engine, but we cannot validate scan settings due to a Compute Engine API backend error.
This scan targets Compute Engine, but we cannot access the Compute Engine API to validate the scan settings.
The Custom Login URL does not belong to the current project.
The Custom Login URL is malformed (can not be parsed).
The Custom Login URL is mapped to a non-routable IP address in DNS.
The Custom Login URL is mapped to an IP address which is not reserved for the current project.
The Custom Login URL has a non-routable IP address.
The Custom Login URL has an IP address which is not reserved for the current project.
Another scan with the same name (case-sensitive) already exists.
A field is set to an invalid value.
There was an error trying to authenticate to the scan target.
Finding type value is not specified in the list findings request.
Scan targets Compute Engine, yet current project was not whitelisted for Google Compute Engine Scanning Alpha access.
User tries to update managed scan
The supplied filter is malformed. For example, it can not be parsed, does not have a filter type in expression, or the same filter type appears more than once.
The supplied resource name is malformed (can not be parsed).
The current project is not in an active state.
A required field is not set.
Project id, scanconfig id, scanrun id, or finding id are not consistent with each other in resource name.
The scan being requested to start is already running.
The scan that was requested to be stopped is not running.
One of the seed URLs does not belong to the current project.
One of the seed URLs is malformed (can not be parsed).
One of the seed URLs is mapped to a non-routable IP address in DNS.
One of the seed URLs is mapped to an IP address which is not reserved for the current project.
One of the seed URLs has on-routable IP address.
One of the seed URLs has an IP address that is not reserved for the current project.
The Cloud Security Scanner service account is not configured under the project.
A project has reached the maximum number of scans.
Resolving the details of the current project fails.
One or more blacklist patterns were in the wrong format.
The supplied filter is not supported.
The supplied finding type is not supported. For example, we do not provide findings of the given finding type.
The URL scheme of one or more of the supplied URLs is not supported.
A ScanRun is a output-only resource representing an actual run of the scan. Next id: 12
Used as response type in: WebSecurityScanner.GetScanRun, WebSecurityScanner.StartScanRun, WebSecurityScanner.StopScanRun
Used as field type in:
,The resource name of the ScanRun. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. The ScanRun IDs are generated by the system.
The execution state of the ScanRun.
The result state of the ScanRun. This field is only available after the execution state reaches "FINISHED".
The time at which the ScanRun started.
The time at which the ScanRun reached termination state - that the ScanRun is either finished or stopped by user.
The number of URLs crawled during this ScanRun. If the scan is in progress, the value represents the number of URLs crawled up to now.
The number of URLs tested during this ScanRun. If the scan is in progress, the value represents the number of URLs tested up to now. The number of URLs tested is usually larger than the number URLS crawled because typically a crawled URL is tested with multiple test payloads.
Whether the scan run has found any vulnerabilities.
The percentage of total completion ranging from 0 to 100. If the scan is in queue, the value is 0. If the scan is running, the value ranges from 0 to 100. If the scan is finished, the value is 100.
If result_state is an ERROR, this field provides the primary reason for scan's termination and more details, if such are available.
A list of warnings, if such are encountered during this scan run.
Types of ScanRun execution state.
Used in:
Represents an invalid state caused by internal server error. This value should never be returned.
The scan is waiting in the queue.
The scan is in progress.
The scan is either finished or stopped by user.
Types of ScanRun result state.
Used in:
Default value. This value is returned when the ScanRun is not yet finished.
The scan finished without errors.
The scan finished with errors.
The scan was terminated by user.
Output only. Defines an error trace message for a ScanRun.
Used in:
Indicates the error reason code.
If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error message encountered during scan configuration validation that is performed before each scan run.
If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most common HTTP error code, if such is available. For example, if this code is 404, the scan has encountered too many NOT_FOUND responses.
Output only. Defines an error reason code. Next id: 7
Used in:
Default value is never used.
Indicates that the scan run failed due to an internal server error.
Indicates a scan configuration error, usually due to outdated ScanConfig settings, such as starting_urls or the DNS configuration.
Indicates an authentication error, usually due to outdated ScanConfig authentication settings.
Indicates a scan operation timeout, usually caused by a very large site.
Indicates that a scan encountered excessive redirects, either to authentication or some other page outside of the scan scope.
Indicates that a scan encountered numerous errors from the web site pages. When available, most_common_http_error_code field indicates the most common HTTP error code encountered during the scan.
Output only. Defines a warning trace message for ScanRun. Warning traces provide customers with useful information that helps make the scanning process more effective.
Used in:
Indicates the warning code.
Output only. Defines a warning message code. Next id: 6
Used in:
Default value is never used.
Indicates that a scan discovered an unexpectedly low number of URLs. This is sometimes caused by complex navigation features or by using a single URL for numerous pages.
Indicates that a scan discovered too many URLs to test, or excessive redundant URLs.
Indicates that too many tests have been generated for the scan. Customer should try reducing the number of starting URLs, increasing the QPS rate, or narrowing down the scope of the scan using the excluded patterns.
Indicates that a scan is blocked by IAP.
Information regarding any resource causing the vulnerability such as JavaScript sources, image, audio files, etc.
Used in:
The MIME type of this resource.
URL of this violating resource.
Information about vulnerable or missing HTTP Headers.
Used in:
List of vulnerable headers.
List of missing headers.
Describes a HTTP Header.
Used in:
Header name.
Header value.
Information about vulnerable request parameters.
Used in:
The vulnerable parameter names.
Information reported for an XSS.
Used in:
Stack traces leading to the point where the XSS occurred.
An error message generated by a javascript breakage.