new test file

This commit is contained in:
P4T12ICK
2021-01-18 15:22:05 +01:00
parent 27b27a5b59
commit 44bf41a678
9 changed files with 17 additions and 4 deletions
@@ -19,7 +19,8 @@ how_to_implement: 'This search requires you to be ingesting web-traffic logs. Yo
**Label:** IsDynamicDNS, **Field:** isDynDNS\
Detailed documentation on how to create a new field within Incident Review may be
found here: `https://docs.splunk.com/Documentation/ES/5.3.0/Admin/Customizenotables#Add_a_field_to_the_notable_event_details`'
found here: `https://docs.splunk.com/Documentation/ES/5.3.0/Admin/Customizenotables#Add_a_field_to_the_notable_event_details`
Deprecated because duplicate.'
type: ESCU
references: []
author: Bhavin Patel, Splunk
@@ -1,7 +1,7 @@
name: DNS Query Length With High Standard Deviation
id: 1a67f15a-f4ff-4170-84e9-08cf6f75d6f5
version: 2
date: '2020-07-21'
version: 3
date: '2021-01-18'
description: This search allows you to identify DNS requests and compute the standard
deviation on the length of the names being resolved, then filter on two times the
standard deviation to show you those queries that are unusually large for your environment.
@@ -11,7 +11,7 @@ type: ESCU
references: []
author: Bhavin Patel, Splunk
search: '| tstats `security_content_summariesonly` count from datamodel=Network_Resolution
by DNS.query DNS.record_type | `drop_dm_object_name("DNS")` | eval query_length
by DNS.query | `drop_dm_object_name("DNS")` | eval query_length
= len(query) | table query query_length record_type count | eventstats stdev(query_length)
AS stdev avg(query_length) AS avg p50(query_length) AS p50| where query_length>(avg+stdev*2)
| eval z_score=(query_length-avg)/stdev | `dns_query_length_with_high_standard_deviation_filter` '
@@ -0,0 +1,12 @@
name: DNS Query Length With High Standard Deviation Unit Test
tests:
- name: DNS Query Length With High Standard Deviation
file: network/dns_query_length_with_high_standard_deviation.yml
pass_condition: '| stats count | where count > 0'
earliest_time: '-24h'
latest_time: 'now'
attack_data:
- file_name: windows-sysmon.log
data: https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1048.003/long_dns_queries/windows-sysmon.log
source: XmlWinEventLog:Microsoft-Windows-Sysmon/Operational
sourcetype: xmlwineventlog