Skip to main content

findings

Creates, updates, deletes, gets or lists a findings resource.

Overview

Namefindings
TypeResource
Idgoogle.websecurityscanner.findings

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringOutput only. 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.
bodystringOutput only. The body of the request that triggered the vulnerability.
descriptionstringOutput only. The description of the vulnerability.
finalUrlstringOutput only. The URL where the browser lands when the vulnerability is detected.
findingTypestringOutput only. The type of the Finding. Detailed and up-to-date information on findings can be found here: https://cloud.google.com/security-command-center/docs/how-to-remediate-web-security-scanner-findings
formobjectOutput only. An addon containing information reported for a vulnerability with an HTML form, if any. (id: Form)
frameUrlstringOutput only. If the vulnerability was originated from nested IFrame, the immediate parent IFrame is reported.
fuzzedUrlstringOutput only. The URL produced by the server-side fuzzer and used in the request that triggered the vulnerability.
httpMethodstringOutput only. The http method of the request that triggered the vulnerability, in uppercase.
outdatedLibraryobjectOutput only. An addon containing information about outdated libraries. (id: OutdatedLibrary)
reproductionUrlstringOutput only. The URL containing human-readable payload that user can leverage to reproduce the vulnerability.
severitystringOutput only. The severity level of the reported vulnerability.
trackingIdstringOutput only. The tracking ID uniquely identifies a vulnerability instance across multiple ScanRuns.
violatingResourceobjectOutput only. An addon containing detailed information regarding any resource causing the vulnerability such as JavaScript sources, image, audio files, etc. (id: ViolatingResource)
vulnerableHeadersobjectOutput only. An addon containing information about vulnerable or missing HTTP headers. (id: VulnerableHeaders)
vulnerableParametersobjectOutput only. An addon containing information about request parameters which were found to be vulnerable. (id: VulnerableParameters)
xssobjectOutput only. An addon containing information reported for an XSS, if any. (id: Xss)
xxeobjectOutput only. An addon containing information reported for an XXE, if any. (id: Xxe)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, scanConfigsId, scanRunsId, findingsIdGets a Finding.
listselectprojectsId, scanConfigsId, scanRunsIdfilter, pageToken, pageSizeList Findings under a given ScanRun.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
findingsIdstring
projectsIdstring
scanConfigsIdstring
scanRunsIdstring
filterstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Gets a Finding.

SELECT
name,
body,
description,
finalUrl,
findingType,
form,
frameUrl,
fuzzedUrl,
httpMethod,
outdatedLibrary,
reproductionUrl,
severity,
trackingId,
violatingResource,
vulnerableHeaders,
vulnerableParameters,
xss,
xxe
FROM google.websecurityscanner.findings
WHERE projectsId = '{{ projectsId }}' -- required
AND scanConfigsId = '{{ scanConfigsId }}' -- required
AND scanRunsId = '{{ scanRunsId }}' -- required
AND findingsId = '{{ findingsId }}' -- required;