QuarksPwDump Dump File

Detects a dump file written by QuarksPwDump password dumper

Rule Content

- title: QuarksPwDump Dump File
  id: 847def9e-924d-4e90-b7c4-5f581395a2b4
  status: experimental
  description: Detects a dump file written by QuarksPwDump password dumper
  references:
  - https://jpcertcc.github.io/ToolAnalysisResultSheet/details/QuarksPWDump.htm
  author: Florian Roth
  date: 2018/02/10
  tags:
  - attack.credential_access
  - attack.t1003
  level: critical
  logsource:
    product: windows
    service: sysmon
    category: null
  detection:
    selection:
      EventID: 11
      TargetFilename: '*\AppData\Local\Temp\SAM-*.dmp*'
    condition: selection
  falsepositives:
  - Unknown

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:"11" AND file_name.keyword:*\\AppData\\Local\\Temp\\SAM\-*.dmp*)')
response = s.execute()
if response.success():
    df = pd.DataFrame((d.to_dict() for d in s.scan()))

Show Results


In [ ]:
df.head()