DHCP Server Error Failed Loading the CallOut DLL

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

Rule Content

- title: DHCP Server Error Failed Loading the CallOut DLL
  id: 75edd3fd-7146-48e5-9848-3013d7f0282c
  description: This rule detects a DHCP server error in which a specified Callout
    DLL (in registry) could not be loaded
  status: experimental
  references:
  - https://blog.3or.de/mimilib-dhcp-server-callout-dll-injection.html
  - https://technet.microsoft.com/en-us/library/cc726884(v=ws.10).aspx
  - https://msdn.microsoft.com/de-de/library/windows/desktop/aa363389(v=vs.85).aspx
  date: 2017/05/15
  modified: 2019/07/17
  tags:
  - attack.defense_evasion
  - attack.t1073
  author: Dimitrios Slamaris, @atc_project (fix)
  logsource:
    product: windows
    service: system
    category: null
  detection:
    selection:
      EventID:
      - 1031
      - 1032
      - 1034
      Source: Microsoft-Windows-DHCP-Server
    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-endpoint-winevent-system-*', doc_type='doc')

Run Elasticsearch Query


In [ ]:
s = searchContext.query('query_string', query='(event_id:("1031" OR "1032" OR "1034") AND source_name:"Microsoft\-Windows\-DHCP\-Server")')
response = s.execute()
if response.success():
    df = pd.DataFrame((d.to_dict() for d in s.scan()))

Show Results


In [ ]:
df.head()