- title: Mimikatz Use
id: 06d71506-7beb-4f22-8888-e2e5e2ca7fd8
description: This method detects mimikatz keywords in different Eventlogs (some
of them only appear in older Mimikatz version that are however still used by different
threat groups)
author: Florian Roth
date: 2017/01/10
modified: 2019/10/11
tags:
- attack.s0002
- attack.t1003
- attack.lateral_movement
- attack.credential_access
- car.2013-07-001
- car.2019-04-004
logsource:
product: windows
service: null
category: null
detection:
keywords:
Message:
- '* mimikatz *'
- '* mimilib *'
- '* <3 eo.oe *'
- '* eo.oe.kiwi *'
- '* privilege::debug *'
- '* sekurlsa::logonpasswords *'
- '* lsadump::sam *'
- '* mimidrv.sys *'
- '* p::d *'
- '* s::l *'
condition: keywords
falsepositives:
- Naughty administrators
- Penetration test
level: critical
In [ ]:
from elasticsearch import Elasticsearch
from elasticsearch_dsl import Search
import pandas as pd
In [ ]:
es = Elasticsearch(['http://helk-elasticsearch:9200'])
searchContext = Search(using=es, index='logs-*', doc_type='doc')
In [ ]:
s = searchContext.query('query_string', query='Message.keyword:(*\ mimikatz\ * OR *\ mimilib\ * OR *\ 3\ eo.oe\ * OR *\ eo.oe.kiwi\ * OR *\ privilege\:\:debug\ * OR *\ sekurlsa\:\:logonpasswords\ * OR *\ lsadump\:\:sam\ * OR *\ mimidrv.sys\ * OR *\ p\:\:d\ * OR *\ s\:\:l\ *)')
response = s.execute()
if response.success():
df = pd.DataFrame((d.to_dict() for d in s.scan()))
In [ ]:
df.head()