Uptycs - Bad IP Incident

Get information about processes which open connections to known Bad IP's

Uptycs · 9 tasks · 1 input · 12 outputs

Details

IDUptycs - Bad IP Incident
From Version5.0.0
Tasks9

README

Gets information about processes which open connections to known bad IP addresses.

Dependencies

This playbook uses the following sub-playbooks, integrations, and scripts.

Sub-playbooks

This playbook does not use any sub-playbooks.

Integrations

This playbook does not use any integrations.

Scripts

This playbook does not use any scripts.

Commands

  • uptycs-get-threat-source
  • uptycs-get-parent-information
  • uptycs-get-process-child-processes
  • uptycs-get-process-information
  • uptycs-get-alerts
  • uptycs-get-process-open-sockets
  • uptycs-get-threat-indicator

Playbook Inputs


Name Description Default Value Required
alert_id The unique Uptycs ID for a particular alert. ${incident.alertid} Required

Playbook Outputs


Path Description Type
Uptycs.Proc.pid The PID for the process. number
Uptycs.Proc.upt_add_time The time that the process was spawned. date
Uptycs.Proc.upt_remove_time The time that the process was removed. date
Uptycs.Parent.pid THe PID of the parent process. number
Uptycs.Parent.upt_add_time The time that the process was spawned. date
Uptycs.Parent.upt_remove_time The time that the process was removed. date
Uptycs.Sockets.local_address The local IP address for the specified connection. string
Uptycs.Sockets.local_port The local port for specified connection. number
Uptycs.Sockets.remote_port The remote port for specified connection. number
Uptycs.Children.pid The PID of a child process. number
Uptycs.Children.upt_add_time The time that the process was spawned. date
Uptycs.Children.upt_remove_time The time that the process was removed. date

Playbook Image


Uptycs_Bad_IP_Incident

Inputs

  • alert_id — Unique Uptycs ID for a particular alert

Outputs

  • Uptycs.Proc.pid — pid for the process
  • Uptycs.Proc.upt_add_time — time that the process was spawned
  • Uptycs.Proc.upt_remove_time — time that the process was removed
  • Uptycs.Parent.pid — pid of the parent process
  • Uptycs.Parent.upt_add_time — time that the process was spawned
  • Uptycs.Parent.upt_remove_time — time that the process was removed
  • Uptycs.Sockets.local_address — local IP for specified connection
  • Uptycs.Sockets.local_port — local port for specified connection
  • Uptycs.Sockets.remote_port — remote port for specified connection
  • Uptycs.Children.pid — pid of a child process
  • Uptycs.Children.upt_add_time — time that the process was spawned
  • Uptycs.Children.upt_remove_time — time that the process was removed

Commands used

uptycs-get-alerts uptycs-get-parent-information uptycs-get-process-child-processes uptycs-get-process-information uptycs-get-process-open-sockets uptycs-get-threat-indicator uptycs-get-threat-source

Flowchart

Start Start Get Bad IP alert - uptycs-get-alerts Get Bad IP alert uptycs-get-alerts Get process Info - uptycs-get-process-information Get process Info uptycs-get-process-information Get child processes - uptycs-get-process-child-processes Get child processes uptycs-get-process-child-proc... Get information about the connection that was opened - uptycs-get-process-open-sockets Get information about the... uptycs-get-process-open-sockets Get parent info - uptycs-get-parent-information Get parent info uptycs-get-parent-information Get threat indicator info - uptycs-get-threat-indicator Get threat indicator info uptycs-get-threat-indicator Get threat source info - uptycs-get-threat-source Get threat source info uptycs-get-threat-source Done Done
id: Uptycs - Bad IP Incident
version: -1
name: Uptycs - Bad IP Incident
description: Get information about processes which open connections to known Bad IP's
starttaskid: "0"
fromversion: "5.0.0"
tasks:
  "0":
    id: "0"
    taskid: ccc08aa3-60b9-4fc3-8dcc-a7a55918137d
    type: start
    task:
      id: ccc08aa3-60b9-4fc3-8dcc-a7a55918137d
      version: -1
      name: ""
      description: ""
      iscommand: false
      brand: ""
    nexttasks:
      '#none#':
      - "1"
    separatecontext: false
    view: |-
      {
        "position": {
          "x": 480,
          "y": 50
        }
      }
    note: false
  "1":
    id: "1"
    taskid: 09383c8c-e929-4edf-86e9-d33a0d292fc1
    type: regular
    task:
      id: 09383c8c-e929-4edf-86e9-d33a0d292fc1
      version: -1
      name: Get Bad IP alert
      description: Retrieve more information about the alert.
      script: '|||uptycs-get-alerts'
      type: regular
      iscommand: true
      brand: ""
    nexttasks:
      '#none#':
      - "5"
      - "7"
      - "3"
    scriptarguments:
      alert_id:
        simple: ${inputs.alert_id}
      asset_id: {}
      code: {}
      end_window: {}
      host_name:
        simple: '"kyle-mbp-work"'
      host_name_is: {}
      host_name_like: {}
      hostname:
        simple: kyle-mbp-work
      id:
        simple: ${inputs.alert_id}
      limit: {}
      start_window: {}
      time_ago: {}
      value: {}
    separatecontext: false
    view: |-
      {
        "position": {
          "x": 480,
          "y": 195
        }
      }
    note: false
  "3":
    id: "3"
    taskid: 34b656c0-7eef-4ae0-8393-c5051ccd1b06
    type: regular
    task:
      id: 34b656c0-7eef-4ae0-8393-c5051ccd1b06
      version: -1
      name: Get process Info
      description: Get information about the process which opened the connection.
      script: '|||uptycs-get-process-information'
      type: regular
      iscommand: true
      brand: ""
    nexttasks:
      '#none#':
      - "6"
    scriptarguments:
      asset_id:
        simple: ${Uptycs.Alerts.upt_asset_id}
      host_name_is: {}
      pid:
        simple: ${Uptycs.Alerts.pid}
      time:
        simple: ${Uptycs.Alerts.alert_time}
    separatecontext: false
    view: |-
      {
        "position": {
          "x": 50,
          "y": 370
        }
      }
    note: false
  "4":
    id: "4"
    taskid: d7d24260-1542-4d2a-83e3-63eab8da4efe
    type: regular
    task:
      id: d7d24260-1542-4d2a-83e3-63eab8da4efe
      version: -1
      name: Get child processes
      description: Get information about the child processes which were spawned from the parent process of the process which opened the connection.
      script: '|||uptycs-get-process-child-processes'
      type: regular
      iscommand: true
      brand: ""
    nexttasks:
      '#none#':
      - "9"
    scriptarguments:
      asset_id:
        simple: ${Uptycs.Parent.upt_asset_id}
      host_name_is: {}
      limit: {}
      parent:
        simple: ${Uptycs.Parent.pid}
      parent_end_time:
        simple: ${Uptycs.Parent.upt_remove_time}
      parent_start_time:
        simple: ${Uptycs.Parent.upt_add_time}
      pid:
        simple: ${Uptycs.Proc.parent}
      time:
        simple: ${Uptycs.Proc.upt_time}
    separatecontext: false
    view: |-
      {
        "position": {
          "x": 50,
          "y": 720
        }
      }
    note: false
  "5":
    id: "5"
    taskid: 6268c9fb-32ff-459e-8e8f-abeca2250646
    type: regular
    task:
      id: 6268c9fb-32ff-459e-8e8f-abeca2250646
      version: -1
      name: Get information about the connection that was opened
      description: Get information about the connection which was opened.
      script: '|||uptycs-get-process-open-sockets'
      type: regular
      iscommand: true
      brand: ""
    nexttasks:
      '#none#':
      - "9"
    scriptarguments:
      asset_id:
        simple: ${Uptycs.Alerts.upt_asset_id}
      end_window: {}
      host_name_is: {}
      host_name_like: {}
      ip:
        simple: ${Uptycs.Alerts.value}
      limit: {}
      start_window: {}
      time:
        simple: ${Uptycs.Alerts.alert_time}
      time_ago: {}
    separatecontext: false
    view: |-
      {
        "position": {
          "x": 480,
          "y": 370
        }
      }
    note: false
  "6":
    id: "6"
    taskid: cf635963-d89e-4c75-87e6-e53f74ac80ee
    type: regular
    task:
      id: cf635963-d89e-4c75-87e6-e53f74ac80ee
      version: -1
      name: Get parent info
      description: Get information about the parent process of the process which opened the connection.
      script: '|||uptycs-get-parent-information'
      type: regular
      iscommand: true
      brand: ""
    nexttasks:
      '#none#':
      - "4"
    scriptarguments:
      asset_id:
        simple: ${Uptycs.Proc.upt_asset_id}
      child_add_time:
        simple: ${Uptycs.Proc.upt_add_time}
      host_name_is: {}
      parent:
        simple: ${Uptycs.Proc.parent}
    separatecontext: false
    view: |-
      {
        "position": {
          "x": 50,
          "y": 545
        }
      }
    note: false
  "7":
    id: "7"
    taskid: 9b99e315-8a5d-4153-8923-2ec5ccb7265e
    type: regular
    task:
      id: 9b99e315-8a5d-4153-8923-2ec5ccb7265e
      version: -1
      name: Get threat indicator info
      description: Get information about the threat indicator which caused the alert to be fired.
      script: '|||uptycs-get-threat-indicator'
      type: regular
      iscommand: true
      brand: ""
    nexttasks:
      '#none#':
      - "8"
    scriptarguments:
      indicator_id:
        simple: ${Uptycs.Alerts.threat_indicator_id}
    separatecontext: false
    view: |-
      {
        "position": {
          "x": 910,
          "y": 370
        }
      }
    note: false
  "8":
    id: "8"
    taskid: df3199e9-f3c5-4689-8ed7-0822dc32a9c6
    type: regular
    task:
      id: df3199e9-f3c5-4689-8ed7-0822dc32a9c6
      version: -1
      name: Get threat source info
      description: Get information about the source of the threat indicator which fired the alert.
      script: '|||uptycs-get-threat-source'
      type: regular
      iscommand: true
      brand: ""
    nexttasks:
      '#none#':
      - "9"
    scriptarguments:
      threat_source_id:
        simple: ${Uptycs.ThreatIndicator.threat_source_id}
    separatecontext: false
    view: |-
      {
        "position": {
          "x": 910,
          "y": 545
        }
      }
    note: false
  "9":
    id: "9"
    taskid: e63fdf7e-85f3-4252-83cf-3768574d9b2d
    type: title
    task:
      id: e63fdf7e-85f3-4252-83cf-3768574d9b2d
      version: -1
      name: Done
      description: ""
      type: title
      iscommand: false
      brand: ""
    separatecontext: false
    view: |-
      {
        "position": {
          "x": 480,
          "y": 970
        }
      }
    note: false
view: |-
  {
    "linkLabelsPosition": {},
    "paper": {
      "dimensions": {
        "height": 985,
        "width": 1240,
        "x": 50,
        "y": 50
      }
    }
  }
inputs:
- key: alert_id
  value:
    simple: ${incident.alertid}
  required: true
  description: Unique Uptycs ID for a particular alert
outputs:
- contextPath: Uptycs.Proc.pid
  description: pid for the process
  type: number
- contextPath: Uptycs.Proc.upt_add_time
  description: time that the process was spawned
  type: date
- contextPath: Uptycs.Proc.upt_remove_time
  description: time that the process was removed
  type: date
- contextPath: Uptycs.Parent.pid
  description: pid of the parent process
  type: number
- contextPath: Uptycs.Parent.upt_add_time
  description: time that the process was spawned
  type: date
- contextPath: Uptycs.Parent.upt_remove_time
  description: time that the process was removed
  type: date
- contextPath: Uptycs.Sockets.local_address
  description: local IP for specified connection
  type: string
- contextPath: Uptycs.Sockets.local_port
  description: local port for specified connection
  type: number
- contextPath: Uptycs.Sockets.remote_port
  description: remote port for specified connection
  type: number
- contextPath: Uptycs.Children.pid
  description: pid of a child process
  type: number
- contextPath: Uptycs.Children.upt_add_time
  description: time that the process was spawned
  type: date
- contextPath: Uptycs.Children.upt_remove_time
  description: time that the process was removed
  type: date
tests:
- No test