Hurukai - Get Service List

Get the list of services

HarfangLab EDR · 7 tasks · 1 input · 0 outputs

Details

IDHurukai - Get Service 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-job-servicelist
  • harfanglab-get-endpoint-info
  • harfanglab-result-servicelist

Playbook Inputs


Name Description Default Value Required
agentid     Required

Playbook Outputs


There are no outputs for this playbook.

Playbook Image


Hurukai - Get Service List

Inputs

  • agentid

Commands used

harfanglab-get-endpoint-info harfanglab-job-servicelist harfanglab-result-servicelist

Flowchart

windows Start Start GenericPolling - GenericPolling GenericPolling GenericPolling Done Done harfanglab-job-servicelist - harfanglab-job-servicelist harfanglab-job-servicelist harfanglab-job-servicelist harfanglab-result-servicelist - harfanglab-result-servicelist harfanglab-result-service... harfanglab-result-servicelist 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 Service List
inputs:
- description: ''
  key: agentid
  playbookInputQuery:
  required: true
  value: {}
name: Hurukai - Get Service 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: b08a0fa2-1a84-42af-838c-958e09b54ce5
      iscommand: false
      name: ''
      version: -1
      description: ''
    taskid: b08a0fa2-1a84-42af-838c-958e09b54ce5
    timertriggers: []
    type: start
    view: |-
      {
        "position": {
          "x": 600,
          "y": -980
        }
      }
  '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: e9c1ab12-8fae-46b5-8854-ff1cefaee7c5
      iscommand: false
      name: GenericPolling
      playbookId: GenericPolling
      type: playbook
      version: -1
    taskid: e9c1ab12-8fae-46b5-8854-ff1cefaee7c5
    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: 3318b61c-00df-4fd5-8187-499d825255ae
      iscommand: false
      name: Done
      type: title
      version: -1
      description: ''
    taskid: 3318b61c-00df-4fd5-8187-499d825255ae
    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 services from a host (Windows)
      id: f4d3a0f8-a221-4b95-8dd0-ac50bd6191d7
      iscommand: true
      name: harfanglab-job-servicelist
      script: Hurukai|||harfanglab-job-servicelist
      type: regular
      version: -1
    taskid: f4d3a0f8-a221-4b95-8dd0-ac50bd6191d7
    timertriggers: []
    type: regular
    view: |-
      {
        "position": {
          "x": 700,
          "y": -450
        }
      }
  '7':
    evidencedata:
      customfields: {}
      description:
        simple: Service 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 list of services from job results
      id: b71a11aa-126e-49e5-866f-a2f7fde8ce75
      iscommand: true
      name: harfanglab-result-servicelist
      script: Hurukai|||harfanglab-result-servicelist
      type: regular
      version: -1
    taskid: b71a11aa-126e-49e5-866f-a2f7fde8ce75
    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: windows
      label: windows
    id: '8'
    ignoreworker: false
    isautoswitchedtoquietmode: false
    isoversize: false
    nexttasks:
      '#default#':
      - '5'
      windows:
      - '6'
    note: false
    quietmode: 0
    separatecontext: false
    skipunavailable: false
    task:
      brand: ''
      id: 2179aa51-d20f-4bd8-8cfa-d7dda95efe5f
      iscommand: false
      name: Which platform is the agent running on ?
      type: condition
      version: -1
      description: ''
    taskid: 2179aa51-d20f-4bd8-8cfa-d7dda95efe5f
    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: 1732de65-297e-4163-8f00-52043e838cb9
      iscommand: true
      name: harfanglab-get-endpoint-info
      script: Hurukai|||harfanglab-get-endpoint-info
      type: regular
      version: -1
    taskid: 1732de65-297e-4163-8f00-52043e838cb9
    timertriggers: []
    type: regular
    view: |-
      {
        "position": {
          "x": 600,
          "y": -845
        }
      }
version: -1
view: |-
  {
    "linkLabelsPosition": {},
    "paper": {
      "dimensions": {
        "height": 1145,
        "width": 530,
        "x": 550,
        "y": -980
      }
    }
  }
tests:
- No tests (auto formatted)
fromversion: 6.2.0
description: Get the list of services