Skip to main content

findings

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

Overview

Namefindings
TypeResource
Idaws.securityagent.findings

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
findingsarrayThe list of findings that were found.
not_foundarrayThe list of finding identifiers that were not found.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
batch_get_findingsselectregionRetrieves information about one or more security findings in an agent space.
list_findingsselectregionLists the security findings for a pentest job.
update_findingupdateregion, findingId, agentSpaceIdUpdates the status or risk level of a security finding.

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
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves information about one or more security findings in an agent space.

SELECT
findings,
not_found
FROM aws.securityagent.findings
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Updates the status or risk level of a security finding.

UPDATE aws.securityagent.findings
SET
findingId = '{{ findingId }}',
agentSpaceId = '{{ agentSpaceId }}',
name = '{{ name }}',
description = '{{ description }}',
riskType = '{{ riskType }}',
riskLevel = '{{ riskLevel }}',
riskScore = '{{ riskScore }}',
attackScript = '{{ attackScript }}',
reasoning = '{{ reasoning }}',
status = '{{ status }}',
customerNote = '{{ customerNote }}'
WHERE
region = '{{ region }}' --required
AND findingId = '{{ findingId }}' --required
AND agentSpaceId = '{{ agentSpaceId }}' --required;