Fireball Archer Install

Detects Archer malware invocation via rundll32

Rule Content

- title: Fireball Archer Install
  id: 3d4aebe0-6d29-45b2-a8a4-3dfde586a26d
  status: experimental
  description: Detects Archer malware invocation via rundll32
  author: Florian Roth
  date: 2017/06/03
  references:
  - https://www.virustotal.com/en/file/9b4971349ae85aa09c0a69852ed3e626c954954a3927b3d1b6646f139b930022/analysis/
  - https://www.hybrid-analysis.com/sample/9b4971349ae85aa09c0a69852ed3e626c954954a3927b3d1b6646f139b930022?environmentId=100
  tags:
  - attack.execution
  - attack.t1059
  - attack.defense_evasion
  - attack.t1085
  logsource:
    category: process_creation
    product: windows
    service: null
  detection:
    selection:
      CommandLine: '*\rundll32.exe *,InstallArcherSvc'
    condition: selection
  fields:
  - CommandLine
  - ParentCommandLine
  falsepositives:
  - Unknown
  level: high

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='process_command_line.keyword:*\\rundll32.exe\ *,InstallArcherSvc')
response = s.execute()
if response.success():
    df = pd.DataFrame((d.to_dict() for d in s.scan()))

Show Results


In [ ]:
df.head()