I am looking for a list/report of all original filenames for particular file types. Using Elsa i can drill into "Files/Mime type/x-dosexec", but the results do not have the filenames that i would expect, the output details hashes, IP addresses and an identifier that looks like this: "FGs8eR2ymrE5Pr3Efl".
I know i can query for "FGs8eR2ymrE5Pr3Efl" and see the associated hosts and URI's but this is extremely manual and does not scale when monitoring an environment that has hundreds (or thousands) of those filetypes per day.
Surely there is an easier way to just pull a list of filenames by file type (exe/PDF/JAR/ZIP/MP4 etc)?
Sabbo,
You could try using the following example queries for HTTP and FTP traffic to see names in bulk, substituting the desired mime type, etc.
#For HTTP traffic
class=BRO_HTTP mime_type="application/x-dosexec" groupby:uri
#For FTP traffic
class=BRO_FTP mime_type="application/pdf" groupby:arg
Thanks,
Wes
I had a play around and queries such as: "mime_type="application/x-dosexec" groupby:uri" work great.
I understand what "URI" is but what is "arg" and what other "groupby:" options are there?
Thanks,
Sabbo,
If you type "class=BRO_HTTP groupby:mime_type" in ELSA, it will query all the file types identified within HTTP traffic, and group them with the count for each. If you search by mime_type and remove the groupby parameter (class=BRO_HTTP "mime_type="application/x-dosexec"), you can group by other parameters, such as "host", "program", "class"(to the right of result options in the search results, and directly underneath the query tab).
Thanks,
Wes
Port 53 && contains file/files
Any ideas? This has proved an efficient query for me in the past.
Useragent == ZmEu
or
Useragent contains "tor"
or
file extension == php/cgi/asp/aspx
or
site ends cn/ru/info
Sabbo,
To answer the first question, you could try looking through the available parameters for class=BRO_DNS. Otherwise, I am not sure off the top of my head.
For the others, you could try the following or similar approaches.
#Useragent == ZmEu ; Match the search string exactly
class=BRO_HTTP user_agent="Mozilla"
#Useragent contains "tor"
class=BRO_HTTP groupby:user_agent | grep tor
#file extension == php/cgi/asp/aspx; Use the following to get an idea of #mime_type/arg:
#class=BRO_HTTP groupby:mime_type
#class=BRO_FTP groupby:mime_type
Ex. mime_type="text/html" OR mime_type="text/plain" , then group however you would like.
For the site portion, I'll have to look into it.
Thanks,
Wes