Hurukai - Get Network Connection List

Get the list of active network connections

HarfangLab EDR · 7 tasks · 1 input · 0 outputs

Details

IDHurukai - Get Network Connection List
From Version6.2.0
Tasks7

README

Dependencies

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

Sub-playbooks

  • GenericPolling

Integrations

  • Hurukai

Scripts

This playbook does not use any scripts.

Commands

  • harfanglab-result-networkconnectionlist
  • harfanglab-job-networkconnectionlist
  • harfanglab-get-endpoint-info

Playbook Inputs


Name Description Default Value Required
agentid     Required

Playbook Outputs


There are no outputs for this playbook.

Playbook Image


Hurukai - Get Network Connection List

Inputs

  • agentid

Commands used

harfanglab-get-endpoint-info harfanglab-job-networkconnectionlist harfanglab-result-networkconnectionlist

Flowchart

windows/linux Start Start GenericPolling - GenericPolling GenericPolling GenericPolling Done Done harfanglab-job-networkconnectionlist - harfanglab-job-networkconnectionlist harfanglab-job-networkcon... harfanglab-job-networkconnect... harfanglab-result-networkconnectionlist - harfanglab-result-networkconnectionlist harfanglab-result-network... harfanglab-result-networkconn... Which platform is the agent running on ? Which platform is the age... harfanglab-get-endpoint-info - harfanglab-get-endpoint-info harfanglab-get-endpoint-info harfanglab-get-endpoint-info
contentitemexportablefields:
  contentitemfields:
    propagationLabels:
    - all
id: Hurukai - Get Network Connection List
inputs:
- description: ''
  key: agentid
  playbookInputQuery:
  required: true
  value: {}
name: Hurukai - Get Network Connection List
outputs: []
starttaskid: '0'
tasks:
  '0':
    id: '0'
    ignoreworker: false
    isautoswitchedtoquietmode: false
    isoversize: false
    nexttasks:
      '#none#':
      - '9'
    note: false
    quietmode: 0
    separatecontext: false
    skipunavailable: false
    task:
      brand: ''
      id: 02e530f4-10a9-49cc-8623-5f257566e386
      iscommand: false
      name: ''
      version: -1
      description: ''
    taskid: 02e530f4-10a9-49cc-8623-5f257566e386
    timertriggers: []
    type: start
    view: |-
      {
        "position": {
          "x": 600,
          "y": -1020
        }
      }
  '3':
    id: '3'
    ignoreworker: false
    isautoswitchedtoquietmode: false
    isoversize: false
    loop:
      exitCondition: ''
      iscommand: false
      max: 0
      wait: 1
    nexttasks:
      '#none#':
      - '7'
    note: false
    quietmode: 0
    scriptarguments:
      Ids:
        simple: ${Harfanglab.Job.ID}
      Interval:
        simple: '1'
      PollingCommandArgName:
        simple: ids
      PollingCommandName:
        simple: harfanglab-job-info
      Timeout:
        simple: '60'
      dt:
        simple: Harfanglab.Job.Info(val.Status !== 'finished').ID
    separatecontext: true
    skipunavailable: false
    task:
      brand: ''
      description: |-
        Use this playbook as a sub-playbook to block execution of the master playbook until a remote action is complete.
        This playbook implements polling by continuously running the command in Step \#2 until the operation completes.
        The remote action should have the following structure:

        1. Initiate the operation.
        2. Poll to check if the operation completed.
        3. (optional) Get the results of the operation.
      id: 5b71efd6-f02b-49cf-8df8-9430885234d8
      iscommand: false
      name: GenericPolling
      playbookId: GenericPolling
      type: playbook
      version: -1
    taskid: 5b71efd6-f02b-49cf-8df8-9430885234d8
    timertriggers: []
    type: playbook
    view: |-
      {
        "position": {
          "x": 700,
          "y": -260
        }
      }
  '5':
    id: '5'
    ignoreworker: false
    isautoswitchedtoquietmode: false
    isoversize: false
    note: false
    quietmode: 0
    separatecontext: false
    skipunavailable: false
    task:
      brand: ''
      id: d1363d81-fe8e-4915-83dd-0fafc023468f
      iscommand: false
      name: Done
      type: title
      version: -1
      description: ''
    taskid: d1363d81-fe8e-4915-83dd-0fafc023468f
    timertriggers: []
    type: title
    view: |-
      {
        "position": {
          "x": 550,
          "y": 100
        }
      }
  '6':
    id: '6'
    ignoreworker: false
    isautoswitchedtoquietmode: false
    isoversize: false
    nexttasks:
      '#none#':
      - '3'
    note: false
    quietmode: 0
    scriptarguments:
      agent_id:
        simple: ${inputs.agentid}
    separatecontext: false
    skipunavailable: false
    task:
      brand: Hurukai
      description: Start a job to get the list of network connections from a host (Windows / Linux)
      id: 32313dee-dd33-4713-8f96-5cca89c056f9
      iscommand: true
      name: harfanglab-job-networkconnectionlist
      script: Hurukai|||harfanglab-job-networkconnectionlist
      type: regular
      version: -1
    taskid: 32313dee-dd33-4713-8f96-5cca89c056f9
    timertriggers: []
    type: regular
    view: |-
      {
        "position": {
          "x": 700,
          "y": -450
        }
      }
  '7':
    evidencedata:
      customfields: {}
      description:
        simple: Network connection list
    id: '7'
    ignoreworker: false
    isautoswitchedtoquietmode: false
    isoversize: false
    nexttasks:
      '#none#':
      - '5'
    note: false
    quietmode: 0
    scriptarguments:
      job_id:
        simple: ${Harfanglab.Job.ID}
    separatecontext: false
    skipunavailable: false
    task:
      brand: Hurukai
      description: Get a hostname's network connections from job results
      id: 5357b1ea-e32f-4036-87ff-65a915ecf550
      iscommand: true
      name: harfanglab-result-networkconnectionlist
      script: Hurukai|||harfanglab-result-networkconnectionlist
      type: regular
      version: -1
    taskid: 5357b1ea-e32f-4036-87ff-65a915ecf550
    timertriggers: []
    type: regular
    view: |-
      {
        "position": {
          "x": 700,
          "y": -90
        }
      }
  '8':
    conditions:
    - condition:
      - - left:
            iscontext: true
            value:
              complex:
                accessor: Agent
                root: Harfanglab
                transformers:
                - args:
                    field:
                      value:
                        simple: ostype
                  operator: getField
          operator: isEqualString
          right:
            value:
              simple: linux
        - left:
            iscontext: true
            value:
              complex:
                accessor: Agent
                root: Harfanglab
                transformers:
                - args:
                    field:
                      value:
                        simple: ostype
                  operator: getField
          operator: isEqualString
          right:
            value:
              simple: windows
      label: windows/linux
    id: '8'
    ignoreworker: false
    isautoswitchedtoquietmode: false
    isoversize: false
    nexttasks:
      '#default#':
      - '5'
      windows/linux:
      - '6'
    note: false
    quietmode: 0
    separatecontext: false
    skipunavailable: false
    task:
      brand: ''
      id: 27d04d21-e14e-4e19-8a4d-d31fc05d53fe
      iscommand: false
      name: Which platform is the agent running on ?
      type: condition
      version: -1
      description: ''
    taskid: 27d04d21-e14e-4e19-8a4d-d31fc05d53fe
    timertriggers: []
    type: condition
    view: |-
      {
        "position": {
          "x": 600,
          "y": -670
        }
      }
  '9':
    id: '9'
    ignoreworker: false
    isautoswitchedtoquietmode: false
    isoversize: false
    nexttasks:
      '#none#':
      - '8'
    note: false
    quietmode: 0
    scriptarguments:
      agent_id:
        simple: ${inputs.agentid}
    separatecontext: false
    skipunavailable: false
    task:
      brand: Hurukai
      description: Get endpoint information from agent_id
      id: 6af2202c-6876-43f1-8d8a-031281c9f42e
      iscommand: true
      name: harfanglab-get-endpoint-info
      script: Hurukai|||harfanglab-get-endpoint-info
      type: regular
      version: -1
    taskid: 6af2202c-6876-43f1-8d8a-031281c9f42e
    timertriggers: []
    type: regular
    view: |-
      {
        "position": {
          "x": 600,
          "y": -870
        }
      }
version: -1
view: |-
  {
    "linkLabelsPosition": {},
    "paper": {
      "dimensions": {
        "height": 1185,
        "width": 530,
        "x": 550,
        "y": -1020
      }
    }
  }
tests:
- No tests (auto formatted)
fromversion: 6.2.0
description: Get the list of active network connections