taxii-delete-object

Uses the id field value of each record passed through the pipeline to revoke a STIX object from a specific collection on a TAXII 2.x server. In the TAXII protocol, object deletion is implemented by setting the revoked flag to true.

Command properties

PropertyDescription
Command typeTransforming
Required permissionUser permission
License usageNot counted
Parallel executionNot supported
Distributed executionNot supported

Syntax

taxii-delete-object profile=profile_name apiroot=api_root_name id=collection_id

Options

profile=profile_name
Name of the TAXII connect profile to use.
apiroot=api_root_name
Name of the TAXII API root from which to delete the object. Required.
id=collection_id
Collection ID (GUID format) from which to delete the object. Required.

Input fields

FieldTypeRequiredDescription
idstringRequiredID of the STIX object to delete

Output fields

Passes through the input record as-is. If an error occurs, an _error field is appended.

FieldTypeDescription
_errorstringError message if an error occurs

Error codes

Parsing errors
Error codeMessageDescription
201800No available TAXII profile found.No available TAXII profile exists
201801Specify valid TAXII profile.The specified TAXII profile name is invalid
201802Specify apiroot optionThe apiroot option was not specified
201803Specify id optionThe collection id option was not specified
201804check GUID format of TAXII id optionThe collection id option is not in GUID format

Description

For each record passed through the pipeline, the command looks up the STIX object corresponding to the id field in the TAXII collection and updates the object by setting its revoked attribute to true. If the id field is not a string or the target object does not exist, the error message is recorded in the _error field.

In the TAXII protocol, object deletion is a revocation rather than actual removal, so revoked objects remain in the collection with revoked=true.

Examples

  1. Revoke STIX objects from a collection

    taxii-objects profile="my-taxii" apiroot="taxii" id="12345678-1234-1234-1234-123456789abc"
    | search type == "indicator" AND revoked == false
    | taxii-delete-object profile="my-taxii" apiroot="taxii" id="12345678-1234-1234-1234-123456789abc"
    

    Revokes all non-revoked indicator-type objects in the collection.