Exploit for CVE-2017-0261

Detects Winword starting uncommon sub process FLTLDR.exe as used in exploits for CVE-2017-0261 and CVE-2017-0262

Rule Content

- title: Exploit for CVE-2017-0261
  id: 864403a1-36c9-40a2-a982-4c9a45f7d833
  status: experimental
  description: Detects Winword starting uncommon sub process FLTLDR.exe as used in
    exploits for CVE-2017-0261 and CVE-2017-0262
  references:
  - https://www.fireeye.com/blog/threat-research/2017/05/eps-processing-zero-days.html
  author: Florian Roth
  date: 2018/02/22
  tags:
  - attack.defense_evasion
  - attack.privilege_escalation
  - attack.t1055
  logsource:
    category: process_creation
    product: windows
    service: null
  detection:
    selection:
      ParentImage: '*\WINWORD.EXE'
      Image: '*\FLTLDR.exe*'
    condition: selection
  falsepositives:
  - Several false positives identified, check for suspicious file names or locations
    (e.g. Temp folders)
  level: medium

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-*', doc_type='doc')

Run Elasticsearch Query


In [ ]:
s = searchContext.query('query_string', query='(process_parent_path.keyword:*\\WINWORD.EXE AND process_path.keyword:*\\FLTLDR.exe*)')
response = s.execute()
if response.success():
    df = pd.DataFrame((d.to_dict() for d in s.scan()))

Show Results


In [ ]:
df.head()