[This is a Guest Diary by Jeffray Spence, an ISC intern as part of the SANS.edu BACS program]
Around Here, we start our day with coffee, but our day does not begin until we have our data...So much data. Where to even begin?
When approaching a massive dataset, such as those from a DShield SIEM Honeypot, the first step is to actually find something to analyze. As for myself, I usually go looking for something that makes me go; "Huh."
Today we will be walking through a starting approach with Kibana Discover to search out embedded language preferences in webtraffic, then we will use this as a starting point for finding anomalous activity.
Find A Problem to Get Some Data
Inside of my DShield SIEM there are nearly a million records, so I approach by looking for a slightly smaller data carve with which to work which still represents the problem set:

Anyone with Elastic Kibana can perform this approach on their webtraffic data as long as the HTTP headers are provided. Here, the logs are from my SANS Dshield Honeypot and the accompanying Dshield SIEM. For those who desire to install this setup there are plenty of great resources out there with links at the end of this article [1] [2].
In slightly more than 3 weeks of observation the rasperry pi honeypot had transferred a Million Records into the Elastic SIEM. These many records can prove very challenging when figuring out where to start, so it is helpful to know that even with no filtering applied on the Discover page the Field Statistics will give some fairly detailed metrics about what fields exist in the current Index.
On the Discover page in the upper right, I selected my index (here the index is “cowrie”) and without any filter applied I selected Field Statistics:

Calculating statistics ourselves is possible using ESQL and Stats, however this feature of Elastic makes gaining visibility much more obtainable at the onset. We are immediately presented with a screen displaying all of the Documents broken down by Top Values which potentially gives us some valuable insight:

The resultant statistics show that in these 3 weeks my honeypot had generated 960,000 logs, but all of those are only within 4 rules. Four is less than a 960,000 so this gives a more manageable starting dataset:

“Huh.” This little raspberry PI has been humming away quietly all day and all night and only 4 rules have popped up. I found this interesting. With no filtering applied only 15,271 records triggered any rule?
This setup is a honeypot, so literally every record is suspicious. So, what about the other 944,866 records which triggered no rules?
Today, we want a problem not a project, so we are going to use one of these rules to narrow down our traffic for analysis.
We have rule triggers for the Index page. Boring. Great for generating a large dataset, but this is not a very targeted approach.
Git Config is something I had previously analyzed, and this led me to discover malicious traffic attempting to scrape Git Config from internet hosts. Neat, but not for today.
Fortinet Emulation, for those who don't know, has fairly recently gotten a lot of attention [3].
Only one detection so far in my honeypot, so for me that's just an outlier. Interesting, but not much of a corpus.
Through the process of elimination, we are left with the Sonicwall Appliance Login Page rule.
Good representation over the problem space with 41 individual hosts logging in activity. This could potentially demonstrate how an attack is conducted or give a clue as to who was conducting one. Perfect because we are looking for regular and repeating attack attempts. I selected these criteria as a Kibana filter.
Now to start digging.