-
Notifications
You must be signed in to change notification settings - Fork 383
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ELK - Elasticsearch or Kibana analyzer (contribution survey) #419
Comments
This would be great! Query hashes, IP addresses, urls, file names, etc.. In elastic and return the documents that are a hit. Might be tough because different logs have different field names to search on but if you can configure which observables will query which index and fields it would be efficient and extremely powerful. I have been wanting to do this, but didn't think about making it an analyzer. Makes sense. |
I think the analyzer should adhere to the upcoming Elastic Common Schema (https://github.com/elastic/ecs), then it should be rather universal to use. If no progress has been made on the point where I need it, I can start building it :) |
Hi, Thanks, Regards, |
Any updates on this? I would be happy to test. |
Hi, unfortunately not on my side due to lack of time. Kind regards, |
Hello everyone, https://github.com/vpiserchia/CortexELKAnalyzer any comments, PR is more than welcome regards |
Hi, I've implemented one if you are interested https://github.com/lsoumille/elasticsearch-analyzer Regards, |
@lsoumille I really like it as it provides a query field. I think we could join the effort, as they have both strengths and weeknesses: mine Vs yours:
yours Vs mine:
I think that I'll take inspiration from your work to support generic queries. |
I have developed an ElasticSearch DHCP-Responder that might be of interest... This Responder is quite specialized, as it only fetches DHCP-assign and DHCP-Renew events within a specified timeframe, But I believe that it could be used as a template for other similar (specialized) responders. |
Dear all, Thank you so much for your contributions. @lsoumille: I had an issue configuring the analyzer in Cortex. Then, I reached an error due to missing 'elasticsearch' dependencie: @vpiserchia: I had some issues running the analyzer, probably because my Cortex Docker doesn't have 'elasticsearch' installed. Hereunder is the error message: For both, unfortunatelly, as I don't have the default root password of the Docker image, I'm not able to install this requirement: I'll try to troubleshoot this permission issue next week. |
@Tux-Panik docker cp /path/to/git/repo/CortexELKAnalyzer cortex:/opt/Cortex-Analyzers/analyzers/Elasticsearch cd /opt/Cortex-Analyzers/analyzers/Elasticsearch then for login, usually you can bash into it with something like: docker exec -it -u root cortex /bin/bash regards PS: I didn't check all the commands and there might be typos; I'm sure you can find guides online... |
@lsoumille I removed localhost from the field so I could put in the ElasticHost. Unfortunately I also got a invalid output message. What version of Cortex/TheHive does this work with? Also, what version of Elastic works? Thanks! Nic |
I have a problem with Domain. It doesn't work when i do a search with toto1234.com , but if I search toto1234 ... it works. I have change in elk.py:
With:
Now it works better. |
If you update
Then you can input a host and it seems to work on 3.0.0-RC4 |
Just curious if anyone has been using this or have some updated versions. Still looking to get an analyzer for ElasticSearch queries against the different observables. |
I just pushed this analyzer to Github. That might be of use for all of you. It is based on the IP analyzer from @vpiserchia with some additions from @lsoumille. I rewrote the results and made short and long reports for - in my case - vulnerability data using some ECS contributed by @nicpenning. |
Thanks all for your contributions. |
Request Type
Analyzer
Description
ELK stack is a famous solution to collect, store, index and query data.
Widely used in investigations or to store logs, an analyzer could help to directly interrogate a remote Elasticsearch or Kibana instance from TheHive or Cortex.
Complementary information
I would like to contribute to develop this new analyzer, but the last time I tried I failed.
Feel free to contact me if you want to work on this topic.
Kibana APIs: https://www.elastic.co/guide/en/kibana/master/api.html
Elasticsearch APIs: https://www.elastic.co/guide/en/elasticsearch/reference/1.4/_the_search_api.html
Regards,
Julien
The text was updated successfully, but these errors were encountered: