Turla Group Named Pipes

Detects a named pipe used by Turla group samples

Rule Content

- title: Turla Group Named Pipes
  id: 739915e4-1e70-4778-8b8a-17db02f66db1
  status: experimental
  description: Detects a named pipe used by Turla group samples
  references:
  - Internal Research
  date: 2017/11/06
  tags:
  - attack.g0010
  author: Markus Neis
  logsource:
    product: windows
    service: sysmon
    definition: Note that you have to configure logging for PipeEvents in Symson config
    category: null
  detection:
    selection:
      EventID:
      - 17
      - 18
      PipeName:
      - \atctl
      - \userpipe
      - \iehelper
      - \sdlrpc
      - \comnap
    condition: selection
  falsepositives:
  - Unkown
  level: critical

Querying Elasticsearch

Import Libraries


In [ ]:
from elasticsearch import Elasticsearch
from elasticsearch_dsl import Search
import pandas as pd

Initialize Elasticsearch client


In [ ]:
es = Elasticsearch(['http://helk-elasticsearch:9200'])
searchContext = Search(using=es, index='logs-endpoint-winevent-sysmon-*', doc_type='doc')

Run Elasticsearch Query


In [ ]:
s = searchContext.query('query_string', query='(event_id:("17" OR "18") AND pipe_name:("\\atctl" OR "\\userpipe" OR "\\iehelper" OR "\\sdlrpc" OR "\\comnap"))')
response = s.execute()
if response.success():
    df = pd.DataFrame((d.to_dict() for d in s.scan()))

Show Results


In [ ]:
df.head()