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

Adjustments for Large Deployments / Best Practices #7

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions mhn-splunk/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
local
metadata/local.meta

1 change: 0 additions & 1 deletion mhn-splunk/bin/README

This file was deleted.

12 changes: 6 additions & 6 deletions mhn-splunk/default/data/ui/views/conpot_analytics.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<chart>
<title>Conpot Events per Hour</title>
<search>
<query>source="*mhn-splunk.log*" app=conpot | timechart span=1h count</query>
<query>`mhn-base` app=conpot | timechart span=1h count</query>
<earliest>$time_range.earliest$</earliest>
<latest>$time_range.latest$</latest>
</search>
Expand Down Expand Up @@ -47,7 +47,7 @@
<chart>
<title>Top Types</title>
<search>
<query>source="*mhn-splunk.log*" app=conpot | top type</query>
<query>`mhn-base` app=conpot | top type</query>
<earliest>$time_range.earliest$</earliest>
<latest>$time_range.latest$</latest>
</search>
Expand Down Expand Up @@ -83,7 +83,7 @@
<chart>
<title>Top Attacker Countries</title>
<search>
<query>source="*mhn-splunk.log*" app=conpot | iplocation src | top Country</query>
<query>`mhn-base` app=conpot | iplocation src | top Country</query>
<earliest>$time_range.earliest$</earliest>
<latest>$time_range.latest$</latest>
</search>
Expand Down Expand Up @@ -114,7 +114,7 @@
<table>
<title>Top Conpot Attackers</title>
<search>
<query>source="*mhn-splunk.log*" app=conpot | top src | iplocation src | fields src, Country, count | fillnull value=unknown Country | eval DShield="DShield"</query>
<query>`mhn-base` app=conpot | top src | iplocation src | fields src, Country, count | fillnull value=unknown Country | eval DShield="DShield"</query>
<earliest>$time_range.earliest$</earliest>
<latest>$time_range.latest$</latest>
</search>
Expand Down Expand Up @@ -159,7 +159,7 @@
<table>
<title>Top Conpot Sensors</title>
<search>
<query>source="*mhn-splunk.log*" app=conpot | top sensor | fields sensor, count</query>
<query>`mhn-base` app=conpot | top sensor | fields sensor, count</query>
<earliest>$time_range.earliest$</earliest>
<latest>$time_range.latest$</latest>
</search>
Expand All @@ -176,7 +176,7 @@
<event>
<title>Copot Events</title>
<search>
<query>source="*mhn-splunk.log*" app=conpot</query>
<query>`mhn-base` app=conpot</query>
<earliest>$time_range.earliest$</earliest>
<latest>$time_range.latest$</latest>
</search>
Expand Down
14 changes: 7 additions & 7 deletions mhn-splunk/default/data/ui/views/dionaea_analytics.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<chart>
<title>Dionaea Events per Hour</title>
<search>
<query>source="*mhn-splunk.log*" type=dionaea.connections | timechart span=1h count</query>
<query>`mhn-base` type=dionaea.connections | timechart span=1h count</query>
<earliest>$time_range.earliest$</earliest>
<latest>$time_range.latest$</latest>
</search>
Expand Down Expand Up @@ -47,7 +47,7 @@
<table>
<title>Top MD5s Captured</title>
<search>
<query>source="*mhn-splunk.log*" type=dionaea.capture md5=* | top md5 | fields md5, count | eval VirusTotal="VirusTotal" | eval TotalHash="TotalHash"</query>
<query>`mhn-base` type=dionaea.capture md5=* | top md5 | fields md5, count | eval VirusTotal="VirusTotal" | eval TotalHash="TotalHash"</query>
<earliest>$time_range.earliest$</earliest>
<latest>$time_range.latest$</latest>
</search>
Expand Down Expand Up @@ -78,7 +78,7 @@
<table>
<title>Top URLs Captured</title>
<search>
<query>source="*mhn-splunk.log*" type=dionaea.capture url=* | top url | fields url, count</query>
<query>`mhn-base` type=dionaea.capture url=* | top url | fields url, count</query>
<earliest>$time_range.earliest$</earliest>
<latest>$time_range.latest$</latest>
</search>
Expand All @@ -95,7 +95,7 @@
<table>
<title>Top Dionaea Attackers</title>
<search>
<query>source="*mhn-splunk.log*" type=dionaea.connections | top src | iplocation src | fields src, Country, count | fillnull value=Unknown Country | eval DShield="DShield"</query>
<query>`mhn-base` type=dionaea.connections | top src | iplocation src | fields src, Country, count | fillnull value=Unknown Country | eval DShield="DShield"</query>
<earliest>$time_range.earliest$</earliest>
<latest>$time_range.latest$</latest>
</search>
Expand Down Expand Up @@ -140,7 +140,7 @@
<table>
<title>Top Ports</title>
<search>
<query>source="*mhn-splunk.log*" type=dionaea.connections | top dest_port | fields dest_port, count</query>
<query>`mhn-base` type=dionaea.connections | top dest_port | fields dest_port, count</query>
<earliest>$time_range.earliest$</earliest>
<latest>$time_range.latest$</latest>
</search>
Expand All @@ -155,7 +155,7 @@
<table>
<title>Top Sensors</title>
<search>
<query>source="*mhn-splunk.log*" type=dionaea.connections | top sensor | fields sensor, count</query>
<query>`mhn-base` type=dionaea.connections | top sensor | fields sensor, count</query>
<earliest>$time_range.earliest$</earliest>
<latest>$time_range.latest$</latest>
</search>
Expand All @@ -172,7 +172,7 @@
<event>
<title>Dionaea Events</title>
<search>
<query>source="*mhn-splunk.log*" type=dionaea.connections</query>
<query>`mhn-base` type=dionaea.connections</query>
<earliest>$time_range.earliest$</earliest>
<latest>$time_range.latest$</latest>
</search>
Expand Down
16 changes: 8 additions & 8 deletions mhn-splunk/default/data/ui/views/elastichoney_analytics.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<chart>
<title>Events Per Hour</title>
<search>
<query>source="*mhn-splunk.log*" type="elastichoney.events" | timechart span=1h count</query>
<query>`mhn-base` type="elastichoney.events" | timechart span=1h count</query>
<earliest>$field1.earliest$</earliest>
<latest>$field1.latest$</latest>
</search>
Expand Down Expand Up @@ -47,7 +47,7 @@
<map>
<title>Global Attacks</title>
<search>
<query>source="*mhn-splunk.log*" type="elastichoney.events" | iplocation src | geostats count by src globallimit=20</query>
<query>`mhn-base` type="elastichoney.events" | iplocation src | geostats count by src globallimit=20</query>
<earliest>$field1.earliest$</earliest>
<latest>$field1.latest$</latest>
</search>
Expand All @@ -69,7 +69,7 @@
<chart>
<title>Top Attacker Countries</title>
<search>
<query>source="*mhn-splunk.log*" type="elastichoney.events" | iplocation src | top Country</query>
<query>`mhn-base` type="elastichoney.events" | iplocation src | top Country</query>
<earliest>$field1.earliest$</earliest>
<latest>$field1.latest$</latest>
</search>
Expand Down Expand Up @@ -103,7 +103,7 @@
<chart>
<title>Top Signatures</title>
<search>
<query>source="*mhn-splunk.log*" type="elastichoney.events" | top signature | fields signature, count</query>
<query>`mhn-base` type="elastichoney.events" | top signature | fields signature, count</query>
<earliest>$field1.earliest$</earliest>
<latest>$field1.latest$</latest>
</search>
Expand Down Expand Up @@ -138,7 +138,7 @@
<chart>
<title>Top Attacker Cities</title>
<search>
<query>source="*mhn-splunk.log*" type="elastichoney.events" | iplocation src | where City!="" | top City</query>
<query>`mhn-base` type="elastichoney.events" | iplocation src | where City!="" | top City</query>
<earliest>$field1.earliest$</earliest>
<latest>$field1.latest$</latest>
</search>
Expand Down Expand Up @@ -176,7 +176,7 @@
<table>
<title>Top Attackers</title>
<search>
<query>source="*mhn-splunk.log*" type="elastichoney.events" | rename event.* as * | rex field=src mode=sed s/::ffff:// | chart sparkline as Sparkline, count by src | rename src as Source | sort 10 -count</query>
<query>`mhn-base` type="elastichoney.events" | rename event.* as * | rex field=src mode=sed s/::ffff:// | chart sparkline as Sparkline, count by src | rename src as Source | sort 10 -count</query>
<earliest>$field1.earliest$</earliest>
<latest>$field1.latest$</latest>
</search>
Expand All @@ -200,7 +200,7 @@
<table>
<title>Top Attack Payloads</title>
<search>
<query>source="*mhn-splunk.log*" type="elastichoney.events" | rex field=_raw "getRuntime\(\)\.exec\((?&lt;command&gt;.[^\)]+)" | eval decoded=urldecode(command) | top decoded | fields decoded,count</query>
<query>`mhn-base` type="elastichoney.events" | rex field=_raw "getRuntime\(\)\.exec\((?&lt;command&gt;.[^\)]+)" | eval decoded=urldecode(command) | top decoded | fields decoded,count</query>
<earliest>$field1.earliest$</earliest>
<latest>$field1.latest$</latest>
</search>
Expand All @@ -215,7 +215,7 @@
<table>
<title>Top Sensors</title>
<search>
<query>source="*mhn-splunk.log*" type="elastichoney.events" | top sensor, app | fields sensor, app, count</query>
<query>`mhn-base` type="elastichoney.events" | top sensor, app | fields sensor, app, count</query>
<earliest>$field1.earliest$</earliest>
<latest>$field1.latest$</latest>
</search>
Expand Down
6 changes: 3 additions & 3 deletions mhn-splunk/default/data/ui/views/indicators.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<table>
<title>Top MD5s Captured</title>
<search>
<query>source="*mhn-splunk.log*" md5=* | top md5 limit=50 | fields md5, count | eval VirusTotal="VirusTotal" | eval TotalHash="TotalHash"</query>
<query>`mhn-base` md5=* | top md5 limit=50 | fields md5, count | eval VirusTotal="VirusTotal" | eval TotalHash="TotalHash"</query>
<earliest>$time_range.earliest$</earliest>
<latest>$time_range.latest$</latest>
</search>
Expand Down Expand Up @@ -45,7 +45,7 @@
<table>
<title>Top URLs Captured</title>
<search>
<query>source="*mhn-splunk.log*" (type=dionaea.capture OR type=kippo.sessions) url=* | top url limit=50 | fields url, count</query>
<query>`mhn-base` (type=dionaea.capture OR type=kippo.sessions) url=* | top url limit=50 | fields url, count</query>
<earliest>$time_range.earliest$</earliest>
<latest>$time_range.latest$</latest>
</search>
Expand All @@ -60,7 +60,7 @@
<table>
<title>Top Attackers</title>
<search>
<query>source="*mhn-splunk.log*" | top src limit=50 | iplocation src | fields src, Country, count | fillnull value=Unknown Country | eval DShield="DShield"</query>
<query>`mhn-base` | top src limit=50 | iplocation src | fields src, Country, count | fillnull value=Unknown Country | eval DShield="DShield"</query>
<earliest>$time_range.earliest$</earliest>
<latest>$time_range.latest$</latest>
</search>
Expand Down
20 changes: 10 additions & 10 deletions mhn-splunk/default/data/ui/views/kippo_analytics.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<chart>
<title>Kippo Events per Hour</title>
<search>
<query>source="*mhn-splunk.log*" type=kippo.sessions | timechart span=1h count</query>
<query>`mhn-base` type=kippo.sessions | timechart span=1h count</query>
<earliest>$time_range.earliest$</earliest>
<latest>$time_range.latest$</latest>
</search>
Expand Down Expand Up @@ -47,7 +47,7 @@
<table>
<title>Top Usernames</title>
<search>
<query>source="*mhn-splunk.log*" type=kippo.sessions ssh_username=* | top ssh_username | fields ssh_username, count</query>
<query>`mhn-base` type=kippo.sessions ssh_username=* | top ssh_username | fields ssh_username, count</query>
<earliest>$time_range.earliest$</earliest>
<latest>$time_range.latest$</latest>
</search>
Expand All @@ -62,7 +62,7 @@
<table>
<title>Top Passwords</title>
<search>
<query>source="*mhn-splunk.log*" ssh_password=* | top ssh_password | fields ssh_password, count</query>
<query>`mhn-base` ssh_password=* | top ssh_password | fields ssh_password, count</query>
<earliest>$time_range.earliest$</earliest>
<latest>$time_range.latest$</latest>
</search>
Expand All @@ -77,7 +77,7 @@
<table>
<title>Top Username/Password Combinations</title>
<search>
<query>source="*mhn-splunk.log*" ssh_username=* ssh_password=* | top ssh_username, ssh_password | fields ssh_username, ssh_password, count</query>
<query>`mhn-base` ssh_username=* ssh_password=* | top ssh_username, ssh_password | fields ssh_username, ssh_password, count</query>
<earliest>$time_range.earliest$</earliest>
<latest>$time_range.latest$</latest>
</search>
Expand All @@ -94,7 +94,7 @@
<table>
<title>Top URLs Downloaded</title>
<search>
<query>source="*mhn-splunk.log*" type=kippo.sessions url=* | top url | fields url, count</query>
<query>`mhn-base` type=kippo.sessions url=* | top url | fields url, count</query>
<earliest>$time_range.earliest$</earliest>
<latest>$time_range.latest$</latest>
</search>
Expand All @@ -109,7 +109,7 @@
<table>
<title>Top Commands Executed</title>
<search>
<query>source="*mhn-splunk.log*" type=kippo.sessions command=* | top command | fields command, count</query>
<query>`mhn-base` type=kippo.sessions command=* | top command | fields command, count</query>
<earliest>$time_range.earliest$</earliest>
<latest>$time_range.latest$</latest>
</search>
Expand All @@ -126,7 +126,7 @@
<table>
<title>Top Kippo Attackers</title>
<search>
<query>source="*mhn-splunk.log*" type=kippo.sessions | top src | iplocation src | fields src, Country, count | fillnull value=unknown Country | eval DShield="DShield"</query>
<query>`mhn-base` type=kippo.sessions | top src | iplocation src | fields src, Country, count | fillnull value=unknown Country | eval DShield="DShield"</query>
<earliest>$time_range.earliest$</earliest>
<latest>$time_range.latest$</latest>
</search>
Expand Down Expand Up @@ -171,7 +171,7 @@
<table>
<title>Top SSH Versions</title>
<search>
<query>source="*mhn-splunk.log*" type=kippo.sessions | top ssh_version | fields ssh_version, count</query>
<query>`mhn-base` type=kippo.sessions | top ssh_version | fields ssh_version, count</query>
<earliest>$time_range.earliest$</earliest>
<latest>$time_range.latest$</latest>
</search>
Expand All @@ -186,7 +186,7 @@
<table>
<title>Top Sensors</title>
<search>
<query>source="*mhn-splunk.log*" type=kippo.sessions | top sensor | fields sensor, count</query>
<query>`mhn-base` type=kippo.sessions | top sensor | fields sensor, count</query>
<earliest>$time_range.earliest$</earliest>
<latest>$time_range.latest$</latest>
</search>
Expand All @@ -203,7 +203,7 @@
<event>
<title>Kippo Events</title>
<search>
<query>source="*mhn-splunk.log*" type=kippo.sessions</query>
<query>`mhn-base` type=kippo.sessions</query>
<earliest>$time_range.earliest$</earliest>
<latest>$time_range.latest$</latest>
</search>
Expand Down
Loading