DNS Server Error Failed Loading the ServerLevelPluginDLL

This rule detects a DNS server error in which a specified plugin DLL (in registry) could not be loaded

Rule Content

- title: DNS Server Error Failed Loading the ServerLevelPluginDLL
  id: cbe51394-cd93-4473-b555-edf0144952d9
  description: This rule detects a DNS server error in which a specified plugin DLL
    (in registry) could not be loaded
  status: experimental
  date: 2017/05/08
  references:
  - https://medium.com/@esnesenon/feature-not-bug-dnsadmin-to-dc-compromise-in-one-line-a0f779b8dc83
  - https://technet.microsoft.com/en-us/library/cc735829(v=ws.10).aspx
  - https://twitter.com/gentilkiwi/status/861641945944391680
  tags:
  - attack.defense_evasion
  - attack.t1073
  author: Florian Roth
  logsource:
    product: windows
    service: dns-server
    category: null
  detection:
    selection:
      EventID:
      - 150
      - 770
    condition: selection
  falsepositives:
  - Unknown
  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='event_id:("150" OR "770")')
response = s.execute()
if response.success():
    df = pd.DataFrame((d.to_dict() for d in s.scan()))

Show Results


In [ ]:
df.head()