Apache Segmentation Fault

Detects a segmentation fault error message caused by a creashing apacke worker process

Rule Content

- title: Apache Segmentation Fault
  id: 1da8ce0b-855d-4004-8860-7d64d42063b1
  description: Detects a segmentation fault error message caused by a creashing apacke
    worker process
  author: Florian Roth
  references:
  - http://www.securityfocus.com/infocus/1633
  logsource:
    product: apache
    service: null
    category: null
  detection:
    keywords:
    - exit signal Segmentation Fault
    condition: keywords
  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='exit\ signal\ Segmentation\ Fault')
response = s.execute()
if response.success():
    df = pd.DataFrame((d.to_dict() for d in s.scan()))

Show Results


In [ ]:
df.head()