Skip to content

Securonix.CLI.IncidentManagement

Brian edited this page Jan 28, 2023 · 8 revisions

Add-SecuronixComment

Add a comment to an incident.

Syntax

Add-SecuronixComment
    [-Url] <string>
    [-Token] <string>
    [-IncidentId] <string>
    [-Comment] <string>
    [-Username <string>]
    [-Firstname <string>]
    [-Lastname <string>]

Description

Add-SecuronixComment makes an API call to the Incident/Actions endpoint and adds a comment.

Example

Example 1: Add a comment to an open incident.

Request

Add-SecuronixComment -Url 'DunderMifflin.securonix.com/Snypr' -Token '12345678-90AB-CDEF-1234-567890ABCDEF' \
-IncidentId '10029' -Comment 'This is a test'

Response

{
    "status": "OK",
    "messages": [
        "Add comment to incident id - [100289]"
    ],
    "result": true
}

Parameters

-Url

Url endpoint for your Securonix instance. It must be in the following format:

https://<hostname or IPaddress>/Snypr

-Token

An API token to validate access. Use New-SecuronixApiToken to generate a new token.

-IncidentId

A required API Parameter. Enter the incident id of the incident to update.

-Comment

A required parameter. Enter a message to add to an incident.

-Username

An optional parameter. Enter the username of the user adding the comment.

-Firstname

An optional parameter. Enter the first name of the user adding the comment.

-Lastname

An optional parameter. Enter the last name of the user adding the comment.

Links

Securonix 6.4 REST API Categories - Incident Management


Add-SecuronixViolationScore

Add to the Violation Score.

Syntax

Add-SecuronixViolationScore
    [-Url] <string>
    [-Token] <string>
    [-ScoreIncrement] <int>
    [-TenantName] <string>
    [-ViolationName] <string>
    [-PolicyCategory] <string>
    [-EntityType] <string>
    [-EntityName] <string>
    [-ResourceGroupName] <string>
    [-ResourceName] <string>

Description

Add-SecuronixViolationScore makes an API call to the incident/updateViolationScore endpoint and adds ScoreIncrement to the Violation Score.

Example

Example 1: Add 1 to a Violation Score.

Request

Add-SecuronixViolationScore -Url 'DunderMifflin.securonix.com/Snypr' -Token '12345678-90AB-CDEF-1234-567890ABCDEF' `
    -ScoreIncrement 1 -TenantName 'Automationtenant' `
    -ViolationName 'policy' -PolicyCategory 'category' `
    -EntityType 'Users' -EntityName 'xyz' `
    -ResourceGroupname 'rgGroup' -ResourceName 'resource'

Response

{
	"status": "OK",
	"messages": [
		"Violation score updated for AA01MAC, Policyname:All Resources - AD04Dataset - 09 Nov 2020 by 5.0 from SOAR API'"
	],
	"result": []
}

Parameters

-Url

Url endpoint for your Securonix instance. It must be in the following format:

https://<hostname or IPaddress>/Snypr

-Token

An API token to validate access. Use New-SecuronixApiToken to generate a new token.

-ScoreIcrement

A required API parameter. Only accepts positive integers, enter the value to increase the violation score by.

-TenantName

A required API parameter. The name of the tenant the entity belongs to.

-ViolationName

A required API parameter. Name of the violation/policy to increase the violation score.

-PolicyCategory

A required API parameter. Policy category name of the policy being acted on.

-EntityType

A required API parameter. Type of entity, enter any of: Users, Activityaccount, Resources, IpAddress.

-EntityName

A required API parameter. Entityid/name of the entity being added. accountname for Activityaccount, userid for Users, ipadress for ActivityIp, resourceName for resources.

-ResourceGroupName

Required if EntityType is not Users. Enter the name of the resource group the entity belongs to.

-ResourceName

Required if EntityType is not Users. Enter the name of the resource the entity belongs to.

Links

Securonix 6.4 REST API Categories - Incident Management


Confirm-SecuronixIncidentAction

Get available incident actions.

Syntax

Confirm-SecuronixIncidentAction
    [-Url] <string>
    [-Token] <string>
    [-IncidentId] <string>
    [-Actioname] <string>

Description

Confirm-SecuronixIncidentAction makes an API call to the Incident/Get endpoint and checks to see if an actions is possible, and returns with a list of parameters.

Example

Example 1: Verify Claim as an available action for an incident

Request

Confirm-SecuronixIncidentAction -Url 'DunderMifflin.securonix.com/Snypr' -Token '12345678-90AB-CDEF-1234-567890ABCDEF' -IncidentId '100107' -ActionName 'Claim'

Response

{
    "status": "OK",
    "messages": [
        "Check if action is possible and get list of parameters - Incident Id - [100289], action Name - [CLAIM], - status - [Open]"
    ],
    "result": [{
        "actionDetails": [{
                "title": "Screen1",
                "sections": {
                    "sectionName": "Comments",
                    "attributes": [{
                            "displayName": "Comments",
                            "attributeType": "textarea",
                            "attribute": "15_Comments",
                            "required": false
                    }]
                }
        }],
        "actionName": "CLAIM",
        "status": "CLAIMED"
    }]
}

Parameters

-Url

Url endpoint for your Securonix instance. It must be in the following format:

https://<hostname or IPaddress>/Snypr

-Token

An API token to validate access. Use New-SecuronixApiToken to generate a new token.

-IncidentId

A required API Parameter, enter the target incident id.

-Actioname

A required API Parameter, check to see if this action is available for an incident.

Links

Securonix 6.4 REST API Categories - Incident Management


Get-SecuronixChildIncidents

Get a list of children incidents.

Syntax

Get-SecuronixChildIncidents
    [-Url] <string>
    [-Token] <string>
    [-ParentId] <string>

Description

Get-SecuronixChildIncidentListmakes an API call to the Incident/Get endpoint and retrieves all children incident ids of an incident.

Example

Example 1: Get list of children incidents.

Request

Get-SecuronixChildIncidentList-Url 'DunderMifflin.securonix.com/Snypr' -Token '12345678-90AB-CDEF-1234-567890ABCDEF' \
-ParentId '20019'

Response

{
    "status": "OK",
    "messages": [
        "Get child case details for incident ID [20019]"
    ],
    "result": [
        "20046",
        "20073",
        "20100",
        "20127",
        "20154",
        "20181",
        "20208",
        "20235"
    ]
}

Parameters

-Url

Url endpoint for your Securonix instance. It must be in the following format:

https://<hostname or IPaddress>/Snypr

-Token

An API token to validate access. Use New-SecuronixApiToken to generate a new token.

-ParentId

A required API Parameter, enter the incident id to view the details.

Links

Securonix 6.4 REST API Categories - Incident Management


Get-SecuronixIncident

Get incident details.

Syntax

Get-SecuronixIncident
    [-Url] <string>
    [-Token] <string>
    [-IncidentId] <string>

Description

Get-SecuronixIncident makes an API call to the Incident/Get endpoint and retrieves all details of an incident.

Example

Example 1: Get an incident

Request

Get-SecuronixIncident -Url 'DunderMifflin.securonix.com/Snypr' -Token '12345678-90AB-CDEF-1234-567890ABCDEF' \
-IncidentId '100107'

Response

{
    "status": "OK",
    "messages": [
        "Get incident details for incident ID [100107]"
    ],
    "result": {
        "data": {
            "totalIncidents": 1.0,
                "incidentItems": [{
                "violatorText": "Cyndi Converse",
                "lastUpdateDate": 1566232568502,
                "violatorId": "96",
                "incidentType": "Policy",
                "incidentId": "100107",
                "incidentStatus": "COMPLETED",
                "riskscore": 0.0,
                "assignedUser": "Admin Admin",
                "priority": "low",
                "reason": [
                    "Resource: Symantec Email DLP",
                    "Policy: Emails with large File attachments",
                    "Threat: Data egress attempts"
                ],
                "violatorSubText": "1096",
                "entity": "Users",
                "workflowName": "SOCTeamReview",
                "url": "DunderMifflin.securonix.com/Snypr/configurableDashboards/view?&type=incident&id=100107",
                "isWhitelisted": false,
                "watchlisted": false
            }]
        }
    }
}

Parameters

-Url

Url endpoint for your Securonix instance. It must be in the following format:

https://<hostname or IPaddress>/Snypr

-Token

Valid authentication token.

-IncidentId

A required API Parameter, enter the incident id to view the details.

Links

Securonix 6.4 REST API Categories - Incident Management


Get-SecuronixIncidentActionList

Get available incident actions.

Syntax

Get-SecuronixIncidentActionList
    [-Url] <string>
    [-Token] <string>
    [-IncidentId] <string>

Description

Get-SecuronixIncidentActionList makes an API call to the incident/Get endpoint and retrieves the actions available for an incident.

Example

Example 1: Get actions for an incident

Request

Get-SecuronixIncidentActionList -Url 'DunderMifflin.securonix.com/Snypr' -Token '12345678-90AB-CDEF-1234-567890ABCDEF' -IncidentId '100107'

Response

{
    "status": "OK",
    "messages": [
        "Get possible actions for incident ID [100289], incident status [Open]"
    ],
    "result": [
        {
            "actionDetails": [{
                "title": "Screen1",
                "sections": {
                    "sectionName": "Comments",
                    "attributes": [{
                            "displayName": "Comments",
                            "attributeType": "textarea",
                            "attribute": "15_Comments",
                            "required": false
                    }]
                }
            }],
            "actionName": "CLAIM",
            "status": "CLAIMED"
        },{
            "actionDetails": [{
                "title": "Screen1",
                "sections": {
                    "sectionName": "Comments",
                    "attributes": [
                        {
                            "displayName": "Business Response",
                            "attributeType": "dropdown",
                            "values": [
                                "Inaccurate alert-User not a HPA",
                                "Inaccurate alert-inaccurate log data",
                                "Inaccurate alert-host does not belong to our business",
                                "Need more information",
                                "Duplicate alert"
                            ],
                            "attribute": "10_Business-Response",
                            "required": false
                        },{
                            "displayName": "Business Justification",
                            "attributeType": "text",
                            "attribute": "11_Business-Justification",
                            "required": false
                        },{
                            "displayName": "Remediation Performed",
                            "attributeType": "text",
                            "attribute": "12_Remediation-Performed",
                            "required": false
                        },{
                            "displayName": "Business Internal Use",
                            "attributeType": "text",
                            "attribute": "13_Business-Internal-Use",
                            "required": false
                        },{
                            "displayName": "Assign To Analyst",
                            "attributeType": "assignto",
                            "values": [
                                {
                                    "key": "GROUP",
                                    "value": "Administrators"
                                },{
                                    "key": "GROUP",
                                    "value": "SECURITYOPERATIONS"
                                },{
                                    "key": "USER",
                                    "value": "admin"
                                },{
                                    "key": "USER",
                                    "value": "auditor"
                                },{
                                    "key": "USER",
                                    "value": "useradmin"
                                },{
                                    "key": "USER",
                                    "value": "accessscanner"
                                },{
                                    "key": "USER",
                                    "value": "account08"
                                },{
                                    "key": "USER",
                                    "value": "account10"
                                },{
                                    "key": "USER",
                                    "value": "account06"
                                },{
                                    "key": "USER",
                                    "value": "account07"
                                },{
                                    "key": "USER",
                                    "value": "account02"
                                },{
                                    "key": "USER",
                                    "value": "account09"
                                },{
                                    "key": "USER",
                                    "value": "account01"
                                },{
                                    "key": "USER",
                                    "value": "account05"
                                },{
                                    "key": "USER",
                                    "value": "account03"
                                },{
                                    "key": "USER",
                                    "value": "account04"
                                }
                            ],
                            "attribute": "assigntouserid",
                            "required": true
                        }
                    ]
                }
            }],
            "actionName": "ASSIGN TO ANALYST",
            "status": "OPEN"
        },{
            "actionDetails": [{
                "title": "Screen1",
                "sections": {
                    "sectionName": "Comments",
                    "attributes": [{
                        "displayName": "Comments",
                        "attributeType": "textarea",
                        "attribute": "15_Comments",
                        "required": false
                    }]
                }
            }],
            "actionName": "ASSIGN TO SECOPS",
            "status": "OPEN"
        }
    ]
}

Parameters

-Url

Url endpoint for your Securonix instance. It must be in the following format:

https://<hostname or IPaddress>/Snypr

-Token

An API token to validate access. Use New-SecuronixApiToken to generate a new token.

-IncidentId

A required API Parameter, enter the incident id to view available actions.

Links

Securonix 6.4 REST API Categories - Incident Management


Get-SecuronixIncidentActivityHistory

Get a list of incident activity.

Syntax

Get-SecuronixIncidentActivityHistory
    [-Url] <string>
    [-Token] <string>
    [-IncidentId] <string>

Description

Get-SecuronixIncidentActivityHistory makes an API call to the incident/Get endpoint and retrieves a list of activity and actions taken on an incident.

Example

Example 1: Get history for an incident.

Request

Get-SecuronixIncidentActivityHistory -Url 'DunderMifflin.securonix.com/Snypr' -Token '12345678-90AB-CDEF-1234-567890ABCDEF' \
-IncidentId '20019'

Response

{
    "status": "OK",
    "messages": [
        "Get activity stream details for incident ID [20019]"
    ],
    "result": {
        "activityStreamData": [{
            "caseid": "20019",
            "actiontaken": "CREATED",
            "status": "Open",
            "comment": [],
            "eventTime": "Jan 21, 2020 2:33:37 AM",
            "username": "Admin Admin",
            "currentassignee": "admin",
            "commentType": [],
            "currWorkflow": "SOCTeamReview"
        }]
    }
}

Parameters

-Url

Url endpoint for your Securonix instance. It must be in the following format:

https://<hostname or IPaddress>/Snypr

-Token

An API token to validate access. Use New-SecuronixApiToken to generate a new token.

-IncidentId

A required API Parameter, enter the incident id to view the details.

Links

Securonix 6.4 REST API Categories - Incident Management


Get-SecuronixIncidentAPIResponse

Make a request to Securonix API.

Syntax

Get-SecuronixWorkflowsList

Get-SecuronixIncidentAPIResponse
    [-Url] <string>
    [-Token] <string>
    [-type] <string>

Get-SecuronixIncident, Get-SecuronixIncidentStatus, Get-SecuronixIncidentWorkflowName, Get-SecuronixIncidentActionList, Get-SecuronixChildIncidents, Get-SecuronixIncidentActivityHistory

Get-SecuronixIncidentAPIResponse
    [-Url] <string>
    [-Token] <string>
    [-type] <string>
    [-incidentId] <string>

Confirm-SecuronixIncidentAction

Get-SecuronixIncidentAPIResponse
    [-Url] <string>
    [-Token] <string>
    [-type] <string>
    [-incidentId] <string>
    [-actionName] <string>

Get-SecuronixIncidentsList, Get-SecuronixIncidentAttachments

Get-SecuronixIncidentAPIResponse
    [-Url] <string>
    [-Token] <string>
    [-type] <string>
    [-from] <string>
    [-to] <string>
    [-rangeType] <string>
    [-status <string>]
    [-allowChildCases]
    [-max <int>]
    [-offset <int>]

Get-SecuronixWorkflowDefinition, Get-SecuronixWorkflowDefaultAssignee

Get-SecuronixIncidentAPIResponse
    [-Url] <string>
    [-Token] <string>
    [-type] <string>
    [-workflowname] <string>

Description

Get-SecuronixIncidentAPIResponse makes an API call to the incident/Get endpoint with the supplied request type. Parameters vary based on the type of request your are making. It is recommended to use the alternative wrappers in this module.

Example

Example 1: Get details for a Securonix incident.

Request

Get-SecuronixIncidentAPIResponse -Url 'DunderMifflin.securonix.com/Snypr' -Token '12345678-90AB-CDEF-1234-567890ABCDEF' \
-Type 'metaInfo' -IncidentId '100107'

Response

{
    "status": "OK",
    "messages": [
        "Get incident details for incident ID [100107]"
    ],
    "result": {
        "data": {
            "totalIncidents": 1.0,
                "incidentItems": [{
                "violatorText": "Cyndi Converse",
                "lastUpdateDate": 1566232568502,
                "violatorId": "96",
                "incidentType": "Policy",
                "incidentId": "100107",
                "incidentStatus": "COMPLETED",
                "riskscore": 0.0,
                "assignedUser": "Admin Admin",
                "priority": "low",
                "reason": [
                    "Resource: Symantec Email DLP",
                    "Policy: Emails with large File attachments",
                    "Threat: Data egress attempts"
                ],
                "violatorSubText": "1096",
                "entity": "Users",
                "workflowName": "SOCTeamReview",
                "url": "DunderMifflin.securonix.com/Snypr/configurableDashboards/view?&type=incident&id=100107",
                "isWhitelisted": false,
                "watchlisted": false
            }]
        }
    }
}

Example 2: Get list of incidents in updated status within the time frame.

Request

Get-SecuronixIncidentsList -Url 'DunderMifflin.securonix.com/Snypr' -Token '12345678-90AB-CDEF-1234-567890ABCDEF' \
-type 'list' \
-from '1566249473000' -to '1566335873000' -rangeType 'updated'

Response

{
    "status": "OK",
    "result": {
        "data": {
            "totalIncidents": 1.0,
            "incidentItems": [{
                "violatorText": "Cyndi Converse",
                "lastUpdateDate": 1566293234026,
                "violatorId": "96",
                "incidentType": "RISK MODEL",
                "incidentId": "100181",
                "incidentStatus": "COMPLETED",
                "riskscore": 0.0,
                "assignedUser": "Account Access 02",
                "assignedGroup": "Administrators",
                "priority": "None",
                "reason": [
                    "Resource: Symantec Email DLP"
                ],
                "violatorSubText": "1096",
                "entity": "Users",
                "workflowName": "SOCTeamReview",
                "url": "DunderMifflin.securonix.com/Snypr/configurableDashboards/view?&type=incident&id=100181",
                "isWhitelisted": false,
                "watchlisted": false
            }]
        }
    }
}

Parameters

-Url

Url endpoint for your Securonix instance. It must be in the following format:

https://<hostname or IPaddress>/Snypr

-Token

An API token to validate access. Use New-SecuronixApiToken to generate a new token.

-type

A required API Parameter, enter the API type to view the details.

-incidentId

A required API Parameter, enter the unique incident id number.

-from

A required API Parameter, enter time starting point. Time (epoch) in ms.

-to

A required API Parameter, enter time ending point. Time (epoch) in ms.

-rangeType

A required API Parameter, enter the incident action status. Select any of updated,opened,closed.

-status

An optional API Parameter, filter results by status.

-allowChildCases

An optional API Parameter, used to receive the list of child cases associated with a parent case in the response.

-max

An optional API Parameter, enter maximum number of records the API will display.

-offset

An optional API Parameter, used for pagination of the request.

-workflowname

A required API Parameter, enter the name of a Securonix workflow.

Links

Securonix 6.4 REST API Categories - Incident Management


Get-SecuronixIncidentAttachments

Get a list of files attached to incidents.

Syntax

Get-SecuronixIncidentAttachments
    [-Url] <string>
    [-Token] <string>
    [-IncidentId] <string>
    [[-AttachmentType] <string>]
Get-SecuronixIncidentAttachments
    [-Url] <string>
    [-Token] <string>
    [-IncidentId] <string>
    [-TimeStart] <string>
    [-TimeEnd] <string>
    [[-AttachmentType] <string>]

Description

Get-SecuronixIncidentAttachments makes an API call to the Incident/attachments endpoint and retrieves attachments from an incident.

Example

Example 1: Get list of incidents in updated status within the time frame.

Request

Get-SecuronixIncidentAttachments -Url 'DunderMifflin.securonix.com/Snypr' -Token '12345678-90AB-CDEF-1234-567890ABCDEF' \
-IncidentId '100107'

Example 2: User doesn't have access to incident or incident tenant.

Request

Get-SecuronixIncidentAttachments -Url 'DunderMifflin.securonix.com/Snypr' -Token '12345678-90AB-CDEF-1234-567890ABCDEF' \
-IncidentId '100107'

Response

{
    "error": "[User] do not have access to incident tenant",
    "type": "Bad Request",
    "code": "400"
}     

Parameters

-Url

Url endpoint for your Securonix instance. It must be in the following format:

https://<hostname or IPaddress>/Snypr

-Token

An API token to validate access. Use New-SecuronixApiToken to generate a new token.

-TimeStart

A required API Parameter, enter starting point for the search. Time (epoch) in ms or Date Time in 'mm/dd/YYYY HH:MM:SS-00'.

-TimeEnd

A required API Parameter, enter ending point for the search. Time (epoch) in ms or Date Time in 'mm/dd/YYYY HH:MM:SS-00'.

-AttachmentType

A required API Parameter, select any of: csv, pdf, txt.

Links

Securonix 6.4 REST API Categories - Incident Management


Get-SecuronixIncidentsList

Get a list of Securonix incidents.

Syntax

Get-SecuronixIncidentsList
    [-Url] <string>
    [-Token] <string>
    [-TimeStart] <string>
    [-TimeEnd] <string>
    [-RangeType] <string>
    [-Status <string>]
    [-AllowChildCases]
    [-Max <int>]
    [-Offset <int>]

Description

Get-SecuronixIncidentsList makes an API call to the Incident/Get endpoint and retrieves a list of incidents opened within the supplied time range and any additional filters provided.

Example

Example 1: Get list of incidents in updated status within the time frame.

Request

Get-SecuronixIncidentsList -Url 'DunderMifflin.securonix.com/Snypr' -Token '12345678-90AB-CDEF-1234-567890ABCDEF' \
-TimeStart '1566249473000' -TimeEnd '1566335873000' -RangeType 'updated'

Response

{
    "status": "OK",
    "result": {
        "data": {
            "totalIncidents": 1.0,
            "incidentItems": [{
                "violatorText": "Cyndi Converse",
                "lastUpdateDate": 1566293234026,
                "violatorId": "96",
                "incidentType": "RISK MODEL",
                "incidentId": "100181",
                "incidentStatus": "COMPLETED",
                "riskscore": 0.0,
                "assignedUser": "Account Access 02",
                "assignedGroup": "Administrators",
                "priority": "None",
                "reason": [
                    "Resource: Symantec Email DLP"
                ],
                "violatorSubText": "1096",
                "entity": "Users",
                "workflowName": "SOCTeamReview",
                "url": "DunderMifflin.securonix.com/Snypr/configurableDashboards/view?&type=incident&id=100181",
                "isWhitelisted": false,
                "watchlisted": false
            }]
        }
    }
}

Parameters

-Url

Url endpoint for your Securonix instance. It must be in the following format:

https://<hostname or IPaddress>/Snypr

-Token

An API token to validate access. Use New-SecuronixApiToken to generate a new token.

-TimeStart

A required API Parameter, enter starting point for the search. Time (epoch) in ms or Date Time in 'mm/dd/YYYY HH:MM:SS-00'.

-TimeEnd

A required API Parameter, enter ending point for the search. Time (epoch) in ms or Date Time in 'mm/dd/YYYY HH:MM:SS-00'.

-RangeType

A required API Parameter, select any of updated|opened|closed.

-Status

An optional API Parameter, filter results by status.

-AllowChildCases

An optional API Parameter, enter true to receive the list of child cases associated with a parent case in the response. Otherwise, enter false. This parameter is optional.

-Max

An optional API Parameter, enter maximum number of records the API will display.

-Offset

An optional API Parameter, used for pagination of the request.

Links

Securonix 6.4 REST API Categories - Incident Management


Get-SecuronixIncidentStatus

Get incident status.

Syntax

Get-SecuronixIncidentStatus
    [-Url] <string>
    [-Token] <string>
    [-IncidentId] <string>

Description

Get-SecuronixIncidentStatus makes an API call to the Incident/Get endpoint and retrieves the status of an incident.

Example

Example 1: Get status of an incident

Request

Get-SecuronixIncidentStatus -Url 'DunderMifflin.securonix.com/Snypr' -Token '12345678-90AB-CDEF-1234-567890ABCDEF' -IncidentId '100107'

Response

{
    "status": "OK",
    "messages": [
        "Get incident status for incident ID [100107] - [COMPLETED]"
    ],
    "result": {
        "status": "COMPLETED"
    }
}

Parameters

-Url

Url endpoint for your Securonix instance. It must be in the following format:

https://<hostname or IPaddress>/Snypr

-Token

An API token to validate access. Use New-SecuronixApiToken to generate a new token.

-IncidentId

A required API Parameter, enter the incident id to view the status.

Links

Securonix 6.4 REST API Categories - Incident Management


Get-SecuronixIncidentWorkflowName

Get incident workflow.

Syntax

Get-SecuronixIncidentWorkflowName
    [-Url] <string>
    [-Token] <string>
    [-IncidentId] <string>

Description

Get-SecuronixIncidentWorkflowName makes an API call to the Incident/Get endpoint and retrieves the workflow name of an incident.

Example

Example 1: Get status of an incident

Request

Get-SecuronixIncidentWorkflowName -Url 'DunderMifflin.securonix.com/Snypr' -Token '12345678-90AB-CDEF-1234-567890ABCDEF' -IncidentId '100107'

Response

{
    "status": "OK",
    "messages": [
        "Get incident workflow for incident ID [100107] - [SOCTeamReview]"
    ],
    "result": {
        "workflow": "SOCTeamReview"
    }
}

Parameters

-Url

Url endpoint for your Securonix instance. It must be in the following format:

https://<hostname or IPaddress>/Snypr

-Token

An API token to validate access. Use New-SecuronixApiToken to generate a new token.

-IncidentId

A required API Parameter, enter the incident id to view the workflow name.

Links

Securonix 6.4 REST API Categories - Incident Management


Get-SecuronixThreatActionList

Get a list of available actions.

Syntax

Get-SecuronixThreatActionList
    [-Url] <string>
    [-Token] <string>

Description

Get-SecuronixThreatActionList makes an API call to the Incident/Get endpoint and retrieves all threat management actions available for an incident.

Example

Example 1: Get list of available threat management actions.

Request

Get-SecuronixThreatActionList -Url 'DunderMifflin.securonix.com/Snypr' -Token '12345678-90AB-CDEF-1234-567890ABCDEF' \

Response

{
    "status": "OK",
    "messages": [
        "test Message 04"
    ],
    "result": [
        "Mark as concern and create incident",
        "Non-Concern",
        "Mark in progress (still investigating)"
    ]
}

Parameters

-Url

Url endpoint for your Securonix instance. It must be in the following format:

https://<hostname or IPaddress>/Snypr

-Token

An API token to validate access. Use New-SecuronixApiToken to generate a new token.

Links

Securonix 6.4 REST API Categories - Incident Management


Get-SecuronixWorkflowDefaultAssignee

Get default resource assigned to a workflow.

Syntax

Get-SecuronixWorkflowDefaultAssignee
    [-Url] <string>
    [-Token] <string>
    [-WorkflowName] <string>

Description

Get-SecuronixWorkflowDefaultAssignee makes an API call to the Incident/Get endpoint and retrieves the resource an incident will be assigned for the selected workflow.

Example

Example 1: Get a list of all workflows.

Request

Get-SecuronixWorkflowDefaultAssignee -Url 'DunderMifflin.securonix.com/Snypr' -Token '12345678-90AB-CDEF-1234-567890ABCDEF' \
-WorkflowName 'SOCTeamReview'

Response

{
    "status": "OK",
    "messages": [
        "Default assignee for workflow [SOCTeamReview] - [admin]"
    ],
    "result": {
        "type": "USER",
        "value": "admin"
    }
}

Parameters

-Url

Url endpoint for your Securonix instance. It must be in the following format:

https://<hostname or IPaddress>/Snypr

-Token

An API token to validate access. Use New-SecuronixApiToken to generate a new token.

-WorkflowName

A required API Parameter, enter the name of a Securonix workflow.

Links

Securonix 6.4 REST API Categories - Incident Management


Get-SecuronixWorkflowDefinition

Get details of a workflow.

Syntax

Get-SecuronixWorkflowDefinition
    [-Url] <string>
    [-Token] <string>
    [-WorkflowName] <string>

Description

Get-SecuronixWorkflowDefinition makes an API call to the Incident/Get endpoint and returns with the details for the specified workflow.

Example

Example 1: Get a list of all workflows.

Request

Get-SecuronixWorkflowDefinition -Url 'DunderMifflin.securonix.com/Snypr' -Token '12345678-90AB-CDEF-1234-567890ABCDEF' \
-WorkflowName 'SOCTeamReview'

Response

{
    "status": "OK",
    "messages": [
        "Workflow Details"
    ],
    "result": {
        "SOCTeamReview": {
        "CLAIMED": [
            {
                "Status": "OPEN",
                "Action": "ASSIGN TO ANALYST"
            },{
                "Status": "COMPLETED",
                "Action": "ACCEPT RISK"
            },{
                "Status": "OPEN",
                "Action": "RELEASE"
            },{
                "Status": "CLOSED",
                "Action": "VIOLATION"
            },{
                "Status": "OPEN",
                "Action": "ASSIGN TO SECOPS"
            }
        ],
        "CLOSED": [
            {
                "Status": "PENDING VERIFICATION",
                "Action": "CLAIM"
            },{
                "Status": "OPEN",
                "Action": "ASSIGN TO ANALYST"
            },{
                "Status": "OPEN",
                "Action": "RELEASE"
            }
        ],
        "PENDING VERIFICATION": [{
            "Status": "COMPLETED",
            "Action": "VERIFY"
        }],
        "OPEN": [
            {
                "Status": "OPEN",
                "Action": "ASSIGN TO ANALYST"
            },{
                "Status": "CLAIMED",
                "Action": "CLAIM"
            },{
                "Status": "OPEN",
                "Action": "ASSIGN TO SECOPS"
            },{
                "Status": "Do Not Change",
                "Action": "WhiteList_Action"
            }
        ]
    }
}

Parameters

-Url

Url endpoint for your Securonix instance. It must be in the following format:

https://<hostname or IPaddress>/Snypr

-Token

An API token to validate access. Use New-SecuronixApiToken to generate a new token.

-WorkflowName

A required API Parameter, enter the name of a Securonix workflow.

Links

Securonix 6.4 REST API Categories - Incident Management


Get-SecuronixWorkflowsList

Get list of workflows.

Syntax

Get-SecuronixWorkflowsList
    [-Url] <string>
    [-Token] <string>

Description

Get-SecuronixWorkflowsList makes an API call to the Incident/Get endpoint and returns with a list of workflows.

Example

Example 1: Get a list of all workflows.

Request

Get-SecuronixWorkflowsList -Url 'DunderMifflin.securonix.com/Snypr' -Token '12345678-90AB-CDEF-1234-567890ABCDEF'

Response

{
    "status": "OK",
    "messages": [
        "Get all possible workflows"
    ],
    "result": {
        "workflows": [
            {
                "workflow": "SOCTeamReview",
                "type": "USER",
                "value": "admin"
            },{
                "workflow": "ActivityOutlierWorkflow",
                "type": "USER",
                "value": "admin"
            },{
                "workflow": "AccessCertificationWorkflow",
                "type": "USER",
                "value": "admin"
            }
        ]
    }
}

Parameters

-Url

Url endpoint for your Securonix instance. It must be in the following format:

https://<hostname or IPaddress>/Snypr

-Token

An API token to validate access. Use New-SecuronixApiToken to generate a new token.

Links

Securonix 6.4 REST API Categories - Incident Management


New-SecuronixIncident

Create a securonix incident.

Syntax

New-SecuronixIncident
    [-Url] <string>
    [-Token] <string>
    [-ViolationName] <string>
    [-DatasourceName] <string>
    [-EntityType] <string>
    [-EntityName] <string>
    [-Workflow] <string>
    [-Comment <string>]
    [-EmployeeId <string>]
    [-Criticality <string>]

Description

New-SecuronixIncident makes an API call to the Incident/Actions endpoint and creates a new incident.

Example

Example 1: Create a new incident.

Request

New-SecuronixIncident -Url 'DunderMifflin.securonix.com/Snypr' -Token '12345678-90AB-CDEF-1234-567890ABCDEF' \
-ViolationName 'Repeated Visits to Potentially Malicious address' -DatasourceName 'Websense Proxy' \
-EntityType 'Activityip' -EntityName '134.119.189.29' -Workflow 'SOCTeamReview'

Response

{
    "status": "OK",
    "messages":[
        "Get incident details for incident ID [100317]"
    ],
    "result": {
        "data": {
            "totalIncidents": 1.0,
            "incidentItems": [{
                "violatorText": "134.119.189.29",
                "lastUpdateDate": 1566337840264,
                "violatorId": "134.119.189.29",
                "incidentType": "Policy",
                "incidentId": "100317",
                "incidentStatus": "Open",
                "riskscore": 3.0,
                "assignedUser": "Admin Admin",
                "priority": "low",
                "reason": [
                    "Policy: Repeated Visits to Potentially Malicious address",
                    "Threat: Possible C2 Communication"
                ],
                "entity": "Activityip",
                "workflowName": "SOCTeamReview",
                "url": "https://saaspocapp2t14wptp.securonix.net/Snypr/configurableDashboards/view?&type=incident&id=100317",
                "isWhitelisted": false,
                "watchlisted": false
            }]
        }
    }
}

Parameters

-Url

Url endpoint for your Securonix instance. It must be in the following format:

https://<hostname or IPaddress>/Snypr

-Token

An API token to validate access. Use New-SecuronixApiToken to generate a new token.

-IncidentId

A required API Parameter. Enter the incident id of the incident to update.

-ViolationName

A required API Parameter. Enter the violation policy name.

-DatasourceName

A required API Parameter. Enter the resource group name.

-EntityType

A required API Parameter. Enter any of the following types: Users, Activityaccount, RGActivityaccount, Resources, Activityip.

-EntityName

A required API Parameter. Enter the accountname associated with the violation.

-Workflow

A required API Parameter. Enter the workflow name.

-Comment

An optional API Parameter. Enter an additional comment.

-EmployeeId

An optional API Parameter. Enter the employee id.

-Criticality

A required parameter. Enter the new criticality. Possible values: 'none','low','medium','high','custom'.

Links

Securonix 6.4 REST API Categories - Incident Management


Update-SecuronixCriticality

Update an incidents criticality.

Syntax

Update-SecuronixCriticality
    [-Url] <string>
    [-Token] <string>
    [-IncidentId] <string>
    [-Criticality] <string>

Description

Update-SecuronixCriticality makes an API call to the Incident/Actions endpoint and updates the incidents criticality.

Example

Example 1: Take an action

Request

Update-SecuronixCriticality -Url 'DunderMifflin.securonix.com/Snypr' -Token '12345678-90AB-CDEF-1234-567890ABCDEF' \
-IncidentId '10029' -Criticality 'low'

Response

{
    "status": "OK",
    "messages": [
        "Criticality updated for incidents : [1727657,172992]"
    ]
}

Parameters

-Url

Url endpoint for your Securonix instance. It must be in the following format:

https://<hostname or IPaddress>/Snypr

-Token

An API token to validate access. Use New-SecuronixApiToken to generate a new token.

-IncidentId

A required API Parameter. Enter the incident id of the incident to update.

-Criticality

A required parameter. Enter the new criticality. Possible values: 'none','low','medium','high','custom'.

Links

Securonix 6.4 REST API Categories - Incident Management


Update-SecuronixIncident

Update a securonix incident.

Syntax

Update-SecuronixIncident
    [-Url] <string>
    [-Token] <string>
    [-IncidentId] <string>
    [-ActionName] <string>
    [-Attributes <hashtable>]

Description

Update-SecuronixIncident makes an API call to the Incident/Actions endpoint and updates an incident with the supplied action.

Example

Example 1: Take an action

Request

Update-SecuronixIncident -Url 'DunderMifflin.securonix.com/Snypr' -Token '12345678-90AB-CDEF-1234-567890ABCDEF' \
-IncidentId '10029' -ActionName 'comment' \
-Attributes @{'comment'='comment message';'username'='jhalpert';'firstname'='Jim';'lastname'='Halpert'}

Response

{
    "status": "OK",
    "result": "submitted"
}

Parameters

-Url

Url endpoint for your Securonix instance. It must be in the following format:

https://<hostname or IPaddress>/Snypr

-Token

An API token to validate access. Use New-SecuronixApiToken to generate a new token.

-IncidentId

A required API Parameter. Enter the incident id of the incident to update.

-ActionName

A required API Parameter. Enter an action that you want to perform for the incident. You can run the Available Threat Actions on an Incident API to view the available actions.

-Attributes

Depending on workflow configured in your organization, add the required attributes. Run Confirm-SecuronixIncidentAction, or Get-SecuronixIncidentActionList to view all the attributes (required or not).

Links

Securonix 6.4 REST API Categories - Incident Management

Clone this wiki locally