Antivirus Password Dumper Detection

Detects a highly relevant Antivirus alert that reports a password dumper

Rule Content

- title: Antivirus Password Dumper Detection
  id: 78cc2dd2-7d20-4d32-93ff-057084c38b93
  description: Detects a highly relevant Antivirus alert that reports a password dumper
  date: 2018/09/09
  modified: 2019/10/04
  author: Florian Roth
  references:
  - https://www.nextron-systems.com/2018/09/08/antivirus-event-analysis-cheat-sheet-v1-4/
  tags:
  - attack.credential_access
  - attack.t1003
  logsource:
    product: antivirus
    service: null
    category: null
  detection:
    selection:
      Signature:
      - '*DumpCreds*'
      - '*Mimikatz*'
      - '*PWCrack*'
      - HTool/WCE
      - '*PSWtool*'
      - '*PWDump*'
      - '*SecurityTool*'
      - '*PShlSpy*'
    condition: selection
  fields:
  - FileName
  - User
  falsepositives:
  - Unlikely
  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-*', doc_type='doc')

Run Elasticsearch Query


In [ ]:
s = searchContext.query('query_string', query='signature.keyword:(*DumpCreds* OR *Mimikatz* OR *PWCrack* OR HTool\/WCE OR *PSWtool* OR *PWDump* OR *SecurityTool* OR *PShlSpy*)')
response = s.execute()
if response.success():
    df = pd.DataFrame((d.to_dict() for d in s.scan()))

Show Results


In [ ]:
df.head()