Skip to content
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

SSH Analysis Example #110

Merged
merged 16 commits into from
Jan 9, 2017
Merged

SSH Analysis Example #110

merged 16 commits into from
Jan 9, 2017

Conversation

gingerwizard
Copy link
Contributor

No description provided.

@gingerwizard gingerwizard merged commit 3e0bb77 into elastic:master Jan 9, 2017
@kimchy
Copy link
Member

kimchy commented Jan 10, 2017

@gingerwizard how do we get the data for SSH? I am wondering if, with the upcoming filebeat modules, we can have an SSH module that would parse SSH logs, and automatically install the relevant ingest plugin and Kibana dashboards for it. Later on, we can add support to automatically install watches and potentially built in ml (prelert). /cc @tsg @monicasarbu

@tsg
Copy link

tsg commented Jan 10, 2017

Looks like it's using a Logstash codec (cef), so we'd have to check if grok is enough for parsing that format, or we'd need a CEF processor in Ingest Node. Or do you mean to parse the SSH logs in their non-CEF format?

@kimchy
Copy link
Member

kimchy commented Jan 10, 2017

yes, I meant tailing SSH logs, out of the box (automatic detection of location based on OS and so on), in their original format (which as far as I can tell, it is non CEF)

@gingerwizard
Copy link
Contributor Author

In this case we took the auth logs from a honeypot that @nellicus has been running and converted them to CEF format. The pattern of these logs varies depending on system configuration, but in this case each entry was already JSON - @nellicus can provide further details but sample:

{"eventid": "cowrie.client.var", "name": "LC_PAPER", "timestamp": "2016-11-15T19:22:30.382303Z", "message": "request_env: LC_PAPER=es_ES.UTF-8", "system": "SSHChannel session (0) on SSHService ssh-connection on HoneyPotSSHTransport,2,192.168.1.105", "value": "es_ES.UTF-8", "isError": 0, "src_ip": "192.168.1.105", "session": "111f70f0", "sensor": "w530"}

The conversion to CEF was more to illustrate how data collected by Arcsight could in theory be easily ingested and alerted on.

@tsg
Copy link

tsg commented Feb 27, 2017

Small follow up here, we have a filebeat module (PR open) and a staged blog post for doing something similar to this. Let me know if you see any issues with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants