mirror of
https://github.com/splunk/security_content
synced 2026-06-08 17:32:49 +00:00
updated mappings in analytic_stories.conf
This commit is contained in:
@@ -606,6 +606,7 @@ def write_analytics_story_confv1(stories, detections, investigations, baselines,
|
||||
output_file.write("version = %s\n" % story['version'])
|
||||
output_file.write("reference = %s\n" % json.dumps(story['references']))
|
||||
|
||||
# write all detections
|
||||
if 'detections' in story:
|
||||
detection_searches = []
|
||||
for d in story['detections']:
|
||||
@@ -613,6 +614,15 @@ def write_analytics_story_confv1(stories, detections, investigations, baselines,
|
||||
detection_searches.append("ESCU - " + d['name'] + " - Rule")
|
||||
output_file.write("detection_searches = %s\n" % json.dumps(detection_searches))
|
||||
|
||||
# grab mappings
|
||||
mappings = dict()
|
||||
for detection_name, detection in sorted(detections.iteritems()):
|
||||
for s in detection['stories']:
|
||||
if s == story_name and detection['type'] == 'splunk':
|
||||
for key in detection['mappings'].keys():
|
||||
mappings[key] = list(detection['mappings'][key])
|
||||
output_file.write("mappings = {0}\n".format(json.dumps(mappings)))
|
||||
|
||||
# write all investigations
|
||||
total_investigations = []
|
||||
for investigation_name, investigation in sorted(investigations.iteritems()):
|
||||
|
||||
+202
-141
File diff suppressed because one or more lines are too long
@@ -1,6 +1,6 @@
|
||||
#############
|
||||
# Automatically generated by generator.py in splunk/security-content
|
||||
# On Date: 2019-04-22T23:02:58 UTC
|
||||
# On Date: 2019-04-23T17:04:41 UTC
|
||||
# Author: Splunk Security Research
|
||||
# Contact: research@splunk.com
|
||||
#############
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user