SecurityXploded Tool

Detects the execution of SecurityXploded Tools

Rule Content

- title: SecurityXploded Tool
  id: 7679d464-4f74-45e2-9e01-ac66c5eb041a
  description: Detects the execution of SecurityXploded Tools
  author: Florian Roth
  references:
  - https://securityxploded.com/
  - https://cyberx-labs.com/blog/gangnam-industrial-style-apt-campaign-targets-korean-industrial-companies/
  date: 2018/12/19
  tags:
  - attack.credential_access
  - attack.t1003
  - attack.s0005
  logsource:
    category: process_creation
    product: windows
    service: null
  detection:
    selection1:
      Company: SecurityXploded
    selection2:
      Image|endswith: PasswordDump.exe
    selection3:
      OriginalFilename|endswith: PasswordDump.exe
    condition: 1 of them
  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='(file_company:"SecurityXploded" OR process_path.keyword:*PasswordDump.exe OR OriginalFilename.keyword:*PasswordDump.exe)')
response = s.execute()
if response.success():
    df = pd.DataFrame((d.to_dict() for d in s.scan()))

Show Results


In [ ]:
df.head()