WCE wceaux.dll Access

Detects wceaux.dll access while WCE pass-the-hash remote command execution on source host

Rule Content

- title: WCE wceaux.dll Access
  id: 1de68c67-af5c-4097-9c85-fe5578e09e67
  status: experimental
  description: Detects wceaux.dll access while WCE pass-the-hash remote command execution
    on source host
  author: Thomas Patzke
  references:
  - https://www.jpcert.or.jp/english/pub/sr/ir_research.html
  - https://jpcertcc.github.io/ToolAnalysisResultSheet
  tags:
  - attack.credential_access
  - attack.t1003
  - attack.s0005
  logsource:
    product: windows
    service: security
    category: null
  detection:
    selection:
      EventID:
      - 4656
      - 4658
      - 4660
      - 4663
      ObjectName: '*\wceaux.dll'
    condition: selection
  falsepositives:
  - Penetration testing
  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-security-*', doc_type='doc')

Run Elasticsearch Query


In [ ]:
s = searchContext.query('query_string', query='(event_id:("4656" OR "4658" OR "4660" OR "4663") AND object_name.keyword:*\\wceaux.dll)')
response = s.execute()
if response.success():
    df = pd.DataFrame((d.to_dict() for d in s.scan()))

Show Results


In [ ]:
df.head()