Skip to main content

threat_intel_sets

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

Overview

Namethreat_intel_sets
TypeResource
Idaws.guardduty.threat_intel_sets

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
expected_bucket_ownerstringThe Amazon Web Services account ID that owns the Amazon S3 bucket specified in the location parameter. This field appears in the response only if it was provided during ThreatIntelSet creation or update.
formatstringThe format of the threatIntelSet. (TXT, STIX, OTX_CSV, ALIEN_VAULT, PROOF_POINT, FIRE_EYE)
locationstringThe URI of the file that contains the ThreatIntelSet.
namestringA user-friendly ThreatIntelSet name displayed in all findings that are generated by activity that involves IP addresses included in this ThreatIntelSet.
statusstringThe status of threatIntelSet file uploaded. (INACTIVE, ACTIVATING, ACTIVE, DEACTIVATING, ERROR, DELETE_PENDING, DELETED)
tagsobjectThe tags of the threat list resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_threat_intel_setselectdetector_id, threat_intel_set_id, regionRetrieves the ThreatIntelSet that is specified by the ThreatIntelSet ID.
list_threat_intel_setsselectdetector_id, regionmaxResults, nextTokenLists the ThreatIntelSets of the GuardDuty service specified by the detector ID. If you use this operation from a member account, the ThreatIntelSets associated with the administrator account are returned.
create_threat_intel_setinsertdetector_id, region, ActivateCreates a new ThreatIntelSet. ThreatIntelSets consist of known malicious IP addresses. GuardDuty generates findings based on ThreatIntelSets. Only users of the administrator account can use this operation.
update_threat_intel_setupdatedetector_id, threat_intel_set_id, regionUpdates the ThreatIntelSet specified by the ThreatIntelSet ID.
delete_threat_intel_setdeletedetector_id, threat_intel_set_id, regionDeletes the ThreatIntelSet specified by the ThreatIntelSet ID.

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
detector_idstringThe unique ID of the detector that is associated with the threatIntelSet. To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.
regionstringAWS region (default: us-east-1)
threat_intel_set_idstringThe unique ID of the threatIntelSet that you want to delete.
maxResultsintegerYou can use this parameter to indicate the maximum number of items that you want in the response. The default value is 50. The maximum value is 50.
nextTokenstringYou can use this parameter to paginate results in the response. Set the value of this parameter to null on your first call to the list action. For subsequent calls to the action, fill nextToken in the request with the value of NextToken from the previous response to continue listing data.

SELECT examples

Retrieves the ThreatIntelSet that is specified by the ThreatIntelSet ID.

SELECT
expected_bucket_owner,
format,
location,
name,
status,
tags
FROM aws.guardduty.threat_intel_sets
WHERE detector_id = '{{ detector_id }}' -- required
AND threat_intel_set_id = '{{ threat_intel_set_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a new ThreatIntelSet. ThreatIntelSets consist of known malicious IP addresses. GuardDuty generates findings based on ThreatIntelSets. Only users of the administrator account can use this operation.

INSERT INTO aws.guardduty.threat_intel_sets (
Name,
Format,
Location,
Activate,
ClientToken,
Tags,
ExpectedBucketOwner,
detector_id,
region
)
SELECT
'{{ Name }}',
'{{ Format }}',
'{{ Location }}',
{{ Activate }} /* required */,
'{{ ClientToken }}',
'{{ Tags }}',
'{{ ExpectedBucketOwner }}',
'{{ detector_id }}',
'{{ region }}'
RETURNING
threat_intel_set_id
;

UPDATE examples

Updates the ThreatIntelSet specified by the ThreatIntelSet ID.

UPDATE aws.guardduty.threat_intel_sets
SET
Name = '{{ Name }}',
Location = '{{ Location }}',
Activate = {{ Activate }},
ExpectedBucketOwner = '{{ ExpectedBucketOwner }}'
WHERE
detector_id = '{{ detector_id }}' --required
AND threat_intel_set_id = '{{ threat_intel_set_id }}' --required
AND region = '{{ region }}' --required;

DELETE examples

Deletes the ThreatIntelSet specified by the ThreatIntelSet ID.

DELETE FROM aws.guardduty.threat_intel_sets
WHERE detector_id = '{{ detector_id }}' --required
AND threat_intel_set_id = '{{ threat_intel_set_id }}' --required
AND region = '{{ region }}' --required
;